- Add debug printout in SimulationWidget

- Add holt_widget.{cc,hh} to main executable sources


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1002 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-09-02 14:48:03 +00:00
parent 64839353bb
commit c10ed2f4fb
4 changed files with 15 additions and 5 deletions

View file

@ -25,6 +25,7 @@
#include "configure_policy_dialog.hh"
#include "graphical_preferences_editor.hh"
#include "holt_widget.hh"
#include "schedulables_tree_widget.hh"
#include "simulation_widget.hh"
#include "resources_widget.hh"
@ -517,7 +518,6 @@ GuiBuilder::GuiBuilder(const std::string& gladefile)
// we have to remember to manually show custom added widgets:
scheds_tree->show();
// Resources ListView widget
ResourcesWidget* resources_widget = NULL;
_refXml->get_widget_derived("Resources.Tree", resources_widget);
@ -527,9 +527,14 @@ GuiBuilder::GuiBuilder(const std::string& gladefile)
// Main simulation widget
ScrolledWindow* simulation_window = NULL;
_refXml->get_widget("SimulationScrolledWindow", simulation_window);
_simulation_widget = manage(new SimulationWidget(Simulation::get_instance()));
simulation_window->add(*_simulation_widget);
_simulation_widget->show();
SimulationWidget& simulation_widget = *manage(new SimulationWidget(Simulation::get_instance()));
simulation_window->add(simulation_widget);
simulation_widget.show();
// Why this works, and SimulationWidget doesn't ??
// HoltWidget& holt = *manage(new HoltWidget(Simulation::get_instance()));
// simulation_window->add(holt);
// holt.show();
}