From b3999f28039072bd5e9453d6db103df678073520 Mon Sep 17 00:00:00 2001 From: tchernobog Date: Sun, 17 Sep 2006 12:30:39 +0000 Subject: [PATCH] - Set icon for main window - Enable startup notification in GNOME via desktop file git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1224 3ecf2c5c-341e-0410-92b4-d18e462d057c --- data/sgpemv2.desktop | 1 + glade/main-window.glade | 1231 ++++++++++++++++----------------------- po/POTFILES.in | 1 - po/sgpemv2.pot | 64 +- 4 files changed, 531 insertions(+), 766 deletions(-) diff --git a/data/sgpemv2.desktop b/data/sgpemv2.desktop index ec452b6..219dac9 100644 --- a/data/sgpemv2.desktop +++ b/data/sgpemv2.desktop @@ -15,4 +15,5 @@ Comment[it]=Un programma educativo che mostra la gestione dei processi in un sis Icon=scc-sgpemv2 Exec=sgpemv2 '%f' +StartupNotify=true Terminal=false diff --git a/glade/main-window.glade b/glade/main-window.glade index eda8c5f..d4f9732 100644 --- a/glade/main-window.glade +++ b/glade/main-window.glade @@ -1,736 +1,521 @@ - - - + + + - - - 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-new - True - - - - - - True - gtk-open - True - - - - - - True - gtk-save - True - - - - - - True - gtk-save-as - True - - - - - - True - - - - - - True - gtk-quit - True - - - - - - - - - - True - _Edit - True - - - - - - - True - gtk-preferences - True - - - - - - - - - - True - _View - True - - - - - - - True - Enable/disable threads visualization in Graphs - Show/Hide _Threads - True - - - - True - gtk-select-font - 1 - 0.5 - 0.5 - 0 - 0 - - - - - - - - True - Show/Hide holt graph window - Show/Hide _Holt Graph - True - - - - True - gtk-convert - 1 - 0.5 - 0.5 - 0 - 0 - - - - - - - - True - Show/Hide statistics window - Show/Hide _Statistics - True - - - - True - gtk-justify-left - 1 - 0.5 - 0.5 - 0 - 0 - - - - - - - - - - - - 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 - - - - - - True - True - - - 0 - False - True - GTK_PACK_END - - - - - - 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 - False - 0 - - - - True - - - 0 - False - True - GTK_PACK_END - - - - - - True - True - 1 - 0 - False - GTK_UPDATE_ALWAYS - False - False - 1 1 inf 1 10 10 - - - 3 - False - True - GTK_PACK_END - - - - - - True - gtk-jump-to - True - GTK_RELIEF_NORMAL - True - - - 0 - False - True - GTK_PACK_END - - - - - 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> + + SGPEMv2 + 800 + 600 + scc-sgpemv2 + + + True + + + True + + + True + _File + True + + + + + True + gtk-new + True + True + + + + + True + gtk-open + True + True + + + + + True + gtk-save + True + True + + + + + True + gtk-save-as + True + True + + + + + True + + + + + True + gtk-quit + True + True + + + + + + + + + True + _Edit + True + + + + + True + gtk-preferences + True + True + + + + + + + + + True + _View + True + + + + + True + Enable/disable threads visualization in Graphs + Show/Hide _Threads + True + + + True + 0,000000 + 0,000000 + gtk-select-font + 1 + + + + + + + True + Show/Hide holt graph window + Show/Hide _Holt Graph + True + + + True + 0,000000 + 0,000000 + gtk-convert + 1 + + + + + + + True + Show/Hide statistics window + Show/Hide _Statistics + True + + + True + 0,000000 + 0,000000 + gtk-justify-left + 1 + + + + + + + + + + + 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 + + + + + + + + + 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 + + + + + + + + 3 + + + + + True + + + True + gtk-jump-to + True + + + False + GTK_PACK_END + 2 + + + + + True + True + 0 1 0 1 10 10 + 1 + + + False + 3 + GTK_PACK_END + 1 + + + + + True + + + False + GTK_PACK_END + + + + + False + 4 + + + + + True + + + False + GTK_PACK_END + 2 + + + + + + + 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> - translator-credits - - - - True - False - 12 - - - - - - - - True - GTK_BUTTONBOX_END - - - 0 - False - True - GTK_PACK_END - - - - - - + translator-credits + + + True + 12 + + + + + + True + GTK_BUTTONBOX_END + + + False + GTK_PACK_END + + + + + diff --git a/po/POTFILES.in b/po/POTFILES.in index da48915..65627d9 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -8,7 +8,6 @@ src/main.cc src/cairo_widget.cc src/add_request_dialog.cc src/graphical_preferences_editor.cc -src/schedulable_state_widget.cc src/backend/sub_request.cc src/backend/ready_queue.cc src/backend/default_resource_policy_manager.cc diff --git a/po/sgpemv2.pot b/po/sgpemv2.pot index 3ea044d..5ec6606 100644 --- a/po/sgpemv2.pot +++ b/po/sgpemv2.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: matteo@member.fsf.org\n" -"POT-Creation-Date: 2006-09-16 15:37+0200\n" +"POT-Creation-Date: 2006-09-17 14:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -16,17 +16,11 @@ msgstr "" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" -#: src/gui_builder.cc:152 -msgid "" -"Want to save?\n" -"You'll lose your changes if you don't." -msgstr "" - -#: src/gui_builder.cc:221 src/gui_builder.cc:264 src/gui_builder.cc:334 +#: src/gui_builder.cc:215 src/gui_builder.cc:258 src/gui_builder.cc:328 msgid "ERROR: No registered serializer available" msgstr "" -#: src/gui_builder.cc:226 src/gui_builder.cc:269 src/gui_builder.cc:339 +#: src/gui_builder.cc:220 src/gui_builder.cc:263 src/gui_builder.cc:333 #: src/text_simulation.cc:399 src/text_simulation.cc:405 #: src/text_simulation.cc:424 src/text_simulation.cc:490 #: src/text_simulation.cc:496 src/text_simulation.cc:515 @@ -35,37 +29,43 @@ msgstr "" msgid "ERROR: " msgstr "" -#: src/gui_builder.cc:361 src/gui_builder.cc:389 +#: src/gui_builder.cc:355 src/gui_builder.cc:383 msgid "" "No CPU policy is currently selected.\n" "Please choose one before trying to configure it." msgstr "" -#: src/gui_builder.cc:367 src/gui_builder.cc:396 +#: src/gui_builder.cc:361 src/gui_builder.cc:390 msgid "Configuring CPU Policy " msgstr "" -#: src/gui_builder.cc:455 +#: src/gui_builder.cc:449 msgid "Selected CPU policy " msgstr "" -#: src/gui_builder.cc:463 +#: src/gui_builder.cc:457 msgid "Impossible to select this CPU Policy.\n" msgstr "" -#: src/gui_builder.cc:469 +#: src/gui_builder.cc:463 msgid "No CPU policy selected. Please select one." msgstr "" -#: src/gui_builder.cc:517 +#: src/gui_builder.cc:511 msgid "Current resource policy deselected." msgstr "" -#: src/gui_builder.cc:519 +#: src/gui_builder.cc:513 msgid "Selected resource policy " msgstr "" -#: src/gui_builder.cc:700 +#: src/gui_builder.cc:537 +msgid "" +"Want to save?\n" +"You'll lose your changes if you don't." +msgstr "" + +#: src/gui_builder.cc:715 msgid "Filename to open: " msgstr "" @@ -160,47 +160,27 @@ msgstr "" msgid "Select a directory to add" msgstr "" -#: src/schedulable_state_widget.cc:66 -msgid "Future" -msgstr "" - -#: src/schedulable_state_widget.cc:70 -msgid "Ready" -msgstr "" - -#: src/schedulable_state_widget.cc:74 -msgid "Running" -msgstr "" - -#: src/schedulable_state_widget.cc:78 -msgid "Blocked" -msgstr "" - -#: src/schedulable_state_widget.cc:82 -msgid "Terminated" -msgstr "" - #: src/backend/global_preferences.cc:90 msgid "Unable to obtain Application Data directory" msgstr "" -#: src/backend/concrete_simulation.cc:239 +#: src/backend/concrete_simulation.cc:235 msgid "unable to change policy and to restore the previous: " msgstr "" -#: src/backend/concrete_simulation.cc:245 +#: src/backend/concrete_simulation.cc:241 msgid "unable to change policy: " msgstr "" -#: src/backend/string_utils.cc:54 src/backend/string_utils.cc:90 +#: src/backend/string_utils.cc:62 src/backend/string_utils.cc:102 msgid "too few or too many tokens" msgstr "" -#: src/backend/string_utils.cc:77 +#: src/backend/string_utils.cc:85 msgid "incorrect number format" msgstr "" -#: src/backend/string_utils.cc:113 +#: src/backend/string_utils.cc:125 msgid "incorrect boolean" msgstr ""