From 08a4cd4f63ab715e071b7ad0df338e188e156cd1 Mon Sep 17 00:00:00 2001 From: paolo Date: Wed, 6 Sep 2006 09:17:34 +0000 Subject: [PATCH] - added menu items in View to show/hide threads and holt_widget git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1021 3ecf2c5c-341e-0410-92b4-d18e462d057c --- glade/main-window.glade | 1061 ++++++++++++++++++++-------------- src/holt_container_window.cc | 6 + src/holt_container_window.hh | 4 +- 3 files changed, 651 insertions(+), 420 deletions(-) diff --git a/glade/main-window.glade b/glade/main-window.glade index 0b4a256..00561d3 100644 --- a/glade/main-window.glade +++ b/glade/main-window.glade @@ -1,432 +1,655 @@ - - - + + + - - SGPEMv2 - 800 - 600 - gtk-dialog-warning - - - True - - - True - - - True - _File - True - - - - - True - gtk-open - True - True - - - - - True - gtk-save - True - True - - - - - True - gtk-save-as - True - True - - - - - True - gtk-close - True - True - - - - - True - - - - - True - gtk-quit - True - True - - - - - - - - - True - _Edit - True - - - - - True - gtk-preferences - True - True - - - - - - - - - True - _Simulation - True - - - - - True - gtk-media-play - True - True - - - - - True - False - gtk-media-pause - True - True - - - - - True - False - gtk-media-stop - True - True - - - - - - True - - - - - True - True - Continuous mode - - - - - - - - - True - _Help - True - - - - - True - gtk-about - True - True - - - - - - - - - False - - - - - True - GTK_TOOLBAR_BOTH - - - True - gtk-open - - - - - True - gtk-save - - - - - True - - - - - True - gtk-media-play - Start the simulation - - - - - True - False - gtk-media-pause - - - - - True - False - gtk-media-stop - - - - - True - - - - - True - Scheduling Policy - True - gtk-convert - - - - - True - - - - - True - Resource Scheduling - True - gtk-select-color - - - - - False - 1 - - - - - True - True - 1 - 200 - - - True - - - True - 0,000000 - 0,000000 - GTK_SHADOW_NONE - - - True - 0,000000 - 0,000000 - 12 - - - True - GTK_POLICY_AUTOMATIC - GTK_POLICY_AUTOMATIC - GTK_SHADOW_OUT - - - - - - - - - - True - 0,000000 - 0,000000 - 2 - <i>Schedulables</i> - True - - - label_item - - - - - False - - - - - True - 0,000000 - 0,000000 - GTK_SHADOW_NONE - - - True - 0,000000 - 0,000000 - 12 - - - True - GTK_POLICY_AUTOMATIC - GTK_POLICY_AUTOMATIC - GTK_SHADOW_OUT - - - True - True - - - - - - - - - True - 0,000000 - 0,000000 - 2 - <i>Resources</i> - True - - - label_item - - - - - False - - - - - False - False - - - - - True - True - GTK_POLICY_AUTOMATIC - - - - - - - - 2 - - - - - True - 0,000000 - 0,000000 - 7 - 2 - <b>Ready queue: {</b> <b>}</b> - True - PANGO_ELLIPSIZE_END - True - - - False - 4 - - - - - True - - - False - GTK_PACK_END - 3 - - - - - - - MainWindow - 1.0 - University of Padova, dept. of Pure and Applied Mathematics - An educational simulator for process scheduling policies in a monoprocessor computer. - SGPEMv2 comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under the terms of the GNU General Public License; for details see file COPYING contained in the source package. - Filippo Paparella <ironpipp@gmail.com> + + + SGPEMv2 + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + 800 + 600 + True + False + gtk-dialog-warning + True + False + False + GDK_WINDOW_TYPE_HINT_NORMAL + GDK_GRAVITY_NORTH_WEST + True + + + + True + False + 0 + + + + True + + + + True + _File + True + + + + + + + True + gtk-open + True + + + + + + True + gtk-save + True + + + + + + True + gtk-save-as + True + + + + + + True + gtk-close + True + + + + + + True + + + + + + True + gtk-quit + True + + + + + + + + + + True + _Edit + True + + + + + + + True + gtk-preferences + True + + + + + + + + + + True + _View + True + + + + + + + True + Enable/disable threads visualization in Graphs + Show _Threads + True + + + + + + True + Show/Hide holt graph window + Show _Holt Graph + True + + + + + + + + + + True + _Simulation + True + + + + + + + True + gtk-media-play + True + + + + + + True + False + gtk-media-pause + True + + + + + + True + False + gtk-media-stop + True + + + + + + + True + + + + + + True + Continuous mode + True + True + + + + + + + + + + True + _Help + True + + + + + + + True + gtk-about + True + + + + + + + + + 0 + False + True + + + + + + True + GTK_ORIENTATION_HORIZONTAL + GTK_TOOLBAR_BOTH + True + True + + + + True + gtk-open + True + True + False + + + False + True + + + + + + True + gtk-save + True + True + False + + + False + True + + + + + + True + True + True + True + + + False + False + + + + + + True + Start the simulation + gtk-media-play + True + True + False + + + False + True + + + + + + True + False + gtk-media-pause + True + True + False + + + False + True + + + + + + True + False + gtk-media-stop + True + True + False + + + False + True + + + + + + True + True + True + True + + + False + False + + + + + + True + Scheduling Policy + True + gtk-convert + True + True + False + + + False + False + + + + + + True + True + True + True + + + False + False + + + + + + True + Resource Scheduling + True + gtk-select-color + True + True + False + + + False + False + + + + + 0 + False + True + + + + + + 1 + True + True + 200 + + + + True + + + + True + 0 + 0 + GTK_SHADOW_NONE + + + + True + 0 + 0 + 1 + 1 + 0 + 0 + 12 + 0 + + + + True + GTK_POLICY_AUTOMATIC + GTK_POLICY_AUTOMATIC + GTK_SHADOW_OUT + GTK_CORNER_TOP_LEFT + + + + + + + + + + + + True + <i>Schedulables</i> + False + True + GTK_JUSTIFY_LEFT + False + False + 0 + 0 + 0 + 2 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + label_item + + + + + True + False + + + + + + True + 0 + 0 + GTK_SHADOW_NONE + + + + True + 0 + 0 + 1 + 1 + 0 + 0 + 12 + 0 + + + + True + GTK_POLICY_AUTOMATIC + GTK_POLICY_AUTOMATIC + GTK_SHADOW_OUT + GTK_CORNER_TOP_LEFT + + + + True + True + True + False + False + True + False + False + False + + + + + + + + + + True + <i>Resources</i> + False + True + GTK_JUSTIFY_LEFT + False + False + 0 + 0 + 0 + 2 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + label_item + + + + + True + False + + + + + False + False + + + + + + True + True + GTK_POLICY_ALWAYS + GTK_POLICY_AUTOMATIC + GTK_SHADOW_NONE + GTK_CORNER_TOP_LEFT + + + + + + + True + True + + + + + 0 + True + True + + + + + + True + True + + + 0 + False + True + GTK_PACK_END + + + + + + True + <b>Ready queue: {</b> <b>}</b> + False + True + GTK_JUSTIFY_LEFT + False + False + 0 + 0 + 7 + 2 + PANGO_ELLIPSIZE_END + -1 + True + 0 + + + 0 + False + True + + + + + + + + False + Application Name + University of Padova, dept. of Pure and Applied Mathematics + An educational simulator for process scheduling policies in a monoprocessor computer. + SGPEMv2 comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under the terms of the GNU General Public License; for details see file COPYING contained in the source package. + Filippo Paparella <ironpipp@gmail.com> Paolo Santi <psanti@studenti.math.unipd.it> Matteo Settenvini <matteo@member.fsf.org> Marco Trevisan <mtrevisa@studenti.math.unipd.it> Djina Verbanac <betalgez@yahoo.com> Luca Vezzaro <lvezzaro@studenti.math.unipd.it> - Giovanni Giacobbi <ggiacobb@studenti.math.unipd.it> + Giovanni Giacobbi <ggiacobb@studenti.math.unipd.it> Filippo Paparella <ironpipp@gmail.com> Paolo Santi <psanti@studenti.math.unipd.it> Matteo Settenvini <matteo@member.fsf.org> Marco Trevisan <mtrevisa@studenti.math.unipd.it> Djina Verbanac <betalgez@yahoo.com> Luca Vezzaro <lvezzaro@studenti.math.unipd.it> - - - True - 12 - - - - - - True - GTK_BUTTONBOX_END - - - False - GTK_PACK_END - - - - - + translator-credits + + + + True + False + 12 + + + + + + + + True + GTK_BUTTONBOX_END + + + 0 + False + True + GTK_PACK_END + + + + + + diff --git a/src/holt_container_window.cc b/src/holt_container_window.cc index 95e0e56..1d9364d 100644 --- a/src/holt_container_window.cc +++ b/src/holt_container_window.cc @@ -39,3 +39,9 @@ using namespace sgpem; } + +HoltWidget& HoltContainerWindow::get_holt_widget() +{ + return _holt_widget; +} + diff --git a/src/holt_container_window.hh b/src/holt_container_window.hh index df55725..695b4df 100644 --- a/src/holt_container_window.hh +++ b/src/holt_container_window.hh @@ -46,9 +46,11 @@ namespace sgpem { public: HoltContainerWindow(Simulation& simulation); virtual ~HoltContainerWindow(); + + HoltWidget& get_holt_widget(); protected: virtual void on_size_request (Gtk::Requisition* requisition); - HoltWidget _holt_widget; + HoltWidget _holt_widget; }; } // ~ namespace sgpem