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