comparison gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmMainWindow.cs @ 141:1ce4fe9ae3c1

Re #344: Show unit requirement failures * Add an initial way to access requirement failures after adding units
author IBBoard <dev@ibboard.co.uk>
date Mon, 17 Oct 2011 20:53:07 +0100
parents 2b9fabd65309
children 135491fd1830
comparison
equal deleted inserted replaced
140:2b9fabd65309 141:1ce4fe9ae3c1
33 private global::Gtk.Action miEditArmy; 33 private global::Gtk.Action miEditArmy;
34 private global::Gtk.VBox vbox1; 34 private global::Gtk.VBox vbox1;
35 private global::Gtk.MenuBar menubar1; 35 private global::Gtk.MenuBar menubar1;
36 private global::Gtk.Toolbar toolbar; 36 private global::Gtk.Toolbar toolbar;
37 private global::Gtk.Statusbar statusbar; 37 private global::Gtk.Statusbar statusbar;
38 private global::Gtk.EventBox validationEventbox;
38 private global::Gtk.Label lblValidationWarning; 39 private global::Gtk.Label lblValidationWarning;
39 private global::Gtk.HPaned mainContent; 40 private global::Gtk.HPaned mainContent;
40 private global::Gtk.TreeView treeUnits; 41 private global::Gtk.TreeView treeUnits;
41 private global::Gtk.Notebook unitsNotebook; 42 private global::Gtk.Notebook unitsNotebook;
42 43
162 this.statusbar = new global::Gtk.Statusbar (); 163 this.statusbar = new global::Gtk.Statusbar ();
163 this.statusbar.Name = "statusbar"; 164 this.statusbar.Name = "statusbar";
164 this.statusbar.Spacing = 6; 165 this.statusbar.Spacing = 6;
165 this.statusbar.BorderWidth = ((uint)(1)); 166 this.statusbar.BorderWidth = ((uint)(1));
166 // Container child statusbar.Gtk.Box+BoxChild 167 // Container child statusbar.Gtk.Box+BoxChild
168 this.validationEventbox = new global::Gtk.EventBox ();
169 this.validationEventbox.Name = "validationEventbox";
170 // Container child validationEventbox.Gtk.Container+ContainerChild
167 this.lblValidationWarning = new global::Gtk.Label (); 171 this.lblValidationWarning = new global::Gtk.Label ();
168 this.lblValidationWarning.Name = "lblValidationWarning"; 172 this.lblValidationWarning.Name = "lblValidationWarning";
169 this.statusbar.Add (this.lblValidationWarning); 173 this.validationEventbox.Add (this.lblValidationWarning);
170 global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.statusbar [this.lblValidationWarning])); 174 this.statusbar.Add (this.validationEventbox);
171 w4.PackType = ((global::Gtk.PackType)(1)); 175 global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.statusbar [this.validationEventbox]));
172 w4.Position = 1; 176 w5.Position = 1;
173 w4.Expand = false;
174 w4.Fill = false;
175 this.vbox1.Add (this.statusbar);
176 global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.statusbar]));
177 w5.PackType = ((global::Gtk.PackType)(1));
178 w5.Position = 2;
179 w5.Expand = false; 177 w5.Expand = false;
180 w5.Fill = false; 178 w5.Fill = false;
179 this.vbox1.Add (this.statusbar);
180 global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.statusbar]));
181 w6.PackType = ((global::Gtk.PackType)(1));
182 w6.Position = 2;
183 w6.Expand = false;
184 w6.Fill = false;
181 // Container child vbox1.Gtk.Box+BoxChild 185 // Container child vbox1.Gtk.Box+BoxChild
182 this.mainContent = new global::Gtk.HPaned (); 186 this.mainContent = new global::Gtk.HPaned ();
183 this.mainContent.CanFocus = true; 187 this.mainContent.CanFocus = true;
184 this.mainContent.Name = "mainContent"; 188 this.mainContent.Name = "mainContent";
185 this.mainContent.Position = 180; 189 this.mainContent.Position = 180;
186 // Container child mainContent.Gtk.Paned+PanedChild 190 // Container child mainContent.Gtk.Paned+PanedChild
187 this.treeUnits = new global::Gtk.TreeView (); 191 this.treeUnits = new global::Gtk.TreeView ();
188 this.treeUnits.CanFocus = true; 192 this.treeUnits.CanFocus = true;
189 this.treeUnits.Name = "treeUnits"; 193 this.treeUnits.Name = "treeUnits";
190 this.mainContent.Add (this.treeUnits); 194 this.mainContent.Add (this.treeUnits);
191 global::Gtk.Paned.PanedChild w6 = ((global::Gtk.Paned.PanedChild)(this.mainContent [this.treeUnits])); 195 global::Gtk.Paned.PanedChild w7 = ((global::Gtk.Paned.PanedChild)(this.mainContent [this.treeUnits]));
192 w6.Resize = false; 196 w7.Resize = false;
193 // Container child mainContent.Gtk.Paned+PanedChild 197 // Container child mainContent.Gtk.Paned+PanedChild
194 this.unitsNotebook = new global::Gtk.Notebook (); 198 this.unitsNotebook = new global::Gtk.Notebook ();
195 this.unitsNotebook.CanFocus = true; 199 this.unitsNotebook.CanFocus = true;
196 this.unitsNotebook.Name = "unitsNotebook"; 200 this.unitsNotebook.Name = "unitsNotebook";
197 this.unitsNotebook.CurrentPage = -1; 201 this.unitsNotebook.CurrentPage = -1;
198 this.unitsNotebook.Scrollable = true; 202 this.unitsNotebook.Scrollable = true;
199 this.mainContent.Add (this.unitsNotebook); 203 this.mainContent.Add (this.unitsNotebook);
200 global::Gtk.Paned.PanedChild w7 = ((global::Gtk.Paned.PanedChild)(this.mainContent [this.unitsNotebook])); 204 global::Gtk.Paned.PanedChild w8 = ((global::Gtk.Paned.PanedChild)(this.mainContent [this.unitsNotebook]));
201 w7.Shrink = false; 205 w8.Shrink = false;
202 this.vbox1.Add (this.mainContent); 206 this.vbox1.Add (this.mainContent);
203 global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.mainContent])); 207 global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.mainContent]));
204 w8.PackType = ((global::Gtk.PackType)(1)); 208 w9.PackType = ((global::Gtk.PackType)(1));
205 w8.Position = 3; 209 w9.Position = 3;
206 this.Add (this.vbox1); 210 this.Add (this.vbox1);
207 if ((this.Child != null)) { 211 if ((this.Child != null)) {
208 this.Child.ShowAll (); 212 this.Child.ShowAll ();
209 } 213 }
210 this.DefaultWidth = 832; 214 this.DefaultWidth = 832;
230 this.miEditArmy.Activated += new global::System.EventHandler (this.OnMiEditArmyActivated); 234 this.miEditArmy.Activated += new global::System.EventHandler (this.OnMiEditArmyActivated);
231 this.treeUnits.RowActivated += new global::Gtk.RowActivatedHandler (this.ArmyRowActivated); 235 this.treeUnits.RowActivated += new global::Gtk.RowActivatedHandler (this.ArmyRowActivated);
232 this.treeUnits.PopupMenu += new global::Gtk.PopupMenuHandler (this.OnTreeUnitsPopupMenu); 236 this.treeUnits.PopupMenu += new global::Gtk.PopupMenuHandler (this.OnTreeUnitsPopupMenu);
233 this.treeUnits.ButtonPressEvent += new global::Gtk.ButtonPressEventHandler (this.UnitTreeButtonPressed); 237 this.treeUnits.ButtonPressEvent += new global::Gtk.ButtonPressEventHandler (this.UnitTreeButtonPressed);
234 this.unitsNotebook.Removed += new global::Gtk.RemovedHandler (this.NotebookPageRemoved); 238 this.unitsNotebook.Removed += new global::Gtk.RemovedHandler (this.NotebookPageRemoved);
239 this.validationEventbox.ButtonReleaseEvent += new global::Gtk.ButtonReleaseEventHandler (this.OnLblValidationWarningButtonReleaseEvent);
235 } 240 }
236 } 241 }
237 } 242 }