comparison 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
comparison
equal deleted inserted replaced
137:5b92d2be69d8 138:33962c2ef550
1
2 // This file has been generated by the GUI designer. Do not modify.
3 namespace IBBoard.WarFoundry.GUI.GTK
4 {
5 public partial class FrmEditArmy
6 {
7 private global::Gtk.Table table1;
8 private global::Gtk.HBox hbox2;
9 private global::Gtk.SpinButton sbPointsValue;
10 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblArmyName;
11 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblArmySize;
12 private global::Gtk.Entry txtArmyName;
13 private global::Gtk.Button buttonCancel;
14 private global::Gtk.Button buttonOk;
15
16 protected virtual void Build ()
17 {
18 global::Stetic.Gui.Initialize (this);
19 // Widget IBBoard.WarFoundry.GUI.GTK.FrmEditArmy
20 this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmEditArmy";
21 this.WindowPosition = ((global::Gtk.WindowPosition)(4));
22 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmEditArmy.VBox
23 global::Gtk.VBox w1 = this.VBox;
24 w1.Name = "dialog1_VBox";
25 w1.BorderWidth = ((uint)(2));
26 // Container child dialog1_VBox.Gtk.Box+BoxChild
27 this.table1 = new global::Gtk.Table (((uint)(2)), ((uint)(2)), false);
28 this.table1.Name = "table1";
29 this.table1.RowSpacing = ((uint)(6));
30 this.table1.ColumnSpacing = ((uint)(6));
31 // Container child table1.Gtk.Table+TableChild
32 this.hbox2 = new global::Gtk.HBox ();
33 this.hbox2.Name = "hbox2";
34 // Container child hbox2.Gtk.Box+BoxChild
35 this.sbPointsValue = new global::Gtk.SpinButton (0, 2000000000, 100);
36 this.sbPointsValue.WidthRequest = 150;
37 this.sbPointsValue.CanFocus = true;
38 this.sbPointsValue.Name = "sbPointsValue";
39 this.sbPointsValue.Adjustment.PageIncrement = 1000;
40 this.sbPointsValue.ClimbRate = 100;
41 this.sbPointsValue.Numeric = true;
42 this.sbPointsValue.Value = 1000;
43 this.hbox2.Add (this.sbPointsValue);
44 global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.sbPointsValue]));
45 w2.Position = 0;
46 w2.Expand = false;
47 w2.Fill = false;
48 this.table1.Add (this.hbox2);
49 global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1 [this.hbox2]));
50 w3.TopAttach = ((uint)(1));
51 w3.BottomAttach = ((uint)(2));
52 w3.LeftAttach = ((uint)(1));
53 w3.RightAttach = ((uint)(2));
54 w3.YOptions = ((global::Gtk.AttachOptions)(4));
55 // Container child table1.Gtk.Table+TableChild
56 this.lblArmyName = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel ();
57 this.lblArmyName.Name = "lblArmyName";
58 this.lblArmyName.LabelProp = global::Mono.Unix.Catalog.GetString ("army name:");
59 this.table1.Add (this.lblArmyName);
60 global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1 [this.lblArmyName]));
61 w4.XOptions = ((global::Gtk.AttachOptions)(4));
62 w4.YOptions = ((global::Gtk.AttachOptions)(4));
63 // Container child table1.Gtk.Table+TableChild
64 this.lblArmySize = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel ();
65 this.lblArmySize.Name = "lblArmySize";
66 this.lblArmySize.LabelProp = global::Mono.Unix.Catalog.GetString ("army size:");
67 this.table1.Add (this.lblArmySize);
68 global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1 [this.lblArmySize]));
69 w5.TopAttach = ((uint)(1));
70 w5.BottomAttach = ((uint)(2));
71 w5.XOptions = ((global::Gtk.AttachOptions)(4));
72 w5.YOptions = ((global::Gtk.AttachOptions)(4));
73 // Container child table1.Gtk.Table+TableChild
74 this.txtArmyName = new global::Gtk.Entry ();
75 this.txtArmyName.CanFocus = true;
76 this.txtArmyName.Name = "txtArmyName";
77 this.txtArmyName.IsEditable = true;
78 this.txtArmyName.InvisibleChar = '●';
79 this.table1.Add (this.txtArmyName);
80 global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1 [this.txtArmyName]));
81 w6.LeftAttach = ((uint)(1));
82 w6.RightAttach = ((uint)(2));
83 w6.YOptions = ((global::Gtk.AttachOptions)(4));
84 w1.Add (this.table1);
85 global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(w1 [this.table1]));
86 w7.Position = 0;
87 w7.Expand = false;
88 w7.Fill = false;
89 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmEditArmy.ActionArea
90 global::Gtk.HButtonBox w8 = this.ActionArea;
91 w8.Name = "dialog1_ActionArea";
92 w8.Spacing = 10;
93 w8.BorderWidth = ((uint)(5));
94 w8.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
95 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
96 this.buttonCancel = new global::Gtk.Button ();
97 this.buttonCancel.CanDefault = true;
98 this.buttonCancel.CanFocus = true;
99 this.buttonCancel.Name = "buttonCancel";
100 this.buttonCancel.UseStock = true;
101 this.buttonCancel.UseUnderline = true;
102 this.buttonCancel.Label = "gtk-cancel";
103 this.AddActionWidget (this.buttonCancel, -6);
104 global::Gtk.ButtonBox.ButtonBoxChild w9 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8 [this.buttonCancel]));
105 w9.Expand = false;
106 w9.Fill = false;
107 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
108 this.buttonOk = new global::Gtk.Button ();
109 this.buttonOk.CanDefault = true;
110 this.buttonOk.CanFocus = true;
111 this.buttonOk.Name = "buttonOk";
112 this.buttonOk.UseStock = true;
113 this.buttonOk.UseUnderline = true;
114 this.buttonOk.Label = "gtk-ok";
115 this.AddActionWidget (this.buttonOk, -5);
116 global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8 [this.buttonOk]));
117 w10.Position = 1;
118 w10.Expand = false;
119 w10.Fill = false;
120 if ((this.Child != null)) {
121 this.Child.ShowAll ();
122 }
123 this.DefaultWidth = 400;
124 this.DefaultHeight = 135;
125 this.Show ();
126 this.buttonCancel.Clicked += new global::System.EventHandler (this.OnButtonCancelClicked);
127 this.buttonOk.Clicked += new global::System.EventHandler (this.OnButtonOkClicked);
128 }
129 }
130 }