comparison gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmNewArmy.cs @ 90:a754a2d1881c

Re #308: Make GTK# UI translatable * Move FrmNewArmy to using translatable buttons * Re-link lost button click methods in FrmNewUnit
author IBBoard <dev@ibboard.co.uk>
date Fri, 31 Dec 2010 10:54:42 +0000
parents 40857cfb309b
children 560eb34acd17
comparison
equal deleted inserted replaced
89:31d54f67d50d 90:a754a2d1881c
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; 15 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblRaceList;
16 private global::Gtk.ComboBoxEntry systemCombo; 16 private global::Gtk.ComboBoxEntry systemCombo;
17 private global::Gtk.Entry txtArmyName; 17 private global::Gtk.Entry txtArmyName;
18 private global::Gtk.Button bttnCancel; 18 private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnCancel;
19 private global::Gtk.Button bttnCreate; 19 private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnCreate;
20 20
21 protected virtual void Build() 21 protected virtual void Build()
22 { 22 {
23 global::Stetic.Gui.Initialize(this); 23 global::Stetic.Gui.Initialize(this);
24 // Widget IBBoard.WarFoundry.GUI.GTK.FrmNewArmy 24 // Widget IBBoard.WarFoundry.GUI.GTK.FrmNewArmy
158 w13.Name = "WarFoundrySharp.FrmNewArmy_ActionArea"; 158 w13.Name = "WarFoundrySharp.FrmNewArmy_ActionArea";
159 w13.Spacing = 6; 159 w13.Spacing = 6;
160 w13.BorderWidth = ((uint)(5)); 160 w13.BorderWidth = ((uint)(5));
161 w13.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); 161 w13.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
162 // Container child WarFoundrySharp.FrmNewArmy_ActionArea.Gtk.ButtonBox+ButtonBoxChild 162 // Container child WarFoundrySharp.FrmNewArmy_ActionArea.Gtk.ButtonBox+ButtonBoxChild
163 this.bttnCancel = new global::Gtk.Button(); 163 this.bttnCancel = new global::IBBoard.GtkSharp.Translatable.TranslatableButton();
164 this.bttnCancel.CanFocus = true; 164 this.bttnCancel.CanFocus = true;
165 this.bttnCancel.Name = "bttnCancel"; 165 this.bttnCancel.Name = "bttnCancel";
166 this.bttnCancel.UseStock = true; 166 this.bttnCancel.UseStock = true;
167 this.bttnCancel.UseUnderline = true; 167 this.bttnCancel.UseUnderline = true;
168 this.bttnCancel.Label = "gtk-cancel"; 168 this.bttnCancel.Label = "gtk-cancel";
169 this.AddActionWidget(this.bttnCancel, -6); 169 this.AddActionWidget(this.bttnCancel, -6);
170 global::Gtk.ButtonBox.ButtonBoxChild w14 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w13[this.bttnCancel])); 170 global::Gtk.ButtonBox.ButtonBoxChild w14 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w13[this.bttnCancel]));
171 w14.Expand = false; 171 w14.Expand = false;
172 w14.Fill = false; 172 w14.Fill = false;
173 // Container child WarFoundrySharp.FrmNewArmy_ActionArea.Gtk.ButtonBox+ButtonBoxChild 173 // Container child WarFoundrySharp.FrmNewArmy_ActionArea.Gtk.ButtonBox+ButtonBoxChild
174 this.bttnCreate = new global::Gtk.Button(); 174 this.bttnCreate = new global::IBBoard.GtkSharp.Translatable.TranslatableButton();
175 this.bttnCreate.Sensitive = false; 175 this.bttnCreate.Sensitive = false;
176 this.bttnCreate.CanDefault = true; 176 this.bttnCreate.CanDefault = true;
177 this.bttnCreate.CanFocus = true; 177 this.bttnCreate.CanFocus = true;
178 this.bttnCreate.Name = "bttnCreate"; 178 this.bttnCreate.Name = "bttnCreate";
179 this.bttnCreate.UseStock = true; 179 this.bttnCreate.UseStock = true;