Mercurial > repos > IBBoard.WarFoundry.GUI.GTK
annotate gtk-gui/gui.stetic @ 30:5fafbb1b4592
Re #145: Add UI to remove units from army
* Add initial right-click "remove unit" for GTK app
Existing problems:
* Right-click occurs before selection changes, so it can be a click out of synch
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 04 Sep 2009 20:11:02 +0000 |
parents | 2e5448a662b6 |
children | eab45344cd56 |
rev | line source |
---|---|
0 | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <stetic-interface> | |
3 <configuration> | |
4 <images-root-path>..</images-root-path> | |
5 | 5 <target-gtk-version>2.12</target-gtk-version> |
0 | 6 </configuration> |
7 <import> | |
12
685532d43a96
Re #88: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
10
diff
changeset
|
8 <widget-library name="../../IBBoard.GtkSharp/bin/Debug/IBBoard.GtkSharp.dll" /> |
0 | 9 <widget-library name="../bin/Debug/WarFoundryGTK.exe" internal="true" /> |
10 </import> | |
5 | 11 <widget class="Gtk.Window" id="IBBoard.WarFoundry.GTK.FrmMainWindow" design-size="832 659"> |
0 | 12 <action-group name="Default"> |
13 <action id="menuFile"> | |
14 <property name="Type">Action</property> | |
15 <property name="Label" translatable="yes">File</property> | |
16 <property name="ShortLabel" translatable="yes">File</property> | |
17 </action> | |
18 <action id="miCreateArmy"> | |
19 <property name="Type">Action</property> | |
20 <property name="Label" translatable="yes">Create army</property> | |
21 <property name="Sensitive">False</property> | |
22 <property name="ShortLabel" translatable="yes">Create army</property> | |
22 | 23 <property name="StockId">gtk-new</property> |
0 | 24 <signal name="Activated" handler="OnCreateArmyActivated" /> |
25 </action> | |
26 <action id="miOpenArmy"> | |
27 <property name="Type">Action</property> | |
28 <property name="Label" translatable="yes">Open army</property> | |
29 <property name="ShortLabel" translatable="yes">Open army</property> | |
22 | 30 <property name="StockId">gtk-open</property> |
0 | 31 <signal name="Activated" handler="OnOpenArmyActivated" /> |
32 </action> | |
33 <action id="miSaveArmy"> | |
34 <property name="Type">Action</property> | |
35 <property name="Label" translatable="yes">Save army</property> | |
36 <property name="Sensitive">False</property> | |
37 <property name="ShortLabel" translatable="yes">Save army</property> | |
22 | 38 <property name="StockId">gtk-save</property> |
0 | 39 <signal name="Activated" handler="OnSaveArmyActivated" /> |
40 </action> | |
41 <action id="miSaveArmyAs"> | |
42 <property name="Type">Action</property> | |
43 <property name="Label" translatable="yes">Save army as</property> | |
44 <property name="Sensitive">False</property> | |
45 <property name="ShortLabel" translatable="yes">Save army as</property> | |
22 | 46 <property name="StockId">gtk-save-as</property> |
0 | 47 <signal name="Activated" handler="OnSaveArmyAsActivated" /> |
48 </action> | |
49 <action id="miCloseArmy"> | |
50 <property name="Type">Action</property> | |
51 <property name="Label" translatable="yes">Close army</property> | |
52 <property name="Sensitive">False</property> | |
53 <property name="ShortLabel" translatable="yes">Close army</property> | |
22 | 54 <property name="StockId">gtk-close</property> |
0 | 55 <signal name="Activated" handler="OnCloseArmyActivated" /> |
56 </action> | |
57 <action id="miChangeGameSystem"> | |
58 <property name="Type">Action</property> | |
59 <property name="Label" translatable="yes">Change game system</property> | |
60 <property name="ShortLabel" translatable="yes">Change game system</property> | |
61 <signal name="Activated" handler="OnChangeGameSystemActivated" after="yes" /> | |
62 </action> | |
63 <action id="miReloadFiles"> | |
64 <property name="Type">Action</property> | |
65 <property name="Label" translatable="yes">Reload files</property> | |
66 <property name="Sensitive">False</property> | |
67 <property name="ShortLabel" translatable="yes">Reload files</property> | |
22 | 68 <property name="StockId">gtk-refresh</property> |
0 | 69 <signal name="Activated" handler="OnReloadFilesActivated" /> |
70 </action> | |
71 <action id="miExit"> | |
72 <property name="Type">Action</property> | |
73 <property name="Label" translatable="yes">Exit</property> | |
74 <property name="ShortLabel" translatable="yes">Exit</property> | |
22 | 75 <property name="StockId">gtk-quit</property> |
0 | 76 <signal name="Activated" handler="OnExitActivated" /> |
77 </action> | |
78 <action id="menuEdit"> | |
79 <property name="Type">Action</property> | |
80 <property name="Label" translatable="yes">Edit</property> | |
81 <property name="ShortLabel" translatable="yes">Edit</property> | |
82 </action> | |
83 <action id="miUndo"> | |
84 <property name="Type">Action</property> | |
85 <property name="Label" translatable="yes">Undo</property> | |
86 <property name="Sensitive">False</property> | |
87 <property name="ShortLabel" translatable="yes">Undo</property> | |
22 | 88 <property name="StockId">gtk-undo</property> |
0 | 89 </action> |
90 <action id="miRedo"> | |
91 <property name="Type">Action</property> | |
92 <property name="Label" translatable="yes">Redo</property> | |
93 <property name="Sensitive">False</property> | |
94 <property name="ShortLabel" translatable="yes">Redo</property> | |
22 | 95 <property name="StockId">gtk-redo</property> |
0 | 96 </action> |
97 <action id="menuHelp"> | |
98 <property name="Type">Action</property> | |
99 <property name="Label" translatable="yes">Help</property> | |
100 <property name="ShortLabel" translatable="yes">Help</property> | |
101 </action> | |
102 <action id="miAbout"> | |
103 <property name="Type">Action</property> | |
104 <property name="Label" translatable="yes">About</property> | |
105 <property name="ShortLabel" translatable="yes">About</property> | |
22 | 106 <property name="StockId">gtk-about</property> |
0 | 107 </action> |
108 <action id="miDebugInformation"> | |
109 <property name="Type">Action</property> | |
110 <property name="Label" translatable="yes">Debug Information</property> | |
111 <property name="ShortLabel" translatable="yes">Debug Information</property> | |
112 </action> | |
113 <action id="newArmyButton"> | |
114 <property name="Type">Action</property> | |
115 <property name="Label" translatable="yes" /> | |
116 <property name="Sensitive">False</property> | |
117 <property name="StockId">gtk-new</property> | |
118 <signal name="Activated" handler="newTBButtonActivated" /> | |
119 </action> | |
120 <action id="openArmyButton"> | |
121 <property name="Type">Action</property> | |
122 <property name="Label" translatable="yes" /> | |
123 <property name="StockId">gtk-open</property> | |
124 <signal name="Activated" handler="openTBButtonActivated" /> | |
125 </action> | |
126 <action id="saveArmyButton"> | |
127 <property name="Type">Action</property> | |
128 <property name="Label" translatable="yes" /> | |
129 <property name="Sensitive">False</property> | |
130 <property name="StockId">gtk-save</property> | |
131 <signal name="Activated" handler="saveTBButtonActivated" /> | |
132 </action> | |
133 <action id="undoActionButton"> | |
134 <property name="Type">Action</property> | |
135 <property name="Label" translatable="yes" /> | |
136 <property name="Sensitive">False</property> | |
137 <property name="StockId">gtk-undo</property> | |
138 <signal name="Activated" handler="undoTBButtonActivated" /> | |
139 </action> | |
140 <action id="redoActionButton"> | |
141 <property name="Type">Action</property> | |
142 <property name="Label" translatable="yes" /> | |
143 <property name="Sensitive">False</property> | |
144 <property name="StockId">gtk-redo</property> | |
145 <signal name="Activated" handler="redoTBButtonActivated" /> | |
146 </action> | |
147 <action id="goDown"> | |
148 <property name="Type">Action</property> | |
149 <property name="Label" translatable="yes" /> | |
150 </action> | |
151 <action id="add"> | |
152 <property name="Type">Action</property> | |
153 <property name="Label" translatable="yes" /> | |
154 <property name="StockId">gtk-add</property> | |
155 </action> | |
28 | 156 <action id="miExportArmy"> |
157 <property name="Type">Action</property> | |
158 <property name="Label" translatable="yes">Export army as...</property> | |
29 | 159 <property name="Sensitive">False</property> |
28 | 160 <property name="ShortLabel" translatable="yes">Export army</property> |
161 <property name="StockId">gtk-convert</property> | |
162 </action> | |
163 <action id="miExportAsBasicHtml"> | |
164 <property name="Type">Action</property> | |
165 <property name="Label" translatable="yes">Basic HTML</property> | |
166 <property name="ShortLabel" translatable="yes">Basic HTML</property> | |
167 <signal name="Activated" handler="OnMiExportAsBasicHtmlActivated" /> | |
168 </action> | |
0 | 169 </action-group> |
170 <property name="MemberName" /> | |
171 <property name="Title" translatable="yes">MainWindow</property> | |
172 <property name="Icon">resource:App.ico</property> | |
173 <child> | |
174 <widget class="Gtk.VBox" id="vbox1"> | |
175 <property name="MemberName" /> | |
176 <child> | |
177 <widget class="Gtk.MenuBar" id="menubar1"> | |
178 <property name="MemberName" /> | |
179 <node name="menubar1" type="Menubar"> | |
180 <node type="Menu" action="menuFile"> | |
181 <node type="Menuitem" action="miCreateArmy" /> | |
182 <node type="Menuitem" action="miOpenArmy" /> | |
183 <node type="Menuitem" action="miSaveArmy" /> | |
184 <node type="Menuitem" action="miSaveArmyAs" /> | |
28 | 185 <node type="Menu" action="miExportArmy"> |
186 <node type="Menuitem" action="miExportAsBasicHtml" /> | |
187 </node> | |
0 | 188 <node type="Menuitem" action="miCloseArmy" /> |
189 <node type="Separator" /> | |
190 <node type="Menuitem" action="miChangeGameSystem" /> | |
191 <node type="Separator" /> | |
192 <node type="Menuitem" action="miReloadFiles" /> | |
193 <node type="Separator" /> | |
194 <node type="Menuitem" action="miExit" /> | |
195 </node> | |
196 <node type="Menu" action="menuEdit"> | |
197 <node type="Menuitem" action="miUndo" /> | |
198 <node type="Menuitem" action="miRedo" /> | |
199 </node> | |
200 <node type="Menu" action="menuHelp"> | |
201 <node type="Menuitem" action="miAbout" /> | |
202 <node type="Menuitem" action="miDebugInformation" /> | |
203 </node> | |
204 </node> | |
205 </widget> | |
206 <packing> | |
207 <property name="Position">0</property> | |
208 <property name="AutoSize">True</property> | |
209 <property name="Expand">False</property> | |
210 <property name="Fill">False</property> | |
211 </packing> | |
212 </child> | |
213 <child> | |
214 <widget class="Gtk.Toolbar" id="toolbar"> | |
215 <property name="MemberName" /> | |
216 <property name="HeightRequest">36</property> | |
217 <property name="ShowArrow">False</property> | |
218 <property name="ButtonStyle">Icons</property> | |
219 <node name="toolbar" type="Toolbar"> | |
220 <node type="Toolitem" action="newArmyButton" /> | |
221 <node type="Toolitem" action="openArmyButton" /> | |
222 <node type="Toolitem" action="saveArmyButton" /> | |
223 <node type="Separator" /> | |
224 <node type="Toolitem" action="undoActionButton" /> | |
225 <node type="Toolitem" action="redoActionButton" /> | |
226 <node type="Separator" /> | |
227 </node> | |
228 </widget> | |
229 <packing> | |
230 <property name="Position">1</property> | |
231 <property name="AutoSize">True</property> | |
232 <property name="Expand">False</property> | |
233 <property name="Fill">False</property> | |
234 </packing> | |
235 </child> | |
236 <child> | |
237 <widget class="Gtk.HPaned" id="hpaned2"> | |
238 <property name="MemberName" /> | |
239 <property name="CanFocus">True</property> | |
240 <property name="Position">178</property> | |
241 <child> | |
242 <widget class="Gtk.TreeView" id="treeUnits"> | |
243 <property name="MemberName" /> | |
244 <property name="CanFocus">True</property> | |
245 <signal name="RowActivated" handler="ArmyRowActivated" /> | |
30
5fafbb1b4592
Re #145: Add UI to remove units from army
IBBoard <dev@ibboard.co.uk>
parents:
29
diff
changeset
|
246 <signal name="PopupMenu" handler="OnTreeUnitsPopupMenu" /> |
5fafbb1b4592
Re #145: Add UI to remove units from army
IBBoard <dev@ibboard.co.uk>
parents:
29
diff
changeset
|
247 <signal name="ButtonPressEvent" handler="UnitTreeButtonPressed" /> |
0 | 248 </widget> |
249 <packing> | |
250 <property name="Resize">False</property> | |
251 </packing> | |
252 </child> | |
253 <child> | |
254 <widget class="Gtk.Notebook" id="unitsNotebook"> | |
255 <property name="MemberName" /> | |
256 <property name="CanFocus">True</property> | |
257 <property name="CurrentPage">-1</property> | |
258 </widget> | |
259 </child> | |
260 </widget> | |
261 <packing> | |
262 <property name="Position">2</property> | |
263 <property name="AutoSize">True</property> | |
264 </packing> | |
265 </child> | |
266 <child> | |
267 <widget class="Gtk.Statusbar" id="statusbar1"> | |
268 <property name="MemberName" /> | |
269 <property name="Spacing">2</property> | |
270 <child> | |
271 <placeholder /> | |
272 </child> | |
273 <child> | |
274 <placeholder /> | |
275 </child> | |
276 </widget> | |
277 <packing> | |
278 <property name="Position">3</property> | |
279 <property name="AutoSize">True</property> | |
280 <property name="Expand">False</property> | |
281 <property name="Fill">False</property> | |
282 </packing> | |
283 </child> | |
284 </widget> | |
285 </child> | |
286 </widget> | |
5 | 287 <widget class="Gtk.Dialog" id="IBBoard.WarFoundry.GTK.FrmNewArmy" design-size="400 322"> |
0 | 288 <property name="MemberName" /> |
289 <property name="Events">ButtonPressMask</property> | |
290 <property name="Title" translatable="yes">Create new army</property> | |
291 <property name="Icon">stock:gtk-new Menu</property> | |
292 <property name="WindowPosition">CenterOnParent</property> | |
293 <property name="SkipPagerHint">True</property> | |
294 <property name="SkipTaskbarHint">True</property> | |
295 <property name="Buttons">2</property> | |
296 <property name="HelpButton">False</property> | |
297 <property name="HasSeparator">False</property> | |
298 <child internal-child="VBox"> | |
299 <widget class="Gtk.VBox" id="dialog_VBox"> | |
300 <property name="MemberName" /> | |
301 <property name="CanFocus">True</property> | |
302 <property name="Events">ButtonPressMask</property> | |
303 <property name="BorderWidth">2</property> | |
304 <child> | |
305 <widget class="Gtk.Table" id="table1"> | |
306 <property name="MemberName" /> | |
10
c687bbe901f8
Re #37 - Resolve deprecation warnings
IBBoard <dev@ibboard.co.uk>
parents:
8
diff
changeset
|
307 <property name="NRows">3</property> |
0 | 308 <property name="NColumns">2</property> |
309 <property name="RowSpacing">6</property> | |
310 <property name="ColumnSpacing">6</property> | |
311 <child> | |
312 <widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow"> | |
313 <property name="MemberName" /> | |
314 <property name="ShadowType">In</property> | |
315 <child> | |
316 <widget class="Gtk.TreeView" id="lstRaces"> | |
317 <property name="MemberName" /> | |
318 <property name="HeightRequest">150</property> | |
319 <property name="CanFocus">True</property> | |
320 <property name="ShowScrollbars">True</property> | |
321 <property name="HeadersVisible">False</property> | |
322 <property name="RulesHint">True</property> | |
323 </widget> | |
324 </child> | |
325 </widget> | |
326 <packing> | |
327 <property name="LeftAttach">1</property> | |
328 <property name="RightAttach">2</property> | |
329 <property name="AutoSize">True</property> | |
330 <property name="YOptions">Fill</property> | |
331 <property name="XExpand">True</property> | |
332 <property name="XFill">True</property> | |
333 <property name="XShrink">False</property> | |
334 <property name="YExpand">False</property> | |
335 <property name="YFill">True</property> | |
336 <property name="YShrink">False</property> | |
337 </packing> | |
338 </child> | |
339 <child> | |
340 <widget class="Gtk.HBox" id="hbox2"> | |
341 <property name="MemberName" /> | |
342 <child> | |
343 <widget class="Gtk.SpinButton" id="sbPointsValue"> | |
344 <property name="MemberName" /> | |
345 <property name="WidthRequest">150</property> | |
346 <property name="CanFocus">True</property> | |
347 <property name="Upper">2000000000</property> | |
348 <property name="PageIncrement">1000</property> | |
349 <property name="StepIncrement">100</property> | |
350 <property name="ClimbRate">100</property> | |
351 <property name="Numeric">True</property> | |
352 <property name="Value">1000</property> | |
353 <signal name="ChangeValue" handler="OnSpinChangeValue" /> | |
354 <signal name="ValueChanged" handler="OnSpinValueChanged" /> | |
355 <signal name="Changed" handler="OnSpinValueChanged" /> | |
356 </widget> | |
357 <packing> | |
358 <property name="Position">0</property> | |
359 <property name="AutoSize">True</property> | |
360 <property name="Expand">False</property> | |
361 <property name="Fill">False</property> | |
362 </packing> | |
363 </child> | |
364 <child> | |
365 <placeholder /> | |
366 </child> | |
367 </widget> | |
368 <packing> | |
369 <property name="TopAttach">2</property> | |
370 <property name="BottomAttach">3</property> | |
371 <property name="LeftAttach">1</property> | |
372 <property name="RightAttach">2</property> | |
373 <property name="AutoSize">True</property> | |
374 <property name="YOptions">Fill</property> | |
375 <property name="XExpand">True</property> | |
376 <property name="XFill">True</property> | |
377 <property name="XShrink">False</property> | |
378 <property name="YExpand">False</property> | |
379 <property name="YFill">True</property> | |
380 <property name="YShrink">False</property> | |
381 </packing> | |
382 </child> | |
383 <child> | |
384 <widget class="Gtk.Label" id="label1"> | |
385 <property name="MemberName" /> | |
386 <property name="LabelProp" translatable="yes">Race</property> | |
387 </widget> | |
388 <packing> | |
389 <property name="AutoSize">True</property> | |
390 <property name="XOptions">Fill</property> | |
391 <property name="YOptions">Fill</property> | |
392 <property name="XExpand">False</property> | |
393 <property name="XFill">True</property> | |
394 <property name="XShrink">False</property> | |
395 <property name="YExpand">False</property> | |
396 <property name="YFill">True</property> | |
397 <property name="YShrink">False</property> | |
398 </packing> | |
399 </child> | |
400 <child> | |
401 <widget class="Gtk.Label" id="label2"> | |
402 <property name="MemberName" /> | |
403 <property name="LabelProp" translatable="yes">Army name</property> | |
404 </widget> | |
405 <packing> | |
406 <property name="TopAttach">1</property> | |
407 <property name="BottomAttach">2</property> | |
408 <property name="AutoSize">True</property> | |
409 <property name="XOptions">Fill</property> | |
410 <property name="YOptions">Fill</property> | |
411 <property name="XExpand">False</property> | |
412 <property name="XFill">True</property> | |
413 <property name="XShrink">False</property> | |
414 <property name="YExpand">False</property> | |
415 <property name="YFill">True</property> | |
416 <property name="YShrink">False</property> | |
417 </packing> | |
418 </child> | |
419 <child> | |
420 <widget class="Gtk.Label" id="label3"> | |
421 <property name="MemberName" /> | |
422 <property name="LabelProp" translatable="yes">Points value</property> | |
423 </widget> | |
424 <packing> | |
425 <property name="TopAttach">2</property> | |
426 <property name="BottomAttach">3</property> | |
427 <property name="AutoSize">True</property> | |
428 <property name="XOptions">Fill</property> | |
429 <property name="YOptions">Fill</property> | |
430 <property name="XExpand">False</property> | |
431 <property name="XFill">True</property> | |
432 <property name="XShrink">False</property> | |
433 <property name="YExpand">False</property> | |
434 <property name="YFill">True</property> | |
435 <property name="YShrink">False</property> | |
436 </packing> | |
437 </child> | |
438 <child> | |
439 <widget class="Gtk.Entry" id="txtArmyName"> | |
440 <property name="MemberName" /> | |
441 <property name="CanFocus">True</property> | |
442 <property name="IsEditable">True</property> | |
443 <property name="InvisibleChar">•</property> | |
444 <signal name="Changed" handler="OnTextChanged" /> | |
445 </widget> | |
446 <packing> | |
447 <property name="TopAttach">1</property> | |
448 <property name="BottomAttach">2</property> | |
449 <property name="LeftAttach">1</property> | |
450 <property name="RightAttach">2</property> | |
451 <property name="AutoSize">True</property> | |
452 <property name="YOptions">Fill</property> | |
453 <property name="XExpand">True</property> | |
454 <property name="XFill">True</property> | |
455 <property name="XShrink">False</property> | |
456 <property name="YExpand">False</property> | |
457 <property name="YFill">True</property> | |
458 <property name="YShrink">False</property> | |
459 </packing> | |
460 </child> | |
461 </widget> | |
462 <packing> | |
463 <property name="Position">0</property> | |
464 <property name="AutoSize">True</property> | |
465 <property name="Expand">False</property> | |
466 <property name="Fill">False</property> | |
467 <property name="Padding">6</property> | |
468 </packing> | |
469 </child> | |
470 </widget> | |
471 </child> | |
472 <child internal-child="ActionArea"> | |
473 <widget class="Gtk.HButtonBox" id="WarFoundrySharp.FrmNewArmy_ActionArea"> | |
474 <property name="MemberName" /> | |
475 <property name="CanFocus">True</property> | |
476 <property name="Events">ButtonPressMask</property> | |
477 <property name="Spacing">6</property> | |
478 <property name="BorderWidth">5</property> | |
479 <property name="Size">2</property> | |
480 <property name="LayoutStyle">End</property> | |
481 <child> | |
482 <widget class="Gtk.Button" id="bttnCancel"> | |
483 <property name="MemberName" /> | |
484 <property name="CanFocus">True</property> | |
485 <property name="UseStock">True</property> | |
486 <property name="Type">StockItem</property> | |
487 <property name="StockId">gtk-cancel</property> | |
488 <property name="ResponseId">-6</property> | |
489 <signal name="Clicked" handler="OnCancelClicked" /> | |
490 <property name="label">gtk-cancel</property> | |
491 </widget> | |
492 <packing> | |
493 <property name="Expand">False</property> | |
494 <property name="Fill">False</property> | |
495 </packing> | |
496 </child> | |
497 <child> | |
498 <widget class="Gtk.Button" id="bttnCreate"> | |
499 <property name="MemberName" /> | |
500 <property name="Sensitive">False</property> | |
501 <property name="CanDefault">True</property> | |
502 <property name="CanFocus">True</property> | |
503 <property name="Type">TextAndIcon</property> | |
504 <property name="Icon">stock:gtk-ok Menu</property> | |
505 <property name="Label" translatable="yes">C_reate</property> | |
506 <property name="UseUnderline">True</property> | |
507 <property name="ResponseId">-5</property> | |
508 <signal name="Clicked" handler="OnCreateClicked" /> | |
509 </widget> | |
510 <packing> | |
511 <property name="Position">1</property> | |
512 <property name="Expand">False</property> | |
513 <property name="Fill">False</property> | |
514 </packing> | |
515 </child> | |
516 </widget> | |
517 </child> | |
518 </widget> | |
5 | 519 <widget class="Gtk.Dialog" id="IBBoard.WarFoundry.GTK.FrmChangeGameSystem" design-size="527 257"> |
0 | 520 <property name="MemberName" /> |
521 <property name="Title" translatable="yes">Change Game System</property> | |
522 <property name="Icon">resource:App.ico</property> | |
523 <property name="TypeHint">Dialog</property> | |
524 <property name="WindowPosition">CenterOnParent</property> | |
525 <property name="Modal">True</property> | |
526 <property name="Resizable">False</property> | |
527 <property name="AllowGrow">False</property> | |
528 <property name="DefaultWidth">400</property> | |
529 <property name="DefaultHeight">300</property> | |
530 <property name="SkipPagerHint">True</property> | |
531 <property name="SkipTaskbarHint">True</property> | |
532 <property name="Buttons">2</property> | |
533 <property name="HelpButton">False</property> | |
534 <property name="HasSeparator">False</property> | |
535 <child internal-child="VBox"> | |
536 <widget class="Gtk.VBox" id="dialog1_VBox"> | |
537 <property name="MemberName" /> | |
538 <property name="Spacing">6</property> | |
539 <property name="BorderWidth">2</property> | |
540 <child> | |
541 <widget class="Gtk.HBox" id="hbox1"> | |
542 <property name="MemberName" /> | |
543 <property name="Spacing">6</property> | |
544 <child> | |
545 <widget class="Gtk.Label" id="lblGameSystem"> | |
546 <property name="MemberName" /> | |
547 <property name="LabelProp" translatable="yes">Game System</property> | |
548 </widget> | |
549 <packing> | |
550 <property name="Position">0</property> | |
551 <property name="AutoSize">False</property> | |
552 <property name="Expand">False</property> | |
553 <property name="Fill">False</property> | |
554 </packing> | |
555 </child> | |
556 <child> | |
557 <widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow"> | |
558 <property name="MemberName" /> | |
559 <property name="ShadowType">In</property> | |
560 <child> | |
561 <widget class="Gtk.TreeView" id="lstGameSystems"> | |
562 <property name="MemberName" /> | |
563 <property name="WidthRequest">250</property> | |
564 <property name="HeightRequest">125</property> | |
565 <property name="CanFocus">True</property> | |
566 <property name="ShowScrollbars">True</property> | |
567 <property name="HeadersVisible">False</property> | |
568 <signal name="RowActivated" handler="lstGameSystemsRowActivated" /> | |
569 </widget> | |
570 </child> | |
571 </widget> | |
572 <packing> | |
573 <property name="Position">1</property> | |
574 <property name="AutoSize">True</property> | |
575 </packing> | |
576 </child> | |
577 </widget> | |
578 <packing> | |
579 <property name="Position">0</property> | |
580 <property name="AutoSize">False</property> | |
581 </packing> | |
582 </child> | |
583 </widget> | |
584 </child> | |
585 <child internal-child="ActionArea"> | |
586 <widget class="Gtk.HButtonBox" id="dialog1_ActionArea"> | |
587 <property name="MemberName" /> | |
588 <property name="Spacing">6</property> | |
589 <property name="BorderWidth">5</property> | |
590 <property name="Size">2</property> | |
591 <property name="LayoutStyle">End</property> | |
592 <child> | |
593 <widget class="Gtk.Button" id="buttonCancel"> | |
594 <property name="MemberName" /> | |
595 <property name="CanDefault">True</property> | |
596 <property name="CanFocus">True</property> | |
597 <property name="UseStock">True</property> | |
598 <property name="Type">StockItem</property> | |
599 <property name="StockId">gtk-cancel</property> | |
600 <property name="ResponseId">-6</property> | |
601 <signal name="Clicked" handler="OnCancel" /> | |
602 <property name="label">gtk-cancel</property> | |
603 </widget> | |
604 <packing> | |
605 <property name="Expand">False</property> | |
606 <property name="Fill">False</property> | |
607 </packing> | |
608 </child> | |
609 <child> | |
610 <widget class="Gtk.Button" id="buttonOk"> | |
611 <property name="MemberName" /> | |
612 <property name="Sensitive">False</property> | |
613 <property name="CanDefault">True</property> | |
614 <property name="CanFocus">True</property> | |
615 <property name="UseStock">True</property> | |
616 <property name="Type">StockItem</property> | |
617 <property name="StockId">gtk-ok</property> | |
618 <property name="ResponseId">-5</property> | |
619 <signal name="Clicked" handler="OnGameSystemOkayClicked" /> | |
620 <property name="label">gtk-ok</property> | |
621 </widget> | |
622 <packing> | |
623 <property name="Position">1</property> | |
624 <property name="Expand">False</property> | |
625 <property name="Fill">False</property> | |
626 </packing> | |
627 </child> | |
628 </widget> | |
629 </child> | |
630 </widget> | |
5 | 631 <widget class="Gtk.Dialog" id="IBBoard.WarFoundry.GTK.FrmNewUnit" design-size="400 318"> |
0 | 632 <property name="MemberName" /> |
633 <property name="Title" translatable="yes">Add new unit</property> | |
634 <property name="Icon">stock:gtk-new Menu</property> | |
635 <property name="WindowPosition">CenterOnParent</property> | |
636 <property name="Modal">True</property> | |
637 <property name="SkipPagerHint">True</property> | |
638 <property name="SkipTaskbarHint">True</property> | |
639 <property name="Buttons">2</property> | |
640 <property name="HelpButton">False</property> | |
641 <property name="HasSeparator">False</property> | |
642 <child internal-child="VBox"> | |
643 <widget class="Gtk.VBox" id="dialog1_VBox"> | |
644 <property name="MemberName" /> | |
645 <property name="BorderWidth">2</property> | |
646 <child> | |
647 <widget class="Gtk.VBox" id="vbox2"> | |
648 <property name="MemberName" /> | |
649 <property name="Spacing">6</property> | |
650 <child> | |
651 <widget class="Gtk.HBox" id="hbox1"> | |
652 <property name="MemberName" /> | |
653 <property name="Spacing">6</property> | |
654 <child> | |
655 <widget class="Gtk.Label" id="label1"> | |
656 <property name="MemberName" /> | |
657 <property name="LabelProp" translatable="yes">Unit Type:</property> | |
658 </widget> | |
659 <packing> | |
660 <property name="Position">0</property> | |
661 <property name="AutoSize">True</property> | |
662 <property name="Expand">False</property> | |
663 <property name="Fill">False</property> | |
664 </packing> | |
665 </child> | |
666 <child> | |
667 <widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow"> | |
668 <property name="MemberName" /> | |
669 <property name="ShadowType">In</property> | |
670 <child> | |
671 <widget class="Gtk.TreeView" id="lstUnitTypes"> | |
672 <property name="MemberName" /> | |
673 <property name="HeightRequest">150</property> | |
674 <property name="CanFocus">True</property> | |
675 <property name="ShowScrollbars">True</property> | |
676 <property name="HeadersVisible">False</property> | |
677 <signal name="RowActivated" handler="OnRowActivated" /> | |
678 </widget> | |
679 </child> | |
680 </widget> | |
681 <packing> | |
682 <property name="Position">1</property> | |
683 <property name="AutoSize">True</property> | |
684 </packing> | |
685 </child> | |
686 </widget> | |
687 <packing> | |
688 <property name="Position">0</property> | |
689 <property name="AutoSize">True</property> | |
690 <property name="Expand">False</property> | |
691 <property name="Fill">False</property> | |
692 </packing> | |
693 </child> | |
694 <child> | |
695 <widget class="Gtk.Label" id="lblNewUnitWarning"> | |
696 <property name="MemberName" /> | |
697 <property name="Xalign">0</property> | |
698 <property name="Yalign">0</property> | |
699 </widget> | |
700 <packing> | |
701 <property name="Position">1</property> | |
702 <property name="AutoSize">True</property> | |
703 <property name="Expand">False</property> | |
704 <property name="Fill">False</property> | |
705 </packing> | |
706 </child> | |
707 </widget> | |
708 <packing> | |
709 <property name="Position">0</property> | |
710 <property name="AutoSize">True</property> | |
711 <property name="Expand">False</property> | |
712 <property name="Fill">False</property> | |
713 </packing> | |
714 </child> | |
715 </widget> | |
716 </child> | |
717 <child internal-child="ActionArea"> | |
718 <widget class="Gtk.HButtonBox" id="dialog1_ActionArea"> | |
719 <property name="MemberName" /> | |
720 <property name="Spacing">6</property> | |
721 <property name="BorderWidth">5</property> | |
722 <property name="Size">2</property> | |
723 <property name="LayoutStyle">End</property> | |
724 <child> | |
725 <widget class="Gtk.Button" id="buttonCancel"> | |
726 <property name="MemberName" /> | |
727 <property name="CanDefault">True</property> | |
728 <property name="CanFocus">True</property> | |
729 <property name="UseStock">True</property> | |
730 <property name="Type">StockItem</property> | |
731 <property name="StockId">gtk-cancel</property> | |
732 <property name="ResponseId">-6</property> | |
733 <signal name="Activated" handler="OnButtonCancelActivated" /> | |
734 <property name="label">gtk-cancel</property> | |
735 </widget> | |
736 <packing> | |
737 <property name="Expand">False</property> | |
738 <property name="Fill">False</property> | |
739 </packing> | |
740 </child> | |
741 <child> | |
742 <widget class="Gtk.Button" id="buttonOk"> | |
743 <property name="MemberName" /> | |
744 <property name="Sensitive">False</property> | |
745 <property name="CanDefault">True</property> | |
746 <property name="CanFocus">True</property> | |
747 <property name="UseStock">True</property> | |
748 <property name="Type">StockItem</property> | |
749 <property name="StockId">gtk-ok</property> | |
750 <property name="ResponseId">-5</property> | |
751 <signal name="Clicked" handler="OnButtonOkClicked" /> | |
752 <property name="label">gtk-ok</property> | |
753 </widget> | |
754 <packing> | |
755 <property name="Position">1</property> | |
756 <property name="Expand">False</property> | |
757 <property name="Fill">False</property> | |
758 </packing> | |
759 </child> | |
760 </widget> | |
761 </child> | |
762 </widget> | |
5 | 763 <widget class="Gtk.Bin" id="IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget" design-size="649 422"> |
0 | 764 <property name="MemberName" /> |
765 <child> | |
766 <widget class="Gtk.VBox" id="vbox1"> | |
767 <property name="MemberName" /> | |
768 <property name="Spacing">6</property> | |
769 <child> | |
770 <widget class="Gtk.HBox" id="hbox1"> | |
771 <property name="MemberName" /> | |
772 <property name="Spacing">6</property> | |
773 <child> | |
774 <widget class="Gtk.Entry" id="unitName"> | |
775 <property name="MemberName" /> | |
776 <property name="CanFocus">True</property> | |
777 <property name="IsEditable">True</property> | |
778 <property name="InvisibleChar">•</property> | |
779 <signal name="FocusOutEvent" handler="OnUnitNameFocusOut" /> | |
780 <signal name="KeyPressEvent" handler="OnUnitNameKeyPress" /> | |
781 </widget> | |
782 <packing> | |
783 <property name="Position">0</property> | |
784 <property name="AutoSize">True</property> | |
785 </packing> | |
786 </child> | |
787 <child> | |
788 <widget class="Gtk.SpinButton" id="unitSize"> | |
789 <property name="MemberName" /> | |
790 <property name="CanFocus">True</property> | |
791 <property name="Upper">100</property> | |
792 <property name="PageIncrement">10</property> | |
793 <property name="StepIncrement">1</property> | |
794 <property name="ClimbRate">1</property> | |
795 <property name="Numeric">True</property> | |
796 <signal name="FocusOutEvent" handler="OnUnitSizeFocusOut" /> | |
797 <signal name="KeyPressEvent" handler="OnUnitSizeKeyPress" /> | |
798 </widget> | |
799 <packing> | |
800 <property name="Position">1</property> | |
801 <property name="AutoSize">True</property> | |
802 <property name="Expand">False</property> | |
803 <property name="Fill">False</property> | |
804 </packing> | |
805 </child> | |
806 </widget> | |
807 <packing> | |
808 <property name="Position">0</property> | |
809 <property name="AutoSize">True</property> | |
810 <property name="Expand">False</property> | |
811 <property name="Fill">False</property> | |
812 </packing> | |
813 </child> | |
814 <child> | |
815 <widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow"> | |
816 <property name="MemberName" /> | |
817 <property name="ShadowType">In</property> | |
818 <child> | |
819 <widget class="Gtk.NodeView" id="unitStats"> | |
820 <property name="MemberName" /> | |
821 <property name="HeightRequest">75</property> | |
822 <property name="CanFocus">True</property> | |
823 <property name="ShowScrollbars">True</property> | |
824 </widget> | |
825 </child> | |
826 </widget> | |
827 <packing> | |
828 <property name="Position">1</property> | |
829 <property name="AutoSize">True</property> | |
830 </packing> | |
831 </child> | |
832 <child> | |
833 <widget class="Gtk.HSeparator" id="hseparator1"> | |
834 <property name="MemberName" /> | |
835 </widget> | |
836 <packing> | |
837 <property name="Position">2</property> | |
838 <property name="AutoSize">True</property> | |
839 <property name="Expand">False</property> | |
840 <property name="Fill">False</property> | |
841 </packing> | |
842 </child> | |
843 <child> | |
844 <widget class="Gtk.Table" id="table1"> | |
845 <property name="MemberName" /> | |
846 <property name="NRows">2</property> | |
10
c687bbe901f8
Re #37 - Resolve deprecation warnings
IBBoard <dev@ibboard.co.uk>
parents:
8
diff
changeset
|
847 <property name="NColumns">3</property> |
0 | 848 <property name="RowSpacing">6</property> |
849 <property name="ColumnSpacing">6</property> | |
850 <child> | |
851 <widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow1"> | |
852 <property name="MemberName" /> | |
853 <property name="ShadowType">In</property> | |
854 <child> | |
855 <widget class="Gtk.NodeView" id="optionalEquipment"> | |
856 <property name="MemberName" /> | |
857 <property name="CanFocus">True</property> | |
858 <property name="ShowScrollbars">True</property> | |
859 </widget> | |
860 </child> | |
861 </widget> | |
862 <packing> | |
863 <property name="TopAttach">1</property> | |
864 <property name="BottomAttach">2</property> | |
865 <property name="LeftAttach">1</property> | |
866 <property name="RightAttach">2</property> | |
867 <property name="AutoSize">True</property> | |
868 <property name="YOptions">Fill</property> | |
869 <property name="XExpand">True</property> | |
870 <property name="XFill">True</property> | |
871 <property name="XShrink">False</property> | |
872 <property name="YExpand">False</property> | |
873 <property name="YFill">True</property> | |
874 <property name="YShrink">False</property> | |
875 </packing> | |
876 </child> | |
877 <child> | |
878 <widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow2"> | |
879 <property name="MemberName" /> | |
880 <property name="ShadowType">In</property> | |
881 <child> | |
882 <widget class="Gtk.NodeView" id="requiredEquipment"> | |
883 <property name="MemberName" /> | |
884 <property name="CanFocus">True</property> | |
885 <property name="ShowScrollbars">True</property> | |
886 </widget> | |
887 </child> | |
888 </widget> | |
889 <packing> | |
890 <property name="LeftAttach">1</property> | |
891 <property name="RightAttach">2</property> | |
892 <property name="AutoSize">True</property> | |
893 <property name="YOptions">Fill</property> | |
894 <property name="XExpand">True</property> | |
895 <property name="XFill">True</property> | |
896 <property name="XShrink">False</property> | |
897 <property name="YExpand">False</property> | |
898 <property name="YFill">True</property> | |
899 <property name="YShrink">False</property> | |
900 </packing> | |
901 </child> | |
902 <child> | |
903 <widget class="Gtk.Label" id="optionalEquipmentLabel"> | |
904 <property name="MemberName" /> | |
905 <property name="LabelProp" translatable="yes">Optional Equipment:</property> | |
906 </widget> | |
907 <packing> | |
908 <property name="TopAttach">1</property> | |
909 <property name="BottomAttach">2</property> | |
910 <property name="AutoSize">True</property> | |
911 <property name="XOptions">Fill</property> | |
912 <property name="YOptions">Fill</property> | |
913 <property name="XExpand">False</property> | |
914 <property name="XFill">True</property> | |
915 <property name="XShrink">False</property> | |
916 <property name="YExpand">False</property> | |
917 <property name="YFill">True</property> | |
918 <property name="YShrink">False</property> | |
919 </packing> | |
920 </child> | |
921 <child> | |
922 <widget class="Gtk.Label" id="requiredEquipmentLabel"> | |
923 <property name="MemberName" /> | |
924 <property name="LabelProp" translatable="yes">Required Equipment:</property> | |
925 </widget> | |
926 <packing> | |
927 <property name="AutoSize">True</property> | |
928 <property name="XOptions">Fill</property> | |
929 <property name="YOptions">Fill</property> | |
930 <property name="XExpand">False</property> | |
931 <property name="XFill">True</property> | |
932 <property name="XShrink">False</property> | |
933 <property name="YExpand">False</property> | |
934 <property name="YFill">True</property> | |
935 <property name="YShrink">False</property> | |
936 </packing> | |
937 </child> | |
938 <child> | |
939 <widget class="Gtk.VBox" id="vbox2"> | |
940 <property name="MemberName" /> | |
941 <property name="Spacing">6</property> | |
942 <child> | |
943 <widget class="Gtk.Button" id="bttnReplaceRequired"> | |
944 <property name="MemberName" /> | |
945 <property name="CanFocus">True</property> | |
946 <property name="Type">TextOnly</property> | |
947 <property name="Label" translatable="yes">Replace</property> | |
948 <property name="UseUnderline">True</property> | |
949 </widget> | |
950 <packing> | |
951 <property name="Position">0</property> | |
952 <property name="AutoSize">True</property> | |
953 <property name="Expand">False</property> | |
954 <property name="Fill">False</property> | |
955 </packing> | |
956 </child> | |
957 <child> | |
958 <widget class="Gtk.Button" id="bttnEditRequired"> | |
959 <property name="MemberName" /> | |
960 <property name="CanFocus">True</property> | |
961 <property name="Type">TextOnly</property> | |
962 <property name="Label" translatable="yes">Edit</property> | |
963 <property name="UseUnderline">True</property> | |
964 </widget> | |
965 <packing> | |
966 <property name="Position">1</property> | |
967 <property name="AutoSize">True</property> | |
968 <property name="Expand">False</property> | |
969 <property name="Fill">False</property> | |
970 </packing> | |
971 </child> | |
972 <child> | |
973 <placeholder /> | |
974 </child> | |
975 </widget> | |
976 <packing> | |
977 <property name="LeftAttach">2</property> | |
978 <property name="RightAttach">3</property> | |
979 <property name="AutoSize">True</property> | |
980 <property name="XOptions">Fill</property> | |
981 <property name="YOptions">Fill</property> | |
982 <property name="XExpand">False</property> | |
983 <property name="XFill">True</property> | |
984 <property name="XShrink">False</property> | |
985 <property name="YExpand">False</property> | |
986 <property name="YFill">True</property> | |
987 <property name="YShrink">False</property> | |
988 </packing> | |
989 </child> | |
990 <child> | |
991 <widget class="Gtk.VBox" id="vbox3"> | |
992 <property name="MemberName" /> | |
993 <property name="Spacing">6</property> | |
994 <child> | |
995 <widget class="Gtk.Button" id="bttnAddOptional"> | |
996 <property name="MemberName" /> | |
997 <property name="CanFocus">True</property> | |
998 <property name="Type">TextOnly</property> | |
999 <property name="Label" translatable="yes">Add</property> | |
1000 <property name="UseUnderline">True</property> | |
1001 </widget> | |
1002 <packing> | |
1003 <property name="Position">0</property> | |
1004 <property name="AutoSize">True</property> | |
1005 <property name="Expand">False</property> | |
1006 <property name="Fill">False</property> | |
1007 </packing> | |
1008 </child> | |
1009 <child> | |
1010 <widget class="Gtk.Button" id="bttnEditOptional"> | |
1011 <property name="MemberName" /> | |
1012 <property name="CanFocus">True</property> | |
1013 <property name="Type">TextOnly</property> | |
1014 <property name="Label" translatable="yes">Edit</property> | |
1015 <property name="UseUnderline">True</property> | |
1016 </widget> | |
1017 <packing> | |
1018 <property name="Position">1</property> | |
1019 <property name="AutoSize">True</property> | |
1020 <property name="Expand">False</property> | |
1021 <property name="Fill">False</property> | |
1022 </packing> | |
1023 </child> | |
1024 <child> | |
1025 <widget class="Gtk.Button" id="bttnRemove"> | |
1026 <property name="MemberName" /> | |
1027 <property name="CanFocus">True</property> | |
1028 <property name="Type">TextOnly</property> | |
1029 <property name="Label" translatable="yes">Remove</property> | |
1030 <property name="UseUnderline">True</property> | |
1031 </widget> | |
1032 <packing> | |
1033 <property name="Position">2</property> | |
1034 <property name="AutoSize">True</property> | |
1035 <property name="Expand">False</property> | |
1036 <property name="Fill">False</property> | |
1037 </packing> | |
1038 </child> | |
1039 </widget> | |
1040 <packing> | |
1041 <property name="TopAttach">1</property> | |
1042 <property name="BottomAttach">2</property> | |
1043 <property name="LeftAttach">2</property> | |
1044 <property name="RightAttach">3</property> | |
1045 <property name="AutoSize">True</property> | |
1046 <property name="XOptions">Fill</property> | |
1047 <property name="YOptions">Fill</property> | |
1048 <property name="XExpand">False</property> | |
1049 <property name="XFill">True</property> | |
1050 <property name="XShrink">False</property> | |
1051 <property name="YExpand">False</property> | |
1052 <property name="YFill">True</property> | |
1053 <property name="YShrink">False</property> | |
1054 </packing> | |
1055 </child> | |
1056 </widget> | |
1057 <packing> | |
1058 <property name="Position">3</property> | |
1059 <property name="AutoSize">True</property> | |
1060 <property name="Expand">False</property> | |
1061 <property name="Fill">False</property> | |
1062 </packing> | |
1063 </child> | |
1064 <child> | |
1065 <widget class="Gtk.HBox" id="hbox2"> | |
1066 <property name="MemberName" /> | |
1067 <property name="Spacing">6</property> | |
1068 <child> | |
1069 <placeholder /> | |
1070 </child> | |
1071 <child> | |
1072 <placeholder /> | |
1073 </child> | |
1074 <child> | |
1075 <placeholder /> | |
1076 </child> | |
1077 </widget> | |
1078 <packing> | |
1079 <property name="Position">4</property> | |
1080 <property name="AutoSize">True</property> | |
1081 </packing> | |
1082 </child> | |
1083 </widget> | |
1084 </child> | |
1085 </widget> | |
1086 </stetic-interface> |