view gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmEditArmy.cs @ 138:33962c2ef550

Re #326: Make army names and sizes modifiable after creation * Add army editing form * Hook up to events to update main window * Add edit army option to Edit menu
author IBBoard <dev@ibboard.co.uk>
date Tue, 11 Oct 2011 21:05:10 +0100
parents
children 2b9fabd65309
line wrap: on
line source


// This file has been generated by the GUI designer. Do not modify.
namespace IBBoard.WarFoundry.GUI.GTK
{
	public partial class FrmEditArmy
	{
		private global::Gtk.Table table1;
		private global::Gtk.HBox hbox2;
		private global::Gtk.SpinButton sbPointsValue;
		private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblArmyName;
		private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblArmySize;
		private global::Gtk.Entry txtArmyName;
		private global::Gtk.Button buttonCancel;
		private global::Gtk.Button buttonOk;
		
		protected virtual void Build ()
		{
			global::Stetic.Gui.Initialize (this);
			// Widget IBBoard.WarFoundry.GUI.GTK.FrmEditArmy
			this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmEditArmy";
			this.WindowPosition = ((global::Gtk.WindowPosition)(4));
			// Internal child IBBoard.WarFoundry.GUI.GTK.FrmEditArmy.VBox
			global::Gtk.VBox w1 = this.VBox;
			w1.Name = "dialog1_VBox";
			w1.BorderWidth = ((uint)(2));
			// Container child dialog1_VBox.Gtk.Box+BoxChild
			this.table1 = new global::Gtk.Table (((uint)(2)), ((uint)(2)), false);
			this.table1.Name = "table1";
			this.table1.RowSpacing = ((uint)(6));
			this.table1.ColumnSpacing = ((uint)(6));
			// Container child table1.Gtk.Table+TableChild
			this.hbox2 = new global::Gtk.HBox ();
			this.hbox2.Name = "hbox2";
			// Container child hbox2.Gtk.Box+BoxChild
			this.sbPointsValue = new global::Gtk.SpinButton (0, 2000000000, 100);
			this.sbPointsValue.WidthRequest = 150;
			this.sbPointsValue.CanFocus = true;
			this.sbPointsValue.Name = "sbPointsValue";
			this.sbPointsValue.Adjustment.PageIncrement = 1000;
			this.sbPointsValue.ClimbRate = 100;
			this.sbPointsValue.Numeric = true;
			this.sbPointsValue.Value = 1000;
			this.hbox2.Add (this.sbPointsValue);
			global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.sbPointsValue]));
			w2.Position = 0;
			w2.Expand = false;
			w2.Fill = false;
			this.table1.Add (this.hbox2);
			global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1 [this.hbox2]));
			w3.TopAttach = ((uint)(1));
			w3.BottomAttach = ((uint)(2));
			w3.LeftAttach = ((uint)(1));
			w3.RightAttach = ((uint)(2));
			w3.YOptions = ((global::Gtk.AttachOptions)(4));
			// Container child table1.Gtk.Table+TableChild
			this.lblArmyName = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel ();
			this.lblArmyName.Name = "lblArmyName";
			this.lblArmyName.LabelProp = global::Mono.Unix.Catalog.GetString ("army name:");
			this.table1.Add (this.lblArmyName);
			global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1 [this.lblArmyName]));
			w4.XOptions = ((global::Gtk.AttachOptions)(4));
			w4.YOptions = ((global::Gtk.AttachOptions)(4));
			// Container child table1.Gtk.Table+TableChild
			this.lblArmySize = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel ();
			this.lblArmySize.Name = "lblArmySize";
			this.lblArmySize.LabelProp = global::Mono.Unix.Catalog.GetString ("army size:");
			this.table1.Add (this.lblArmySize);
			global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1 [this.lblArmySize]));
			w5.TopAttach = ((uint)(1));
			w5.BottomAttach = ((uint)(2));
			w5.XOptions = ((global::Gtk.AttachOptions)(4));
			w5.YOptions = ((global::Gtk.AttachOptions)(4));
			// Container child table1.Gtk.Table+TableChild
			this.txtArmyName = new global::Gtk.Entry ();
			this.txtArmyName.CanFocus = true;
			this.txtArmyName.Name = "txtArmyName";
			this.txtArmyName.IsEditable = true;
			this.txtArmyName.InvisibleChar = '●';
			this.table1.Add (this.txtArmyName);
			global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1 [this.txtArmyName]));
			w6.LeftAttach = ((uint)(1));
			w6.RightAttach = ((uint)(2));
			w6.YOptions = ((global::Gtk.AttachOptions)(4));
			w1.Add (this.table1);
			global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(w1 [this.table1]));
			w7.Position = 0;
			w7.Expand = false;
			w7.Fill = false;
			// Internal child IBBoard.WarFoundry.GUI.GTK.FrmEditArmy.ActionArea
			global::Gtk.HButtonBox w8 = this.ActionArea;
			w8.Name = "dialog1_ActionArea";
			w8.Spacing = 10;
			w8.BorderWidth = ((uint)(5));
			w8.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
			// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
			this.buttonCancel = new global::Gtk.Button ();
			this.buttonCancel.CanDefault = true;
			this.buttonCancel.CanFocus = true;
			this.buttonCancel.Name = "buttonCancel";
			this.buttonCancel.UseStock = true;
			this.buttonCancel.UseUnderline = true;
			this.buttonCancel.Label = "gtk-cancel";
			this.AddActionWidget (this.buttonCancel, -6);
			global::Gtk.ButtonBox.ButtonBoxChild w9 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8 [this.buttonCancel]));
			w9.Expand = false;
			w9.Fill = false;
			// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
			this.buttonOk = new global::Gtk.Button ();
			this.buttonOk.CanDefault = true;
			this.buttonOk.CanFocus = true;
			this.buttonOk.Name = "buttonOk";
			this.buttonOk.UseStock = true;
			this.buttonOk.UseUnderline = true;
			this.buttonOk.Label = "gtk-ok";
			this.AddActionWidget (this.buttonOk, -5);
			global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8 [this.buttonOk]));
			w10.Position = 1;
			w10.Expand = false;
			w10.Fill = false;
			if ((this.Child != null)) {
				this.Child.ShowAll ();
			}
			this.DefaultWidth = 400;
			this.DefaultHeight = 135;
			this.Show ();
			this.buttonCancel.Clicked += new global::System.EventHandler (this.OnButtonCancelClicked);
			this.buttonOk.Clicked += new global::System.EventHandler (this.OnButtonOkClicked);
		}
	}
}