5
|
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.Widgets {
|
|
12
|
|
13
|
|
14 public partial class UnitDisplayWidget {
|
|
15
|
|
16 private Gtk.VBox vbox1;
|
|
17
|
|
18 private Gtk.HBox hbox1;
|
|
19
|
|
20 private Gtk.Entry unitName;
|
|
21
|
|
22 private Gtk.SpinButton unitSize;
|
|
23
|
|
24 private Gtk.ScrolledWindow GtkScrolledWindow;
|
|
25
|
|
26 private Gtk.NodeView unitStats;
|
|
27
|
|
28 private Gtk.HSeparator hseparator1;
|
|
29
|
|
30 private Gtk.Table table1;
|
|
31
|
|
32 private Gtk.ScrolledWindow GtkScrolledWindow1;
|
|
33
|
|
34 private Gtk.NodeView optionalEquipment;
|
|
35
|
|
36 private Gtk.ScrolledWindow GtkScrolledWindow2;
|
|
37
|
|
38 private Gtk.NodeView requiredEquipment;
|
|
39
|
|
40 private Gtk.Label optionalEquipmentLabel;
|
|
41
|
|
42 private Gtk.Label requiredEquipmentLabel;
|
|
43
|
|
44 private Gtk.VBox vbox2;
|
|
45
|
|
46 private Gtk.Button bttnReplaceRequired;
|
|
47
|
|
48 private Gtk.Button bttnEditRequired;
|
|
49
|
|
50 private Gtk.VBox vbox3;
|
|
51
|
|
52 private Gtk.Button bttnAddOptional;
|
|
53
|
|
54 private Gtk.Button bttnEditOptional;
|
|
55
|
|
56 private Gtk.Button bttnRemove;
|
|
57
|
|
58 private Gtk.HBox hbox2;
|
|
59
|
|
60 protected virtual void Build() {
|
|
61 Stetic.Gui.Initialize(this);
|
|
62 // Widget IBBoard.WarFoundry.Widgets.UnitDisplayWidget
|
|
63 Stetic.BinContainer.Attach(this);
|
|
64 this.Name = "IBBoard.WarFoundry.Widgets.UnitDisplayWidget";
|
|
65 // Container child IBBoard.WarFoundry.Widgets.UnitDisplayWidget.Gtk.Container+ContainerChild
|
|
66 this.vbox1 = new Gtk.VBox();
|
|
67 this.vbox1.Name = "vbox1";
|
|
68 this.vbox1.Spacing = 6;
|
|
69 // Container child vbox1.Gtk.Box+BoxChild
|
|
70 this.hbox1 = new Gtk.HBox();
|
|
71 this.hbox1.Name = "hbox1";
|
|
72 this.hbox1.Spacing = 6;
|
|
73 // Container child hbox1.Gtk.Box+BoxChild
|
|
74 this.unitName = new Gtk.Entry();
|
|
75 this.unitName.CanFocus = true;
|
|
76 this.unitName.Name = "unitName";
|
|
77 this.unitName.IsEditable = true;
|
|
78 this.unitName.InvisibleChar = '•';
|
|
79 this.hbox1.Add(this.unitName);
|
|
80 Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.unitName]));
|
|
81 w1.Position = 0;
|
|
82 // Container child hbox1.Gtk.Box+BoxChild
|
|
83 this.unitSize = new Gtk.SpinButton(0, 100, 1);
|
|
84 this.unitSize.CanFocus = true;
|
|
85 this.unitSize.Name = "unitSize";
|
|
86 this.unitSize.Adjustment.PageIncrement = 10;
|
|
87 this.unitSize.ClimbRate = 1;
|
|
88 this.unitSize.Numeric = true;
|
|
89 this.hbox1.Add(this.unitSize);
|
|
90 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.unitSize]));
|
|
91 w2.Position = 1;
|
|
92 w2.Expand = false;
|
|
93 w2.Fill = false;
|
|
94 this.vbox1.Add(this.hbox1);
|
|
95 Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
|
|
96 w3.Position = 0;
|
|
97 w3.Expand = false;
|
|
98 w3.Fill = false;
|
|
99 // Container child vbox1.Gtk.Box+BoxChild
|
|
100 this.GtkScrolledWindow = new Gtk.ScrolledWindow();
|
|
101 this.GtkScrolledWindow.Name = "GtkScrolledWindow";
|
|
102 this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
|
|
103 // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
|
|
104 this.unitStats = new Gtk.NodeView();
|
|
105 this.unitStats.HeightRequest = 75;
|
|
106 this.unitStats.CanFocus = true;
|
|
107 this.unitStats.Name = "unitStats";
|
|
108 this.GtkScrolledWindow.Add(this.unitStats);
|
|
109 this.vbox1.Add(this.GtkScrolledWindow);
|
|
110 Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow]));
|
|
111 w5.Position = 1;
|
|
112 // Container child vbox1.Gtk.Box+BoxChild
|
|
113 this.hseparator1 = new Gtk.HSeparator();
|
|
114 this.hseparator1.Name = "hseparator1";
|
|
115 this.vbox1.Add(this.hseparator1);
|
|
116 Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.hseparator1]));
|
|
117 w6.Position = 2;
|
|
118 w6.Expand = false;
|
|
119 w6.Fill = false;
|
|
120 // Container child vbox1.Gtk.Box+BoxChild
|
|
121 this.table1 = new Gtk.Table(((uint)(2)), ((uint)(3)), false);
|
|
122 this.table1.Name = "table1";
|
|
123 this.table1.RowSpacing = ((uint)(6));
|
|
124 this.table1.ColumnSpacing = ((uint)(6));
|
|
125 // Container child table1.Gtk.Table+TableChild
|
|
126 this.GtkScrolledWindow1 = new Gtk.ScrolledWindow();
|
|
127 this.GtkScrolledWindow1.Name = "GtkScrolledWindow1";
|
|
128 this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1));
|
|
129 // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
|
|
130 this.optionalEquipment = new Gtk.NodeView();
|
|
131 this.optionalEquipment.CanFocus = true;
|
|
132 this.optionalEquipment.Name = "optionalEquipment";
|
|
133 this.GtkScrolledWindow1.Add(this.optionalEquipment);
|
|
134 this.table1.Add(this.GtkScrolledWindow1);
|
|
135 Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow1]));
|
|
136 w8.TopAttach = ((uint)(1));
|
|
137 w8.BottomAttach = ((uint)(2));
|
|
138 w8.LeftAttach = ((uint)(1));
|
|
139 w8.RightAttach = ((uint)(2));
|
|
140 w8.YOptions = ((Gtk.AttachOptions)(4));
|
|
141 // Container child table1.Gtk.Table+TableChild
|
|
142 this.GtkScrolledWindow2 = new Gtk.ScrolledWindow();
|
|
143 this.GtkScrolledWindow2.Name = "GtkScrolledWindow2";
|
|
144 this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1));
|
|
145 // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
|
|
146 this.requiredEquipment = new Gtk.NodeView();
|
|
147 this.requiredEquipment.CanFocus = true;
|
|
148 this.requiredEquipment.Name = "requiredEquipment";
|
|
149 this.GtkScrolledWindow2.Add(this.requiredEquipment);
|
|
150 this.table1.Add(this.GtkScrolledWindow2);
|
|
151 Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow2]));
|
|
152 w10.LeftAttach = ((uint)(1));
|
|
153 w10.RightAttach = ((uint)(2));
|
|
154 w10.YOptions = ((Gtk.AttachOptions)(4));
|
|
155 // Container child table1.Gtk.Table+TableChild
|
|
156 this.optionalEquipmentLabel = new Gtk.Label();
|
|
157 this.optionalEquipmentLabel.Name = "optionalEquipmentLabel";
|
|
158 this.optionalEquipmentLabel.LabelProp = Mono.Unix.Catalog.GetString("Optional Equipment:");
|
|
159 this.table1.Add(this.optionalEquipmentLabel);
|
|
160 Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.optionalEquipmentLabel]));
|
|
161 w11.TopAttach = ((uint)(1));
|
|
162 w11.BottomAttach = ((uint)(2));
|
|
163 w11.XOptions = ((Gtk.AttachOptions)(4));
|
|
164 w11.YOptions = ((Gtk.AttachOptions)(4));
|
|
165 // Container child table1.Gtk.Table+TableChild
|
|
166 this.requiredEquipmentLabel = new Gtk.Label();
|
|
167 this.requiredEquipmentLabel.Name = "requiredEquipmentLabel";
|
|
168 this.requiredEquipmentLabel.LabelProp = Mono.Unix.Catalog.GetString("Required Equipment:");
|
|
169 this.table1.Add(this.requiredEquipmentLabel);
|
|
170 Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.requiredEquipmentLabel]));
|
|
171 w12.XOptions = ((Gtk.AttachOptions)(4));
|
|
172 w12.YOptions = ((Gtk.AttachOptions)(4));
|
|
173 // Container child table1.Gtk.Table+TableChild
|
|
174 this.vbox2 = new Gtk.VBox();
|
|
175 this.vbox2.Name = "vbox2";
|
|
176 this.vbox2.Spacing = 6;
|
|
177 // Container child vbox2.Gtk.Box+BoxChild
|
|
178 this.bttnReplaceRequired = new Gtk.Button();
|
|
179 this.bttnReplaceRequired.CanFocus = true;
|
|
180 this.bttnReplaceRequired.Name = "bttnReplaceRequired";
|
|
181 this.bttnReplaceRequired.UseUnderline = true;
|
|
182 this.bttnReplaceRequired.Label = Mono.Unix.Catalog.GetString("Replace");
|
|
183 this.vbox2.Add(this.bttnReplaceRequired);
|
|
184 Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox2[this.bttnReplaceRequired]));
|
|
185 w13.Position = 0;
|
|
186 w13.Expand = false;
|
|
187 w13.Fill = false;
|
|
188 // Container child vbox2.Gtk.Box+BoxChild
|
|
189 this.bttnEditRequired = new Gtk.Button();
|
|
190 this.bttnEditRequired.CanFocus = true;
|
|
191 this.bttnEditRequired.Name = "bttnEditRequired";
|
|
192 this.bttnEditRequired.UseUnderline = true;
|
|
193 this.bttnEditRequired.Label = Mono.Unix.Catalog.GetString("Edit");
|
|
194 this.vbox2.Add(this.bttnEditRequired);
|
|
195 Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox2[this.bttnEditRequired]));
|
|
196 w14.Position = 1;
|
|
197 w14.Expand = false;
|
|
198 w14.Fill = false;
|
|
199 this.table1.Add(this.vbox2);
|
|
200 Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.vbox2]));
|
|
201 w15.LeftAttach = ((uint)(2));
|
|
202 w15.RightAttach = ((uint)(3));
|
|
203 w15.XOptions = ((Gtk.AttachOptions)(4));
|
|
204 w15.YOptions = ((Gtk.AttachOptions)(4));
|
|
205 // Container child table1.Gtk.Table+TableChild
|
|
206 this.vbox3 = new Gtk.VBox();
|
|
207 this.vbox3.Name = "vbox3";
|
|
208 this.vbox3.Spacing = 6;
|
|
209 // Container child vbox3.Gtk.Box+BoxChild
|
|
210 this.bttnAddOptional = new Gtk.Button();
|
|
211 this.bttnAddOptional.CanFocus = true;
|
|
212 this.bttnAddOptional.Name = "bttnAddOptional";
|
|
213 this.bttnAddOptional.UseUnderline = true;
|
|
214 this.bttnAddOptional.Label = Mono.Unix.Catalog.GetString("Add");
|
|
215 this.vbox3.Add(this.bttnAddOptional);
|
|
216 Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox3[this.bttnAddOptional]));
|
|
217 w16.Position = 0;
|
|
218 w16.Expand = false;
|
|
219 w16.Fill = false;
|
|
220 // Container child vbox3.Gtk.Box+BoxChild
|
|
221 this.bttnEditOptional = new Gtk.Button();
|
|
222 this.bttnEditOptional.CanFocus = true;
|
|
223 this.bttnEditOptional.Name = "bttnEditOptional";
|
|
224 this.bttnEditOptional.UseUnderline = true;
|
|
225 this.bttnEditOptional.Label = Mono.Unix.Catalog.GetString("Edit");
|
|
226 this.vbox3.Add(this.bttnEditOptional);
|
|
227 Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox3[this.bttnEditOptional]));
|
|
228 w17.Position = 1;
|
|
229 w17.Expand = false;
|
|
230 w17.Fill = false;
|
|
231 // Container child vbox3.Gtk.Box+BoxChild
|
|
232 this.bttnRemove = new Gtk.Button();
|
|
233 this.bttnRemove.CanFocus = true;
|
|
234 this.bttnRemove.Name = "bttnRemove";
|
|
235 this.bttnRemove.UseUnderline = true;
|
|
236 this.bttnRemove.Label = Mono.Unix.Catalog.GetString("Remove");
|
|
237 this.vbox3.Add(this.bttnRemove);
|
|
238 Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox3[this.bttnRemove]));
|
|
239 w18.Position = 2;
|
|
240 w18.Expand = false;
|
|
241 w18.Fill = false;
|
|
242 this.table1.Add(this.vbox3);
|
|
243 Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.vbox3]));
|
|
244 w19.TopAttach = ((uint)(1));
|
|
245 w19.BottomAttach = ((uint)(2));
|
|
246 w19.LeftAttach = ((uint)(2));
|
|
247 w19.RightAttach = ((uint)(3));
|
|
248 w19.XOptions = ((Gtk.AttachOptions)(4));
|
|
249 w19.YOptions = ((Gtk.AttachOptions)(4));
|
|
250 this.vbox1.Add(this.table1);
|
|
251 Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox1[this.table1]));
|
|
252 w20.Position = 3;
|
|
253 w20.Expand = false;
|
|
254 w20.Fill = false;
|
|
255 // Container child vbox1.Gtk.Box+BoxChild
|
|
256 this.hbox2 = new Gtk.HBox();
|
|
257 this.hbox2.Name = "hbox2";
|
|
258 this.hbox2.Spacing = 6;
|
|
259 this.vbox1.Add(this.hbox2);
|
|
260 Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2]));
|
|
261 w21.Position = 4;
|
|
262 this.Add(this.vbox1);
|
|
263 if ((this.Child != null)) {
|
|
264 this.Child.ShowAll();
|
|
265 }
|
|
266 this.Show();
|
|
267 this.unitName.FocusOutEvent += new Gtk.FocusOutEventHandler(this.OnUnitNameFocusOut);
|
|
268 this.unitName.KeyPressEvent += new Gtk.KeyPressEventHandler(this.OnUnitNameKeyPress);
|
|
269 this.unitSize.FocusOutEvent += new Gtk.FocusOutEventHandler(this.OnUnitSizeFocusOut);
|
|
270 this.unitSize.KeyPressEvent += new Gtk.KeyPressEventHandler(this.OnUnitSizeKeyPress);
|
|
271 }
|
|
272 }
|
|
273 }
|