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