Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
comparison gtk-gui/gui.stetic @ 140:2b9fabd65309
Re #344: Show unit requirement failures
* Use status bar properly
* Add initial validation label
* Make use of new event from Army to see when things changed
Also:
* Commit some automated changes
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 15 Oct 2011 16:07:13 +0100 |
parents | 33962c2ef550 |
children | 1ce4fe9ae3c1 |
comparison
equal
deleted
inserted
replaced
139:d4b726cec12c | 140:2b9fabd65309 |
---|---|
184 <property name="Title" translatable="yes">MainWindow</property> | 184 <property name="Title" translatable="yes">MainWindow</property> |
185 <property name="Icon">resource:App.ico</property> | 185 <property name="Icon">resource:App.ico</property> |
186 <child> | 186 <child> |
187 <widget class="Gtk.VBox" id="vbox1"> | 187 <widget class="Gtk.VBox" id="vbox1"> |
188 <property name="MemberName" /> | 188 <property name="MemberName" /> |
189 <property name="Spacing">0</property> | |
189 <child> | 190 <child> |
190 <widget class="Gtk.MenuBar" id="menubar1"> | 191 <widget class="Gtk.MenuBar" id="menubar1"> |
191 <property name="MemberName" /> | 192 <property name="MemberName" /> |
192 <node name="menubar1" type="Menubar"> | 193 <node name="menubar1" type="Menubar"> |
193 <node type="Menu" action="menuFile"> | 194 <node type="Menu" action="menuFile"> |
248 <property name="Expand">False</property> | 249 <property name="Expand">False</property> |
249 <property name="Fill">False</property> | 250 <property name="Fill">False</property> |
250 </packing> | 251 </packing> |
251 </child> | 252 </child> |
252 <child> | 253 <child> |
253 <widget class="Gtk.HPaned" id="hpaned2"> | 254 <widget class="Gtk.Statusbar" id="statusbar"> |
254 <property name="MemberName" /> | 255 <property name="MemberName" /> |
255 <property name="Visible">False</property> | 256 <property name="Spacing">6</property> |
257 <property name="BorderWidth">1</property> | |
258 <child> | |
259 <widget class="Gtk.Label" id="lblValidationWarning"> | |
260 <property name="MemberName" /> | |
261 </widget> | |
262 <packing> | |
263 <property name="PackType">End</property> | |
264 <property name="Position">1</property> | |
265 <property name="AutoSize">True</property> | |
266 <property name="Expand">False</property> | |
267 <property name="Fill">False</property> | |
268 </packing> | |
269 </child> | |
270 </widget> | |
271 <packing> | |
272 <property name="PackType">End</property> | |
273 <property name="Position">2</property> | |
274 <property name="AutoSize">True</property> | |
275 <property name="Expand">False</property> | |
276 <property name="Fill">False</property> | |
277 </packing> | |
278 </child> | |
279 <child> | |
280 <widget class="Gtk.HPaned" id="mainContent"> | |
281 <property name="MemberName" /> | |
256 <property name="CanFocus">True</property> | 282 <property name="CanFocus">True</property> |
257 <property name="Position">178</property> | 283 <property name="Position">180</property> |
258 <child> | 284 <child> |
259 <widget class="Gtk.TreeView" id="treeUnits"> | 285 <widget class="Gtk.TreeView" id="treeUnits"> |
260 <property name="MemberName" /> | 286 <property name="MemberName" /> |
287 <property name="Visible">False</property> | |
261 <property name="CanFocus">True</property> | 288 <property name="CanFocus">True</property> |
262 <signal name="RowActivated" handler="ArmyRowActivated" /> | 289 <signal name="RowActivated" handler="ArmyRowActivated" /> |
263 <signal name="PopupMenu" handler="OnTreeUnitsPopupMenu" /> | 290 <signal name="PopupMenu" handler="OnTreeUnitsPopupMenu" /> |
264 <signal name="ButtonPressEvent" handler="UnitTreeButtonPressed" /> | 291 <signal name="ButtonPressEvent" handler="UnitTreeButtonPressed" /> |
265 </widget> | 292 </widget> |
279 <property name="Shrink">False</property> | 306 <property name="Shrink">False</property> |
280 </packing> | 307 </packing> |
281 </child> | 308 </child> |
282 </widget> | 309 </widget> |
283 <packing> | 310 <packing> |
284 <property name="Position">2</property> | 311 <property name="PackType">End</property> |
285 <property name="AutoSize">True</property> | |
286 </packing> | |
287 </child> | |
288 <child> | |
289 <widget class="Gtk.Statusbar" id="statusbar1"> | |
290 <property name="MemberName" /> | |
291 <property name="Spacing">2</property> | |
292 <child> | |
293 <placeholder /> | |
294 </child> | |
295 <child> | |
296 <widget class="Gtk.Label" id="lblTotalPoints"> | |
297 <property name="MemberName" /> | |
298 </widget> | |
299 <packing> | |
300 <property name="Position">2</property> | |
301 <property name="AutoSize">True</property> | |
302 <property name="Expand">False</property> | |
303 <property name="Fill">False</property> | |
304 </packing> | |
305 </child> | |
306 </widget> | |
307 <packing> | |
308 <property name="Position">3</property> | 312 <property name="Position">3</property> |
309 <property name="AutoSize">True</property> | 313 <property name="AutoSize">False</property> |
310 <property name="Expand">False</property> | |
311 <property name="Fill">False</property> | |
312 </packing> | 314 </packing> |
313 </child> | 315 </child> |
314 </widget> | 316 </widget> |
315 </child> | 317 </child> |
316 </widget> | 318 </widget> |
369 </packing> | 371 </packing> |
370 </child> | 372 </child> |
371 <child> | 373 <child> |
372 <widget class="Gtk.HBox" id="hbox2"> | 374 <widget class="Gtk.HBox" id="hbox2"> |
373 <property name="MemberName" /> | 375 <property name="MemberName" /> |
376 <property name="Spacing">0</property> | |
374 <child> | 377 <child> |
375 <widget class="Gtk.SpinButton" id="sbPointsValue"> | 378 <widget class="Gtk.SpinButton" id="sbPointsValue"> |
376 <property name="MemberName" /> | 379 <property name="MemberName" /> |
377 <property name="WidthRequest">150</property> | 380 <property name="WidthRequest">150</property> |
378 <property name="CanFocus">True</property> | 381 <property name="CanFocus">True</property> |
2637 <property name="RowSpacing">6</property> | 2640 <property name="RowSpacing">6</property> |
2638 <property name="ColumnSpacing">6</property> | 2641 <property name="ColumnSpacing">6</property> |
2639 <child> | 2642 <child> |
2640 <widget class="Gtk.HBox" id="hbox2"> | 2643 <widget class="Gtk.HBox" id="hbox2"> |
2641 <property name="MemberName" /> | 2644 <property name="MemberName" /> |
2645 <property name="Spacing">0</property> | |
2642 <child> | 2646 <child> |
2643 <widget class="Gtk.SpinButton" id="sbPointsValue"> | 2647 <widget class="Gtk.SpinButton" id="sbPointsValue"> |
2644 <property name="MemberName" /> | 2648 <property name="MemberName" /> |
2645 <property name="WidthRequest">150</property> | 2649 <property name="WidthRequest">150</property> |
2646 <property name="CanFocus">True</property> | 2650 <property name="CanFocus">True</property> |