comparison gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmPreferences.cs @ 96:b4416ca69153

Fixes #309: Add initial preference dialog with language support * Hook up events so that everything translates itself when languages change Re #308: Make GTK# UI translatable * Update English and French translations (using Google Translate) * Begin to standardise on WinForms names for widgets for maximum reusability of translation files * Make some preference and credit buttons translatable
author IBBoard <dev@ibboard.co.uk>
date Sun, 02 Jan 2011 15:12:31 +0000
parents ea4069bbe6e9
children 135491fd1830
comparison
equal deleted inserted replaced
95:ea4069bbe6e9 96:b4416ca69153
11 private global::Gtk.Alignment GtkAlignment2; 11 private global::Gtk.Alignment GtkAlignment2;
12 private global::Gtk.Table table1; 12 private global::Gtk.Table table1;
13 private global::Gtk.ComboBox languageList; 13 private global::Gtk.ComboBox languageList;
14 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblLanguage; 14 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblLanguage;
15 private global::Gtk.Label frameLabel; 15 private global::Gtk.Label frameLabel;
16 private global::Gtk.Button bttnCancel; 16 private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnCancel;
17 private global::Gtk.Button bttnOkay; 17 private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnOkay;
18 18
19 protected virtual void Build() 19 protected virtual void Build()
20 { 20 {
21 global::Stetic.Gui.Initialize(this); 21 global::Stetic.Gui.Initialize(this);
22 // Widget IBBoard.WarFoundry.GUI.GTK.FrmPreferences 22 // Widget IBBoard.WarFoundry.GUI.GTK.FrmPreferences
23 this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmPreferences"; 23 this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmPreferences";
24 this.TypeHint = ((global::Gdk.WindowTypeHint)(1));
24 this.WindowPosition = ((global::Gtk.WindowPosition)(4)); 25 this.WindowPosition = ((global::Gtk.WindowPosition)(4));
26 this.SkipPagerHint = true;
27 this.SkipTaskbarHint = true;
25 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmPreferences.VBox 28 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmPreferences.VBox
26 global::Gtk.VBox w1 = this.VBox; 29 global::Gtk.VBox w1 = this.VBox;
27 w1.Name = "dialog1_VBox"; 30 w1.Name = "dialog1_VBox";
28 w1.BorderWidth = ((uint)(2)); 31 w1.BorderWidth = ((uint)(2));
29 // Container child dialog1_VBox.Gtk.Box+BoxChild 32 // Container child dialog1_VBox.Gtk.Box+BoxChild
91 w10.Name = "dialog1_ActionArea"; 94 w10.Name = "dialog1_ActionArea";
92 w10.Spacing = 10; 95 w10.Spacing = 10;
93 w10.BorderWidth = ((uint)(5)); 96 w10.BorderWidth = ((uint)(5));
94 w10.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); 97 w10.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
95 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild 98 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
96 this.bttnCancel = new global::Gtk.Button(); 99 this.bttnCancel = new global::IBBoard.GtkSharp.Translatable.TranslatableButton();
97 this.bttnCancel.CanDefault = true; 100 this.bttnCancel.CanDefault = true;
98 this.bttnCancel.CanFocus = true; 101 this.bttnCancel.CanFocus = true;
99 this.bttnCancel.Name = "bttnCancel"; 102 this.bttnCancel.Name = "bttnCancel";
100 this.bttnCancel.UseStock = true; 103 this.bttnCancel.UseStock = true;
101 this.bttnCancel.UseUnderline = true; 104 this.bttnCancel.UseUnderline = true;
103 this.AddActionWidget(this.bttnCancel, -6); 106 this.AddActionWidget(this.bttnCancel, -6);
104 global::Gtk.ButtonBox.ButtonBoxChild w11 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w10[this.bttnCancel])); 107 global::Gtk.ButtonBox.ButtonBoxChild w11 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w10[this.bttnCancel]));
105 w11.Expand = false; 108 w11.Expand = false;
106 w11.Fill = false; 109 w11.Fill = false;
107 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild 110 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
108 this.bttnOkay = new global::Gtk.Button(); 111 this.bttnOkay = new global::IBBoard.GtkSharp.Translatable.TranslatableButton();
109 this.bttnOkay.CanDefault = true; 112 this.bttnOkay.CanDefault = true;
110 this.bttnOkay.CanFocus = true; 113 this.bttnOkay.CanFocus = true;
111 this.bttnOkay.Name = "bttnOkay"; 114 this.bttnOkay.Name = "bttnOkay";
112 this.bttnOkay.UseStock = true; 115 this.bttnOkay.UseStock = true;
113 this.bttnOkay.UseUnderline = true; 116 this.bttnOkay.UseUnderline = true;