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