diff 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
line wrap: on
line diff
--- a/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmMainWindow.cs	Sat Oct 15 16:07:13 2011 +0100
+++ b/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmMainWindow.cs	Mon Oct 17 20:53:07 2011 +0100
@@ -35,6 +35,7 @@
 		private global::Gtk.MenuBar menubar1;
 		private global::Gtk.Toolbar toolbar;
 		private global::Gtk.Statusbar statusbar;
+		private global::Gtk.EventBox validationEventbox;
 		private global::Gtk.Label lblValidationWarning;
 		private global::Gtk.HPaned mainContent;
 		private global::Gtk.TreeView treeUnits;
@@ -164,20 +165,23 @@
 			this.statusbar.Spacing = 6;
 			this.statusbar.BorderWidth = ((uint)(1));
 			// Container child statusbar.Gtk.Box+BoxChild
+			this.validationEventbox = new global::Gtk.EventBox ();
+			this.validationEventbox.Name = "validationEventbox";
+			// Container child validationEventbox.Gtk.Container+ContainerChild
 			this.lblValidationWarning = new global::Gtk.Label ();
 			this.lblValidationWarning.Name = "lblValidationWarning";
-			this.statusbar.Add (this.lblValidationWarning);
-			global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.statusbar [this.lblValidationWarning]));
-			w4.PackType = ((global::Gtk.PackType)(1));
-			w4.Position = 1;
-			w4.Expand = false;
-			w4.Fill = false;
-			this.vbox1.Add (this.statusbar);
-			global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.statusbar]));
-			w5.PackType = ((global::Gtk.PackType)(1));
-			w5.Position = 2;
+			this.validationEventbox.Add (this.lblValidationWarning);
+			this.statusbar.Add (this.validationEventbox);
+			global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.statusbar [this.validationEventbox]));
+			w5.Position = 1;
 			w5.Expand = false;
 			w5.Fill = false;
+			this.vbox1.Add (this.statusbar);
+			global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.statusbar]));
+			w6.PackType = ((global::Gtk.PackType)(1));
+			w6.Position = 2;
+			w6.Expand = false;
+			w6.Fill = false;
 			// Container child vbox1.Gtk.Box+BoxChild
 			this.mainContent = new global::Gtk.HPaned ();
 			this.mainContent.CanFocus = true;
@@ -188,8 +192,8 @@
 			this.treeUnits.CanFocus = true;
 			this.treeUnits.Name = "treeUnits";
 			this.mainContent.Add (this.treeUnits);
-			global::Gtk.Paned.PanedChild w6 = ((global::Gtk.Paned.PanedChild)(this.mainContent [this.treeUnits]));
-			w6.Resize = false;
+			global::Gtk.Paned.PanedChild w7 = ((global::Gtk.Paned.PanedChild)(this.mainContent [this.treeUnits]));
+			w7.Resize = false;
 			// Container child mainContent.Gtk.Paned+PanedChild
 			this.unitsNotebook = new global::Gtk.Notebook ();
 			this.unitsNotebook.CanFocus = true;
@@ -197,12 +201,12 @@
 			this.unitsNotebook.CurrentPage = -1;
 			this.unitsNotebook.Scrollable = true;
 			this.mainContent.Add (this.unitsNotebook);
-			global::Gtk.Paned.PanedChild w7 = ((global::Gtk.Paned.PanedChild)(this.mainContent [this.unitsNotebook]));
-			w7.Shrink = false;
+			global::Gtk.Paned.PanedChild w8 = ((global::Gtk.Paned.PanedChild)(this.mainContent [this.unitsNotebook]));
+			w8.Shrink = false;
 			this.vbox1.Add (this.mainContent);
-			global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.mainContent]));
-			w8.PackType = ((global::Gtk.PackType)(1));
-			w8.Position = 3;
+			global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.mainContent]));
+			w9.PackType = ((global::Gtk.PackType)(1));
+			w9.Position = 3;
 			this.Add (this.vbox1);
 			if ((this.Child != null)) {
 				this.Child.ShowAll ();
@@ -232,6 +236,7 @@
 			this.treeUnits.PopupMenu += new global::Gtk.PopupMenuHandler (this.OnTreeUnitsPopupMenu);
 			this.treeUnits.ButtonPressEvent += new global::Gtk.ButtonPressEventHandler (this.UnitTreeButtonPressed);
 			this.unitsNotebook.Removed += new global::Gtk.RemovedHandler (this.NotebookPageRemoved);
+			this.validationEventbox.ButtonReleaseEvent += new global::Gtk.ButtonReleaseEventHandler (this.OnLblValidationWarningButtonReleaseEvent);
 		}
 	}
 }