comparison gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmNewArmy.cs @ 156:08b30dc56af4

Re #417: Improve WarFoundry installation experience * Make it more obvious how to get data files in GTK# UI
author IBBoard <dev@ibboard.co.uk>
date Sat, 12 May 2012 20:11:33 +0100
parents 7b091ea86819
children 2d1dd73a3289
comparison
equal deleted inserted replaced
155:7b091ea86819 156:08b30dc56af4
10 private global::Gtk.HBox hbox2; 10 private global::Gtk.HBox hbox2;
11 private global::Gtk.SpinButton sbPointsValue; 11 private global::Gtk.SpinButton sbPointsValue;
12 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblArmyName; 12 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblArmyName;
13 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblArmySize; 13 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblArmySize;
14 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblGameSystem; 14 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblGameSystem;
15 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblRaceList;
16 private global::Gtk.ComboBoxEntry systemCombo; 15 private global::Gtk.ComboBoxEntry systemCombo;
17 private global::Gtk.Entry txtArmyName; 16 private global::Gtk.Entry txtArmyName;
17 private global::Gtk.VBox vbox2;
18 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblRaceList;
19 private global::Gtk.Label lblGetMore;
18 private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnCancel; 20 private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnCancel;
19 private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnCreate; 21 private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnCreate;
20 22
21 protected virtual void Build () 23 protected virtual void Build ()
22 { 24 {
61 w3.TopAttach = ((uint)(1)); 63 w3.TopAttach = ((uint)(1));
62 w3.BottomAttach = ((uint)(2)); 64 w3.BottomAttach = ((uint)(2));
63 w3.LeftAttach = ((uint)(1)); 65 w3.LeftAttach = ((uint)(1));
64 w3.RightAttach = ((uint)(2)); 66 w3.RightAttach = ((uint)(2));
65 w3.XOptions = ((global::Gtk.AttachOptions)(4)); 67 w3.XOptions = ((global::Gtk.AttachOptions)(4));
66 w3.YOptions = ((global::Gtk.AttachOptions)(4));
67 // Container child table1.Gtk.Table+TableChild 68 // Container child table1.Gtk.Table+TableChild
68 this.hbox2 = new global::Gtk.HBox (); 69 this.hbox2 = new global::Gtk.HBox ();
69 this.hbox2.Name = "hbox2"; 70 this.hbox2.Name = "hbox2";
70 // Container child hbox2.Gtk.Box+BoxChild 71 // Container child hbox2.Gtk.Box+BoxChild
71 this.sbPointsValue = new global::Gtk.SpinButton (0, 2000000000, 100); 72 this.sbPointsValue = new global::Gtk.SpinButton (0, 2000000000, 100);
116 this.table1.Add (this.lblGameSystem); 117 this.table1.Add (this.lblGameSystem);
117 global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table1 [this.lblGameSystem])); 118 global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table1 [this.lblGameSystem]));
118 w8.XOptions = ((global::Gtk.AttachOptions)(4)); 119 w8.XOptions = ((global::Gtk.AttachOptions)(4));
119 w8.YOptions = ((global::Gtk.AttachOptions)(4)); 120 w8.YOptions = ((global::Gtk.AttachOptions)(4));
120 // Container child table1.Gtk.Table+TableChild 121 // Container child table1.Gtk.Table+TableChild
121 this.lblRaceList = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel ();
122 this.lblRaceList.Name = "lblRaceList";
123 this.lblRaceList.LabelProp = global::Mono.Unix.Catalog.GetString ("race");
124 this.table1.Add (this.lblRaceList);
125 global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1 [this.lblRaceList]));
126 w9.TopAttach = ((uint)(1));
127 w9.BottomAttach = ((uint)(2));
128 w9.XOptions = ((global::Gtk.AttachOptions)(4));
129 w9.YOptions = ((global::Gtk.AttachOptions)(4));
130 // Container child table1.Gtk.Table+TableChild
131 this.systemCombo = global::Gtk.ComboBoxEntry.NewText (); 122 this.systemCombo = global::Gtk.ComboBoxEntry.NewText ();
132 this.systemCombo.Name = "systemCombo"; 123 this.systemCombo.Name = "systemCombo";
133 this.table1.Add (this.systemCombo); 124 this.table1.Add (this.systemCombo);
134 global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table1 [this.systemCombo])); 125 global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1 [this.systemCombo]));
135 w10.LeftAttach = ((uint)(1)); 126 w9.LeftAttach = ((uint)(1));
136 w10.RightAttach = ((uint)(2)); 127 w9.RightAttach = ((uint)(2));
137 w10.YOptions = ((global::Gtk.AttachOptions)(4)); 128 w9.YOptions = ((global::Gtk.AttachOptions)(4));
138 // Container child table1.Gtk.Table+TableChild 129 // Container child table1.Gtk.Table+TableChild
139 this.txtArmyName = new global::Gtk.Entry (); 130 this.txtArmyName = new global::Gtk.Entry ();
140 this.txtArmyName.CanFocus = true; 131 this.txtArmyName.CanFocus = true;
141 this.txtArmyName.Name = "txtArmyName"; 132 this.txtArmyName.Name = "txtArmyName";
142 this.txtArmyName.IsEditable = true; 133 this.txtArmyName.IsEditable = true;
143 this.txtArmyName.InvisibleChar = '#'; 134 this.txtArmyName.InvisibleChar = '#';
144 this.table1.Add (this.txtArmyName); 135 this.table1.Add (this.txtArmyName);
145 global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table1 [this.txtArmyName])); 136 global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table1 [this.txtArmyName]));
146 w11.TopAttach = ((uint)(2)); 137 w10.TopAttach = ((uint)(2));
147 w11.BottomAttach = ((uint)(3)); 138 w10.BottomAttach = ((uint)(3));
148 w11.LeftAttach = ((uint)(1)); 139 w10.LeftAttach = ((uint)(1));
149 w11.RightAttach = ((uint)(2)); 140 w10.RightAttach = ((uint)(2));
150 w11.XOptions = ((global::Gtk.AttachOptions)(4)); 141 w10.XOptions = ((global::Gtk.AttachOptions)(4));
151 w11.YOptions = ((global::Gtk.AttachOptions)(4)); 142 w10.YOptions = ((global::Gtk.AttachOptions)(4));
152 w1.Add (this.table1); 143 // Container child table1.Gtk.Table+TableChild
153 global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(w1 [this.table1])); 144 this.vbox2 = new global::Gtk.VBox ();
154 w12.Position = 0; 145 this.vbox2.Name = "vbox2";
146 this.vbox2.Spacing = 6;
147 // Container child vbox2.Gtk.Box+BoxChild
148 this.lblRaceList = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel ();
149 this.lblRaceList.Name = "lblRaceList";
150 this.lblRaceList.LabelProp = global::Mono.Unix.Catalog.GetString ("race");
151 this.vbox2.Add (this.lblRaceList);
152 global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.lblRaceList]));
153 w11.Position = 0;
154 w11.Expand = false;
155 w11.Fill = false;
156 // Container child vbox2.Gtk.Box+BoxChild
157 this.lblGetMore = new global::Gtk.Label ();
158 this.lblGetMore.Name = "lblGetMore";
159 this.lblGetMore.LabelProp = global::Mono.Unix.Catalog.GetString ("<a href=\"http://warfoundry.co.uk/Downloads/datafiles/\">Get more</a>");
160 this.lblGetMore.UseMarkup = true;
161 this.vbox2.Add (this.lblGetMore);
162 global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.lblGetMore]));
163 w12.Position = 1;
155 w12.Expand = false; 164 w12.Expand = false;
156 w12.Fill = false; 165 w12.Fill = false;
157 w12.Padding = ((uint)(6)); 166 this.table1.Add (this.vbox2);
167 global::Gtk.Table.TableChild w13 = ((global::Gtk.Table.TableChild)(this.table1 [this.vbox2]));
168 w13.TopAttach = ((uint)(1));
169 w13.BottomAttach = ((uint)(2));
170 w13.XOptions = ((global::Gtk.AttachOptions)(4));
171 w1.Add (this.table1);
172 global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(w1 [this.table1]));
173 w14.Position = 0;
174 w14.Padding = ((uint)(6));
158 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmNewArmy.ActionArea 175 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmNewArmy.ActionArea
159 global::Gtk.HButtonBox w13 = this.ActionArea; 176 global::Gtk.HButtonBox w15 = this.ActionArea;
160 w13.CanFocus = true; 177 w15.CanFocus = true;
161 w13.Events = ((global::Gdk.EventMask)(256)); 178 w15.Events = ((global::Gdk.EventMask)(256));
162 w13.Name = "WarFoundrySharp.FrmNewArmy_ActionArea"; 179 w15.Name = "WarFoundrySharp.FrmNewArmy_ActionArea";
163 w13.Spacing = 6; 180 w15.Spacing = 6;
164 w13.BorderWidth = ((uint)(5)); 181 w15.BorderWidth = ((uint)(5));
165 w13.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); 182 w15.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
166 // Container child WarFoundrySharp.FrmNewArmy_ActionArea.Gtk.ButtonBox+ButtonBoxChild 183 // Container child WarFoundrySharp.FrmNewArmy_ActionArea.Gtk.ButtonBox+ButtonBoxChild
167 this.bttnCancel = new global::IBBoard.GtkSharp.Translatable.TranslatableButton (); 184 this.bttnCancel = new global::IBBoard.GtkSharp.Translatable.TranslatableButton ();
168 this.bttnCancel.CanFocus = true; 185 this.bttnCancel.CanFocus = true;
169 this.bttnCancel.Name = "bttnCancel"; 186 this.bttnCancel.Name = "bttnCancel";
170 this.bttnCancel.UseStock = true; 187 this.bttnCancel.UseStock = true;
171 this.bttnCancel.UseUnderline = true; 188 this.bttnCancel.UseUnderline = true;
172 this.bttnCancel.Label = "gtk-cancel"; 189 this.bttnCancel.Label = "gtk-cancel";
173 this.AddActionWidget (this.bttnCancel, -6); 190 this.AddActionWidget (this.bttnCancel, -6);
174 global::Gtk.ButtonBox.ButtonBoxChild w14 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w13 [this.bttnCancel])); 191 global::Gtk.ButtonBox.ButtonBoxChild w16 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w15 [this.bttnCancel]));
175 w14.Expand = false; 192 w16.Expand = false;
176 w14.Fill = false; 193 w16.Fill = false;
177 // Container child WarFoundrySharp.FrmNewArmy_ActionArea.Gtk.ButtonBox+ButtonBoxChild 194 // Container child WarFoundrySharp.FrmNewArmy_ActionArea.Gtk.ButtonBox+ButtonBoxChild
178 this.bttnCreate = new global::IBBoard.GtkSharp.Translatable.TranslatableButton (); 195 this.bttnCreate = new global::IBBoard.GtkSharp.Translatable.TranslatableButton ();
179 this.bttnCreate.Sensitive = false; 196 this.bttnCreate.Sensitive = false;
180 this.bttnCreate.CanDefault = true; 197 this.bttnCreate.CanDefault = true;
181 this.bttnCreate.CanFocus = true; 198 this.bttnCreate.CanFocus = true;
182 this.bttnCreate.Name = "bttnCreate"; 199 this.bttnCreate.Name = "bttnCreate";
183 this.bttnCreate.UseStock = true; 200 this.bttnCreate.UseStock = true;
184 this.bttnCreate.UseUnderline = true; 201 this.bttnCreate.UseUnderline = true;
185 this.bttnCreate.Label = "gtk-ok"; 202 this.bttnCreate.Label = "gtk-ok";
186 this.AddActionWidget (this.bttnCreate, -5); 203 this.AddActionWidget (this.bttnCreate, -5);
187 global::Gtk.ButtonBox.ButtonBoxChild w15 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w13 [this.bttnCreate])); 204 global::Gtk.ButtonBox.ButtonBoxChild w17 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w15 [this.bttnCreate]));
188 w15.Position = 1; 205 w17.Position = 1;
189 w15.Expand = false; 206 w17.Expand = false;
190 w15.Fill = false; 207 w17.Fill = false;
191 if ((this.Child != null)) { 208 if ((this.Child != null)) {
192 this.Child.ShowAll (); 209 this.Child.ShowAll ();
193 } 210 }
194 this.DefaultWidth = 370; 211 this.DefaultWidth = 370;
195 this.DefaultHeight = 348; 212 this.DefaultHeight = 348;