Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
comparison gtk-gui/gui.stetic @ 65:77448375d2f9
Re #60: Add UI to add/remove/edit weapons in GTK
* Add titles and make dialogs not appear on task list
* Capture ratio amounts in Control object's local variable, otherwise we get 0s
* Set initial values when editing equipment
* Only enable the Edit button when we can edit
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 04 Sep 2010 10:25:39 +0000 |
parents | e3fe48c4d794 |
children | 7028e24b67ec |
comparison
equal
deleted
inserted
replaced
64:e3fe48c4d794 | 65:77448375d2f9 |
---|---|
966 </widget> | 966 </widget> |
967 </child> | 967 </child> |
968 </widget> | 968 </widget> |
969 <widget class="Gtk.Dialog" id="IBBoard.WarFoundry.GUI.GTK.FrmAddEquipment" design-size="400 300"> | 969 <widget class="Gtk.Dialog" id="IBBoard.WarFoundry.GUI.GTK.FrmAddEquipment" design-size="400 300"> |
970 <property name="MemberName" /> | 970 <property name="MemberName" /> |
971 <property name="Title" translatable="yes">Add equipment</property> | |
971 <property name="WindowPosition">CenterOnParent</property> | 972 <property name="WindowPosition">CenterOnParent</property> |
973 <property name="Modal">True</property> | |
974 <property name="SkipPagerHint">True</property> | |
975 <property name="SkipTaskbarHint">True</property> | |
972 <property name="Buttons">2</property> | 976 <property name="Buttons">2</property> |
973 <property name="HelpButton">False</property> | 977 <property name="HelpButton">False</property> |
974 <child internal-child="VBox"> | 978 <child internal-child="VBox"> |
975 <widget class="Gtk.VBox" id="dialog1_VBox"> | 979 <widget class="Gtk.VBox" id="dialog1_VBox"> |
976 <property name="MemberName" /> | 980 <property name="MemberName" /> |
1122 <child> | 1126 <child> |
1123 <widget class="Gtk.RadioButton" id="rbEquipAll"> | 1127 <widget class="Gtk.RadioButton" id="rbEquipAll"> |
1124 <property name="MemberName" /> | 1128 <property name="MemberName" /> |
1125 <property name="CanFocus">True</property> | 1129 <property name="CanFocus">True</property> |
1126 <property name="Label" translatable="yes" /> | 1130 <property name="Label" translatable="yes" /> |
1131 <property name="Active">True</property> | |
1127 <property name="DrawIndicator">True</property> | 1132 <property name="DrawIndicator">True</property> |
1128 <property name="HasLabel">True</property> | 1133 <property name="HasLabel">True</property> |
1129 <property name="UseUnderline">True</property> | 1134 <property name="UseUnderline">True</property> |
1130 <property name="Group">group1</property> | 1135 <property name="Group">group1</property> |
1131 </widget> | 1136 </widget> |
1308 </widget> | 1313 </widget> |
1309 </child> | 1314 </child> |
1310 </widget> | 1315 </widget> |
1311 <widget class="Gtk.Dialog" id="IBBoard.WarFoundry.GUI.GTK.FrmEditEquipment" design-size="280 175"> | 1316 <widget class="Gtk.Dialog" id="IBBoard.WarFoundry.GUI.GTK.FrmEditEquipment" design-size="280 175"> |
1312 <property name="MemberName" /> | 1317 <property name="MemberName" /> |
1318 <property name="Title" translatable="yes">Edit equipment</property> | |
1313 <property name="WindowPosition">CenterOnParent</property> | 1319 <property name="WindowPosition">CenterOnParent</property> |
1320 <property name="Modal">True</property> | |
1321 <property name="SkipPagerHint">True</property> | |
1322 <property name="SkipTaskbarHint">True</property> | |
1314 <property name="Buttons">2</property> | 1323 <property name="Buttons">2</property> |
1315 <property name="HelpButton">False</property> | 1324 <property name="HelpButton">False</property> |
1316 <child internal-child="VBox"> | 1325 <child internal-child="VBox"> |
1317 <widget class="Gtk.VBox" id="dialog1_VBox"> | 1326 <widget class="Gtk.VBox" id="dialog1_VBox"> |
1318 <property name="MemberName" /> | 1327 <property name="MemberName" /> |
1532 </child> | 1541 </child> |
1533 <child> | 1542 <child> |
1534 <widget class="Gtk.Label" id="lblEquipAmount"> | 1543 <widget class="Gtk.Label" id="lblEquipAmount"> |
1535 <property name="MemberName" /> | 1544 <property name="MemberName" /> |
1536 <property name="LabelProp" translatable="yes">amount:</property> | 1545 <property name="LabelProp" translatable="yes">amount:</property> |
1537 </widget> | 1546 <property name="Justify">Right</property> |
1538 <packing> | 1547 </widget> |
1539 <property name="AutoSize">True</property> | 1548 <packing> |
1540 <property name="XOptions">Fill</property> | 1549 <property name="AutoSize">False</property> |
1541 <property name="YOptions">Fill</property> | 1550 <property name="YOptions">Fill</property> |
1542 <property name="XExpand">False</property> | 1551 <property name="XExpand">True</property> |
1543 <property name="XFill">True</property> | 1552 <property name="XFill">True</property> |
1544 <property name="XShrink">False</property> | 1553 <property name="XShrink">False</property> |
1545 <property name="YExpand">False</property> | 1554 <property name="YExpand">False</property> |
1546 <property name="YFill">True</property> | 1555 <property name="YFill">True</property> |
1547 <property name="YShrink">False</property> | 1556 <property name="YShrink">False</property> |