comparison gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmAddEquipment.cs @ 93:e40d892a2298

Fixes #308: Make GTK# UI translatable * Move all remaining buttons to translatable buttons * Make the About dialog translatable (where appropriate) * Move to UTF-8 encoding in the XML to correctly handle copyright symbol * Switch About dialog to using Close button as per other apps
author IBBoard <dev@ibboard.co.uk>
date Fri, 31 Dec 2010 13:53:18 +0000
parents 58779fcd0166
children 6d2c8ad0d8f1
comparison
equal deleted inserted replaced
92:58779fcd0166 93:e40d892a2298
16 private global::Gtk.RadioButton rbEquipAll; 16 private global::Gtk.RadioButton rbEquipAll;
17 private global::Gtk.RadioButton rbEquipNumeric; 17 private global::Gtk.RadioButton rbEquipNumeric;
18 private global::Gtk.RadioButton rbEquipPercent; 18 private global::Gtk.RadioButton rbEquipPercent;
19 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblEquipAmount; 19 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblEquipAmount;
20 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblEquipment; 20 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblEquipment;
21 private global::Gtk.Button buttonCancel; 21 private global::IBBoard.GtkSharp.Translatable.TranslatableButton buttonCancel;
22 private global::Gtk.Button buttonOk; 22 private global::IBBoard.GtkSharp.Translatable.TranslatableButton buttonOk;
23 23
24 protected virtual void Build() 24 protected virtual void Build()
25 { 25 {
26 global::Stetic.Gui.Initialize(this); 26 global::Stetic.Gui.Initialize(this);
27 // Widget IBBoard.WarFoundry.GUI.GTK.FrmAddEquipment 27 // Widget IBBoard.WarFoundry.GUI.GTK.FrmAddEquipment
193 w16.Name = "dialog1_ActionArea"; 193 w16.Name = "dialog1_ActionArea";
194 w16.Spacing = 10; 194 w16.Spacing = 10;
195 w16.BorderWidth = ((uint)(5)); 195 w16.BorderWidth = ((uint)(5));
196 w16.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); 196 w16.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
197 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild 197 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
198 this.buttonCancel = new global::Gtk.Button(); 198 this.buttonCancel = new global::IBBoard.GtkSharp.Translatable.TranslatableButton();
199 this.buttonCancel.CanDefault = true; 199 this.buttonCancel.CanDefault = true;
200 this.buttonCancel.CanFocus = true; 200 this.buttonCancel.CanFocus = true;
201 this.buttonCancel.Name = "buttonCancel"; 201 this.buttonCancel.Name = "buttonCancel";
202 this.buttonCancel.UseStock = true; 202 this.buttonCancel.UseStock = true;
203 this.buttonCancel.UseUnderline = true; 203 this.buttonCancel.UseUnderline = true;
205 this.AddActionWidget(this.buttonCancel, -6); 205 this.AddActionWidget(this.buttonCancel, -6);
206 global::Gtk.ButtonBox.ButtonBoxChild w17 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w16[this.buttonCancel])); 206 global::Gtk.ButtonBox.ButtonBoxChild w17 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w16[this.buttonCancel]));
207 w17.Expand = false; 207 w17.Expand = false;
208 w17.Fill = false; 208 w17.Fill = false;
209 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild 209 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
210 this.buttonOk = new global::Gtk.Button(); 210 this.buttonOk = new global::IBBoard.GtkSharp.Translatable.TranslatableButton();
211 this.buttonOk.CanDefault = true; 211 this.buttonOk.CanDefault = true;
212 this.buttonOk.CanFocus = true; 212 this.buttonOk.CanFocus = true;
213 this.buttonOk.Name = "buttonOk"; 213 this.buttonOk.Name = "buttonOk";
214 this.buttonOk.UseStock = true; 214 this.buttonOk.UseStock = true;
215 this.buttonOk.UseUnderline = true; 215 this.buttonOk.UseUnderline = true;