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