view gtk-gui/IBBoard.WarFoundry.GUI.GTK.Widgets.UnitDisplayWidget.cs @ 120:95a8b3e0efc2

* Add standardised .hgignore for C# projects
author IBBoard <dev@ibboard.co.uk>
date Sat, 24 Sep 2011 12:00:27 +0100
parents e40d892a2298
children 560eb34acd17
line source
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.ScrolledWindow GtkScrolledWindow2;
17 private global::Gtk.NodeView equipmentList;
18 private global::Gtk.ScrolledWindow GtkScrolledWindow3;
19 private global::Gtk.TextView notesView;
20 private global::Gtk.ScrolledWindow GtkScrolledWindow4;
21 private global::Gtk.NodeView abilitiesList;
22 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblAbilities;
23 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblEquip;
24 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblNotes;
25 private global::Gtk.VBox vbox3;
26 private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnAddWeapon;
27 private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnEditWeapon;
28 private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnReplaceWeapon;
29 private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnRemoveWeapon;
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.GtkScrolledWindow2 = new global::Gtk.ScrolledWindow();
107 this.GtkScrolledWindow2.Name = "GtkScrolledWindow2";
108 this.GtkScrolledWindow2.ShadowType = ((global::Gtk.ShadowType)(1));
109 // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
110 this.equipmentList = new global::Gtk.NodeView();
111 this.equipmentList.CanFocus = true;
112 this.equipmentList.Name = "equipmentList";
113 this.equipmentList.HeadersVisible = false;
114 this.GtkScrolledWindow2.Add(this.equipmentList);
115 this.table1.Add(this.GtkScrolledWindow2);
116 global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow2]));
117 w10.LeftAttach = ((uint)(1));
118 w10.RightAttach = ((uint)(2));
119 w10.YOptions = ((global::Gtk.AttachOptions)(4));
120 // Container child table1.Gtk.Table+TableChild
121 this.GtkScrolledWindow3 = new global::Gtk.ScrolledWindow();
122 this.GtkScrolledWindow3.Name = "GtkScrolledWindow3";
123 this.GtkScrolledWindow3.ShadowType = ((global::Gtk.ShadowType)(1));
124 // Container child GtkScrolledWindow3.Gtk.Container+ContainerChild
125 this.notesView = new global::Gtk.TextView();
126 this.notesView.CanFocus = true;
127 this.notesView.Name = "notesView";
128 this.notesView.Editable = false;
129 this.GtkScrolledWindow3.Add(this.notesView);
130 this.table1.Add(this.GtkScrolledWindow3);
131 global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow3]));
132 w12.TopAttach = ((uint)(2));
133 w12.BottomAttach = ((uint)(3));
134 w12.LeftAttach = ((uint)(1));
135 w12.RightAttach = ((uint)(2));
136 w12.YOptions = ((global::Gtk.AttachOptions)(4));
137 // Container child table1.Gtk.Table+TableChild
138 this.GtkScrolledWindow4 = new global::Gtk.ScrolledWindow();
139 this.GtkScrolledWindow4.Name = "GtkScrolledWindow4";
140 this.GtkScrolledWindow4.ShadowType = ((global::Gtk.ShadowType)(1));
141 // Container child GtkScrolledWindow4.Gtk.Container+ContainerChild
142 this.abilitiesList = new global::Gtk.NodeView();
143 this.abilitiesList.CanFocus = true;
144 this.abilitiesList.Name = "abilitiesList";
145 this.abilitiesList.HeadersVisible = false;
146 this.GtkScrolledWindow4.Add(this.abilitiesList);
147 this.table1.Add(this.GtkScrolledWindow4);
148 global::Gtk.Table.TableChild w14 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow4]));
149 w14.TopAttach = ((uint)(1));
150 w14.BottomAttach = ((uint)(2));
151 w14.LeftAttach = ((uint)(1));
152 w14.RightAttach = ((uint)(2));
153 w14.YOptions = ((global::Gtk.AttachOptions)(4));
154 // Container child table1.Gtk.Table+TableChild
155 this.lblAbilities = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
156 this.lblAbilities.Name = "lblAbilities";
157 this.lblAbilities.LabelProp = global::Mono.Unix.Catalog.GetString("abilities:");
158 this.table1.Add(this.lblAbilities);
159 global::Gtk.Table.TableChild w15 = ((global::Gtk.Table.TableChild)(this.table1[this.lblAbilities]));
160 w15.TopAttach = ((uint)(1));
161 w15.BottomAttach = ((uint)(2));
162 w15.XOptions = ((global::Gtk.AttachOptions)(4));
163 w15.YOptions = ((global::Gtk.AttachOptions)(4));
164 // Container child table1.Gtk.Table+TableChild
165 this.lblEquip = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
166 this.lblEquip.Name = "lblEquip";
167 this.lblEquip.LabelProp = global::Mono.Unix.Catalog.GetString("equipment:");
168 this.table1.Add(this.lblEquip);
169 global::Gtk.Table.TableChild w16 = ((global::Gtk.Table.TableChild)(this.table1[this.lblEquip]));
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::IBBoard.GtkSharp.Translatable.TranslatableLabel();
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.bttnAddWeapon = new global::IBBoard.GtkSharp.Translatable.TranslatableButton();
191 this.bttnAddWeapon.CanFocus = true;
192 this.bttnAddWeapon.Name = "bttnAddWeapon";
193 this.bttnAddWeapon.UseUnderline = true;
194 this.bttnAddWeapon.Label = global::Mono.Unix.Catalog.GetString("add");
195 this.vbox3.Add(this.bttnAddWeapon);
196 global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnAddWeapon]));
197 w19.Position = 0;
198 w19.Expand = false;
199 w19.Fill = false;
200 // Container child vbox3.Gtk.Box+BoxChild
201 this.bttnEditWeapon = new global::IBBoard.GtkSharp.Translatable.TranslatableButton();
202 this.bttnEditWeapon.Sensitive = false;
203 this.bttnEditWeapon.CanFocus = true;
204 this.bttnEditWeapon.Name = "bttnEditWeapon";
205 this.bttnEditWeapon.UseUnderline = true;
206 this.bttnEditWeapon.Label = global::Mono.Unix.Catalog.GetString("edit");
207 this.vbox3.Add(this.bttnEditWeapon);
208 global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnEditWeapon]));
209 w20.Position = 1;
210 w20.Expand = false;
211 w20.Fill = false;
212 // Container child vbox3.Gtk.Box+BoxChild
213 this.bttnReplaceWeapon = new global::IBBoard.GtkSharp.Translatable.TranslatableButton();
214 this.bttnReplaceWeapon.Sensitive = false;
215 this.bttnReplaceWeapon.CanFocus = true;
216 this.bttnReplaceWeapon.Name = "bttnReplaceWeapon";
217 this.bttnReplaceWeapon.UseUnderline = true;
218 this.bttnReplaceWeapon.Label = global::Mono.Unix.Catalog.GetString("replace");
219 this.vbox3.Add(this.bttnReplaceWeapon);
220 global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnReplaceWeapon]));
221 w21.Position = 2;
222 w21.Expand = false;
223 w21.Fill = false;
224 // Container child vbox3.Gtk.Box+BoxChild
225 this.bttnRemoveWeapon = new global::IBBoard.GtkSharp.Translatable.TranslatableButton();
226 this.bttnRemoveWeapon.Sensitive = false;
227 this.bttnRemoveWeapon.CanFocus = true;
228 this.bttnRemoveWeapon.Name = "bttnRemoveWeapon";
229 this.bttnRemoveWeapon.UseUnderline = true;
230 this.bttnRemoveWeapon.Label = global::Mono.Unix.Catalog.GetString("remove");
231 this.vbox3.Add(this.bttnRemoveWeapon);
232 global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnRemoveWeapon]));
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.bttnAddWeapon.Clicked += new global::System.EventHandler(this.OnBttnAddEquipmentClicked);
257 this.bttnEditWeapon.Clicked += new global::System.EventHandler(this.HandleEditButtonClicked);
258 this.bttnReplaceWeapon.Clicked += new global::System.EventHandler(this.HandleReplaceButtonClicked);
259 this.bttnRemoveWeapon.Clicked += new global::System.EventHandler(this.HandleRemoveButtonActivated);
260 }
261 }
262 }