Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
comparison gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmMainWindow.cs @ 99:8777e4f64d8e
Fixes #335: Show current points total in status bar
* Add label to status bar and set the text on points value change
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 16 Jan 2011 19:50:48 +0000 |
parents | ea4069bbe6e9 |
children | 23b1c3bdc525 |
comparison
equal
deleted
inserted
replaced
98:fac0636ae13b | 99:8777e4f64d8e |
---|---|
34 private global::Gtk.Toolbar toolbar; | 34 private global::Gtk.Toolbar toolbar; |
35 private global::Gtk.HPaned hpaned2; | 35 private global::Gtk.HPaned hpaned2; |
36 private global::Gtk.TreeView treeUnits; | 36 private global::Gtk.TreeView treeUnits; |
37 private global::Gtk.Notebook unitsNotebook; | 37 private global::Gtk.Notebook unitsNotebook; |
38 private global::Gtk.Statusbar statusbar1; | 38 private global::Gtk.Statusbar statusbar1; |
39 private global::Gtk.Label lblTotalPoints; | |
39 | 40 |
40 protected virtual void Build() | 41 protected virtual void Build() |
41 { | 42 { |
42 global::Stetic.Gui.Initialize(this); | 43 global::Stetic.Gui.Initialize(this); |
43 // Widget IBBoard.WarFoundry.GUI.GTK.FrmMainWindow | 44 // Widget IBBoard.WarFoundry.GUI.GTK.FrmMainWindow |
171 w6.Position = 2; | 172 w6.Position = 2; |
172 // Container child vbox1.Gtk.Box+BoxChild | 173 // Container child vbox1.Gtk.Box+BoxChild |
173 this.statusbar1 = new global::Gtk.Statusbar(); | 174 this.statusbar1 = new global::Gtk.Statusbar(); |
174 this.statusbar1.Name = "statusbar1"; | 175 this.statusbar1.Name = "statusbar1"; |
175 this.statusbar1.Spacing = 2; | 176 this.statusbar1.Spacing = 2; |
176 this.vbox1.Add(this.statusbar1); | 177 // Container child statusbar1.Gtk.Box+BoxChild |
177 global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.statusbar1])); | 178 this.lblTotalPoints = new global::Gtk.Label(); |
178 w7.Position = 3; | 179 this.lblTotalPoints.Name = "lblTotalPoints"; |
180 this.statusbar1.Add(this.lblTotalPoints); | |
181 global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.statusbar1[this.lblTotalPoints])); | |
182 w7.Position = 2; | |
179 w7.Expand = false; | 183 w7.Expand = false; |
180 w7.Fill = false; | 184 w7.Fill = false; |
185 this.vbox1.Add(this.statusbar1); | |
186 global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.statusbar1])); | |
187 w8.Position = 3; | |
188 w8.Expand = false; | |
189 w8.Fill = false; | |
181 this.Add(this.vbox1); | 190 this.Add(this.vbox1); |
182 if ((this.Child != null)) | 191 if ((this.Child != null)) |
183 { | 192 { |
184 this.Child.ShowAll(); | 193 this.Child.ShowAll(); |
185 } | 194 } |