comparison gtk-gui/IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget.cs @ 50:d2f4fcc28254

Re #306: Combine equipment lists in GTK# * Initial UI rearranging
author IBBoard <dev@ibboard.co.uk>
date Sun, 15 Aug 2010 16:02:49 +0000
parents 23238d998535
children dafbd432ca23
comparison
equal deleted inserted replaced
49:d29ad8445461 50:d2f4fcc28254
18 18
19 private global::Gtk.HSeparator hseparator1; 19 private global::Gtk.HSeparator hseparator1;
20 20
21 private global::Gtk.Table table1; 21 private global::Gtk.Table table1;
22 22
23 private global::Gtk.ScrolledWindow GtkScrolledWindow1; 23 private global::Gtk.Label equipmentLabel;
24
25 private global::Gtk.NodeView optionalEquipment;
26 24
27 private global::Gtk.ScrolledWindow GtkScrolledWindow2; 25 private global::Gtk.ScrolledWindow GtkScrolledWindow2;
28 26
29 private global::Gtk.NodeView requiredEquipment; 27 private global::Gtk.NodeView equipmentList;
30 28
31 private global::Gtk.ScrolledWindow GtkScrolledWindow3; 29 private global::Gtk.ScrolledWindow GtkScrolledWindow3;
32 30
33 private global::Gtk.TextView notesView; 31 private global::Gtk.TextView notesView;
34 32
35 private global::Gtk.Label lblNotes; 33 private global::Gtk.Label lblNotes;
36 34
37 private global::Gtk.Label optionalEquipmentLabel;
38
39 private global::Gtk.Label requiredEquipmentLabel;
40
41 private global::Gtk.VBox vbox2;
42
43 private global::Gtk.Button bttnReplaceRequired;
44
45 private global::Gtk.Button bttnEditRequired;
46
47 private global::Gtk.VBox vbox3; 35 private global::Gtk.VBox vbox3;
48 36
49 private global::Gtk.Button bttnAddOptional; 37 private global::Gtk.Button bttnAddOptional;
50 38
51 private global::Gtk.Button bttnEditOptional; 39 private global::Gtk.Button bttnEditOptional;
40
41 private global::Gtk.Button bttnReplace;
52 42
53 private global::Gtk.Button bttnRemove; 43 private global::Gtk.Button bttnRemove;
54 44
55 protected virtual void Build() 45 protected virtual void Build()
56 { 46 {
112 global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hseparator1])); 102 global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hseparator1]));
113 w6.Position = 2; 103 w6.Position = 2;
114 w6.Expand = false; 104 w6.Expand = false;
115 w6.Fill = false; 105 w6.Fill = false;
116 // Container child vbox1.Gtk.Box+BoxChild 106 // Container child vbox1.Gtk.Box+BoxChild
117 this.table1 = new global::Gtk.Table(((uint)(3)), ((uint)(3)), false); 107 this.table1 = new global::Gtk.Table(((uint)(2)), ((uint)(3)), false);
108 this.table1.Name = "table1";
118 this.table1.RowSpacing = ((uint)(6)); 109 this.table1.RowSpacing = ((uint)(6));
119 this.table1.ColumnSpacing = ((uint)(6)); 110 this.table1.ColumnSpacing = ((uint)(6));
120 // Container child table1.Gtk.Table+TableChild 111 // Container child table1.Gtk.Table+TableChild
121 this.GtkScrolledWindow1 = new global::Gtk.ScrolledWindow(); 112 this.equipmentLabel = new global::Gtk.Label();
122 this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; 113 this.equipmentLabel.Name = "equipmentLabel";
123 this.GtkScrolledWindow1.ShadowType = ((global::Gtk.ShadowType)(1)); 114 this.equipmentLabel.LabelProp = global::Mono.Unix.Catalog.GetString("equipment:");
124 // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild 115 this.table1.Add(this.equipmentLabel);
125 this.optionalEquipment = new global::Gtk.NodeView(); 116 global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1[this.equipmentLabel]));
126 this.optionalEquipment.CanFocus = true; 117 w7.XOptions = ((global::Gtk.AttachOptions)(4));
127 this.optionalEquipment.Name = "optionalEquipment"; 118 w7.YOptions = ((global::Gtk.AttachOptions)(4));
128 this.GtkScrolledWindow1.Add(this.optionalEquipment);
129 this.table1.Add(this.GtkScrolledWindow1);
130 global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow1]));
131 w8.TopAttach = ((uint)(1));
132 w8.BottomAttach = ((uint)(2));
133 w8.LeftAttach = ((uint)(1));
134 w8.RightAttach = ((uint)(2));
135 w8.YOptions = ((global::Gtk.AttachOptions)(4));
136 // Container child table1.Gtk.Table+TableChild 119 // Container child table1.Gtk.Table+TableChild
137 this.GtkScrolledWindow2 = new global::Gtk.ScrolledWindow(); 120 this.GtkScrolledWindow2 = new global::Gtk.ScrolledWindow();
138 this.GtkScrolledWindow2.Name = "GtkScrolledWindow2"; 121 this.GtkScrolledWindow2.Name = "GtkScrolledWindow2";
139 this.GtkScrolledWindow2.ShadowType = ((global::Gtk.ShadowType)(1)); 122 this.GtkScrolledWindow2.ShadowType = ((global::Gtk.ShadowType)(1));
140 // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild 123 // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
141 this.requiredEquipment = new global::Gtk.NodeView(); 124 this.equipmentList = new global::Gtk.NodeView();
142 this.requiredEquipment.CanFocus = true; 125 this.equipmentList.CanFocus = true;
143 this.requiredEquipment.Name = "requiredEquipment"; 126 this.equipmentList.Name = "equipmentList";
144 this.GtkScrolledWindow2.Add(this.requiredEquipment); 127 this.GtkScrolledWindow2.Add(this.equipmentList);
145 this.table1.Add(this.GtkScrolledWindow2); 128 this.table1.Add(this.GtkScrolledWindow2);
146 global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow2])); 129 global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow2]));
147 w10.LeftAttach = ((uint)(1)); 130 w9.LeftAttach = ((uint)(1));
148 w10.RightAttach = ((uint)(2)); 131 w9.RightAttach = ((uint)(2));
149 w10.YOptions = ((global::Gtk.AttachOptions)(4)); 132 w9.YOptions = ((global::Gtk.AttachOptions)(4));
150 // Container child table1.Gtk.Table+TableChild 133 // Container child table1.Gtk.Table+TableChild
151 this.GtkScrolledWindow3 = new global::Gtk.ScrolledWindow(); 134 this.GtkScrolledWindow3 = new global::Gtk.ScrolledWindow();
152 this.GtkScrolledWindow3.Name = "GtkScrolledWindow3"; 135 this.GtkScrolledWindow3.Name = "GtkScrolledWindow3";
153 this.GtkScrolledWindow3.ShadowType = ((global::Gtk.ShadowType)(1)); 136 this.GtkScrolledWindow3.ShadowType = ((global::Gtk.ShadowType)(1));
154 // Container child GtkScrolledWindow3.Gtk.Container+ContainerChild 137 // Container child GtkScrolledWindow3.Gtk.Container+ContainerChild
156 this.notesView.CanFocus = true; 139 this.notesView.CanFocus = true;
157 this.notesView.Name = "notesView"; 140 this.notesView.Name = "notesView";
158 this.notesView.Editable = false; 141 this.notesView.Editable = false;
159 this.GtkScrolledWindow3.Add(this.notesView); 142 this.GtkScrolledWindow3.Add(this.notesView);
160 this.table1.Add(this.GtkScrolledWindow3); 143 this.table1.Add(this.GtkScrolledWindow3);
161 global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow3])); 144 global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow3]));
162 w12.TopAttach = ((uint)(2)); 145 w11.TopAttach = ((uint)(1));
163 w12.BottomAttach = ((uint)(3)); 146 w11.BottomAttach = ((uint)(2));
164 w12.LeftAttach = ((uint)(1)); 147 w11.LeftAttach = ((uint)(1));
165 w12.RightAttach = ((uint)(2)); 148 w11.RightAttach = ((uint)(2));
166 w12.YOptions = ((global::Gtk.AttachOptions)(4)); 149 w11.YOptions = ((global::Gtk.AttachOptions)(4));
167 // Container child table1.Gtk.Table+TableChild 150 // Container child table1.Gtk.Table+TableChild
168 this.lblNotes = new global::Gtk.Label(); 151 this.lblNotes = new global::Gtk.Label();
169 this.lblNotes.Name = "lblNotes"; 152 this.lblNotes.Name = "lblNotes";
170 this.lblNotes.LabelProp = global::Mono.Unix.Catalog.GetString("notes:"); 153 this.lblNotes.LabelProp = global::Mono.Unix.Catalog.GetString("notes:");
171 this.table1.Add(this.lblNotes); 154 this.table1.Add(this.lblNotes);
172 global::Gtk.Table.TableChild w13 = ((global::Gtk.Table.TableChild)(this.table1[this.lblNotes])); 155 global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table1[this.lblNotes]));
173 w13.TopAttach = ((uint)(2)); 156 w12.TopAttach = ((uint)(1));
174 w13.BottomAttach = ((uint)(3)); 157 w12.BottomAttach = ((uint)(2));
175 w13.XOptions = ((global::Gtk.AttachOptions)(4)); 158 w12.XOptions = ((global::Gtk.AttachOptions)(4));
176 w13.YOptions = ((global::Gtk.AttachOptions)(4)); 159 w12.YOptions = ((global::Gtk.AttachOptions)(4));
177 // Container child table1.Gtk.Table+TableChild
178 this.optionalEquipmentLabel = new global::Gtk.Label();
179 this.optionalEquipmentLabel.Name = "optionalEquipmentLabel";
180 this.optionalEquipmentLabel.LabelProp = global::Mono.Unix.Catalog.GetString("Optional Equipment:");
181 this.table1.Add(this.optionalEquipmentLabel);
182 global::Gtk.Table.TableChild w14 = ((global::Gtk.Table.TableChild)(this.table1[this.optionalEquipmentLabel]));
183 w14.TopAttach = ((uint)(1));
184 w14.BottomAttach = ((uint)(2));
185 w14.XOptions = ((global::Gtk.AttachOptions)(4));
186 w14.YOptions = ((global::Gtk.AttachOptions)(4));
187 // Container child table1.Gtk.Table+TableChild
188 this.requiredEquipmentLabel = new global::Gtk.Label();
189 this.requiredEquipmentLabel.Name = "requiredEquipmentLabel";
190 this.requiredEquipmentLabel.LabelProp = global::Mono.Unix.Catalog.GetString("Required Equipment:");
191 this.table1.Add(this.requiredEquipmentLabel);
192 global::Gtk.Table.TableChild w15 = ((global::Gtk.Table.TableChild)(this.table1[this.requiredEquipmentLabel]));
193 w15.XOptions = ((global::Gtk.AttachOptions)(4));
194 w15.YOptions = ((global::Gtk.AttachOptions)(4));
195 // Container child table1.Gtk.Table+TableChild
196 this.vbox2 = new global::Gtk.VBox();
197 this.vbox2.Name = "vbox2";
198 this.vbox2.Spacing = 6;
199 // Container child vbox2.Gtk.Box+BoxChild
200 this.bttnReplaceRequired = new global::Gtk.Button();
201 this.bttnReplaceRequired.CanFocus = true;
202 this.bttnReplaceRequired.Name = "bttnReplaceRequired";
203 this.bttnReplaceRequired.UseUnderline = true;
204 this.bttnReplaceRequired.Label = global::Mono.Unix.Catalog.GetString("Replace");
205 this.vbox2.Add(this.bttnReplaceRequired);
206 global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.bttnReplaceRequired]));
207 w16.Position = 0;
208 w16.Expand = false;
209 w16.Fill = false;
210 // Container child vbox2.Gtk.Box+BoxChild
211 this.bttnEditRequired = new global::Gtk.Button();
212 this.bttnEditRequired.CanFocus = true;
213 this.bttnEditRequired.Name = "bttnEditRequired";
214 this.bttnEditRequired.UseUnderline = true;
215 this.bttnEditRequired.Label = global::Mono.Unix.Catalog.GetString("Edit");
216 this.vbox2.Add(this.bttnEditRequired);
217 global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.bttnEditRequired]));
218 w17.Position = 1;
219 w17.Expand = false;
220 w17.Fill = false;
221 this.table1.Add(this.vbox2);
222 global::Gtk.Table.TableChild w18 = ((global::Gtk.Table.TableChild)(this.table1[this.vbox2]));
223 w18.LeftAttach = ((uint)(2));
224 w18.RightAttach = ((uint)(3));
225 w18.XOptions = ((global::Gtk.AttachOptions)(4));
226 w18.YOptions = ((global::Gtk.AttachOptions)(4));
227 // Container child table1.Gtk.Table+TableChild 160 // Container child table1.Gtk.Table+TableChild
228 this.vbox3 = new global::Gtk.VBox(); 161 this.vbox3 = new global::Gtk.VBox();
229 this.vbox3.Name = "vbox3"; 162 this.vbox3.Name = "vbox3";
230 this.vbox3.Spacing = 6; 163 this.vbox3.Spacing = 6;
231 // Container child vbox3.Gtk.Box+BoxChild 164 // Container child vbox3.Gtk.Box+BoxChild
233 this.bttnAddOptional.CanFocus = true; 166 this.bttnAddOptional.CanFocus = true;
234 this.bttnAddOptional.Name = "bttnAddOptional"; 167 this.bttnAddOptional.Name = "bttnAddOptional";
235 this.bttnAddOptional.UseUnderline = true; 168 this.bttnAddOptional.UseUnderline = true;
236 this.bttnAddOptional.Label = global::Mono.Unix.Catalog.GetString("Add"); 169 this.bttnAddOptional.Label = global::Mono.Unix.Catalog.GetString("Add");
237 this.vbox3.Add(this.bttnAddOptional); 170 this.vbox3.Add(this.bttnAddOptional);
238 global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnAddOptional])); 171 global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnAddOptional]));
239 w19.Position = 0; 172 w13.Position = 0;
240 w19.Expand = false; 173 w13.Expand = false;
241 w19.Fill = false; 174 w13.Fill = false;
242 // Container child vbox3.Gtk.Box+BoxChild 175 // Container child vbox3.Gtk.Box+BoxChild
243 this.bttnEditOptional = new global::Gtk.Button(); 176 this.bttnEditOptional = new global::Gtk.Button();
244 this.bttnEditOptional.CanFocus = true; 177 this.bttnEditOptional.CanFocus = true;
245 this.bttnEditOptional.Name = "bttnEditOptional"; 178 this.bttnEditOptional.Name = "bttnEditOptional";
246 this.bttnEditOptional.UseUnderline = true; 179 this.bttnEditOptional.UseUnderline = true;
247 this.bttnEditOptional.Label = global::Mono.Unix.Catalog.GetString("Edit"); 180 this.bttnEditOptional.Label = global::Mono.Unix.Catalog.GetString("Edit");
248 this.vbox3.Add(this.bttnEditOptional); 181 this.vbox3.Add(this.bttnEditOptional);
249 global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnEditOptional])); 182 global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnEditOptional]));
250 w20.Position = 1; 183 w14.Position = 1;
251 w20.Expand = false; 184 w14.Expand = false;
252 w20.Fill = false; 185 w14.Fill = false;
186 // Container child vbox3.Gtk.Box+BoxChild
187 this.bttnReplace = new global::Gtk.Button();
188 this.bttnReplace.CanFocus = true;
189 this.bttnReplace.Name = "bttnReplace";
190 this.bttnReplace.UseUnderline = true;
191 this.bttnReplace.Label = global::Mono.Unix.Catalog.GetString("Replace");
192 this.vbox3.Add(this.bttnReplace);
193 global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnReplace]));
194 w15.Position = 2;
195 w15.Expand = false;
196 w15.Fill = false;
253 // Container child vbox3.Gtk.Box+BoxChild 197 // Container child vbox3.Gtk.Box+BoxChild
254 this.bttnRemove = new global::Gtk.Button(); 198 this.bttnRemove = new global::Gtk.Button();
255 this.bttnRemove.CanFocus = true; 199 this.bttnRemove.CanFocus = true;
256 this.bttnRemove.Name = "bttnRemove"; 200 this.bttnRemove.Name = "bttnRemove";
257 this.bttnRemove.UseUnderline = true; 201 this.bttnRemove.UseUnderline = true;
258 this.bttnRemove.Label = global::Mono.Unix.Catalog.GetString("Remove"); 202 this.bttnRemove.Label = global::Mono.Unix.Catalog.GetString("Remove");
259 this.vbox3.Add(this.bttnRemove); 203 this.vbox3.Add(this.bttnRemove);
260 global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnRemove])); 204 global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnRemove]));
261 w21.Position = 2; 205 w16.Position = 3;
262 w21.Expand = false; 206 w16.Expand = false;
263 w21.Fill = false; 207 w16.Fill = false;
264 this.table1.Add(this.vbox3); 208 this.table1.Add(this.vbox3);
265 global::Gtk.Table.TableChild w22 = ((global::Gtk.Table.TableChild)(this.table1[this.vbox3])); 209 global::Gtk.Table.TableChild w17 = ((global::Gtk.Table.TableChild)(this.table1[this.vbox3]));
266 w22.TopAttach = ((uint)(1)); 210 w17.LeftAttach = ((uint)(2));
267 w22.BottomAttach = ((uint)(2)); 211 w17.RightAttach = ((uint)(3));
268 w22.LeftAttach = ((uint)(2)); 212 w17.XOptions = ((global::Gtk.AttachOptions)(4));
269 w22.RightAttach = ((uint)(3)); 213 w17.YOptions = ((global::Gtk.AttachOptions)(4));
270 w22.XOptions = ((global::Gtk.AttachOptions)(4));
271 w22.YOptions = ((global::Gtk.AttachOptions)(4));
272 this.vbox1.Add(this.table1); 214 this.vbox1.Add(this.table1);
273 global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.table1])); 215 global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.table1]));
274 w23.Position = 3; 216 w18.Position = 3;
275 w23.Expand = false; 217 w18.Expand = false;
276 w23.Fill = false; 218 w18.Fill = false;
277 this.Add(this.vbox1); 219 this.Add(this.vbox1);
278 if ((this.Child != null)) 220 if ((this.Child != null))
279 { 221 {
280 this.Child.ShowAll(); 222 this.Child.ShowAll();
281 } 223 }