comparison gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmReplaceEquipment.cs @ 68:7028e24b67ec

Re #60: Add UI to add/remove/edit weapons in GTK * Add "Replace" dialog Note: Dialog null refs because of a bad assumption in the base class - base constructor calls SetupUI before Replace constructor has set all of its values
author IBBoard <dev@ibboard.co.uk>
date Wed, 03 Nov 2010 21:02:54 +0000
parents
children 68804784bf6f
comparison
equal deleted inserted replaced
67:a7306b5a229e 68:7028e24b67ec
1
2 // This file has been generated by the GUI designer. Do not modify.
3 namespace IBBoard.WarFoundry.GUI.GTK
4 {
5 public partial class FrmReplaceEquipment
6 {
7 private global::Gtk.Table table1;
8 private global::Gtk.ScrolledWindow GtkScrolledWindow;
9 private global::Gtk.TreeView lstEquipment;
10 private global::Gtk.HBox hbox2;
11 private global::Gtk.Table table2;
12 private global::Gtk.Label lblEquipAll;
13 private global::Gtk.Label lblPercent;
14 private global::Gtk.SpinButton numericAmount;
15 private global::Gtk.SpinButton percentageAmount;
16 private global::Gtk.RadioButton rbEquipAll;
17 private global::Gtk.RadioButton rbEquipNumeric;
18 private global::Gtk.RadioButton rbEquipPercent;
19 private global::Gtk.Label lblEquipAmount;
20 private global::Gtk.Label lblEquipment;
21 private global::Gtk.Button buttonCancel;
22 private global::Gtk.Button buttonOk;
23
24 protected virtual void Build()
25 {
26 global::Stetic.Gui.Initialize(this);
27 // Widget IBBoard.WarFoundry.GUI.GTK.FrmReplaceEquipment
28 this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmReplaceEquipment";
29 this.Title = global::Mono.Unix.Catalog.GetString("Add equipment");
30 this.WindowPosition = ((global::Gtk.WindowPosition)(4));
31 this.Modal = true;
32 this.SkipPagerHint = true;
33 this.SkipTaskbarHint = true;
34 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmReplaceEquipment.VBox
35 global::Gtk.VBox w1 = this.VBox;
36 w1.Name = "dialog1_VBox";
37 w1.BorderWidth = ((uint)(2));
38 // Container child dialog1_VBox.Gtk.Box+BoxChild
39 this.table1 = new global::Gtk.Table(((uint)(2)), ((uint)(2)), false);
40 this.table1.Name = "table1";
41 this.table1.RowSpacing = ((uint)(6));
42 this.table1.ColumnSpacing = ((uint)(6));
43 // Container child table1.Gtk.Table+TableChild
44 this.GtkScrolledWindow = new global::Gtk.ScrolledWindow();
45 this.GtkScrolledWindow.Name = "GtkScrolledWindow";
46 this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
47 // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
48 this.lstEquipment = new global::Gtk.TreeView();
49 this.lstEquipment.CanFocus = true;
50 this.lstEquipment.Name = "lstEquipment";
51 this.lstEquipment.HeadersVisible = false;
52 this.GtkScrolledWindow.Add(this.lstEquipment);
53 this.table1.Add(this.GtkScrolledWindow);
54 global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow]));
55 w3.LeftAttach = ((uint)(1));
56 w3.RightAttach = ((uint)(2));
57 w3.YOptions = ((global::Gtk.AttachOptions)(4));
58 // Container child table1.Gtk.Table+TableChild
59 this.hbox2 = new global::Gtk.HBox();
60 this.hbox2.Name = "hbox2";
61 this.hbox2.Spacing = 6;
62 // Container child hbox2.Gtk.Box+BoxChild
63 this.table2 = new global::Gtk.Table(((uint)(3)), ((uint)(3)), false);
64 this.table2.Name = "table2";
65 this.table2.RowSpacing = ((uint)(6));
66 this.table2.ColumnSpacing = ((uint)(6));
67 // Container child table2.Gtk.Table+TableChild
68 this.lblEquipAll = new global::Gtk.Label();
69 this.lblEquipAll.Name = "lblEquipAll";
70 this.lblEquipAll.LabelProp = global::Mono.Unix.Catalog.GetString("equip all");
71 this.table2.Add(this.lblEquipAll);
72 global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table2[this.lblEquipAll]));
73 w4.TopAttach = ((uint)(2));
74 w4.BottomAttach = ((uint)(3));
75 w4.LeftAttach = ((uint)(1));
76 w4.RightAttach = ((uint)(2));
77 w4.YOptions = ((global::Gtk.AttachOptions)(4));
78 // Container child table2.Gtk.Table+TableChild
79 this.lblPercent = new global::Gtk.Label();
80 this.lblPercent.Name = "lblPercent";
81 this.lblPercent.LabelProp = global::Mono.Unix.Catalog.GetString("%");
82 this.table2.Add(this.lblPercent);
83 global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table2[this.lblPercent]));
84 w5.TopAttach = ((uint)(1));
85 w5.BottomAttach = ((uint)(2));
86 w5.LeftAttach = ((uint)(2));
87 w5.RightAttach = ((uint)(3));
88 w5.XOptions = ((global::Gtk.AttachOptions)(4));
89 w5.YOptions = ((global::Gtk.AttachOptions)(4));
90 // Container child table2.Gtk.Table+TableChild
91 this.numericAmount = new global::Gtk.SpinButton(0, 100, 1);
92 this.numericAmount.CanFocus = true;
93 this.numericAmount.Name = "numericAmount";
94 this.numericAmount.Adjustment.PageIncrement = 10;
95 this.numericAmount.ClimbRate = 1;
96 this.numericAmount.Numeric = true;
97 this.table2.Add(this.numericAmount);
98 global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table2[this.numericAmount]));
99 w6.LeftAttach = ((uint)(1));
100 w6.RightAttach = ((uint)(2));
101 w6.XOptions = ((global::Gtk.AttachOptions)(0));
102 w6.YOptions = ((global::Gtk.AttachOptions)(4));
103 // Container child table2.Gtk.Table+TableChild
104 this.percentageAmount = new global::Gtk.SpinButton(0, 100, 1);
105 this.percentageAmount.CanFocus = true;
106 this.percentageAmount.Name = "percentageAmount";
107 this.percentageAmount.Adjustment.PageIncrement = 10;
108 this.percentageAmount.ClimbRate = 1;
109 this.percentageAmount.Digits = ((uint)(1));
110 this.percentageAmount.Numeric = true;
111 this.table2.Add(this.percentageAmount);
112 global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table2[this.percentageAmount]));
113 w7.TopAttach = ((uint)(1));
114 w7.BottomAttach = ((uint)(2));
115 w7.LeftAttach = ((uint)(1));
116 w7.RightAttach = ((uint)(2));
117 w7.XOptions = ((global::Gtk.AttachOptions)(0));
118 w7.YOptions = ((global::Gtk.AttachOptions)(4));
119 // Container child table2.Gtk.Table+TableChild
120 this.rbEquipAll = new global::Gtk.RadioButton("");
121 this.rbEquipAll.CanFocus = true;
122 this.rbEquipAll.Name = "rbEquipAll";
123 this.rbEquipAll.DrawIndicator = true;
124 this.rbEquipAll.UseUnderline = true;
125 this.rbEquipAll.Group = new global::GLib.SList(global::System.IntPtr.Zero);
126 this.table2.Add(this.rbEquipAll);
127 global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table2[this.rbEquipAll]));
128 w8.TopAttach = ((uint)(2));
129 w8.BottomAttach = ((uint)(3));
130 w8.XOptions = ((global::Gtk.AttachOptions)(4));
131 w8.YOptions = ((global::Gtk.AttachOptions)(4));
132 // Container child table2.Gtk.Table+TableChild
133 this.rbEquipNumeric = new global::Gtk.RadioButton("");
134 this.rbEquipNumeric.CanFocus = true;
135 this.rbEquipNumeric.Name = "rbEquipNumeric";
136 this.rbEquipNumeric.DrawIndicator = true;
137 this.rbEquipNumeric.UseUnderline = true;
138 this.rbEquipNumeric.Group = this.rbEquipAll.Group;
139 this.table2.Add(this.rbEquipNumeric);
140 global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table2[this.rbEquipNumeric]));
141 w9.XOptions = ((global::Gtk.AttachOptions)(4));
142 w9.YOptions = ((global::Gtk.AttachOptions)(4));
143 // Container child table2.Gtk.Table+TableChild
144 this.rbEquipPercent = new global::Gtk.RadioButton("");
145 this.rbEquipPercent.CanFocus = true;
146 this.rbEquipPercent.Name = "rbEquipPercent";
147 this.rbEquipPercent.DrawIndicator = true;
148 this.rbEquipPercent.UseUnderline = true;
149 this.rbEquipPercent.Group = this.rbEquipAll.Group;
150 this.table2.Add(this.rbEquipPercent);
151 global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table2[this.rbEquipPercent]));
152 w10.TopAttach = ((uint)(1));
153 w10.BottomAttach = ((uint)(2));
154 w10.XOptions = ((global::Gtk.AttachOptions)(4));
155 w10.YOptions = ((global::Gtk.AttachOptions)(4));
156 this.hbox2.Add(this.table2);
157 global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.table2]));
158 w11.Position = 0;
159 w11.Expand = false;
160 w11.Fill = false;
161 this.table1.Add(this.hbox2);
162 global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table1[this.hbox2]));
163 w12.TopAttach = ((uint)(1));
164 w12.BottomAttach = ((uint)(2));
165 w12.LeftAttach = ((uint)(1));
166 w12.RightAttach = ((uint)(2));
167 w12.YOptions = ((global::Gtk.AttachOptions)(4));
168 // Container child table1.Gtk.Table+TableChild
169 this.lblEquipAmount = new global::Gtk.Label();
170 this.lblEquipAmount.Name = "lblEquipAmount";
171 this.lblEquipAmount.LabelProp = global::Mono.Unix.Catalog.GetString("amount:");
172 this.table1.Add(this.lblEquipAmount);
173 global::Gtk.Table.TableChild w13 = ((global::Gtk.Table.TableChild)(this.table1[this.lblEquipAmount]));
174 w13.TopAttach = ((uint)(1));
175 w13.BottomAttach = ((uint)(2));
176 w13.XOptions = ((global::Gtk.AttachOptions)(4));
177 w13.YOptions = ((global::Gtk.AttachOptions)(4));
178 // Container child table1.Gtk.Table+TableChild
179 this.lblEquipment = new global::Gtk.Label();
180 this.lblEquipment.Name = "lblEquipment";
181 this.lblEquipment.LabelProp = global::Mono.Unix.Catalog.GetString("equipment");
182 this.table1.Add(this.lblEquipment);
183 global::Gtk.Table.TableChild w14 = ((global::Gtk.Table.TableChild)(this.table1[this.lblEquipment]));
184 w14.XOptions = ((global::Gtk.AttachOptions)(4));
185 w14.YOptions = ((global::Gtk.AttachOptions)(4));
186 w1.Add(this.table1);
187 global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(w1[this.table1]));
188 w15.Position = 0;
189 w15.Expand = false;
190 w15.Fill = false;
191 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmReplaceEquipment.ActionArea
192 global::Gtk.HButtonBox w16 = this.ActionArea;
193 w16.Name = "dialog1_ActionArea";
194 w16.Spacing = 10;
195 w16.BorderWidth = ((uint)(5));
196 w16.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
197 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
198 this.buttonCancel = new global::Gtk.Button();
199 this.buttonCancel.CanDefault = true;
200 this.buttonCancel.CanFocus = true;
201 this.buttonCancel.Name = "buttonCancel";
202 this.buttonCancel.UseStock = true;
203 this.buttonCancel.UseUnderline = true;
204 this.buttonCancel.Label = "gtk-cancel";
205 this.AddActionWidget(this.buttonCancel, -6);
206 global::Gtk.ButtonBox.ButtonBoxChild w17 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w16[this.buttonCancel]));
207 w17.Expand = false;
208 w17.Fill = false;
209 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
210 this.buttonOk = new global::Gtk.Button();
211 this.buttonOk.CanDefault = true;
212 this.buttonOk.CanFocus = true;
213 this.buttonOk.Name = "buttonOk";
214 this.buttonOk.UseStock = true;
215 this.buttonOk.UseUnderline = true;
216 this.buttonOk.Label = "gtk-ok";
217 this.AddActionWidget(this.buttonOk, -5);
218 global::Gtk.ButtonBox.ButtonBoxChild w18 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w16[this.buttonOk]));
219 w18.Position = 1;
220 w18.Expand = false;
221 w18.Fill = false;
222 if ((this.Child != null))
223 {
224 this.Child.ShowAll();
225 }
226 this.DefaultWidth = 400;
227 this.DefaultHeight = 300;
228 this.Show();
229 this.rbEquipNumeric.Clicked += new global::System.EventHandler(this.RadioButtonClicked);
230 this.percentageAmount.ValueChanged += new global::System.EventHandler(this.SpinButtonValueChanged);
231 this.numericAmount.ValueChanged += new global::System.EventHandler(this.SpinButtonValueChanged);
232 this.buttonCancel.Clicked += new global::System.EventHandler(this.CancelButtonClicked);
233 this.buttonOk.Clicked += new global::System.EventHandler(this.OkayButtonClicked);
234 }
235 }
236 }