0
|
1 // ------------------------------------------------------------------------------
|
|
2 // <autogenerated>
|
|
3 // This code was generated by a tool.
|
|
4 // Mono Runtime Version: 2.0.50727.42
|
|
5 //
|
|
6 // Changes to this file may cause incorrect behavior and will be lost if
|
|
7 // the code is regenerated.
|
|
8 // </autogenerated>
|
|
9 // ------------------------------------------------------------------------------
|
|
10
|
|
11 namespace IBBoard.WarFoundry {
|
|
12
|
|
13
|
|
14 public partial class FrmNewArmy {
|
|
15
|
|
16 private Gtk.Table table1;
|
|
17
|
|
18 private Gtk.ScrolledWindow GtkScrolledWindow;
|
|
19
|
|
20 private Gtk.TreeView lstRaces;
|
|
21
|
|
22 private Gtk.HBox hbox2;
|
|
23
|
|
24 private Gtk.SpinButton sbPointsValue;
|
|
25
|
|
26 private Gtk.Label label1;
|
|
27
|
|
28 private Gtk.Label label2;
|
|
29
|
|
30 private Gtk.Label label3;
|
|
31
|
|
32 private Gtk.Entry txtArmyName;
|
|
33
|
|
34 private Gtk.Button bttnCancel;
|
|
35
|
|
36 private Gtk.Button bttnCreate;
|
|
37
|
|
38 protected virtual void Build() {
|
|
39 Stetic.Gui.Initialize(this);
|
|
40 // Widget IBBoard.WarFoundry.FrmNewArmy
|
|
41 this.Events = ((Gdk.EventMask)(256));
|
|
42 this.Name = "IBBoard.WarFoundry.FrmNewArmy";
|
|
43 this.Title = Mono.Unix.Catalog.GetString("Create new army");
|
|
44 this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-new", Gtk.IconSize.Menu, 16);
|
|
45 this.WindowPosition = ((Gtk.WindowPosition)(4));
|
|
46 this.SkipPagerHint = true;
|
|
47 this.SkipTaskbarHint = true;
|
|
48 this.HasSeparator = false;
|
|
49 // Internal child IBBoard.WarFoundry.FrmNewArmy.VBox
|
|
50 Gtk.VBox w1 = this.VBox;
|
|
51 w1.CanFocus = true;
|
|
52 w1.Events = ((Gdk.EventMask)(256));
|
|
53 w1.Name = "dialog_VBox";
|
|
54 w1.BorderWidth = ((uint)(2));
|
|
55 // Container child dialog_VBox.Gtk.Box+BoxChild
|
|
56 this.table1 = new Gtk.Table(((uint)(3)), ((uint)(2)), false);
|
|
57 this.table1.Name = "table1";
|
|
58 this.table1.RowSpacing = ((uint)(6));
|
|
59 this.table1.ColumnSpacing = ((uint)(6));
|
|
60 // Container child table1.Gtk.Table+TableChild
|
|
61 this.GtkScrolledWindow = new Gtk.ScrolledWindow();
|
|
62 this.GtkScrolledWindow.Name = "GtkScrolledWindow";
|
|
63 this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
|
|
64 // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
|
|
65 this.lstRaces = new Gtk.TreeView();
|
|
66 this.lstRaces.HeightRequest = 150;
|
|
67 this.lstRaces.CanFocus = true;
|
|
68 this.lstRaces.Name = "lstRaces";
|
|
69 this.lstRaces.HeadersVisible = false;
|
|
70 this.lstRaces.RulesHint = true;
|
|
71 this.lstRaces.HeadersClickable = true;
|
|
72 this.GtkScrolledWindow.Add(this.lstRaces);
|
|
73 this.table1.Add(this.GtkScrolledWindow);
|
|
74 Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow]));
|
|
75 w3.LeftAttach = ((uint)(1));
|
|
76 w3.RightAttach = ((uint)(2));
|
|
77 w3.YOptions = ((Gtk.AttachOptions)(4));
|
|
78 // Container child table1.Gtk.Table+TableChild
|
|
79 this.hbox2 = new Gtk.HBox();
|
|
80 this.hbox2.Name = "hbox2";
|
|
81 // Container child hbox2.Gtk.Box+BoxChild
|
|
82 this.sbPointsValue = new Gtk.SpinButton(0, 2000000000, 100);
|
|
83 this.sbPointsValue.WidthRequest = 150;
|
|
84 this.sbPointsValue.CanFocus = true;
|
|
85 this.sbPointsValue.Name = "sbPointsValue";
|
|
86 this.sbPointsValue.Adjustment.PageIncrement = 1000;
|
|
87 this.sbPointsValue.ClimbRate = 100;
|
|
88 this.sbPointsValue.Numeric = true;
|
|
89 this.sbPointsValue.Value = 1000;
|
|
90 this.hbox2.Add(this.sbPointsValue);
|
|
91 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox2[this.sbPointsValue]));
|
|
92 w4.Position = 0;
|
|
93 w4.Expand = false;
|
|
94 w4.Fill = false;
|
|
95 this.table1.Add(this.hbox2);
|
|
96 Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.hbox2]));
|
|
97 w5.TopAttach = ((uint)(2));
|
|
98 w5.BottomAttach = ((uint)(3));
|
|
99 w5.LeftAttach = ((uint)(1));
|
|
100 w5.RightAttach = ((uint)(2));
|
|
101 w5.YOptions = ((Gtk.AttachOptions)(4));
|
|
102 // Container child table1.Gtk.Table+TableChild
|
|
103 this.label1 = new Gtk.Label();
|
|
104 this.label1.Name = "label1";
|
|
105 this.label1.LabelProp = Mono.Unix.Catalog.GetString("Race");
|
|
106 this.table1.Add(this.label1);
|
|
107 Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.label1]));
|
|
108 w6.XOptions = ((Gtk.AttachOptions)(4));
|
|
109 w6.YOptions = ((Gtk.AttachOptions)(4));
|
|
110 // Container child table1.Gtk.Table+TableChild
|
|
111 this.label2 = new Gtk.Label();
|
|
112 this.label2.Name = "label2";
|
|
113 this.label2.LabelProp = Mono.Unix.Catalog.GetString("Army name");
|
|
114 this.table1.Add(this.label2);
|
|
115 Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.label2]));
|
|
116 w7.TopAttach = ((uint)(1));
|
|
117 w7.BottomAttach = ((uint)(2));
|
|
118 w7.XOptions = ((Gtk.AttachOptions)(4));
|
|
119 w7.YOptions = ((Gtk.AttachOptions)(4));
|
|
120 // Container child table1.Gtk.Table+TableChild
|
|
121 this.label3 = new Gtk.Label();
|
|
122 this.label3.Name = "label3";
|
|
123 this.label3.LabelProp = Mono.Unix.Catalog.GetString("Points value");
|
|
124 this.table1.Add(this.label3);
|
|
125 Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.label3]));
|
|
126 w8.TopAttach = ((uint)(2));
|
|
127 w8.BottomAttach = ((uint)(3));
|
|
128 w8.XOptions = ((Gtk.AttachOptions)(4));
|
|
129 w8.YOptions = ((Gtk.AttachOptions)(4));
|
|
130 // Container child table1.Gtk.Table+TableChild
|
|
131 this.txtArmyName = new Gtk.Entry();
|
|
132 this.txtArmyName.CanFocus = true;
|
|
133 this.txtArmyName.Name = "txtArmyName";
|
|
134 this.txtArmyName.IsEditable = true;
|
|
135 this.txtArmyName.InvisibleChar = '•';
|
|
136 this.table1.Add(this.txtArmyName);
|
|
137 Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.txtArmyName]));
|
|
138 w9.TopAttach = ((uint)(1));
|
|
139 w9.BottomAttach = ((uint)(2));
|
|
140 w9.LeftAttach = ((uint)(1));
|
|
141 w9.RightAttach = ((uint)(2));
|
|
142 w9.YOptions = ((Gtk.AttachOptions)(4));
|
|
143 w1.Add(this.table1);
|
|
144 Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w1[this.table1]));
|
|
145 w10.Position = 0;
|
|
146 w10.Expand = false;
|
|
147 w10.Fill = false;
|
|
148 w10.Padding = ((uint)(6));
|
|
149 // Internal child IBBoard.WarFoundry.FrmNewArmy.ActionArea
|
|
150 Gtk.HButtonBox w11 = this.ActionArea;
|
|
151 w11.CanFocus = true;
|
|
152 w11.Events = ((Gdk.EventMask)(256));
|
|
153 w11.Name = "WarFoundrySharp.FrmNewArmy_ActionArea";
|
|
154 w11.Spacing = 6;
|
|
155 w11.BorderWidth = ((uint)(5));
|
|
156 w11.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
|
|
157 // Container child WarFoundrySharp.FrmNewArmy_ActionArea.Gtk.ButtonBox+ButtonBoxChild
|
|
158 this.bttnCancel = new Gtk.Button();
|
|
159 this.bttnCancel.CanFocus = true;
|
|
160 this.bttnCancel.Name = "bttnCancel";
|
|
161 this.bttnCancel.UseStock = true;
|
|
162 this.bttnCancel.UseUnderline = true;
|
|
163 this.bttnCancel.Label = "gtk-cancel";
|
|
164 this.AddActionWidget(this.bttnCancel, -6);
|
|
165 Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(w11[this.bttnCancel]));
|
|
166 w12.Expand = false;
|
|
167 w12.Fill = false;
|
|
168 // Container child WarFoundrySharp.FrmNewArmy_ActionArea.Gtk.ButtonBox+ButtonBoxChild
|
|
169 this.bttnCreate = new Gtk.Button();
|
|
170 this.bttnCreate.Sensitive = false;
|
|
171 this.bttnCreate.CanDefault = true;
|
|
172 this.bttnCreate.CanFocus = true;
|
|
173 this.bttnCreate.Name = "bttnCreate";
|
|
174 this.bttnCreate.UseUnderline = true;
|
|
175 // Container child bttnCreate.Gtk.Container+ContainerChild
|
|
176 Gtk.Alignment w13 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
|
|
177 // Container child GtkAlignment1.Gtk.Container+ContainerChild
|
|
178 Gtk.HBox w14 = new Gtk.HBox();
|
|
179 w14.Spacing = 2;
|
|
180 // Container child GtkHBox1.Gtk.Container+ContainerChild
|
|
181 Gtk.Image w15 = new Gtk.Image();
|
|
182 w15.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-ok", Gtk.IconSize.Menu, 16);
|
|
183 w14.Add(w15);
|
|
184 // Container child GtkHBox1.Gtk.Container+ContainerChild
|
|
185 Gtk.Label w17 = new Gtk.Label();
|
|
186 w17.LabelProp = Mono.Unix.Catalog.GetString("C_reate");
|
|
187 w17.UseUnderline = true;
|
|
188 w14.Add(w17);
|
|
189 w13.Add(w14);
|
|
190 this.bttnCreate.Add(w13);
|
|
191 this.AddActionWidget(this.bttnCreate, -5);
|
|
192 Gtk.ButtonBox.ButtonBoxChild w21 = ((Gtk.ButtonBox.ButtonBoxChild)(w11[this.bttnCreate]));
|
|
193 w21.Position = 1;
|
|
194 w21.Expand = false;
|
|
195 w21.Fill = false;
|
|
196 if ((this.Child != null)) {
|
|
197 this.Child.ShowAll();
|
|
198 }
|
|
199 this.DefaultWidth = 400;
|
|
200 this.DefaultHeight = 322;
|
|
201 this.Show();
|
|
202 this.txtArmyName.Changed += new System.EventHandler(this.OnTextChanged);
|
|
203 this.sbPointsValue.ChangeValue += new Gtk.ChangeValueHandler(this.OnSpinChangeValue);
|
|
204 this.sbPointsValue.ValueChanged += new System.EventHandler(this.OnSpinValueChanged);
|
|
205 this.sbPointsValue.Changed += new System.EventHandler(this.OnSpinValueChanged);
|
|
206 this.bttnCancel.Clicked += new System.EventHandler(this.OnCancelClicked);
|
|
207 this.bttnCreate.Clicked += new System.EventHandler(this.OnCreateClicked);
|
|
208 }
|
|
209 }
|
|
210 }
|