Mercurial > repos > IBBoard.WarFoundry.GUI.GTK
comparison gtk-gui/IBBoard.WarFoundry.Widgets.UnitDisplayWidget.cs @ 0:1bb28f84d567
Initial commit of WarFoundry code
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 19 Dec 2008 15:57:51 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:1bb28f84d567 |
---|---|
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.unitStats.HeadersClickable = true; | |
109 this.GtkScrolledWindow.Add(this.unitStats); | |
110 this.vbox1.Add(this.GtkScrolledWindow); | |
111 Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow])); | |
112 w5.Position = 1; | |
113 // Container child vbox1.Gtk.Box+BoxChild | |
114 this.hseparator1 = new Gtk.HSeparator(); | |
115 this.hseparator1.Name = "hseparator1"; | |
116 this.vbox1.Add(this.hseparator1); | |
117 Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.hseparator1])); | |
118 w6.Position = 2; | |
119 w6.Expand = false; | |
120 w6.Fill = false; | |
121 // Container child vbox1.Gtk.Box+BoxChild | |
122 this.table1 = new Gtk.Table(((uint)(2)), ((uint)(3)), false); | |
123 this.table1.Name = "table1"; | |
124 this.table1.RowSpacing = ((uint)(6)); | |
125 this.table1.ColumnSpacing = ((uint)(6)); | |
126 // Container child table1.Gtk.Table+TableChild | |
127 this.GtkScrolledWindow1 = new Gtk.ScrolledWindow(); | |
128 this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; | |
129 this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1)); | |
130 // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild | |
131 this.optionalEquipment = new Gtk.NodeView(); | |
132 this.optionalEquipment.CanFocus = true; | |
133 this.optionalEquipment.Name = "optionalEquipment"; | |
134 this.optionalEquipment.HeadersClickable = true; | |
135 this.GtkScrolledWindow1.Add(this.optionalEquipment); | |
136 this.table1.Add(this.GtkScrolledWindow1); | |
137 Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow1])); | |
138 w8.TopAttach = ((uint)(1)); | |
139 w8.BottomAttach = ((uint)(2)); | |
140 w8.LeftAttach = ((uint)(1)); | |
141 w8.RightAttach = ((uint)(2)); | |
142 w8.YOptions = ((Gtk.AttachOptions)(4)); | |
143 // Container child table1.Gtk.Table+TableChild | |
144 this.GtkScrolledWindow2 = new Gtk.ScrolledWindow(); | |
145 this.GtkScrolledWindow2.Name = "GtkScrolledWindow2"; | |
146 this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1)); | |
147 // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild | |
148 this.requiredEquipment = new Gtk.NodeView(); | |
149 this.requiredEquipment.CanFocus = true; | |
150 this.requiredEquipment.Name = "requiredEquipment"; | |
151 this.requiredEquipment.HeadersClickable = true; | |
152 this.GtkScrolledWindow2.Add(this.requiredEquipment); | |
153 this.table1.Add(this.GtkScrolledWindow2); | |
154 Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow2])); | |
155 w10.LeftAttach = ((uint)(1)); | |
156 w10.RightAttach = ((uint)(2)); | |
157 w10.YOptions = ((Gtk.AttachOptions)(4)); | |
158 // Container child table1.Gtk.Table+TableChild | |
159 this.optionalEquipmentLabel = new Gtk.Label(); | |
160 this.optionalEquipmentLabel.Name = "optionalEquipmentLabel"; | |
161 this.optionalEquipmentLabel.LabelProp = Mono.Unix.Catalog.GetString("Optional Equipment:"); | |
162 this.table1.Add(this.optionalEquipmentLabel); | |
163 Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.optionalEquipmentLabel])); | |
164 w11.TopAttach = ((uint)(1)); | |
165 w11.BottomAttach = ((uint)(2)); | |
166 w11.XOptions = ((Gtk.AttachOptions)(4)); | |
167 w11.YOptions = ((Gtk.AttachOptions)(4)); | |
168 // Container child table1.Gtk.Table+TableChild | |
169 this.requiredEquipmentLabel = new Gtk.Label(); | |
170 this.requiredEquipmentLabel.Name = "requiredEquipmentLabel"; | |
171 this.requiredEquipmentLabel.LabelProp = Mono.Unix.Catalog.GetString("Required Equipment:"); | |
172 this.table1.Add(this.requiredEquipmentLabel); | |
173 Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.requiredEquipmentLabel])); | |
174 w12.XOptions = ((Gtk.AttachOptions)(4)); | |
175 w12.YOptions = ((Gtk.AttachOptions)(4)); | |
176 // Container child table1.Gtk.Table+TableChild | |
177 this.vbox2 = new Gtk.VBox(); | |
178 this.vbox2.Name = "vbox2"; | |
179 this.vbox2.Spacing = 6; | |
180 // Container child vbox2.Gtk.Box+BoxChild | |
181 this.bttnReplaceRequired = new Gtk.Button(); | |
182 this.bttnReplaceRequired.CanFocus = true; | |
183 this.bttnReplaceRequired.Name = "bttnReplaceRequired"; | |
184 this.bttnReplaceRequired.UseUnderline = true; | |
185 this.bttnReplaceRequired.Label = Mono.Unix.Catalog.GetString("Replace"); | |
186 this.vbox2.Add(this.bttnReplaceRequired); | |
187 Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox2[this.bttnReplaceRequired])); | |
188 w13.Position = 0; | |
189 w13.Expand = false; | |
190 w13.Fill = false; | |
191 // Container child vbox2.Gtk.Box+BoxChild | |
192 this.bttnEditRequired = new Gtk.Button(); | |
193 this.bttnEditRequired.CanFocus = true; | |
194 this.bttnEditRequired.Name = "bttnEditRequired"; | |
195 this.bttnEditRequired.UseUnderline = true; | |
196 this.bttnEditRequired.Label = Mono.Unix.Catalog.GetString("Edit"); | |
197 this.vbox2.Add(this.bttnEditRequired); | |
198 Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox2[this.bttnEditRequired])); | |
199 w14.Position = 1; | |
200 w14.Expand = false; | |
201 w14.Fill = false; | |
202 this.table1.Add(this.vbox2); | |
203 Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.vbox2])); | |
204 w15.LeftAttach = ((uint)(2)); | |
205 w15.RightAttach = ((uint)(3)); | |
206 w15.XOptions = ((Gtk.AttachOptions)(4)); | |
207 w15.YOptions = ((Gtk.AttachOptions)(4)); | |
208 // Container child table1.Gtk.Table+TableChild | |
209 this.vbox3 = new Gtk.VBox(); | |
210 this.vbox3.Name = "vbox3"; | |
211 this.vbox3.Spacing = 6; | |
212 // Container child vbox3.Gtk.Box+BoxChild | |
213 this.bttnAddOptional = new Gtk.Button(); | |
214 this.bttnAddOptional.CanFocus = true; | |
215 this.bttnAddOptional.Name = "bttnAddOptional"; | |
216 this.bttnAddOptional.UseUnderline = true; | |
217 this.bttnAddOptional.Label = Mono.Unix.Catalog.GetString("Add"); | |
218 this.vbox3.Add(this.bttnAddOptional); | |
219 Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox3[this.bttnAddOptional])); | |
220 w16.Position = 0; | |
221 w16.Expand = false; | |
222 w16.Fill = false; | |
223 // Container child vbox3.Gtk.Box+BoxChild | |
224 this.bttnEditOptional = new Gtk.Button(); | |
225 this.bttnEditOptional.CanFocus = true; | |
226 this.bttnEditOptional.Name = "bttnEditOptional"; | |
227 this.bttnEditOptional.UseUnderline = true; | |
228 this.bttnEditOptional.Label = Mono.Unix.Catalog.GetString("Edit"); | |
229 this.vbox3.Add(this.bttnEditOptional); | |
230 Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox3[this.bttnEditOptional])); | |
231 w17.Position = 1; | |
232 w17.Expand = false; | |
233 w17.Fill = false; | |
234 // Container child vbox3.Gtk.Box+BoxChild | |
235 this.bttnRemove = new Gtk.Button(); | |
236 this.bttnRemove.CanFocus = true; | |
237 this.bttnRemove.Name = "bttnRemove"; | |
238 this.bttnRemove.UseUnderline = true; | |
239 this.bttnRemove.Label = Mono.Unix.Catalog.GetString("Remove"); | |
240 this.vbox3.Add(this.bttnRemove); | |
241 Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox3[this.bttnRemove])); | |
242 w18.Position = 2; | |
243 w18.Expand = false; | |
244 w18.Fill = false; | |
245 this.table1.Add(this.vbox3); | |
246 Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.vbox3])); | |
247 w19.TopAttach = ((uint)(1)); | |
248 w19.BottomAttach = ((uint)(2)); | |
249 w19.LeftAttach = ((uint)(2)); | |
250 w19.RightAttach = ((uint)(3)); | |
251 w19.XOptions = ((Gtk.AttachOptions)(4)); | |
252 w19.YOptions = ((Gtk.AttachOptions)(4)); | |
253 this.vbox1.Add(this.table1); | |
254 Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox1[this.table1])); | |
255 w20.Position = 3; | |
256 w20.Expand = false; | |
257 w20.Fill = false; | |
258 // Container child vbox1.Gtk.Box+BoxChild | |
259 this.hbox2 = new Gtk.HBox(); | |
260 this.hbox2.Name = "hbox2"; | |
261 this.hbox2.Spacing = 6; | |
262 this.vbox1.Add(this.hbox2); | |
263 Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2])); | |
264 w21.Position = 4; | |
265 this.Add(this.vbox1); | |
266 if ((this.Child != null)) { | |
267 this.Child.ShowAll(); | |
268 } | |
269 this.Show(); | |
270 this.unitName.FocusOutEvent += new Gtk.FocusOutEventHandler(this.OnUnitNameFocusOut); | |
271 this.unitName.KeyPressEvent += new Gtk.KeyPressEventHandler(this.OnUnitNameKeyPress); | |
272 this.unitSize.FocusOutEvent += new Gtk.FocusOutEventHandler(this.OnUnitSizeFocusOut); | |
273 this.unitSize.KeyPressEvent += new Gtk.KeyPressEventHandler(this.OnUnitSizeKeyPress); | |
274 } | |
275 } | |
276 } |