- Added a tree widget as a temporary replacement for the cairo-based one. it`s still incomplete, but I should get it working in no time now that I understand how to use it

NOTE: to use it _SG_SCHEDULABLES_TREE_WIDGET must be defined, which is obvioulsy not, by default

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@841 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
elvez 2006-08-11 00:45:41 +00:00
parent 6a1e30b0a2
commit 436e401ae8
3 changed files with 116 additions and 2 deletions

View file

@ -21,7 +21,12 @@
#include "config.h"
#include "gettext.h"
#include "schedulables_widget.hh"
#ifdef _SG_SCHEDULABLES_TREE_WIDGET
#include "schedulables_tree_widget.hh"
#else
#include "schedulables_widget.hh"
#endif
#include "gui_builder.hh"
#include "backend/history.hh"
@ -72,11 +77,15 @@ GuiBuilder::GuiBuilder(const std::string& gladefile)
// Temporary code to test the Schedulables custom widget
Expander* scheds_expander = NULL;
_refXml->get_widget("SchedulablesExpander", scheds_expander);
#ifdef _SG_SCHEDULABLES_TREE_WIDGET
SchedulablesTreeWidget* scheds_widget = manage(new SchedulablesTreeWidget());
#else
SchedulablesWidget* scheds_widget = manage(new SchedulablesWidget());
#endif
scheds_expander->add(*scheds_widget);
// we have to remember to manually show custom added widgets:
scheds_widget->show();
}