Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
diff gtk-gui/gui.stetic @ 142:f23e5b40ca9d
Re #344: Show unit requirement failures
* Add new widget for displaying failures nicely
* Use widget for displaying failures in main window
* Use widget for displaying failures in new unit dialog
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 18 Oct 2011 21:03:35 +0100 |
parents | 1ce4fe9ae3c1 |
children | aca4623b7bdf |
line wrap: on
line diff
--- a/gtk-gui/gui.stetic Mon Oct 17 20:53:07 2011 +0100 +++ b/gtk-gui/gui.stetic Tue Oct 18 21:03:35 2011 +0100 @@ -186,7 +186,6 @@ <child> <widget class="Gtk.VBox" id="vbox1"> <property name="MemberName" /> - <property name="Spacing">0</property> <child> <widget class="Gtk.MenuBar" id="menubar1"> <property name="MemberName" /> @@ -378,7 +377,6 @@ <child> <widget class="Gtk.HBox" id="hbox2"> <property name="MemberName" /> - <property name="Spacing">0</property> <child> <widget class="Gtk.SpinButton" id="sbPointsValue"> <property name="MemberName" /> @@ -597,7 +595,7 @@ </widget> </child> </widget> - <widget class="Gtk.Dialog" id="IBBoard.WarFoundry.GUI.GTK.FrmNewUnit" design-size="403 259"> + <widget class="Gtk.Dialog" id="IBBoard.WarFoundry.GUI.GTK.FrmNewUnit" design-size="403 311"> <property name="MemberName" /> <property name="Title" translatable="yes">Add new unit</property> <property name="Icon">stock:gtk-new Menu</property> @@ -660,14 +658,15 @@ </packing> </child> <child> - <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblNewUnitWarning"> + <widget class="IBBoard.WarFoundry.GUI.GTK.ValidationFailureWidget" id="validationWidget"> <property name="MemberName" /> - <property name="Visible">False</property> - <property name="Xalign">0</property> + <property name="Events">ButtonPressMask</property> </widget> <packing> <property name="Position">1</property> - <property name="AutoSize">False</property> + <property name="AutoSize">True</property> + <property name="Expand">False</property> + <property name="Fill">False</property> </packing> </child> </widget> @@ -2647,7 +2646,6 @@ <child> <widget class="Gtk.HBox" id="hbox2"> <property name="MemberName" /> - <property name="Spacing">0</property> <child> <widget class="Gtk.SpinButton" id="sbPointsValue"> <property name="MemberName" /> @@ -2797,4 +2795,53 @@ </widget> </child> </widget> + <widget class="Gtk.Bin" id="IBBoard.WarFoundry.GUI.GTK.ValidationFailureWidget" design-size="300 104"> + <property name="MemberName" /> + <property name="Visible">False</property> + <child> + <widget class="Gtk.HBox" id="hbox1"> + <property name="MemberName" /> + <property name="Spacing">6</property> + <child> + <widget class="Gtk.Image" id="image1"> + <property name="MemberName" /> + <property name="Pixbuf">stock:gtk-dialog-warning Dialog</property> + </widget> + <packing> + <property name="Position">0</property> + <property name="AutoSize">True</property> + <property name="Expand">False</property> + <property name="Fill">False</property> + </packing> + </child> + <child> + <widget class="Gtk.ScrolledWindow" id="scrolledwindow1"> + <property name="MemberName" /> + <property name="CanFocus">True</property> + <property name="HscrollbarPolicy">Never</property> + <property name="ShadowType">In</property> + <child> + <widget class="Gtk.Viewport" id="GtkViewport"> + <property name="MemberName" /> + <property name="ShadowType">None</property> + <child> + <widget class="Gtk.Label" id="validationMessages"> + <property name="MemberName" /> + <property name="Xalign">0</property> + <property name="Yalign">0</property> + <property name="LabelProp" translatable="yes">Fibble</property> + <property name="Wrap">True</property> + </widget> + </child> + </widget> + </child> + </widget> + <packing> + <property name="Position">1</property> + <property name="AutoSize">True</property> + </packing> + </child> + </widget> + </child> + </widget> </stetic-interface> \ No newline at end of file