- Completed the management of add-related actions on the schedulables tree view
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@920 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
8c3d8b4878
commit
d60a7aa25e
|
@ -1,154 +1,236 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
|
||||||
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
|
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
|
||||||
<!-- Generated with glade3
|
|
||||||
Version: 3.0.0
|
|
||||||
Date: Sun Aug 20 22:30:50 2006
|
|
||||||
User: matteo
|
|
||||||
Host: tulip
|
|
||||||
-->
|
|
||||||
<glade-interface>
|
<glade-interface>
|
||||||
<widget class="GtkDialog" id="AddProcessDialog">
|
|
||||||
<property name="title">Add Process</property>
|
<widget class="GtkDialog" id="AddProcessDialog">
|
||||||
<property name="resizable">False</property>
|
<property name="title">Add Process</property>
|
||||||
<property name="modal">True</property>
|
<property name="type">GTK_WINDOW_TOPLEVEL</property>
|
||||||
<property name="window_position">GTK_WIN_POS_MOUSE</property>
|
<property name="window_position">GTK_WIN_POS_MOUSE</property>
|
||||||
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
|
<property name="modal">True</property>
|
||||||
<child internal-child="vbox">
|
<property name="resizable">False</property>
|
||||||
<widget class="GtkVBox" id="MainVBox">
|
<property name="destroy_with_parent">False</property>
|
||||||
<property name="visible">True</property>
|
<property name="decorated">True</property>
|
||||||
<child>
|
<property name="skip_taskbar_hint">False</property>
|
||||||
<widget class="GtkTable" id="MainTable">
|
<property name="skip_pager_hint">False</property>
|
||||||
<property name="visible">True</property>
|
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
|
||||||
<property name="border_width">6</property>
|
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
|
||||||
<property name="n_rows">3</property>
|
<property name="focus_on_map">True</property>
|
||||||
<property name="n_columns">2</property>
|
<property name="urgency_hint">False</property>
|
||||||
<property name="column_spacing">9</property>
|
<property name="has_separator">True</property>
|
||||||
<property name="row_spacing">11</property>
|
|
||||||
<child>
|
<child internal-child="vbox">
|
||||||
<widget class="GtkLabel" id="Name.Label">
|
<widget class="GtkVBox" id="MainVBox">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="xalign">0,000000</property>
|
<property name="homogeneous">False</property>
|
||||||
<property name="yalign">0,000000</property>
|
<property name="spacing">0</property>
|
||||||
<property name="label" translatable="yes">Name</property>
|
|
||||||
</widget>
|
<child internal-child="action_area">
|
||||||
<packing>
|
<widget class="GtkHButtonBox" id="MainButtonBox">
|
||||||
<property name="x_options">GTK_FILL</property>
|
<property name="visible">True</property>
|
||||||
<property name="y_options"></property>
|
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
||||||
</packing>
|
|
||||||
</child>
|
<child>
|
||||||
<child>
|
<widget class="GtkButton" id="Cancel.Button">
|
||||||
<widget class="GtkLabel" id="BasePriority.Label">
|
<property name="visible">True</property>
|
||||||
<property name="visible">True</property>
|
<property name="can_default">True</property>
|
||||||
<property name="xalign">0,000000</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="yalign">0,000000</property>
|
<property name="label">gtk-cancel</property>
|
||||||
<property name="label" translatable="yes">Base Priority</property>
|
<property name="use_stock">True</property>
|
||||||
</widget>
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
<packing>
|
<property name="focus_on_click">True</property>
|
||||||
<property name="top_attach">2</property>
|
<property name="response_id">-6</property>
|
||||||
<property name="bottom_attach">3</property>
|
</widget>
|
||||||
<property name="x_options">GTK_FILL</property>
|
</child>
|
||||||
<property name="y_options"></property>
|
|
||||||
</packing>
|
<child>
|
||||||
</child>
|
<widget class="GtkButton" id="OK.Button">
|
||||||
<child>
|
<property name="visible">True</property>
|
||||||
<widget class="GtkLabel" id="ArrivalTime.Label">
|
<property name="can_default">True</property>
|
||||||
<property name="visible">True</property>
|
<property name="has_default">True</property>
|
||||||
<property name="xalign">0,000000</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="yalign">0,000000</property>
|
<property name="label">gtk-ok</property>
|
||||||
<property name="label" translatable="yes">Arrival Time</property>
|
<property name="use_stock">True</property>
|
||||||
</widget>
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
<packing>
|
<property name="focus_on_click">True</property>
|
||||||
<property name="top_attach">1</property>
|
<property name="response_id">-5</property>
|
||||||
<property name="bottom_attach">2</property>
|
</widget>
|
||||||
<property name="x_options">GTK_FILL</property>
|
</child>
|
||||||
<property name="y_options"></property>
|
</widget>
|
||||||
</packing>
|
<packing>
|
||||||
</child>
|
<property name="padding">0</property>
|
||||||
<child>
|
<property name="expand">False</property>
|
||||||
<widget class="GtkEntry" id="Name.Entry">
|
<property name="fill">True</property>
|
||||||
<property name="visible">True</property>
|
<property name="pack_type">GTK_PACK_END</property>
|
||||||
<property name="can_focus">True</property>
|
</packing>
|
||||||
<property name="invisible_char">●</property>
|
</child>
|
||||||
<property name="width_chars">17</property>
|
|
||||||
</widget>
|
<child>
|
||||||
<packing>
|
<widget class="GtkTable" id="MainTable">
|
||||||
<property name="left_attach">1</property>
|
<property name="border_width">6</property>
|
||||||
<property name="right_attach">2</property>
|
<property name="visible">True</property>
|
||||||
<property name="y_options"></property>
|
<property name="n_rows">3</property>
|
||||||
</packing>
|
<property name="n_columns">2</property>
|
||||||
</child>
|
<property name="homogeneous">False</property>
|
||||||
<child>
|
<property name="row_spacing">11</property>
|
||||||
<widget class="GtkSpinButton" id="ArrivalTime.Spin">
|
<property name="column_spacing">9</property>
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">True</property>
|
<child>
|
||||||
<property name="adjustment">1,000000 1,000000 0,000000 1,000000 10,000000 10,000000</property>
|
<widget class="GtkLabel" id="Name.Label">
|
||||||
<property name="climb_rate">1</property>
|
<property name="visible">True</property>
|
||||||
<property name="numeric">True</property>
|
<property name="label" translatable="yes">Name</property>
|
||||||
</widget>
|
<property name="use_underline">False</property>
|
||||||
<packing>
|
<property name="use_markup">False</property>
|
||||||
<property name="left_attach">1</property>
|
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
<property name="right_attach">2</property>
|
<property name="wrap">False</property>
|
||||||
<property name="top_attach">1</property>
|
<property name="selectable">False</property>
|
||||||
<property name="bottom_attach">2</property>
|
<property name="xalign">0</property>
|
||||||
<property name="y_options"></property>
|
<property name="yalign">0</property>
|
||||||
</packing>
|
<property name="xpad">0</property>
|
||||||
</child>
|
<property name="ypad">0</property>
|
||||||
<child>
|
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
<widget class="GtkSpinButton" id="BasePriority.Spin">
|
<property name="width_chars">-1</property>
|
||||||
<property name="visible">True</property>
|
<property name="single_line_mode">False</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="angle">0</property>
|
||||||
<property name="adjustment">0,000000 0,000000 0,000000 1,000000 10,000000 10,000000</property>
|
</widget>
|
||||||
<property name="climb_rate">1</property>
|
<packing>
|
||||||
<property name="numeric">True</property>
|
<property name="left_attach">0</property>
|
||||||
</widget>
|
<property name="right_attach">1</property>
|
||||||
<packing>
|
<property name="top_attach">0</property>
|
||||||
<property name="left_attach">1</property>
|
<property name="bottom_attach">1</property>
|
||||||
<property name="right_attach">2</property>
|
<property name="x_options"></property>
|
||||||
<property name="top_attach">2</property>
|
<property name="y_options"></property>
|
||||||
<property name="bottom_attach">3</property>
|
</packing>
|
||||||
<property name="y_options"></property>
|
</child>
|
||||||
</packing>
|
|
||||||
</child>
|
<child>
|
||||||
</widget>
|
<widget class="GtkLabel" id="BasePriority.Label">
|
||||||
<packing>
|
<property name="visible">True</property>
|
||||||
<property name="position">2</property>
|
<property name="label" translatable="yes">Base Priority</property>
|
||||||
</packing>
|
<property name="use_underline">False</property>
|
||||||
</child>
|
<property name="use_markup">False</property>
|
||||||
<child internal-child="action_area">
|
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
<widget class="GtkHButtonBox" id="MainButtonBox">
|
<property name="wrap">False</property>
|
||||||
<property name="visible">True</property>
|
<property name="selectable">False</property>
|
||||||
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
<property name="xalign">0</property>
|
||||||
<child>
|
<property name="yalign">0</property>
|
||||||
<widget class="GtkButton" id="Cancel.Button">
|
<property name="xpad">0</property>
|
||||||
<property name="visible">True</property>
|
<property name="ypad">0</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
<property name="can_default">True</property>
|
<property name="width_chars">-1</property>
|
||||||
<property name="label">gtk-cancel</property>
|
<property name="single_line_mode">False</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="angle">0</property>
|
||||||
<property name="response_id">-6</property>
|
</widget>
|
||||||
</widget>
|
<packing>
|
||||||
</child>
|
<property name="left_attach">0</property>
|
||||||
<child>
|
<property name="right_attach">1</property>
|
||||||
<widget class="GtkButton" id="OK.Button">
|
<property name="top_attach">2</property>
|
||||||
<property name="visible">True</property>
|
<property name="bottom_attach">3</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="x_options"></property>
|
||||||
<property name="can_default">True</property>
|
<property name="y_options"></property>
|
||||||
<property name="has_default">True</property>
|
</packing>
|
||||||
<property name="label">gtk-ok</property>
|
</child>
|
||||||
<property name="use_stock">True</property>
|
|
||||||
<property name="response_id">-5</property>
|
<child>
|
||||||
</widget>
|
<widget class="GtkLabel" id="ArrivalTime.Label">
|
||||||
<packing>
|
<property name="visible">True</property>
|
||||||
<property name="position">1</property>
|
<property name="label" translatable="yes">Arrival Time</property>
|
||||||
</packing>
|
<property name="use_underline">False</property>
|
||||||
</child>
|
<property name="use_markup">False</property>
|
||||||
</widget>
|
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
<packing>
|
<property name="wrap">False</property>
|
||||||
<property name="expand">False</property>
|
<property name="selectable">False</property>
|
||||||
<property name="pack_type">GTK_PACK_END</property>
|
<property name="xalign">0</property>
|
||||||
</packing>
|
<property name="yalign">0</property>
|
||||||
</child>
|
<property name="xpad">0</property>
|
||||||
</widget>
|
<property name="ypad">0</property>
|
||||||
</child>
|
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
</widget>
|
<property name="width_chars">-1</property>
|
||||||
|
<property name="single_line_mode">False</property>
|
||||||
|
<property name="angle">0</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="right_attach">1</property>
|
||||||
|
<property name="top_attach">1</property>
|
||||||
|
<property name="bottom_attach">2</property>
|
||||||
|
<property name="x_options"></property>
|
||||||
|
<property name="y_options"></property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkEntry" id="Name.Entry">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="editable">True</property>
|
||||||
|
<property name="visibility">True</property>
|
||||||
|
<property name="max_length">0</property>
|
||||||
|
<property name="text" translatable="yes"></property>
|
||||||
|
<property name="has_frame">True</property>
|
||||||
|
<property name="invisible_char">●</property>
|
||||||
|
<property name="activates_default">False</property>
|
||||||
|
<property name="width_chars">17</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">1</property>
|
||||||
|
<property name="right_attach">2</property>
|
||||||
|
<property name="top_attach">0</property>
|
||||||
|
<property name="bottom_attach">1</property>
|
||||||
|
<property name="y_options"></property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkSpinButton" id="ArrivalTime.Spin">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="climb_rate">1</property>
|
||||||
|
<property name="digits">0</property>
|
||||||
|
<property name="numeric">True</property>
|
||||||
|
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
|
||||||
|
<property name="snap_to_ticks">False</property>
|
||||||
|
<property name="wrap">False</property>
|
||||||
|
<property name="adjustment">0 0 inf 1 0 0</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">1</property>
|
||||||
|
<property name="right_attach">2</property>
|
||||||
|
<property name="top_attach">1</property>
|
||||||
|
<property name="bottom_attach">2</property>
|
||||||
|
<property name="y_options"></property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkSpinButton" id="BasePriority.Spin">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="climb_rate">1</property>
|
||||||
|
<property name="digits">0</property>
|
||||||
|
<property name="numeric">True</property>
|
||||||
|
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
|
||||||
|
<property name="snap_to_ticks">False</property>
|
||||||
|
<property name="wrap">False</property>
|
||||||
|
<property name="adjustment">0 0 inf 1 0 0</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">1</property>
|
||||||
|
<property name="right_attach">2</property>
|
||||||
|
<property name="top_attach">2</property>
|
||||||
|
<property name="bottom_attach">3</property>
|
||||||
|
<property name="y_options"></property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="padding">0</property>
|
||||||
|
<property name="expand">True</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
|
||||||
</glade-interface>
|
</glade-interface>
|
||||||
|
|
|
@ -1,296 +1,445 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
|
||||||
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
|
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
|
||||||
<!-- Generated with glade3
|
|
||||||
Version: 3.0.0
|
|
||||||
Date: Sun Aug 20 22:24:53 2006
|
|
||||||
User: matteo
|
|
||||||
Host: tulip
|
|
||||||
-->
|
|
||||||
<glade-interface>
|
<glade-interface>
|
||||||
<widget class="GtkDialog" id="AddRequestDialog">
|
|
||||||
<property name="width_request">300</property>
|
<widget class="GtkDialog" id="AddRequestDialog">
|
||||||
<property name="height_request">240</property>
|
<property name="width_request">300</property>
|
||||||
<property name="title">Add Request</property>
|
<property name="height_request">240</property>
|
||||||
<property name="modal">True</property>
|
<property name="title">Add Request</property>
|
||||||
<property name="window_position">GTK_WIN_POS_MOUSE</property>
|
<property name="type">GTK_WINDOW_TOPLEVEL</property>
|
||||||
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
|
<property name="window_position">GTK_WIN_POS_MOUSE</property>
|
||||||
<child internal-child="vbox">
|
<property name="modal">True</property>
|
||||||
<widget class="GtkVBox" id="MainVBox">
|
<property name="resizable">True</property>
|
||||||
<property name="visible">True</property>
|
<property name="destroy_with_parent">False</property>
|
||||||
<child>
|
<property name="decorated">True</property>
|
||||||
<widget class="GtkVBox" id="InputArea">
|
<property name="skip_taskbar_hint">False</property>
|
||||||
<property name="visible">True</property>
|
<property name="skip_pager_hint">False</property>
|
||||||
<property name="border_width">4</property>
|
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
|
||||||
<property name="spacing">6</property>
|
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
|
||||||
<child>
|
<property name="focus_on_map">True</property>
|
||||||
<widget class="GtkHBox" id="Instant.Box">
|
<property name="urgency_hint">False</property>
|
||||||
<property name="visible">True</property>
|
<property name="has_separator">True</property>
|
||||||
<property name="spacing">6</property>
|
|
||||||
<child>
|
<child internal-child="vbox">
|
||||||
<widget class="GtkLabel" id="Instant.Label">
|
<widget class="GtkVBox" id="MainVBox">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="xalign">0,000000</property>
|
<property name="homogeneous">False</property>
|
||||||
<property name="yalign">0,000000</property>
|
<property name="spacing">0</property>
|
||||||
<property name="label" translatable="yes">Instant</property>
|
|
||||||
</widget>
|
<child internal-child="action_area">
|
||||||
<packing>
|
<widget class="GtkHButtonBox" id="MainButtonBox">
|
||||||
<property name="expand">False</property>
|
<property name="visible">True</property>
|
||||||
<property name="fill">False</property>
|
<property name="layout_style">GTK_BUTTONBOX_SPREAD</property>
|
||||||
</packing>
|
|
||||||
</child>
|
<child>
|
||||||
<child>
|
<widget class="GtkButton" id="Cancel.Button">
|
||||||
<widget class="GtkSpinButton" id="Instant.Spin">
|
<property name="visible">True</property>
|
||||||
<property name="visible">True</property>
|
<property name="can_default">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="adjustment">0,000000 0,000000 0,000000 1,000000 10,000000 10,000000</property>
|
<property name="label">gtk-cancel</property>
|
||||||
<property name="climb_rate">1</property>
|
<property name="use_stock">True</property>
|
||||||
<property name="numeric">True</property>
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
</widget>
|
<property name="focus_on_click">True</property>
|
||||||
<packing>
|
<property name="response_id">-6</property>
|
||||||
<property name="position">1</property>
|
</widget>
|
||||||
</packing>
|
</child>
|
||||||
</child>
|
|
||||||
</widget>
|
<child>
|
||||||
<packing>
|
<widget class="GtkButton" id="OK.Button">
|
||||||
<property name="expand">False</property>
|
<property name="visible">True</property>
|
||||||
<property name="fill">False</property>
|
<property name="can_default">True</property>
|
||||||
</packing>
|
<property name="has_default">True</property>
|
||||||
</child>
|
<property name="can_focus">True</property>
|
||||||
<child>
|
<property name="label">gtk-ok</property>
|
||||||
<widget class="GtkScrolledWindow" id="SubRequests">
|
<property name="use_stock">True</property>
|
||||||
<property name="visible">True</property>
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="focus_on_click">True</property>
|
||||||
<property name="hscrollbar_policy">GTK_POLICY_NEVER</property>
|
<property name="response_id">-5</property>
|
||||||
<property name="shadow_type">GTK_SHADOW_IN</property>
|
</widget>
|
||||||
<child>
|
</child>
|
||||||
<widget class="GtkTreeView" id="SubRequests.View">
|
</widget>
|
||||||
<property name="visible">True</property>
|
<packing>
|
||||||
<property name="can_focus">True</property>
|
<property name="padding">0</property>
|
||||||
<property name="reorderable">True</property>
|
<property name="expand">False</property>
|
||||||
</widget>
|
<property name="fill">True</property>
|
||||||
</child>
|
<property name="pack_type">GTK_PACK_END</property>
|
||||||
</widget>
|
</packing>
|
||||||
<packing>
|
</child>
|
||||||
<property name="position">1</property>
|
|
||||||
</packing>
|
<child>
|
||||||
</child>
|
<widget class="GtkVBox" id="InputArea">
|
||||||
<child>
|
<property name="border_width">4</property>
|
||||||
<widget class="GtkTable" id="SubRequestInput">
|
<property name="visible">True</property>
|
||||||
<property name="visible">True</property>
|
<property name="homogeneous">False</property>
|
||||||
<property name="n_rows">2</property>
|
<property name="spacing">6</property>
|
||||||
<property name="n_columns">2</property>
|
|
||||||
<property name="column_spacing">6</property>
|
<child>
|
||||||
<property name="row_spacing">6</property>
|
<widget class="GtkHBox" id="Instant.Box">
|
||||||
<child>
|
<property name="visible">True</property>
|
||||||
<widget class="GtkComboBox" id="Resource.Combo">
|
<property name="homogeneous">False</property>
|
||||||
<property name="visible">True</property>
|
<property name="spacing">6</property>
|
||||||
</widget>
|
|
||||||
<packing>
|
<child>
|
||||||
<property name="left_attach">1</property>
|
<widget class="GtkLabel" id="Instant.Label">
|
||||||
<property name="right_attach">2</property>
|
<property name="visible">True</property>
|
||||||
<property name="x_options">GTK_FILL</property>
|
<property name="label" translatable="yes">Instant</property>
|
||||||
<property name="y_options">GTK_FILL</property>
|
<property name="use_underline">False</property>
|
||||||
</packing>
|
<property name="use_markup">False</property>
|
||||||
</child>
|
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
<child>
|
<property name="wrap">False</property>
|
||||||
<widget class="GtkSpinButton" id="Duration.Spin">
|
<property name="selectable">False</property>
|
||||||
<property name="visible">True</property>
|
<property name="xalign">0</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="yalign">0</property>
|
||||||
<property name="adjustment">0,000000 1,000000 0,000000 1,000000 10,000000 10,000000</property>
|
<property name="xpad">0</property>
|
||||||
<property name="climb_rate">1</property>
|
<property name="ypad">0</property>
|
||||||
<property name="numeric">True</property>
|
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
</widget>
|
<property name="width_chars">-1</property>
|
||||||
<packing>
|
<property name="single_line_mode">False</property>
|
||||||
<property name="left_attach">1</property>
|
<property name="angle">0</property>
|
||||||
<property name="right_attach">2</property>
|
</widget>
|
||||||
<property name="top_attach">1</property>
|
<packing>
|
||||||
<property name="bottom_attach">2</property>
|
<property name="padding">0</property>
|
||||||
<property name="y_options"></property>
|
<property name="expand">False</property>
|
||||||
</packing>
|
<property name="fill">False</property>
|
||||||
</child>
|
</packing>
|
||||||
<child>
|
</child>
|
||||||
<widget class="GtkLabel" id="Resource.Label">
|
|
||||||
<property name="visible">True</property>
|
<child>
|
||||||
<property name="xalign">0,000000</property>
|
<widget class="GtkSpinButton" id="Instant.Spin">
|
||||||
<property name="yalign">0,000000</property>
|
<property name="visible">True</property>
|
||||||
<property name="label" translatable="yes">Resource</property>
|
<property name="can_focus">True</property>
|
||||||
</widget>
|
<property name="climb_rate">1</property>
|
||||||
<packing>
|
<property name="digits">0</property>
|
||||||
<property name="x_options">GTK_FILL</property>
|
<property name="numeric">True</property>
|
||||||
<property name="y_options"></property>
|
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
|
||||||
</packing>
|
<property name="snap_to_ticks">False</property>
|
||||||
</child>
|
<property name="wrap">False</property>
|
||||||
<child>
|
<property name="adjustment">0 0 inf 1 0 0</property>
|
||||||
<widget class="GtkLabel" id="Duration.Label">
|
</widget>
|
||||||
<property name="visible">True</property>
|
<packing>
|
||||||
<property name="xalign">0,000000</property>
|
<property name="padding">0</property>
|
||||||
<property name="yalign">0,000000</property>
|
<property name="expand">True</property>
|
||||||
<property name="label" translatable="yes">Duration</property>
|
<property name="fill">True</property>
|
||||||
</widget>
|
</packing>
|
||||||
<packing>
|
</child>
|
||||||
<property name="top_attach">1</property>
|
</widget>
|
||||||
<property name="bottom_attach">2</property>
|
<packing>
|
||||||
<property name="x_options">GTK_FILL</property>
|
<property name="padding">0</property>
|
||||||
<property name="y_options"></property>
|
<property name="expand">False</property>
|
||||||
</packing>
|
<property name="fill">False</property>
|
||||||
</child>
|
</packing>
|
||||||
</widget>
|
</child>
|
||||||
<packing>
|
|
||||||
<property name="expand">False</property>
|
<child>
|
||||||
<property name="fill">False</property>
|
<widget class="GtkScrolledWindow" id="SubRequests">
|
||||||
<property name="position">2</property>
|
<property name="visible">True</property>
|
||||||
</packing>
|
<property name="can_focus">True</property>
|
||||||
</child>
|
<property name="hscrollbar_policy">GTK_POLICY_NEVER</property>
|
||||||
<child>
|
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||||
<widget class="GtkHButtonBox" id="AddRemoveButtons">
|
<property name="shadow_type">GTK_SHADOW_IN</property>
|
||||||
<property name="visible">True</property>
|
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
|
||||||
<property name="border_width">6</property>
|
|
||||||
<property name="layout_style">GTK_BUTTONBOX_SPREAD</property>
|
<child>
|
||||||
<child>
|
<widget class="GtkTreeView" id="SubRequests.View">
|
||||||
<widget class="GtkButton" id="Add">
|
<property name="visible">True</property>
|
||||||
<property name="visible">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="headers_visible">True</property>
|
||||||
<property name="can_default">True</property>
|
<property name="rules_hint">False</property>
|
||||||
<child>
|
<property name="reorderable">True</property>
|
||||||
<widget class="GtkAlignment" id="alignment1">
|
<property name="enable_search">True</property>
|
||||||
<property name="visible">True</property>
|
<property name="fixed_height_mode">False</property>
|
||||||
<property name="xalign">0,000000</property>
|
<property name="hover_selection">False</property>
|
||||||
<property name="yalign">0,000000</property>
|
<property name="hover_expand">False</property>
|
||||||
<property name="xscale">0,000000</property>
|
</widget>
|
||||||
<property name="yscale">0,000000</property>
|
</child>
|
||||||
<child>
|
</widget>
|
||||||
<widget class="GtkHBox" id="hbox2">
|
<packing>
|
||||||
<property name="visible">True</property>
|
<property name="padding">0</property>
|
||||||
<property name="spacing">2</property>
|
<property name="expand">True</property>
|
||||||
<child>
|
<property name="fill">True</property>
|
||||||
<widget class="GtkImage" id="image1">
|
</packing>
|
||||||
<property name="visible">True</property>
|
</child>
|
||||||
<property name="xalign">0,000000</property>
|
|
||||||
<property name="yalign">0,000000</property>
|
<child>
|
||||||
<property name="stock">gtk-add</property>
|
<widget class="GtkTable" id="SubRequestInput">
|
||||||
</widget>
|
<property name="visible">True</property>
|
||||||
<packing>
|
<property name="n_rows">2</property>
|
||||||
<property name="expand">False</property>
|
<property name="n_columns">2</property>
|
||||||
<property name="fill">False</property>
|
<property name="homogeneous">False</property>
|
||||||
</packing>
|
<property name="row_spacing">6</property>
|
||||||
</child>
|
<property name="column_spacing">6</property>
|
||||||
<child>
|
|
||||||
<widget class="GtkLabel" id="label4">
|
<child>
|
||||||
<property name="visible">True</property>
|
<widget class="GtkComboBox" id="Resource.Combo">
|
||||||
<property name="xalign">0,000000</property>
|
<property name="visible">True</property>
|
||||||
<property name="yalign">0,000000</property>
|
<property name="add_tearoffs">False</property>
|
||||||
<property name="label" translatable="yes">Add</property>
|
<property name="focus_on_click">True</property>
|
||||||
<property name="use_underline">True</property>
|
</widget>
|
||||||
</widget>
|
<packing>
|
||||||
<packing>
|
<property name="left_attach">1</property>
|
||||||
<property name="expand">False</property>
|
<property name="right_attach">2</property>
|
||||||
<property name="fill">False</property>
|
<property name="top_attach">0</property>
|
||||||
<property name="position">1</property>
|
<property name="bottom_attach">1</property>
|
||||||
</packing>
|
<property name="x_options"></property>
|
||||||
</child>
|
<property name="y_options"></property>
|
||||||
</widget>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
|
||||||
</child>
|
<child>
|
||||||
</widget>
|
<widget class="GtkSpinButton" id="Duration.Spin">
|
||||||
</child>
|
<property name="visible">True</property>
|
||||||
<child>
|
<property name="can_focus">True</property>
|
||||||
<widget class="GtkButton" id="Remove">
|
<property name="climb_rate">1</property>
|
||||||
<property name="visible">True</property>
|
<property name="digits">0</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="numeric">True</property>
|
||||||
<property name="can_default">True</property>
|
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
|
||||||
<child>
|
<property name="snap_to_ticks">False</property>
|
||||||
<widget class="GtkAlignment" id="alignment2">
|
<property name="wrap">False</property>
|
||||||
<property name="visible">True</property>
|
<property name="adjustment">1 1 inf 1 0 0</property>
|
||||||
<property name="xalign">0,000000</property>
|
</widget>
|
||||||
<property name="yalign">0,000000</property>
|
<packing>
|
||||||
<property name="xscale">0,000000</property>
|
<property name="left_attach">1</property>
|
||||||
<property name="yscale">0,000000</property>
|
<property name="right_attach">2</property>
|
||||||
<child>
|
<property name="top_attach">1</property>
|
||||||
<widget class="GtkHBox" id="hbox3">
|
<property name="bottom_attach">2</property>
|
||||||
<property name="visible">True</property>
|
<property name="y_options"></property>
|
||||||
<property name="spacing">2</property>
|
</packing>
|
||||||
<child>
|
</child>
|
||||||
<widget class="GtkImage" id="image2">
|
|
||||||
<property name="visible">True</property>
|
<child>
|
||||||
<property name="xalign">0,000000</property>
|
<widget class="GtkLabel" id="Resource.Label">
|
||||||
<property name="yalign">0,000000</property>
|
<property name="visible">True</property>
|
||||||
<property name="stock">gtk-remove</property>
|
<property name="label" translatable="yes">Resource</property>
|
||||||
</widget>
|
<property name="use_underline">False</property>
|
||||||
<packing>
|
<property name="use_markup">False</property>
|
||||||
<property name="expand">False</property>
|
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
<property name="fill">False</property>
|
<property name="wrap">False</property>
|
||||||
</packing>
|
<property name="selectable">False</property>
|
||||||
</child>
|
<property name="xalign">0</property>
|
||||||
<child>
|
<property name="yalign">0</property>
|
||||||
<widget class="GtkLabel" id="label5">
|
<property name="xpad">0</property>
|
||||||
<property name="visible">True</property>
|
<property name="ypad">0</property>
|
||||||
<property name="xalign">0,000000</property>
|
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
<property name="yalign">0,000000</property>
|
<property name="width_chars">-1</property>
|
||||||
<property name="label" translatable="yes">Remove</property>
|
<property name="single_line_mode">False</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="angle">0</property>
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="left_attach">0</property>
|
||||||
<property name="fill">False</property>
|
<property name="right_attach">1</property>
|
||||||
<property name="position">1</property>
|
<property name="top_attach">0</property>
|
||||||
</packing>
|
<property name="bottom_attach">1</property>
|
||||||
</child>
|
<property name="x_options"></property>
|
||||||
</widget>
|
<property name="y_options"></property>
|
||||||
</child>
|
</packing>
|
||||||
</widget>
|
</child>
|
||||||
</child>
|
|
||||||
</widget>
|
<child>
|
||||||
<packing>
|
<widget class="GtkLabel" id="Duration.Label">
|
||||||
<property name="position">1</property>
|
<property name="visible">True</property>
|
||||||
</packing>
|
<property name="label" translatable="yes">Duration</property>
|
||||||
</child>
|
<property name="use_underline">False</property>
|
||||||
</widget>
|
<property name="use_markup">False</property>
|
||||||
<packing>
|
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
<property name="expand">False</property>
|
<property name="wrap">False</property>
|
||||||
<property name="position">3</property>
|
<property name="selectable">False</property>
|
||||||
</packing>
|
<property name="xalign">0</property>
|
||||||
</child>
|
<property name="yalign">0</property>
|
||||||
</widget>
|
<property name="xpad">0</property>
|
||||||
<packing>
|
<property name="ypad">0</property>
|
||||||
<property name="position">2</property>
|
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
</packing>
|
<property name="width_chars">-1</property>
|
||||||
</child>
|
<property name="single_line_mode">False</property>
|
||||||
<child internal-child="action_area">
|
<property name="angle">0</property>
|
||||||
<widget class="GtkHButtonBox" id="MainButtonBox">
|
</widget>
|
||||||
<property name="visible">True</property>
|
<packing>
|
||||||
<property name="layout_style">GTK_BUTTONBOX_SPREAD</property>
|
<property name="left_attach">0</property>
|
||||||
<child>
|
<property name="right_attach">1</property>
|
||||||
<widget class="GtkButton" id="Cancel.Button">
|
<property name="top_attach">1</property>
|
||||||
<property name="visible">True</property>
|
<property name="bottom_attach">2</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="x_options"></property>
|
||||||
<property name="can_default">True</property>
|
<property name="y_options"></property>
|
||||||
<property name="label">gtk-cancel</property>
|
</packing>
|
||||||
<property name="use_stock">True</property>
|
</child>
|
||||||
<property name="response_id">-6</property>
|
</widget>
|
||||||
</widget>
|
<packing>
|
||||||
</child>
|
<property name="padding">0</property>
|
||||||
<child>
|
<property name="expand">False</property>
|
||||||
<widget class="GtkButton" id="OK.Button">
|
<property name="fill">False</property>
|
||||||
<property name="visible">True</property>
|
</packing>
|
||||||
<property name="can_focus">True</property>
|
</child>
|
||||||
<property name="can_default">True</property>
|
|
||||||
<property name="has_default">True</property>
|
<child>
|
||||||
<property name="label">gtk-ok</property>
|
<widget class="GtkHButtonBox" id="AddRemoveButtons">
|
||||||
<property name="use_stock">True</property>
|
<property name="border_width">6</property>
|
||||||
<property name="response_id">-5</property>
|
<property name="visible">True</property>
|
||||||
</widget>
|
<property name="layout_style">GTK_BUTTONBOX_SPREAD</property>
|
||||||
<packing>
|
<property name="spacing">0</property>
|
||||||
<property name="position">1</property>
|
|
||||||
</packing>
|
<child>
|
||||||
</child>
|
<widget class="GtkButton" id="Add">
|
||||||
</widget>
|
<property name="visible">True</property>
|
||||||
<packing>
|
<property name="can_default">True</property>
|
||||||
<property name="expand">False</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="pack_type">GTK_PACK_END</property>
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
</packing>
|
<property name="focus_on_click">True</property>
|
||||||
</child>
|
|
||||||
</widget>
|
<child>
|
||||||
</child>
|
<widget class="GtkAlignment" id="alignment1">
|
||||||
</widget>
|
<property name="visible">True</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="yalign">0</property>
|
||||||
|
<property name="xscale">0</property>
|
||||||
|
<property name="yscale">0</property>
|
||||||
|
<property name="top_padding">0</property>
|
||||||
|
<property name="bottom_padding">0</property>
|
||||||
|
<property name="left_padding">0</property>
|
||||||
|
<property name="right_padding">0</property>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkHBox" id="hbox2">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="homogeneous">False</property>
|
||||||
|
<property name="spacing">2</property>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkImage" id="image1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="stock">gtk-add</property>
|
||||||
|
<property name="icon_size">4</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="yalign">0</property>
|
||||||
|
<property name="xpad">0</property>
|
||||||
|
<property name="ypad">0</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="padding">0</property>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">False</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkLabel" id="label4">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Add</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<property name="use_markup">False</property>
|
||||||
|
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
|
<property name="wrap">False</property>
|
||||||
|
<property name="selectable">False</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="yalign">0</property>
|
||||||
|
<property name="xpad">0</property>
|
||||||
|
<property name="ypad">0</property>
|
||||||
|
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
|
<property name="width_chars">-1</property>
|
||||||
|
<property name="single_line_mode">False</property>
|
||||||
|
<property name="angle">0</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="padding">0</property>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">False</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkButton" id="Remove">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_default">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
|
<property name="focus_on_click">True</property>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkAlignment" id="alignment2">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="yalign">0</property>
|
||||||
|
<property name="xscale">0</property>
|
||||||
|
<property name="yscale">0</property>
|
||||||
|
<property name="top_padding">0</property>
|
||||||
|
<property name="bottom_padding">0</property>
|
||||||
|
<property name="left_padding">0</property>
|
||||||
|
<property name="right_padding">0</property>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkHBox" id="hbox3">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="homogeneous">False</property>
|
||||||
|
<property name="spacing">2</property>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkImage" id="image2">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="stock">gtk-remove</property>
|
||||||
|
<property name="icon_size">4</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="yalign">0</property>
|
||||||
|
<property name="xpad">0</property>
|
||||||
|
<property name="ypad">0</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="padding">0</property>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">False</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkLabel" id="label5">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Remove</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<property name="use_markup">False</property>
|
||||||
|
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
|
<property name="wrap">False</property>
|
||||||
|
<property name="selectable">False</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="yalign">0</property>
|
||||||
|
<property name="xpad">0</property>
|
||||||
|
<property name="ypad">0</property>
|
||||||
|
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
|
<property name="width_chars">-1</property>
|
||||||
|
<property name="single_line_mode">False</property>
|
||||||
|
<property name="angle">0</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="padding">0</property>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">False</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="padding">0</property>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="padding">0</property>
|
||||||
|
<property name="expand">True</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
|
||||||
</glade-interface>
|
</glade-interface>
|
||||||
|
|
|
@ -1,184 +1,288 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
|
||||||
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
|
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
|
||||||
<!-- Generated with glade3
|
|
||||||
Version: 3.0.0
|
|
||||||
Date: Sun Aug 20 22:25:08 2006
|
|
||||||
User: matteo
|
|
||||||
Host: tulip
|
|
||||||
-->
|
|
||||||
<glade-interface>
|
<glade-interface>
|
||||||
<widget class="GtkDialog" id="AddResourceDialog">
|
|
||||||
<property name="title">Add Resource</property>
|
<widget class="GtkDialog" id="AddResourceDialog">
|
||||||
<property name="resizable">False</property>
|
<property name="title">Add Resource</property>
|
||||||
<property name="modal">True</property>
|
<property name="type">GTK_WINDOW_TOPLEVEL</property>
|
||||||
<property name="window_position">GTK_WIN_POS_MOUSE</property>
|
<property name="window_position">GTK_WIN_POS_MOUSE</property>
|
||||||
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
|
<property name="modal">True</property>
|
||||||
<child internal-child="vbox">
|
<property name="resizable">False</property>
|
||||||
<widget class="GtkVBox" id="MainVBox">
|
<property name="destroy_with_parent">False</property>
|
||||||
<property name="visible">True</property>
|
<property name="decorated">True</property>
|
||||||
<child>
|
<property name="skip_taskbar_hint">False</property>
|
||||||
<widget class="GtkTable" id="MainTable">
|
<property name="skip_pager_hint">False</property>
|
||||||
<property name="visible">True</property>
|
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
|
||||||
<property name="border_width">6</property>
|
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
|
||||||
<property name="n_rows">4</property>
|
<property name="focus_on_map">True</property>
|
||||||
<property name="n_columns">2</property>
|
<property name="urgency_hint">False</property>
|
||||||
<property name="column_spacing">9</property>
|
<property name="has_separator">True</property>
|
||||||
<property name="row_spacing">11</property>
|
|
||||||
<child>
|
<child internal-child="vbox">
|
||||||
<widget class="GtkLabel" id="Preemptable.Label">
|
<widget class="GtkVBox" id="MainVBox">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="xalign">0,000000</property>
|
<property name="homogeneous">False</property>
|
||||||
<property name="yalign">0,000000</property>
|
<property name="spacing">0</property>
|
||||||
<property name="label" translatable="yes">Pre-emptable</property>
|
|
||||||
</widget>
|
<child internal-child="action_area">
|
||||||
<packing>
|
<widget class="GtkHButtonBox" id="MainButtonBox">
|
||||||
<property name="top_attach">3</property>
|
<property name="visible">True</property>
|
||||||
<property name="bottom_attach">4</property>
|
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
||||||
<property name="x_options">GTK_FILL</property>
|
|
||||||
<property name="y_options"></property>
|
<child>
|
||||||
</packing>
|
<widget class="GtkButton" id="Cancel.Button">
|
||||||
</child>
|
<property name="visible">True</property>
|
||||||
<child>
|
<property name="can_default">True</property>
|
||||||
<widget class="GtkCheckButton" id="Preemptable.Check">
|
<property name="can_focus">True</property>
|
||||||
<property name="visible">True</property>
|
<property name="label">gtk-cancel</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="use_stock">True</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
<property name="draw_indicator">True</property>
|
<property name="focus_on_click">True</property>
|
||||||
</widget>
|
<property name="response_id">-6</property>
|
||||||
<packing>
|
</widget>
|
||||||
<property name="left_attach">1</property>
|
</child>
|
||||||
<property name="right_attach">2</property>
|
|
||||||
<property name="top_attach">3</property>
|
<child>
|
||||||
<property name="bottom_attach">4</property>
|
<widget class="GtkButton" id="OK.Button">
|
||||||
<property name="x_options">GTK_FILL</property>
|
<property name="visible">True</property>
|
||||||
<property name="y_options"></property>
|
<property name="can_default">True</property>
|
||||||
</packing>
|
<property name="has_default">True</property>
|
||||||
</child>
|
<property name="can_focus">True</property>
|
||||||
<child>
|
<property name="label">gtk-ok</property>
|
||||||
<widget class="GtkSpinButton" id="Availability.Spin">
|
<property name="use_stock">True</property>
|
||||||
<property name="visible">True</property>
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="focus_on_click">True</property>
|
||||||
<property name="adjustment">0,000000 0,000000 0,000000 1,000000 10,000000 10,000000</property>
|
<property name="response_id">-5</property>
|
||||||
<property name="climb_rate">1</property>
|
</widget>
|
||||||
<property name="numeric">True</property>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left_attach">1</property>
|
<property name="padding">0</property>
|
||||||
<property name="right_attach">2</property>
|
<property name="expand">False</property>
|
||||||
<property name="top_attach">2</property>
|
<property name="fill">True</property>
|
||||||
<property name="bottom_attach">3</property>
|
<property name="pack_type">GTK_PACK_END</property>
|
||||||
<property name="y_options"></property>
|
</packing>
|
||||||
</packing>
|
</child>
|
||||||
</child>
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkLabel" id="Availability.Label">
|
<widget class="GtkTable" id="MainTable">
|
||||||
<property name="visible">True</property>
|
<property name="border_width">6</property>
|
||||||
<property name="xalign">0,000000</property>
|
<property name="visible">True</property>
|
||||||
<property name="yalign">0,000000</property>
|
<property name="n_rows">4</property>
|
||||||
<property name="label" translatable="yes">Availability</property>
|
<property name="n_columns">2</property>
|
||||||
</widget>
|
<property name="homogeneous">False</property>
|
||||||
<packing>
|
<property name="row_spacing">11</property>
|
||||||
<property name="top_attach">2</property>
|
<property name="column_spacing">9</property>
|
||||||
<property name="bottom_attach">3</property>
|
|
||||||
<property name="x_options">GTK_FILL</property>
|
<child>
|
||||||
<property name="y_options"></property>
|
<widget class="GtkLabel" id="Preemptable.Label">
|
||||||
</packing>
|
<property name="visible">True</property>
|
||||||
</child>
|
<property name="label" translatable="yes">Pre-emptable</property>
|
||||||
<child>
|
<property name="use_underline">False</property>
|
||||||
<widget class="GtkSpinButton" id="Places.Spin">
|
<property name="use_markup">False</property>
|
||||||
<property name="visible">True</property>
|
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="wrap">False</property>
|
||||||
<property name="adjustment">0,000000 1,000000 0,000000 1,000000 10,000000 10,000000</property>
|
<property name="selectable">False</property>
|
||||||
<property name="climb_rate">1</property>
|
<property name="xalign">0</property>
|
||||||
<property name="numeric">True</property>
|
<property name="yalign">0</property>
|
||||||
</widget>
|
<property name="xpad">0</property>
|
||||||
<packing>
|
<property name="ypad">0</property>
|
||||||
<property name="left_attach">1</property>
|
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
<property name="right_attach">2</property>
|
<property name="width_chars">-1</property>
|
||||||
<property name="top_attach">1</property>
|
<property name="single_line_mode">False</property>
|
||||||
<property name="bottom_attach">2</property>
|
<property name="angle">0</property>
|
||||||
<property name="y_options"></property>
|
</widget>
|
||||||
</packing>
|
<packing>
|
||||||
</child>
|
<property name="left_attach">0</property>
|
||||||
<child>
|
<property name="right_attach">1</property>
|
||||||
<widget class="GtkLabel" id="Places.Label">
|
<property name="top_attach">3</property>
|
||||||
<property name="visible">True</property>
|
<property name="bottom_attach">4</property>
|
||||||
<property name="xalign">0,000000</property>
|
<property name="x_options"></property>
|
||||||
<property name="yalign">0,000000</property>
|
<property name="y_options"></property>
|
||||||
<property name="label" translatable="yes">Places</property>
|
</packing>
|
||||||
</widget>
|
</child>
|
||||||
<packing>
|
|
||||||
<property name="top_attach">1</property>
|
<child>
|
||||||
<property name="bottom_attach">2</property>
|
<widget class="GtkCheckButton" id="Preemptable.Check">
|
||||||
<property name="x_options">GTK_FILL</property>
|
<property name="visible">True</property>
|
||||||
<property name="y_options"></property>
|
<property name="can_focus">True</property>
|
||||||
</packing>
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
</child>
|
<property name="focus_on_click">True</property>
|
||||||
<child>
|
<property name="active">False</property>
|
||||||
<widget class="GtkEntry" id="Name.Entry">
|
<property name="inconsistent">False</property>
|
||||||
<property name="visible">True</property>
|
<property name="draw_indicator">True</property>
|
||||||
<property name="can_focus">True</property>
|
|
||||||
<property name="invisible_char">●</property>
|
<child>
|
||||||
<property name="width_chars">17</property>
|
<placeholder/>
|
||||||
</widget>
|
</child>
|
||||||
<packing>
|
</widget>
|
||||||
<property name="left_attach">1</property>
|
<packing>
|
||||||
<property name="right_attach">2</property>
|
<property name="left_attach">1</property>
|
||||||
<property name="y_options"></property>
|
<property name="right_attach">2</property>
|
||||||
</packing>
|
<property name="top_attach">3</property>
|
||||||
</child>
|
<property name="bottom_attach">4</property>
|
||||||
<child>
|
<property name="x_options"></property>
|
||||||
<widget class="GtkLabel" id="Name.Label">
|
<property name="y_options"></property>
|
||||||
<property name="visible">True</property>
|
</packing>
|
||||||
<property name="xalign">0,000000</property>
|
</child>
|
||||||
<property name="yalign">0,000000</property>
|
|
||||||
<property name="label" translatable="yes">Name</property>
|
<child>
|
||||||
</widget>
|
<widget class="GtkSpinButton" id="Availability.Spin">
|
||||||
<packing>
|
<property name="visible">True</property>
|
||||||
<property name="x_options">GTK_FILL</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="y_options"></property>
|
<property name="climb_rate">1</property>
|
||||||
</packing>
|
<property name="digits">0</property>
|
||||||
</child>
|
<property name="numeric">True</property>
|
||||||
</widget>
|
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
|
||||||
<packing>
|
<property name="snap_to_ticks">False</property>
|
||||||
<property name="position">2</property>
|
<property name="wrap">False</property>
|
||||||
</packing>
|
<property name="adjustment">0 0 inf 1 0 0</property>
|
||||||
</child>
|
</widget>
|
||||||
<child internal-child="action_area">
|
<packing>
|
||||||
<widget class="GtkHButtonBox" id="MainButtonBox">
|
<property name="left_attach">1</property>
|
||||||
<property name="visible">True</property>
|
<property name="right_attach">2</property>
|
||||||
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
<property name="top_attach">2</property>
|
||||||
<child>
|
<property name="bottom_attach">3</property>
|
||||||
<widget class="GtkButton" id="Cancel.Button">
|
<property name="y_options"></property>
|
||||||
<property name="visible">True</property>
|
</packing>
|
||||||
<property name="can_focus">True</property>
|
</child>
|
||||||
<property name="can_default">True</property>
|
|
||||||
<property name="label">gtk-cancel</property>
|
<child>
|
||||||
<property name="use_stock">True</property>
|
<widget class="GtkLabel" id="Availability.Label">
|
||||||
<property name="response_id">-6</property>
|
<property name="visible">True</property>
|
||||||
</widget>
|
<property name="label" translatable="yes">Availability</property>
|
||||||
</child>
|
<property name="use_underline">False</property>
|
||||||
<child>
|
<property name="use_markup">False</property>
|
||||||
<widget class="GtkButton" id="OK.Button">
|
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
<property name="visible">True</property>
|
<property name="wrap">False</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="selectable">False</property>
|
||||||
<property name="can_default">True</property>
|
<property name="xalign">0</property>
|
||||||
<property name="has_default">True</property>
|
<property name="yalign">0</property>
|
||||||
<property name="label">gtk-ok</property>
|
<property name="xpad">0</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="ypad">0</property>
|
||||||
<property name="response_id">-5</property>
|
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
</widget>
|
<property name="width_chars">-1</property>
|
||||||
<packing>
|
<property name="single_line_mode">False</property>
|
||||||
<property name="position">1</property>
|
<property name="angle">0</property>
|
||||||
</packing>
|
</widget>
|
||||||
</child>
|
<packing>
|
||||||
</widget>
|
<property name="left_attach">0</property>
|
||||||
<packing>
|
<property name="right_attach">1</property>
|
||||||
<property name="expand">False</property>
|
<property name="top_attach">2</property>
|
||||||
<property name="pack_type">GTK_PACK_END</property>
|
<property name="bottom_attach">3</property>
|
||||||
</packing>
|
<property name="x_options"></property>
|
||||||
</child>
|
<property name="y_options"></property>
|
||||||
</widget>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkSpinButton" id="Places.Spin">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="climb_rate">1</property>
|
||||||
|
<property name="digits">0</property>
|
||||||
|
<property name="numeric">True</property>
|
||||||
|
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
|
||||||
|
<property name="snap_to_ticks">False</property>
|
||||||
|
<property name="wrap">False</property>
|
||||||
|
<property name="adjustment">1 1 inf 1 0 0</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">1</property>
|
||||||
|
<property name="right_attach">2</property>
|
||||||
|
<property name="top_attach">1</property>
|
||||||
|
<property name="bottom_attach">2</property>
|
||||||
|
<property name="y_options"></property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkLabel" id="Places.Label">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Places</property>
|
||||||
|
<property name="use_underline">False</property>
|
||||||
|
<property name="use_markup">False</property>
|
||||||
|
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
|
<property name="wrap">False</property>
|
||||||
|
<property name="selectable">False</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="yalign">0</property>
|
||||||
|
<property name="xpad">0</property>
|
||||||
|
<property name="ypad">0</property>
|
||||||
|
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
|
<property name="width_chars">-1</property>
|
||||||
|
<property name="single_line_mode">False</property>
|
||||||
|
<property name="angle">0</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="right_attach">1</property>
|
||||||
|
<property name="top_attach">1</property>
|
||||||
|
<property name="bottom_attach">2</property>
|
||||||
|
<property name="x_options"></property>
|
||||||
|
<property name="y_options"></property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkEntry" id="Name.Entry">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="editable">True</property>
|
||||||
|
<property name="visibility">True</property>
|
||||||
|
<property name="max_length">0</property>
|
||||||
|
<property name="text" translatable="yes"></property>
|
||||||
|
<property name="has_frame">True</property>
|
||||||
|
<property name="invisible_char">●</property>
|
||||||
|
<property name="activates_default">False</property>
|
||||||
|
<property name="width_chars">17</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">1</property>
|
||||||
|
<property name="right_attach">2</property>
|
||||||
|
<property name="top_attach">0</property>
|
||||||
|
<property name="bottom_attach">1</property>
|
||||||
|
<property name="y_options"></property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkLabel" id="Name.Label">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Name</property>
|
||||||
|
<property name="use_underline">False</property>
|
||||||
|
<property name="use_markup">False</property>
|
||||||
|
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
|
<property name="wrap">False</property>
|
||||||
|
<property name="selectable">False</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="yalign">0</property>
|
||||||
|
<property name="xpad">0</property>
|
||||||
|
<property name="ypad">0</property>
|
||||||
|
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
|
<property name="width_chars">-1</property>
|
||||||
|
<property name="single_line_mode">False</property>
|
||||||
|
<property name="angle">0</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="right_attach">1</property>
|
||||||
|
<property name="top_attach">0</property>
|
||||||
|
<property name="bottom_attach">1</property>
|
||||||
|
<property name="x_options"></property>
|
||||||
|
<property name="y_options"></property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="padding">0</property>
|
||||||
|
<property name="expand">True</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
|
||||||
</glade-interface>
|
</glade-interface>
|
||||||
|
|
|
@ -1,184 +1,285 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
|
||||||
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
|
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
|
||||||
<!-- Generated with glade3
|
|
||||||
Version: 3.0.0
|
|
||||||
Date: Sun Aug 20 22:25:18 2006
|
|
||||||
User: matteo
|
|
||||||
Host: tulip
|
|
||||||
-->
|
|
||||||
<glade-interface>
|
<glade-interface>
|
||||||
<widget class="GtkDialog" id="AddThreadDialog">
|
|
||||||
<property name="title">Add Thread</property>
|
<widget class="GtkDialog" id="AddThreadDialog">
|
||||||
<property name="resizable">False</property>
|
<property name="title">Add Thread</property>
|
||||||
<property name="modal">True</property>
|
<property name="type">GTK_WINDOW_TOPLEVEL</property>
|
||||||
<property name="window_position">GTK_WIN_POS_MOUSE</property>
|
<property name="window_position">GTK_WIN_POS_MOUSE</property>
|
||||||
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
|
<property name="modal">True</property>
|
||||||
<child internal-child="vbox">
|
<property name="resizable">False</property>
|
||||||
<widget class="GtkVBox" id="MainVBox">
|
<property name="destroy_with_parent">False</property>
|
||||||
<property name="visible">True</property>
|
<property name="decorated">True</property>
|
||||||
<child>
|
<property name="skip_taskbar_hint">False</property>
|
||||||
<widget class="GtkTable" id="MainTable">
|
<property name="skip_pager_hint">False</property>
|
||||||
<property name="visible">True</property>
|
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
|
||||||
<property name="border_width">6</property>
|
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
|
||||||
<property name="n_rows">4</property>
|
<property name="focus_on_map">True</property>
|
||||||
<property name="n_columns">2</property>
|
<property name="urgency_hint">False</property>
|
||||||
<property name="column_spacing">9</property>
|
<property name="has_separator">True</property>
|
||||||
<property name="row_spacing">11</property>
|
|
||||||
<child>
|
<child internal-child="vbox">
|
||||||
<widget class="GtkSpinButton" id="BasePriority.Spin">
|
<widget class="GtkVBox" id="MainVBox">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="homogeneous">False</property>
|
||||||
<property name="adjustment">0,000000 0,000000 0,000000 1,000000 10,000000 10,000000</property>
|
<property name="spacing">0</property>
|
||||||
<property name="climb_rate">1</property>
|
|
||||||
<property name="numeric">True</property>
|
<child internal-child="action_area">
|
||||||
</widget>
|
<widget class="GtkHButtonBox" id="MainButtonBox">
|
||||||
<packing>
|
<property name="visible">True</property>
|
||||||
<property name="left_attach">1</property>
|
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
||||||
<property name="right_attach">2</property>
|
|
||||||
<property name="top_attach">3</property>
|
<child>
|
||||||
<property name="bottom_attach">4</property>
|
<widget class="GtkButton" id="Cancel.Button">
|
||||||
<property name="y_options"></property>
|
<property name="visible">True</property>
|
||||||
</packing>
|
<property name="can_default">True</property>
|
||||||
</child>
|
<property name="can_focus">True</property>
|
||||||
<child>
|
<property name="label">gtk-cancel</property>
|
||||||
<widget class="GtkSpinButton" id="ArrivalTime.Spin">
|
<property name="use_stock">True</property>
|
||||||
<property name="visible">True</property>
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="focus_on_click">True</property>
|
||||||
<property name="adjustment">0,000000 0,000000 0,000000 1,000000 10,000000 10,000000</property>
|
<property name="response_id">-6</property>
|
||||||
<property name="climb_rate">1</property>
|
</widget>
|
||||||
<property name="numeric">True</property>
|
</child>
|
||||||
</widget>
|
|
||||||
<packing>
|
<child>
|
||||||
<property name="left_attach">1</property>
|
<widget class="GtkButton" id="OK.Button">
|
||||||
<property name="right_attach">2</property>
|
<property name="visible">True</property>
|
||||||
<property name="top_attach">2</property>
|
<property name="can_default">True</property>
|
||||||
<property name="bottom_attach">3</property>
|
<property name="has_default">True</property>
|
||||||
<property name="y_options"></property>
|
<property name="can_focus">True</property>
|
||||||
</packing>
|
<property name="label">gtk-ok</property>
|
||||||
</child>
|
<property name="use_stock">True</property>
|
||||||
<child>
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
<widget class="GtkSpinButton" id="CpuTime.Spin">
|
<property name="focus_on_click">True</property>
|
||||||
<property name="visible">True</property>
|
<property name="response_id">-5</property>
|
||||||
<property name="can_focus">True</property>
|
</widget>
|
||||||
<property name="adjustment">0,000000 1,000000 0,000000 1,000000 10,000000 10,000000</property>
|
</child>
|
||||||
<property name="climb_rate">1</property>
|
</widget>
|
||||||
<property name="numeric">True</property>
|
<packing>
|
||||||
</widget>
|
<property name="padding">0</property>
|
||||||
<packing>
|
<property name="expand">False</property>
|
||||||
<property name="left_attach">1</property>
|
<property name="fill">True</property>
|
||||||
<property name="right_attach">2</property>
|
<property name="pack_type">GTK_PACK_END</property>
|
||||||
<property name="top_attach">1</property>
|
</packing>
|
||||||
<property name="bottom_attach">2</property>
|
</child>
|
||||||
<property name="y_options"></property>
|
|
||||||
</packing>
|
<child>
|
||||||
</child>
|
<widget class="GtkTable" id="MainTable">
|
||||||
<child>
|
<property name="border_width">6</property>
|
||||||
<widget class="GtkLabel" id="CpuTime.Label">
|
<property name="visible">True</property>
|
||||||
<property name="visible">True</property>
|
<property name="n_rows">4</property>
|
||||||
<property name="xalign">0,000000</property>
|
<property name="n_columns">2</property>
|
||||||
<property name="yalign">0,000000</property>
|
<property name="homogeneous">False</property>
|
||||||
<property name="label" translatable="yes">Cpu Time</property>
|
<property name="row_spacing">11</property>
|
||||||
</widget>
|
<property name="column_spacing">9</property>
|
||||||
<packing>
|
|
||||||
<property name="top_attach">1</property>
|
<child>
|
||||||
<property name="bottom_attach">2</property>
|
<widget class="GtkSpinButton" id="BasePriority.Spin">
|
||||||
<property name="x_options">GTK_FILL</property>
|
<property name="visible">True</property>
|
||||||
<property name="y_options"></property>
|
<property name="can_focus">True</property>
|
||||||
</packing>
|
<property name="climb_rate">1</property>
|
||||||
</child>
|
<property name="digits">0</property>
|
||||||
<child>
|
<property name="numeric">True</property>
|
||||||
<widget class="GtkLabel" id="ArrivalTime.Label">
|
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
|
||||||
<property name="visible">True</property>
|
<property name="snap_to_ticks">False</property>
|
||||||
<property name="xalign">0,000000</property>
|
<property name="wrap">False</property>
|
||||||
<property name="yalign">0,000000</property>
|
<property name="adjustment">0 0 inf 1 0 0</property>
|
||||||
<property name="label" translatable="yes">Arrival Time</property>
|
</widget>
|
||||||
</widget>
|
<packing>
|
||||||
<packing>
|
<property name="left_attach">1</property>
|
||||||
<property name="top_attach">2</property>
|
<property name="right_attach">2</property>
|
||||||
<property name="bottom_attach">3</property>
|
<property name="top_attach">3</property>
|
||||||
<property name="x_options">GTK_FILL</property>
|
<property name="bottom_attach">4</property>
|
||||||
<property name="y_options"></property>
|
<property name="y_options"></property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
|
||||||
<widget class="GtkLabel" id="BasePriority.Label">
|
<child>
|
||||||
<property name="visible">True</property>
|
<widget class="GtkSpinButton" id="ArrivalTime.Spin">
|
||||||
<property name="xalign">0,000000</property>
|
<property name="visible">True</property>
|
||||||
<property name="yalign">0,000000</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="label" translatable="yes">Base Priority</property>
|
<property name="climb_rate">1</property>
|
||||||
</widget>
|
<property name="digits">0</property>
|
||||||
<packing>
|
<property name="numeric">True</property>
|
||||||
<property name="top_attach">3</property>
|
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
|
||||||
<property name="bottom_attach">4</property>
|
<property name="snap_to_ticks">False</property>
|
||||||
<property name="x_options">GTK_FILL</property>
|
<property name="wrap">False</property>
|
||||||
<property name="y_options"></property>
|
<property name="adjustment">0 0 inf 1 0 0</property>
|
||||||
</packing>
|
</widget>
|
||||||
</child>
|
<packing>
|
||||||
<child>
|
<property name="left_attach">1</property>
|
||||||
<widget class="GtkEntry" id="Name.Entry">
|
<property name="right_attach">2</property>
|
||||||
<property name="visible">True</property>
|
<property name="top_attach">2</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="bottom_attach">3</property>
|
||||||
<property name="invisible_char">●</property>
|
<property name="y_options"></property>
|
||||||
<property name="width_chars">17</property>
|
</packing>
|
||||||
</widget>
|
</child>
|
||||||
<packing>
|
|
||||||
<property name="left_attach">1</property>
|
<child>
|
||||||
<property name="right_attach">2</property>
|
<widget class="GtkSpinButton" id="CpuTime.Spin">
|
||||||
<property name="y_options"></property>
|
<property name="visible">True</property>
|
||||||
</packing>
|
<property name="can_focus">True</property>
|
||||||
</child>
|
<property name="climb_rate">1</property>
|
||||||
<child>
|
<property name="digits">0</property>
|
||||||
<widget class="GtkLabel" id="Name.Label">
|
<property name="numeric">True</property>
|
||||||
<property name="visible">True</property>
|
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
|
||||||
<property name="xalign">0,000000</property>
|
<property name="snap_to_ticks">False</property>
|
||||||
<property name="yalign">0,000000</property>
|
<property name="wrap">False</property>
|
||||||
<property name="label" translatable="yes">Name</property>
|
<property name="adjustment">1 1 inf 1 0 0</property>
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="x_options">GTK_FILL</property>
|
<property name="left_attach">1</property>
|
||||||
<property name="y_options"></property>
|
<property name="right_attach">2</property>
|
||||||
</packing>
|
<property name="top_attach">1</property>
|
||||||
</child>
|
<property name="bottom_attach">2</property>
|
||||||
</widget>
|
<property name="y_options"></property>
|
||||||
<packing>
|
</packing>
|
||||||
<property name="position">2</property>
|
</child>
|
||||||
</packing>
|
|
||||||
</child>
|
<child>
|
||||||
<child internal-child="action_area">
|
<widget class="GtkLabel" id="CpuTime.Label">
|
||||||
<widget class="GtkHButtonBox" id="MainButtonBox">
|
<property name="visible">True</property>
|
||||||
<property name="visible">True</property>
|
<property name="label" translatable="yes">Cpu Time</property>
|
||||||
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
<property name="use_underline">False</property>
|
||||||
<child>
|
<property name="use_markup">False</property>
|
||||||
<widget class="GtkButton" id="Cancel.Button">
|
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
<property name="visible">True</property>
|
<property name="wrap">False</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="selectable">False</property>
|
||||||
<property name="can_default">True</property>
|
<property name="xalign">0</property>
|
||||||
<property name="label">gtk-cancel</property>
|
<property name="yalign">0</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="xpad">0</property>
|
||||||
<property name="response_id">-6</property>
|
<property name="ypad">0</property>
|
||||||
</widget>
|
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
</child>
|
<property name="width_chars">-1</property>
|
||||||
<child>
|
<property name="single_line_mode">False</property>
|
||||||
<widget class="GtkButton" id="OK.Button">
|
<property name="angle">0</property>
|
||||||
<property name="visible">True</property>
|
</widget>
|
||||||
<property name="can_focus">True</property>
|
<packing>
|
||||||
<property name="can_default">True</property>
|
<property name="left_attach">0</property>
|
||||||
<property name="has_default">True</property>
|
<property name="right_attach">1</property>
|
||||||
<property name="label">gtk-ok</property>
|
<property name="top_attach">1</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="bottom_attach">2</property>
|
||||||
<property name="response_id">-5</property>
|
<property name="x_options"></property>
|
||||||
</widget>
|
<property name="y_options"></property>
|
||||||
<packing>
|
</packing>
|
||||||
<property name="position">1</property>
|
</child>
|
||||||
</packing>
|
|
||||||
</child>
|
<child>
|
||||||
</widget>
|
<widget class="GtkLabel" id="ArrivalTime.Label">
|
||||||
<packing>
|
<property name="visible">True</property>
|
||||||
<property name="expand">False</property>
|
<property name="label" translatable="yes">Arrival Time</property>
|
||||||
<property name="pack_type">GTK_PACK_END</property>
|
<property name="use_underline">False</property>
|
||||||
</packing>
|
<property name="use_markup">False</property>
|
||||||
</child>
|
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
</widget>
|
<property name="wrap">False</property>
|
||||||
</child>
|
<property name="selectable">False</property>
|
||||||
</widget>
|
<property name="xalign">0</property>
|
||||||
|
<property name="yalign">0</property>
|
||||||
|
<property name="xpad">0</property>
|
||||||
|
<property name="ypad">0</property>
|
||||||
|
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
|
<property name="width_chars">-1</property>
|
||||||
|
<property name="single_line_mode">False</property>
|
||||||
|
<property name="angle">0</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="right_attach">1</property>
|
||||||
|
<property name="top_attach">2</property>
|
||||||
|
<property name="bottom_attach">3</property>
|
||||||
|
<property name="x_options"></property>
|
||||||
|
<property name="y_options"></property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkLabel" id="BasePriority.Label">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Base Priority</property>
|
||||||
|
<property name="use_underline">False</property>
|
||||||
|
<property name="use_markup">False</property>
|
||||||
|
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
|
<property name="wrap">False</property>
|
||||||
|
<property name="selectable">False</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="yalign">0</property>
|
||||||
|
<property name="xpad">0</property>
|
||||||
|
<property name="ypad">0</property>
|
||||||
|
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
|
<property name="width_chars">-1</property>
|
||||||
|
<property name="single_line_mode">False</property>
|
||||||
|
<property name="angle">0</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="right_attach">1</property>
|
||||||
|
<property name="top_attach">3</property>
|
||||||
|
<property name="bottom_attach">4</property>
|
||||||
|
<property name="x_options"></property>
|
||||||
|
<property name="y_options"></property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkEntry" id="Name.Entry">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="editable">True</property>
|
||||||
|
<property name="visibility">True</property>
|
||||||
|
<property name="max_length">0</property>
|
||||||
|
<property name="text" translatable="yes"></property>
|
||||||
|
<property name="has_frame">True</property>
|
||||||
|
<property name="invisible_char">●</property>
|
||||||
|
<property name="activates_default">False</property>
|
||||||
|
<property name="width_chars">17</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">1</property>
|
||||||
|
<property name="right_attach">2</property>
|
||||||
|
<property name="top_attach">0</property>
|
||||||
|
<property name="bottom_attach">1</property>
|
||||||
|
<property name="y_options"></property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkLabel" id="Name.Label">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Name</property>
|
||||||
|
<property name="use_underline">False</property>
|
||||||
|
<property name="use_markup">False</property>
|
||||||
|
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
|
<property name="wrap">False</property>
|
||||||
|
<property name="selectable">False</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="yalign">0</property>
|
||||||
|
<property name="xpad">0</property>
|
||||||
|
<property name="ypad">0</property>
|
||||||
|
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
|
<property name="width_chars">-1</property>
|
||||||
|
<property name="single_line_mode">False</property>
|
||||||
|
<property name="angle">0</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="right_attach">1</property>
|
||||||
|
<property name="top_attach">0</property>
|
||||||
|
<property name="bottom_attach">1</property>
|
||||||
|
<property name="x_options"></property>
|
||||||
|
<property name="y_options"></property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="padding">0</property>
|
||||||
|
<property name="expand">True</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
|
||||||
</glade-interface>
|
</glade-interface>
|
||||||
|
|
|
@ -44,12 +44,19 @@ AddRequestDialog::AddRequestDialog(BaseObjectType* cobject, const RefPtr<Xml>& g
|
||||||
_glade->get_widget("Add", _add_button);
|
_glade->get_widget("Add", _add_button);
|
||||||
_glade->get_widget("Remove", _remove_button);
|
_glade->get_widget("Remove", _remove_button);
|
||||||
_glade->get_widget("Resource.Combo", _resource_combo);
|
_glade->get_widget("Resource.Combo", _resource_combo);
|
||||||
|
_glade->get_widget("OK.Button", _ok_button);
|
||||||
|
|
||||||
/** ATTACH SIGNAL HANDLERS FOR BUTTONS **/
|
/** ATTACH SIGNAL HANDLERS FOR BUTTONS **/
|
||||||
|
|
||||||
_add_button->signal_clicked().connect(sigc::mem_fun(*this, &AddRequestDialog::_on_add));
|
_add_button->signal_clicked().connect(
|
||||||
_remove_button->signal_clicked().connect(sigc::mem_fun(*this, &AddRequestDialog::_on_remove));
|
sigc::mem_fun(*this, &AddRequestDialog::_on_add));
|
||||||
|
|
||||||
|
_remove_button->signal_clicked().connect(
|
||||||
|
sigc::mem_fun(*this, &AddRequestDialog::_on_remove));
|
||||||
|
|
||||||
|
_ok_button->set_sensitive(false);
|
||||||
|
_remove_button->set_sensitive(false);
|
||||||
|
_add_button->set_sensitive(false);
|
||||||
|
|
||||||
/** INITIALIZE COMBOBOX **/
|
/** INITIALIZE COMBOBOX **/
|
||||||
_combo_columns.add(_combo_key_column);
|
_combo_columns.add(_combo_key_column);
|
||||||
|
@ -59,6 +66,9 @@ AddRequestDialog::AddRequestDialog(BaseObjectType* cobject, const RefPtr<Xml>& g
|
||||||
_resource_combo->set_model(_combo_model);
|
_resource_combo->set_model(_combo_model);
|
||||||
_resource_combo->pack_start(_combo_key_column, false);
|
_resource_combo->pack_start(_combo_key_column, false);
|
||||||
_resource_combo->pack_start(_combo_resource_column, true);
|
_resource_combo->pack_start(_combo_resource_column, true);
|
||||||
|
|
||||||
|
_resource_combo->signal_changed().connect(
|
||||||
|
sigc::mem_fun(*this, &AddRequestDialog::_on_combo_selection_changed));
|
||||||
|
|
||||||
/** INITIALIZE LISTVIEW **/
|
/** INITIALIZE LISTVIEW **/
|
||||||
|
|
||||||
|
@ -69,14 +79,43 @@ AddRequestDialog::AddRequestDialog(BaseObjectType* cobject, const RefPtr<Xml>& g
|
||||||
_list_model = ListStore::create(_list_columns);
|
_list_model = ListStore::create(_list_columns);
|
||||||
_list->set_model(_list_model);
|
_list->set_model(_list_model);
|
||||||
|
|
||||||
|
_list_model->signal_row_deleted().connect(
|
||||||
|
sigc::mem_fun(*this, &AddRequestDialog::_on_row_removed));
|
||||||
|
|
||||||
|
_list_model->signal_row_inserted().connect(
|
||||||
|
sigc::mem_fun(*this, &AddRequestDialog::_on_row_added));
|
||||||
|
|
||||||
_list->append_column(_("key"), _list_key_column);
|
_list->append_column(_("key"), _list_key_column);
|
||||||
_list->append_column(_("resource"), _list_resource_column);
|
_list->append_column(_("resource"), _list_resource_column);
|
||||||
_list->append_column(_("length"), _list_length_column);
|
_list->append_column(_("length"), _list_length_column);
|
||||||
|
|
||||||
_list->get_selection()->signal_changed().connect(
|
_list->get_selection()->signal_changed().connect(
|
||||||
sigc::mem_fun(*this, &AddRequestDialog::_on_selection_changed));
|
sigc::mem_fun(*this, &AddRequestDialog::_on_list_selection_changed));
|
||||||
|
|
||||||
|
Simulation::get_instance().get_history().add_resource("guitar");
|
||||||
|
Simulation::get_instance().get_history().add_resource("drums");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Request&
|
||||||
|
AddRequestDialog::construct_request(Thread& owner)
|
||||||
|
{
|
||||||
|
assert(_list_model->children());
|
||||||
|
|
||||||
|
SpinButton* instant_spin;
|
||||||
|
_glade->get_widget("Instant.Spin", instant_spin);
|
||||||
|
|
||||||
|
History& h = Simulation::get_instance().get_history();
|
||||||
|
|
||||||
|
Request& r = h.add_request(owner, instant_spin->get_value_as_int());
|
||||||
|
|
||||||
|
TreeNodeChildren sreq_container = _list_model->children();
|
||||||
|
|
||||||
|
for(Iseq<TreeIter> it = iseq(sreq_container); it; ++it)
|
||||||
|
h.add_subrequest(r, (*it)[_list_key_column], (*it)[_list_length_column]);
|
||||||
|
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
AddRequestDialog::on_show()
|
AddRequestDialog::on_show()
|
||||||
{
|
{
|
||||||
|
@ -95,7 +134,7 @@ AddRequestDialog::on_show()
|
||||||
row[_combo_key_column] = it->first;
|
row[_combo_key_column] = it->first;
|
||||||
row[_combo_resource_column] = it->second->get_name();
|
row[_combo_resource_column] = it->second->get_name();
|
||||||
}
|
}
|
||||||
|
|
||||||
Dialog::on_show();
|
Dialog::on_show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,23 +143,20 @@ AddRequestDialog::_on_add()
|
||||||
{
|
{
|
||||||
TreeModel::iterator sel = _resource_combo->get_active();
|
TreeModel::iterator sel = _resource_combo->get_active();
|
||||||
|
|
||||||
if(sel)
|
SpinButton* duration_spin;
|
||||||
{
|
|
||||||
SpinButton* duration_spin;
|
|
||||||
|
|
||||||
_glade->get_widget("Duration.Spin", duration_spin);
|
|
||||||
|
|
||||||
TreeModel::Row row = *(_list_model->append());
|
_glade->get_widget("Duration.Spin", duration_spin);
|
||||||
|
|
||||||
const unsigned int key = (*sel)[_combo_key_column];
|
TreeModel::Row row = *(_list_model->append());
|
||||||
row[_list_key_column] = key;
|
|
||||||
|
|
||||||
const ustring resource = (*sel)[_combo_resource_column];
|
const unsigned int key = (*sel)[_combo_key_column];
|
||||||
row[_list_resource_column] = resource;
|
row[_list_key_column] = key;
|
||||||
|
|
||||||
const unsigned int length = duration_spin->get_value_as_int();
|
const ustring resource = (*sel)[_combo_resource_column];
|
||||||
row[_list_length_column] = length;
|
row[_list_resource_column] = resource;
|
||||||
}
|
|
||||||
|
const unsigned int length = duration_spin->get_value_as_int();
|
||||||
|
row[_list_length_column] = length;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -131,9 +167,28 @@ AddRequestDialog::_on_remove()
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
AddRequestDialog::_on_selection_changed()
|
AddRequestDialog::_on_list_selection_changed()
|
||||||
{
|
{
|
||||||
_remove_button->set_sensitive(
|
_remove_button->set_sensitive(
|
||||||
_list->get_selection()->count_selected_rows() > 0);
|
_list->get_selection()->count_selected_rows() > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
AddRequestDialog::_on_row_added(const Gtk::TreePath& path, const Gtk::TreeIter& it)
|
||||||
|
{
|
||||||
|
_ok_button->set_sensitive(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
AddRequestDialog::_on_row_removed(const Gtk::TreePath& path)
|
||||||
|
{
|
||||||
|
_ok_button->set_sensitive(static_cast<bool>(_list_model->children()));
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
AddRequestDialog::_on_combo_selection_changed()
|
||||||
|
{
|
||||||
|
_add_button->set_sensitive(
|
||||||
|
static_cast<bool>(_resource_combo->get_active()));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,12 @@
|
||||||
#ifndef ADD_REQUEST_DIALOG_HH
|
#ifndef ADD_REQUEST_DIALOG_HH
|
||||||
#define ADD_REQUEST_DIALOG_HH 1
|
#define ADD_REQUEST_DIALOG_HH 1
|
||||||
|
|
||||||
|
namespace sgpem
|
||||||
|
{
|
||||||
|
class Request;
|
||||||
|
class Thread;
|
||||||
|
}
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <gtkmm/treeview.h>
|
#include <gtkmm/treeview.h>
|
||||||
|
@ -36,13 +42,24 @@ namespace sgpem
|
||||||
public:
|
public:
|
||||||
AddRequestDialog(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& glade);
|
AddRequestDialog(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& glade);
|
||||||
|
|
||||||
|
/**
|
||||||
|
\brief Attemts to build a request by using the data supplied
|
||||||
|
up to now.
|
||||||
|
\note Must be called only after it has been shown at least
|
||||||
|
one time with an OK, otherwise expect undefined behaviour!
|
||||||
|
*/
|
||||||
|
Request& construct_request(Thread& t);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void on_show();
|
virtual void on_show();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void _on_add();
|
void _on_add();
|
||||||
void _on_remove();
|
void _on_remove();
|
||||||
void _on_selection_changed();
|
void _on_list_selection_changed();
|
||||||
|
void _on_row_added(const Gtk::TreePath& path, const Gtk::TreeIter& it);
|
||||||
|
void _on_row_removed(const Gtk::TreePath& path);
|
||||||
|
void _on_combo_selection_changed();
|
||||||
|
|
||||||
Glib::RefPtr<Gnome::Glade::Xml> _glade;
|
Glib::RefPtr<Gnome::Glade::Xml> _glade;
|
||||||
Gtk::TreeView* _list;
|
Gtk::TreeView* _list;
|
||||||
|
@ -54,6 +71,7 @@ namespace sgpem
|
||||||
|
|
||||||
Gtk::Button* _add_button;
|
Gtk::Button* _add_button;
|
||||||
Gtk::Button* _remove_button;
|
Gtk::Button* _remove_button;
|
||||||
|
Gtk::Button* _ok_button;
|
||||||
|
|
||||||
Gtk::ComboBox* _resource_combo;
|
Gtk::ComboBox* _resource_combo;
|
||||||
Glib::RefPtr<Gtk::ListStore> _combo_model;
|
Glib::RefPtr<Gtk::ListStore> _combo_model;
|
||||||
|
|
|
@ -244,18 +244,6 @@ SchedulablesTreeWidget::_on_add_process()
|
||||||
void
|
void
|
||||||
SchedulablesTreeWidget::_on_add_thread()
|
SchedulablesTreeWidget::_on_add_thread()
|
||||||
{
|
{
|
||||||
// TreeModel::iterator sel = get_selection()->get_selected();
|
|
||||||
//
|
|
||||||
// if(!sel)
|
|
||||||
// return;
|
|
||||||
//
|
|
||||||
// const void* p_handle = (*sel)[_handles_column];
|
|
||||||
// HandleType type = (*sel)[_types_column];
|
|
||||||
// Process* p = reinterpret_cast<Process*>(const_cast<void*>(p_handle));
|
|
||||||
//
|
|
||||||
// if(p == NULL || type != htype_process)
|
|
||||||
// return;
|
|
||||||
|
|
||||||
Process* p = get_selected_process();
|
Process* p = get_selected_process();
|
||||||
if(p == NULL)
|
if(p == NULL)
|
||||||
return;
|
return;
|
||||||
|
@ -286,26 +274,13 @@ SchedulablesTreeWidget::_on_add_thread()
|
||||||
void
|
void
|
||||||
SchedulablesTreeWidget::_on_add_request()
|
SchedulablesTreeWidget::_on_add_request()
|
||||||
{
|
{
|
||||||
// TreeModel::iterator sel = get_selection()->get_selected();
|
|
||||||
//
|
|
||||||
// if(!sel)
|
|
||||||
// return;
|
|
||||||
//
|
|
||||||
// const void* p_handle = (*sel)[_handles_column];
|
|
||||||
// HandleType type = (*sel)[_types_column];
|
|
||||||
// Thread* t = reinterpret_cast<Thread*>(const_cast<void*>(p_handle));
|
|
||||||
//
|
|
||||||
// if(t == NULL || type != htype_thread)
|
|
||||||
// return;
|
|
||||||
Thread* t = get_selected_thread();
|
Thread* t = get_selected_thread();
|
||||||
|
|
||||||
if(t == NULL)
|
if(t == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(_add_request_dialog->run() == RESPONSE_OK)
|
if(_add_request_dialog->run() == RESPONSE_OK)
|
||||||
{
|
_add_request_dialog->construct_request(*t);
|
||||||
//FIXME writre code for me :-)
|
|
||||||
}
|
|
||||||
|
|
||||||
_add_request_dialog->hide();
|
_add_request_dialog->hide();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue