view gtk-gui/IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget.cs @ 60:04c0f6a7625c

Re #60: Add UI to add/remove/edit weapons in GTK * Implement Remove button * Hack "code-behind" file again to make things work, until MD bug is fixed
author IBBoard <dev@ibboard.co.uk>
date Fri, 27 Aug 2010 14:44:48 +0000
parents 4bad8cb3f889
children e7ad676a7344
line source
2 // This file has been generated by the GUI designer. Do not modify.
3 namespace IBBoard.WarFoundry.GTK.Widgets
4 {
5 public partial class UnitDisplayWidget
6 {
7 private global::Gtk.VBox vbox1;
9 private global::Gtk.HBox hbox1;
11 private global::Gtk.Entry unitName;
13 private global::Gtk.SpinButton unitSize;
15 private global::Gtk.ScrolledWindow GtkScrolledWindow;
17 private global::Gtk.NodeView unitStats;
19 private global::Gtk.HSeparator hseparator1;
21 private global::Gtk.Table table1;
23 private global::Gtk.Label equipmentLabel;
25 private global::Gtk.ScrolledWindow GtkScrolledWindow2;
27 private global::Gtk.NodeView equipmentList;
29 private global::Gtk.ScrolledWindow GtkScrolledWindow3;
31 private global::Gtk.TextView notesView;
33 private global::Gtk.Label lblNotes;
35 private global::Gtk.VBox vbox3;
37 private global::Gtk.Button bttnAddEquipment;
39 private global::Gtk.Button bttnEditEquipment;
41 private global::Gtk.Button bttnReplaceEquipment;
43 private global::Gtk.Button bttnRemoveEquipment;
45 protected virtual void Build()
46 {
47 global::Stetic.Gui.Initialize(this);
48 // Widget IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget
49 global::Stetic.BinContainer.Attach(this);
50 this.Name = "IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget";
51 // Container child IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget.Gtk.Container+ContainerChild
52 this.vbox1 = new global::Gtk.VBox();
53 this.vbox1.Name = "vbox1";
54 this.vbox1.Spacing = 6;
55 // Container child vbox1.Gtk.Box+BoxChild
56 this.hbox1 = new global::Gtk.HBox();
57 this.hbox1.Name = "hbox1";
58 this.hbox1.Spacing = 6;
59 // Container child hbox1.Gtk.Box+BoxChild
60 this.unitName = new global::Gtk.Entry();
61 this.unitName.CanFocus = true;
62 this.unitName.Name = "unitName";
63 this.unitName.IsEditable = true;
64 this.unitName.InvisibleChar = '•';
65 this.hbox1.Add(this.unitName);
66 global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.unitName]));
67 w1.Position = 0;
68 // Container child hbox1.Gtk.Box+BoxChild
69 this.unitSize = new global::Gtk.SpinButton(0, 100, 1);
70 this.unitSize.CanFocus = true;
71 this.unitSize.Name = "unitSize";
72 this.unitSize.Adjustment.PageIncrement = 10;
73 this.unitSize.ClimbRate = 1;
74 this.unitSize.Numeric = true;
75 this.hbox1.Add(this.unitSize);
76 global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.unitSize]));
77 w2.Position = 1;
78 w2.Expand = false;
79 w2.Fill = false;
80 this.vbox1.Add(this.hbox1);
81 global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
82 w3.Position = 0;
83 w3.Expand = false;
84 w3.Fill = false;
85 // Container child vbox1.Gtk.Box+BoxChild
86 this.GtkScrolledWindow = new global::Gtk.ScrolledWindow();
87 this.GtkScrolledWindow.Name = "GtkScrolledWindow";
88 this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
89 // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
90 this.unitStats = new global::Gtk.NodeView();
91 this.unitStats.HeightRequest = 75;
92 this.unitStats.CanFocus = true;
93 this.unitStats.Name = "unitStats";
94 this.GtkScrolledWindow.Add(this.unitStats);
95 this.vbox1.Add(this.GtkScrolledWindow);
96 global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow]));
97 w5.Position = 1;
98 // Container child vbox1.Gtk.Box+BoxChild
99 this.hseparator1 = new global::Gtk.HSeparator();
100 this.hseparator1.Name = "hseparator1";
101 this.vbox1.Add(this.hseparator1);
102 global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hseparator1]));
103 w6.Position = 2;
104 w6.Expand = false;
105 w6.Fill = false;
106 // Container child vbox1.Gtk.Box+BoxChild
107 this.table1 = new global::Gtk.Table(((uint)(2)), ((uint)(3)), false);
108 this.table1.Name = "table1";
109 this.table1.RowSpacing = ((uint)(6));
110 this.table1.ColumnSpacing = ((uint)(6));
111 // Container child table1.Gtk.Table+TableChild
112 this.equipmentLabel = new global::Gtk.Label();
113 this.equipmentLabel.Name = "equipmentLabel";
114 this.equipmentLabel.LabelProp = global::Mono.Unix.Catalog.GetString("equipment:");
115 this.table1.Add(this.equipmentLabel);
116 global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1[this.equipmentLabel]));
117 w7.XOptions = ((global::Gtk.AttachOptions)(4));
118 w7.YOptions = ((global::Gtk.AttachOptions)(4));
119 // Container child table1.Gtk.Table+TableChild
120 this.GtkScrolledWindow2 = new global::Gtk.ScrolledWindow();
121 this.GtkScrolledWindow2.Name = "GtkScrolledWindow2";
122 this.GtkScrolledWindow2.ShadowType = ((global::Gtk.ShadowType)(1));
123 // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
124 this.equipmentList = new global::Gtk.NodeView();
125 this.equipmentList.CanFocus = true;
126 this.equipmentList.Name = "equipmentList";
127 this.equipmentList.HeadersVisible = false;
128 this.GtkScrolledWindow2.Add(this.equipmentList);
129 this.table1.Add(this.GtkScrolledWindow2);
130 global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow2]));
131 w9.LeftAttach = ((uint)(1));
132 w9.RightAttach = ((uint)(2));
133 w9.YOptions = ((global::Gtk.AttachOptions)(4));
134 // Container child table1.Gtk.Table+TableChild
135 this.GtkScrolledWindow3 = new global::Gtk.ScrolledWindow();
136 this.GtkScrolledWindow3.Name = "GtkScrolledWindow3";
137 this.GtkScrolledWindow3.ShadowType = ((global::Gtk.ShadowType)(1));
138 // Container child GtkScrolledWindow3.Gtk.Container+ContainerChild
139 this.notesView = new global::Gtk.TextView();
140 this.notesView.CanFocus = true;
141 this.notesView.Name = "notesView";
142 this.notesView.Editable = false;
143 this.GtkScrolledWindow3.Add(this.notesView);
144 this.table1.Add(this.GtkScrolledWindow3);
145 global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow3]));
146 w11.TopAttach = ((uint)(1));
147 w11.BottomAttach = ((uint)(2));
148 w11.LeftAttach = ((uint)(1));
149 w11.RightAttach = ((uint)(2));
150 w11.YOptions = ((global::Gtk.AttachOptions)(4));
151 // Container child table1.Gtk.Table+TableChild
152 this.lblNotes = new global::Gtk.Label();
153 this.lblNotes.Name = "lblNotes";
154 this.lblNotes.LabelProp = global::Mono.Unix.Catalog.GetString("notes:");
155 this.table1.Add(this.lblNotes);
156 global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table1[this.lblNotes]));
157 w12.TopAttach = ((uint)(1));
158 w12.BottomAttach = ((uint)(2));
159 w12.XOptions = ((global::Gtk.AttachOptions)(4));
160 w12.YOptions = ((global::Gtk.AttachOptions)(4));
161 // Container child table1.Gtk.Table+TableChild
162 this.vbox3 = new global::Gtk.VBox();
163 this.vbox3.Name = "vbox3";
164 this.vbox3.Spacing = 6;
165 // Container child vbox3.Gtk.Box+BoxChild
166 this.bttnAddEquipment = new global::Gtk.Button();
167 this.bttnAddEquipment.CanFocus = true;
168 this.bttnAddEquipment.Name = "bttnAddEquipment";
169 this.bttnAddEquipment.UseUnderline = true;
170 this.bttnAddEquipment.Label = global::Mono.Unix.Catalog.GetString("Add");
171 this.vbox3.Add(this.bttnAddEquipment);
172 global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnAddEquipment]));
173 w13.Position = 0;
174 w13.Expand = false;
175 w13.Fill = false;
176 // Container child vbox3.Gtk.Box+BoxChild
177 this.bttnEditEquipment = new global::Gtk.Button();
178 this.bttnEditEquipment.CanFocus = true;
179 this.bttnEditEquipment.Name = "bttnEditEquipment";
180 this.bttnEditEquipment.UseUnderline = true;
181 this.bttnEditEquipment.Label = global::Mono.Unix.Catalog.GetString("Edit");
182 this.vbox3.Add(this.bttnEditEquipment);
183 global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnEditEquipment]));
184 w14.Position = 1;
185 w14.Expand = false;
186 w14.Fill = false;
187 // Container child vbox3.Gtk.Box+BoxChild
188 this.bttnReplaceEquipment = new global::Gtk.Button();
189 this.bttnReplaceEquipment.CanFocus = true;
190 this.bttnReplaceEquipment.Name = "bttnReplaceEquipment";
191 this.bttnReplaceEquipment.UseUnderline = true;
192 this.bttnReplaceEquipment.Label = global::Mono.Unix.Catalog.GetString("Replace");
193 this.vbox3.Add(this.bttnReplaceEquipment);
194 global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnReplaceEquipment]));
195 w15.Position = 2;
196 w15.Expand = false;
197 w15.Fill = false;
198 // Container child vbox3.Gtk.Box+BoxChild
199 this.bttnRemoveEquipment = new global::Gtk.Button();
200 this.bttnRemoveEquipment.CanFocus = true;
201 this.bttnRemoveEquipment.Name = "bttnRemoveEquipment";
202 this.bttnRemoveEquipment.UseUnderline = true;
203 this.bttnRemoveEquipment.Label = global::Mono.Unix.Catalog.GetString("Remove");
204 this.vbox3.Add(this.bttnRemoveEquipment);
205 global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnRemoveEquipment]));
206 w16.Position = 3;
207 w16.Expand = false;
208 w16.Fill = false;
209 this.table1.Add(this.vbox3);
210 global::Gtk.Table.TableChild w17 = ((global::Gtk.Table.TableChild)(this.table1[this.vbox3]));
211 w17.LeftAttach = ((uint)(2));
212 w17.RightAttach = ((uint)(3));
213 w17.XOptions = ((global::Gtk.AttachOptions)(4));
214 w17.YOptions = ((global::Gtk.AttachOptions)(4));
215 this.vbox1.Add(this.table1);
216 global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.table1]));
217 w18.Position = 3;
218 w18.Expand = false;
219 w18.Fill = false;
220 this.Add(this.vbox1);
221 if ((this.Child != null))
222 {
223 this.Child.ShowAll();
224 }
225 this.Show();
226 this.unitName.FocusOutEvent += new global::Gtk.FocusOutEventHandler(this.OnUnitNameFocusOut);
227 this.unitName.KeyPressEvent += new global::Gtk.KeyPressEventHandler(this.OnUnitNameKeyPress);
228 this.unitSize.FocusOutEvent += new global::Gtk.FocusOutEventHandler(this.OnUnitSizeFocusOut);
229 this.unitSize.KeyPressEvent += new global::Gtk.KeyPressEventHandler(this.OnUnitSizeKeyPress);
230 this.bttnAddEquipment.Clicked += new global::System.EventHandler(this.OnBttnAddEquipmentClicked);
231 this.bttnRemoveEquipment.Clicked += new global::System.EventHandler(this.HandleRemoveButtonActivated);
232 }
233 }
234 }