- Create SimulationWidget

- Drop the old SchedulablesWidget in favor of a simple Gtk::TreeView
- Update the GuiBuilder consequentially
- FIXME: in cairo_widget.cc : have we to scale the context before or after
drawing on it?


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@845 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-08-12 15:49:37 +00:00
parent 51fdeea4d1
commit 59edb09c14
8 changed files with 60 additions and 61 deletions

View file

@ -21,11 +21,8 @@
#include "config.h"
#include "gettext.h"
#ifdef _SG_SCHEDULABLES_TREE_WIDGET
#include "schedulables_tree_widget.hh"
#else
#include "schedulables_widget.hh"
#endif
#include "schedulables_tree_widget.hh"
#include "simulation_widget.hh"
#include "gui_builder.hh"
@ -37,6 +34,7 @@
#include <gtkmm/expander.h>
#include <gtkmm/main.h>
#include <gtkmm/menuitem.h>
#include <gtkmm/scrolledwindow.h>
#include <iostream>
@ -78,14 +76,18 @@ GuiBuilder::GuiBuilder(const std::string& gladefile)
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();
// Main simulation widget
ScrolledWindow* simulation_window = NULL;
_refXml->get_widget("SimulationScrolledWindow", simulation_window);
SimulationWidget* simulation_widget = manage(new SimulationWidget());
simulation_window->add(*simulation_widget);
simulation_widget->show();
}