- Show Statistics and HoltGraph only when the user wants them

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1151 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-09-14 16:20:01 +00:00
parent 382b38ab6a
commit aec289ed92
3 changed files with 48 additions and 101 deletions

View file

@ -674,22 +674,8 @@ GuiBuilder::GuiBuilder(const std::string& gladefile)
// HoltGraph container window
_holt_container.set_transient_for(main_window);
_holt_container.get_holt_widget().set_show_threads(_show_threads);
_holt_container.show();
_statistics_container.get_main_window()->set_transient_for(main_window);
// Moves and resize windows
int w = gdk_screen_width(), h= gdk_screen_height();;
get_initial_window().move(0,0);
get_initial_window().resize(w,(h/3)*2 - 50);
_holt_container.move(0, (h/3)*2);
_holt_container.resize(h/3, h/3);
_statistics_container.get_main_window()->move(h/3 + 15,(h/3)*2);
_statistics_container.get_main_window()->resize(w - h/3 - 15, h/3);
}

View file

@ -35,8 +35,8 @@ StatisticsContainerWindow::StatisticsContainerWindow(const std::string& gladefil
_refXml->get_widget("StatisticsWindow", _main_win);
// This just sets the title of our new window.
_main_win->set_title(_("Simulation Statistics"));
_main_win->set_type_hint(Gdk::WINDOW_TYPE_HINT_UTILITY);
ScrolledWindow *scroll1, *scroll2;
_refXml->get_widget("SchedulableStatisticsScroll", scroll1);
@ -47,15 +47,11 @@ StatisticsContainerWindow::StatisticsContainerWindow(const std::string& gladefil
_tab_sim = manage(new TabularSimulationStatisticsWidget());
scroll2->add(*_tab_sim);
_main_win->show();
scroll1->show();
scroll2->show();
_tab_sched->show();
_tab_sim->show();
_main_win->set_type_hint(Gdk::WINDOW_TYPE_HINT_UTILITY);
/*
_scrolled_tabular.add(_tabular_schedulables_statistics_widget);
add(_scrolled_tabular);