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