- Some little improvements to interface (use HPaned instead of HBox)
- Add logo to AboutDialog :-) git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@919 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
7bcc3b9eb4
commit
8c3d8b4878
|
@ -320,6 +320,7 @@ noinst_HEADERS += \
|
||||||
# ---------- glade files -----------
|
# ---------- glade files -----------
|
||||||
|
|
||||||
glade_DATA = \
|
glade_DATA = \
|
||||||
|
data/logo.png \
|
||||||
glade/add-process-dialog.glade \
|
glade/add-process-dialog.glade \
|
||||||
glade/add-request-dialog.glade \
|
glade/add-request-dialog.glade \
|
||||||
glade/add-resource-dialog.glade \
|
glade/add-resource-dialog.glade \
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
|
@ -2,13 +2,13 @@
|
||||||
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
|
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
|
||||||
<!-- Generated with glade3
|
<!-- Generated with glade3
|
||||||
Version: 3.0.0
|
Version: 3.0.0
|
||||||
Date: Sun Aug 20 23:32:42 2006
|
Date: Mon Aug 21 00:18:03 2006
|
||||||
User: matteo
|
User: matteo
|
||||||
Host: tulip
|
Host: tulip
|
||||||
-->
|
-->
|
||||||
<glade-interface>
|
<glade-interface>
|
||||||
<widget class="GtkWindow" id="MainWindow">
|
<widget class="GtkWindow" id="MainWindow">
|
||||||
<property name="title">Untitled - SGPEMv2 Ford Prefect</property>
|
<property name="title">SGPEMv2</property>
|
||||||
<property name="default_width">800</property>
|
<property name="default_width">800</property>
|
||||||
<property name="default_height">600</property>
|
<property name="default_height">600</property>
|
||||||
<property name="icon_name">gtk-dialog-warning</property>
|
<property name="icon_name">gtk-dialog-warning</property>
|
||||||
|
@ -253,7 +253,7 @@
|
||||||
<property name="border_width">1</property>
|
<property name="border_width">1</property>
|
||||||
<property name="position">200</property>
|
<property name="position">200</property>
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkHBox" id="EntitiesHBox">
|
<widget class="GtkHPaned" id="EntitiesHPaned">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkFrame" id="SchedulablesFrame">
|
<widget class="GtkFrame" id="SchedulablesFrame">
|
||||||
|
@ -289,7 +289,7 @@
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="padding">3</property>
|
<property name="resize">False</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
|
@ -326,13 +326,13 @@
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="padding">3</property>
|
<property name="resize">False</property>
|
||||||
<property name="position">1</property>
|
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="resize">False</property>
|
<property name="resize">False</property>
|
||||||
|
<property name="shrink">False</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
|
@ -354,7 +354,8 @@
|
||||||
<widget class="GtkLabel" id="ReadyQueueLabel">
|
<widget class="GtkLabel" id="ReadyQueueLabel">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="xalign">0,100000</property>
|
<property name="xalign">0,100000</property>
|
||||||
<property name="xpad">6</property>
|
<property name="xpad">7</property>
|
||||||
|
<property name="ypad">2</property>
|
||||||
<property name="label" translatable="yes"><b>Ready queue: {</b> <b>}</b></property>
|
<property name="label" translatable="yes"><b>Ready queue: {</b> <b>}</b></property>
|
||||||
<property name="use_markup">True</property>
|
<property name="use_markup">True</property>
|
||||||
<property name="ellipsize">PANGO_ELLIPSIZE_END</property>
|
<property name="ellipsize">PANGO_ELLIPSIZE_END</property>
|
||||||
|
@ -362,7 +363,6 @@
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
<property name="padding">3</property>
|
|
||||||
<property name="position">4</property>
|
<property name="position">4</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
@ -380,12 +380,11 @@
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="GtkAboutDialog" id="AboutDialog">
|
<widget class="GtkAboutDialog" id="AboutDialog">
|
||||||
|
<property name="transient_for">MainWindow</property>
|
||||||
|
<property name="version">0.3</property>
|
||||||
<property name="copyright">University of Padova, dept. of Pure and Applied Mathematics</property>
|
<property name="copyright">University of Padova, dept. of Pure and Applied Mathematics</property>
|
||||||
<property name="comments">An educational simulator for process scheduling policies in a monoprocessor computer.</property>
|
<property name="comments">An educational simulator for process scheduling policies in a monoprocessor computer.</property>
|
||||||
<property name="license">SGPEMv2 comes with ABSOLUTELY NO WARRANTY. This is free software,
|
<property name="license">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.</property>
|
||||||
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.</property>
|
|
||||||
<property name="authors">Giovanni Giacobbi <ggiacobb@studenti.math.unipd.it>
|
<property name="authors">Giovanni Giacobbi <ggiacobb@studenti.math.unipd.it>
|
||||||
Filippo Paparella <ironpipp@gmail.com>
|
Filippo Paparella <ironpipp@gmail.com>
|
||||||
Paolo Santi <psanti@studenti.math.unipd.it>
|
Paolo Santi <psanti@studenti.math.unipd.it>
|
||||||
|
@ -395,14 +394,14 @@ Djina Verbanac <betalgez@yahoo.com>
|
||||||
Luca Vezzaro <lvezzaro@studenti.math.unipd.it></property>
|
Luca Vezzaro <lvezzaro@studenti.math.unipd.it></property>
|
||||||
<property name="documenters"></property>
|
<property name="documenters"></property>
|
||||||
<child internal-child="vbox">
|
<child internal-child="vbox">
|
||||||
<widget class="GtkVBox" id="dialog-vbox1">
|
<widget class="GtkVBox" id="AboutDialog.VBox">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="spacing">12</property>
|
<property name="spacing">12</property>
|
||||||
<child>
|
<child>
|
||||||
<placeholder/>
|
<placeholder/>
|
||||||
</child>
|
</child>
|
||||||
<child internal-child="action_area">
|
<child internal-child="action_area">
|
||||||
<widget class="GtkHButtonBox" id="dialog-action_area1">
|
<widget class="GtkHButtonBox" id="AboutDialog.ActionArea">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
|
@ -33,11 +33,11 @@
|
||||||
#include "backend/serializers_gatekeeper.hh"
|
#include "backend/serializers_gatekeeper.hh"
|
||||||
#include "backend/serializer.hh"
|
#include "backend/serializer.hh"
|
||||||
|
|
||||||
|
#include <gdkmm/pixbuf.h>
|
||||||
#include <glibmm/ustring.h>
|
#include <glibmm/ustring.h>
|
||||||
#include <gtkmm/aboutdialog.h>
|
#include <gtkmm/aboutdialog.h>
|
||||||
#include <gtkmm/messagedialog.h>
|
#include <gtkmm/messagedialog.h>
|
||||||
#include <gtkmm/filechooserdialog.h>
|
#include <gtkmm/filechooserdialog.h>
|
||||||
#include <gtkmm/expander.h>
|
|
||||||
#include <gtkmm/main.h>
|
#include <gtkmm/main.h>
|
||||||
#include <gtkmm/menuitem.h>
|
#include <gtkmm/menuitem.h>
|
||||||
#include <gtkmm/scrolledwindow.h>
|
#include <gtkmm/scrolledwindow.h>
|
||||||
|
@ -222,19 +222,19 @@ GuiBuilder::GuiBuilder(const std::string& gladefile)
|
||||||
file_quit->signal_activate().connect(sigc::ptr_fun(&Main::quit));
|
file_quit->signal_activate().connect(sigc::ptr_fun(&Main::quit));
|
||||||
|
|
||||||
// preferences dialog
|
// preferences dialog
|
||||||
MenuItem* edit_preferences = NULL;
|
MenuItem* edit_preferences;
|
||||||
_refXml->get_widget("MenuItem.Edit.Preferences", edit_preferences);
|
_refXml->get_widget("MenuItem.Edit.Preferences", edit_preferences);
|
||||||
edit_preferences->signal_activate().connect(sigc::mem_fun(*this, &GuiBuilder::on_edit_preferences_activate));
|
edit_preferences->signal_activate().connect(sigc::mem_fun(*this, &GuiBuilder::on_edit_preferences_activate));
|
||||||
|
|
||||||
|
|
||||||
// About dialog
|
// About dialog
|
||||||
MenuItem* help_about = NULL;
|
MenuItem* help_about;
|
||||||
_refXml->get_widget("MenuItem.Help.About", help_about);
|
_refXml->get_widget("MenuItem.Help.About", help_about);
|
||||||
AboutDialog* about_dialog = NULL;
|
AboutDialog* about_dialog = NULL;
|
||||||
_refXml->get_widget("AboutDialog", about_dialog);
|
_refXml->get_widget("AboutDialog", about_dialog);
|
||||||
help_about->signal_activate().connect(sigc::mem_fun(*about_dialog, &Window::show));
|
help_about->signal_activate().connect(sigc::mem_fun(*about_dialog, &Window::show));
|
||||||
|
about_dialog->set_wrap_license(true);
|
||||||
|
about_dialog->set_logo(Gdk::Pixbuf::create_from_file(GLADEDIR "/logo.png"));
|
||||||
|
|
||||||
|
|
||||||
// Random Error Generator
|
// Random Error Generator
|
||||||
|
|
Loading…
Reference in New Issue