view gtk-gui/IBBoard.WarFoundry.GUI.GTK.Widgets.UnitDisplayWidget.cs @ 167:9808adf2d566

Re #419: Remove assumptions of a file-based install * Update GTK# GUI to use Streams version of XSLT export
author IBBoard <dev@ibboard.co.uk>
date Wed, 28 Nov 2012 20:25:53 +0000
parents 560eb34acd17
children
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.HeightRequest = 115;
74 this.statsScrollPanel.CanFocus = true;
75 this.statsScrollPanel.Name = "statsScrollPanel";
76 this.statsScrollPanel.ShadowType = ((global::Gtk.ShadowType)(1));
77 // Container child statsScrollPanel.Gtk.Container+ContainerChild
78 global::Gtk.Viewport w4 = new global::Gtk.Viewport ();
79 w4.ShadowType = ((global::Gtk.ShadowType)(0));
80 // Container child GtkViewport.Gtk.Container+ContainerChild
81 this.statsRepeatBox = new global::Gtk.VBox ();
82 this.statsRepeatBox.Name = "statsRepeatBox";
83 this.statsRepeatBox.Spacing = 6;
84 w4.Add (this.statsRepeatBox);
85 this.statsScrollPanel.Add (w4);
86 this.vbox1.Add (this.statsScrollPanel);
87 global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.statsScrollPanel]));
88 w7.Position = 1;
89 w7.Expand = false;
90 // Container child vbox1.Gtk.Box+BoxChild
91 this.hseparator1 = new global::Gtk.HSeparator ();
92 this.hseparator1.Name = "hseparator1";
93 this.vbox1.Add (this.hseparator1);
94 global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hseparator1]));
95 w8.Position = 2;
96 w8.Expand = false;
97 w8.Fill = false;
98 // Container child vbox1.Gtk.Box+BoxChild
99 this.hbox2 = new global::Gtk.HBox ();
100 this.hbox2.Name = "hbox2";
101 this.hbox2.Spacing = 6;
102 // Container child hbox2.Gtk.Box+BoxChild
103 this.table1 = new global::Gtk.Table (((uint)(3)), ((uint)(2)), false);
104 this.table1.Name = "table1";
105 this.table1.RowSpacing = ((uint)(6));
106 this.table1.ColumnSpacing = ((uint)(6));
107 // Container child table1.Gtk.Table+TableChild
108 this.GtkScrolledWindow2 = new global::Gtk.ScrolledWindow ();
109 this.GtkScrolledWindow2.Name = "GtkScrolledWindow2";
110 this.GtkScrolledWindow2.ShadowType = ((global::Gtk.ShadowType)(1));
111 // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
112 this.equipmentList = new global::Gtk.NodeView ();
113 this.equipmentList.CanFocus = true;
114 this.equipmentList.Name = "equipmentList";
115 this.equipmentList.HeadersVisible = false;
116 this.GtkScrolledWindow2.Add (this.equipmentList);
117 this.table1.Add (this.GtkScrolledWindow2);
118 global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table1 [this.GtkScrolledWindow2]));
119 w10.LeftAttach = ((uint)(1));
120 w10.RightAttach = ((uint)(2));
121 // Container child table1.Gtk.Table+TableChild
122 this.GtkScrolledWindow3 = new global::Gtk.ScrolledWindow ();
123 this.GtkScrolledWindow3.Name = "GtkScrolledWindow3";
124 this.GtkScrolledWindow3.ShadowType = ((global::Gtk.ShadowType)(1));
125 // Container child GtkScrolledWindow3.Gtk.Container+ContainerChild
126 this.notesView = new global::Gtk.TextView ();
127 this.notesView.CanFocus = true;
128 this.notesView.Name = "notesView";
129 this.notesView.Editable = false;
130 this.GtkScrolledWindow3.Add (this.notesView);
131 this.table1.Add (this.GtkScrolledWindow3);
132 global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table1 [this.GtkScrolledWindow3]));
133 w12.TopAttach = ((uint)(2));
134 w12.BottomAttach = ((uint)(3));
135 w12.LeftAttach = ((uint)(1));
136 w12.RightAttach = ((uint)(2));
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 // Container child table1.Gtk.Table+TableChild
154 this.lblAbilities = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel ();
155 this.lblAbilities.Name = "lblAbilities";
156 this.lblAbilities.LabelProp = global::Mono.Unix.Catalog.GetString ("abilities:");
157 this.table1.Add (this.lblAbilities);
158 global::Gtk.Table.TableChild w15 = ((global::Gtk.Table.TableChild)(this.table1 [this.lblAbilities]));
159 w15.TopAttach = ((uint)(1));
160 w15.BottomAttach = ((uint)(2));
161 w15.XOptions = ((global::Gtk.AttachOptions)(4));
162 w15.YOptions = ((global::Gtk.AttachOptions)(4));
163 // Container child table1.Gtk.Table+TableChild
164 this.lblEquip = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel ();
165 this.lblEquip.Name = "lblEquip";
166 this.lblEquip.LabelProp = global::Mono.Unix.Catalog.GetString ("equipment:");
167 this.table1.Add (this.lblEquip);
168 global::Gtk.Table.TableChild w16 = ((global::Gtk.Table.TableChild)(this.table1 [this.lblEquip]));
169 w16.XOptions = ((global::Gtk.AttachOptions)(4));
170 w16.YOptions = ((global::Gtk.AttachOptions)(4));
171 // Container child table1.Gtk.Table+TableChild
172 this.lblNotes = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel ();
173 this.lblNotes.Name = "lblNotes";
174 this.lblNotes.LabelProp = global::Mono.Unix.Catalog.GetString ("notes:");
175 this.table1.Add (this.lblNotes);
176 global::Gtk.Table.TableChild w17 = ((global::Gtk.Table.TableChild)(this.table1 [this.lblNotes]));
177 w17.TopAttach = ((uint)(2));
178 w17.BottomAttach = ((uint)(3));
179 w17.XOptions = ((global::Gtk.AttachOptions)(4));
180 w17.YOptions = ((global::Gtk.AttachOptions)(4));
181 this.hbox2.Add (this.table1);
182 global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.table1]));
183 w18.Position = 0;
184 // Container child hbox2.Gtk.Box+BoxChild
185 this.vbox3 = new global::Gtk.VBox ();
186 this.vbox3.Name = "vbox3";
187 this.vbox3.Spacing = 6;
188 // Container child vbox3.Gtk.Box+BoxChild
189 this.bttnAddWeapon = new global::IBBoard.GtkSharp.Translatable.TranslatableButton ();
190 this.bttnAddWeapon.CanFocus = true;
191 this.bttnAddWeapon.Name = "bttnAddWeapon";
192 this.bttnAddWeapon.UseUnderline = true;
193 this.bttnAddWeapon.Label = global::Mono.Unix.Catalog.GetString ("add");
194 this.vbox3.Add (this.bttnAddWeapon);
195 global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.bttnAddWeapon]));
196 w19.Position = 0;
197 w19.Expand = false;
198 w19.Fill = false;
199 // Container child vbox3.Gtk.Box+BoxChild
200 this.bttnEditWeapon = new global::IBBoard.GtkSharp.Translatable.TranslatableButton ();
201 this.bttnEditWeapon.Sensitive = false;
202 this.bttnEditWeapon.CanFocus = true;
203 this.bttnEditWeapon.Name = "bttnEditWeapon";
204 this.bttnEditWeapon.UseUnderline = true;
205 this.bttnEditWeapon.Label = global::Mono.Unix.Catalog.GetString ("edit");
206 this.vbox3.Add (this.bttnEditWeapon);
207 global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.bttnEditWeapon]));
208 w20.Position = 1;
209 w20.Expand = false;
210 w20.Fill = false;
211 // Container child vbox3.Gtk.Box+BoxChild
212 this.bttnReplaceWeapon = new global::IBBoard.GtkSharp.Translatable.TranslatableButton ();
213 this.bttnReplaceWeapon.Sensitive = false;
214 this.bttnReplaceWeapon.CanFocus = true;
215 this.bttnReplaceWeapon.Name = "bttnReplaceWeapon";
216 this.bttnReplaceWeapon.UseUnderline = true;
217 this.bttnReplaceWeapon.Label = global::Mono.Unix.Catalog.GetString ("replace");
218 this.vbox3.Add (this.bttnReplaceWeapon);
219 global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.bttnReplaceWeapon]));
220 w21.Position = 2;
221 w21.Expand = false;
222 w21.Fill = false;
223 // Container child vbox3.Gtk.Box+BoxChild
224 this.bttnRemoveWeapon = new global::IBBoard.GtkSharp.Translatable.TranslatableButton ();
225 this.bttnRemoveWeapon.Sensitive = false;
226 this.bttnRemoveWeapon.CanFocus = true;
227 this.bttnRemoveWeapon.Name = "bttnRemoveWeapon";
228 this.bttnRemoveWeapon.UseUnderline = true;
229 this.bttnRemoveWeapon.Label = global::Mono.Unix.Catalog.GetString ("remove");
230 this.vbox3.Add (this.bttnRemoveWeapon);
231 global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.bttnRemoveWeapon]));
232 w22.Position = 3;
233 w22.Expand = false;
234 w22.Fill = false;
235 this.hbox2.Add (this.vbox3);
236 global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.vbox3]));
237 w23.Position = 1;
238 w23.Expand = false;
239 w23.Fill = false;
240 this.vbox1.Add (this.hbox2);
241 global::Gtk.Box.BoxChild w24 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox2]));
242 w24.Position = 3;
243 this.Add (this.vbox1);
244 if ((this.Child != null)) {
245 this.Child.ShowAll ();
246 }
247 this.Show ();
248 this.unitName.FocusOutEvent += new global::Gtk.FocusOutEventHandler (this.OnUnitNameFocusOut);
249 this.unitName.KeyPressEvent += new global::Gtk.KeyPressEventHandler (this.OnUnitNameKeyPress);
250 this.unitSize.FocusOutEvent += new global::Gtk.FocusOutEventHandler (this.OnUnitSizeFocusOut);
251 this.unitSize.KeyPressEvent += new global::Gtk.KeyPressEventHandler (this.OnUnitSizeKeyPress);
252 this.bttnAddWeapon.Clicked += new global::System.EventHandler (this.OnBttnAddEquipmentClicked);
253 this.bttnEditWeapon.Clicked += new global::System.EventHandler (this.HandleEditButtonClicked);
254 this.bttnReplaceWeapon.Clicked += new global::System.EventHandler (this.HandleReplaceButtonClicked);
255 this.bttnRemoveWeapon.Clicked += new global::System.EventHandler (this.HandleRemoveButtonActivated);
256 }
257 }
258 }