diff gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmPreferences.cs @ 95:ea4069bbe6e9

Re #309: Add initial preference dialog with language support * Add first preference dialog * Add French translations (based on WinForms file) Re #308: Make GTK# UI translatable * Add some missing English translations (API strings)
author IBBoard <dev@ibboard.co.uk>
date Sat, 01 Jan 2011 20:55:07 +0000
parents
children b4416ca69153
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmPreferences.cs	Sat Jan 01 20:55:07 2011 +0000
@@ -0,0 +1,132 @@
+
+// This file has been generated by the GUI designer. Do not modify.
+namespace IBBoard.WarFoundry.GUI.GTK
+{
+	public partial class FrmPreferences
+	{
+		private global::Gtk.HPaned hpaned1;
+		private global::Gtk.ScrolledWindow GtkScrolledWindow;
+		private global::Gtk.TreeView preferencesTree;
+		private global::Gtk.Frame prefsFrame;
+		private global::Gtk.Alignment GtkAlignment2;
+		private global::Gtk.Table table1;
+		private global::Gtk.ComboBox languageList;
+		private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblLanguage;
+		private global::Gtk.Label frameLabel;
+		private global::Gtk.Button bttnCancel;
+		private global::Gtk.Button bttnOkay;
+
+		protected virtual void Build()
+		{
+			global::Stetic.Gui.Initialize(this);
+			// Widget IBBoard.WarFoundry.GUI.GTK.FrmPreferences
+			this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmPreferences";
+			this.WindowPosition = ((global::Gtk.WindowPosition)(4));
+			// Internal child IBBoard.WarFoundry.GUI.GTK.FrmPreferences.VBox
+			global::Gtk.VBox w1 = this.VBox;
+			w1.Name = "dialog1_VBox";
+			w1.BorderWidth = ((uint)(2));
+			// Container child dialog1_VBox.Gtk.Box+BoxChild
+			this.hpaned1 = new global::Gtk.HPaned();
+			this.hpaned1.CanFocus = true;
+			this.hpaned1.Name = "hpaned1";
+			this.hpaned1.Position = 164;
+			// Container child hpaned1.Gtk.Paned+PanedChild
+			this.GtkScrolledWindow = new global::Gtk.ScrolledWindow();
+			this.GtkScrolledWindow.Name = "GtkScrolledWindow";
+			this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
+			// Container child GtkScrolledWindow.Gtk.Container+ContainerChild
+			this.preferencesTree = new global::Gtk.TreeView();
+			this.preferencesTree.CanFocus = true;
+			this.preferencesTree.Name = "preferencesTree";
+			this.preferencesTree.HeadersVisible = false;
+			this.GtkScrolledWindow.Add(this.preferencesTree);
+			this.hpaned1.Add(this.GtkScrolledWindow);
+			global::Gtk.Paned.PanedChild w3 = ((global::Gtk.Paned.PanedChild)(this.hpaned1[this.GtkScrolledWindow]));
+			w3.Resize = false;
+			// Container child hpaned1.Gtk.Paned+PanedChild
+			this.prefsFrame = new global::Gtk.Frame();
+			this.prefsFrame.Name = "prefsFrame";
+			this.prefsFrame.ShadowType = ((global::Gtk.ShadowType)(1));
+			this.prefsFrame.BorderWidth = ((uint)(2));
+			// Container child prefsFrame.Gtk.Container+ContainerChild
+			this.GtkAlignment2 = new global::Gtk.Alignment(0F, 0F, 1F, 1F);
+			this.GtkAlignment2.Name = "GtkAlignment2";
+			this.GtkAlignment2.LeftPadding = ((uint)(12));
+			// Container child GtkAlignment2.Gtk.Container+ContainerChild
+			this.table1 = new global::Gtk.Table(((uint)(3)), ((uint)(2)), false);
+			this.table1.Name = "table1";
+			this.table1.RowSpacing = ((uint)(6));
+			this.table1.ColumnSpacing = ((uint)(6));
+			// Container child table1.Gtk.Table+TableChild
+			this.languageList = global::Gtk.ComboBox.NewText();
+			this.languageList.Name = "languageList";
+			this.table1.Add(this.languageList);
+			global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1[this.languageList]));
+			w4.LeftAttach = ((uint)(1));
+			w4.RightAttach = ((uint)(2));
+			w4.XOptions = ((global::Gtk.AttachOptions)(4));
+			w4.YOptions = ((global::Gtk.AttachOptions)(4));
+			// Container child table1.Gtk.Table+TableChild
+			this.lblLanguage = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
+			this.lblLanguage.Name = "lblLanguage";
+			this.lblLanguage.LabelProp = global::Mono.Unix.Catalog.GetString("language:");
+			this.table1.Add(this.lblLanguage);
+			global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1[this.lblLanguage]));
+			w5.XOptions = ((global::Gtk.AttachOptions)(4));
+			w5.YOptions = ((global::Gtk.AttachOptions)(4));
+			this.GtkAlignment2.Add(this.table1);
+			this.prefsFrame.Add(this.GtkAlignment2);
+			this.frameLabel = new global::Gtk.Label();
+			this.frameLabel.Name = "frameLabel";
+			this.frameLabel.LabelProp = global::Mono.Unix.Catalog.GetString("<b>language</b>");
+			this.frameLabel.UseMarkup = true;
+			this.prefsFrame.LabelWidget = this.frameLabel;
+			this.hpaned1.Add(this.prefsFrame);
+			w1.Add(this.hpaned1);
+			global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(w1[this.hpaned1]));
+			w9.Position = 0;
+			// Internal child IBBoard.WarFoundry.GUI.GTK.FrmPreferences.ActionArea
+			global::Gtk.HButtonBox w10 = this.ActionArea;
+			w10.Name = "dialog1_ActionArea";
+			w10.Spacing = 10;
+			w10.BorderWidth = ((uint)(5));
+			w10.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
+			// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
+			this.bttnCancel = new global::Gtk.Button();
+			this.bttnCancel.CanDefault = true;
+			this.bttnCancel.CanFocus = true;
+			this.bttnCancel.Name = "bttnCancel";
+			this.bttnCancel.UseStock = true;
+			this.bttnCancel.UseUnderline = true;
+			this.bttnCancel.Label = "gtk-cancel";
+			this.AddActionWidget(this.bttnCancel, -6);
+			global::Gtk.ButtonBox.ButtonBoxChild w11 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w10[this.bttnCancel]));
+			w11.Expand = false;
+			w11.Fill = false;
+			// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
+			this.bttnOkay = new global::Gtk.Button();
+			this.bttnOkay.CanDefault = true;
+			this.bttnOkay.CanFocus = true;
+			this.bttnOkay.Name = "bttnOkay";
+			this.bttnOkay.UseStock = true;
+			this.bttnOkay.UseUnderline = true;
+			this.bttnOkay.Label = "gtk-ok";
+			this.AddActionWidget(this.bttnOkay, -5);
+			global::Gtk.ButtonBox.ButtonBoxChild w12 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w10[this.bttnOkay]));
+			w12.Position = 1;
+			w12.Expand = false;
+			w12.Fill = false;
+			if ((this.Child != null))
+			{
+				this.Child.ShowAll();
+			}
+			this.DefaultWidth = 400;
+			this.DefaultHeight = 300;
+			this.Show();
+			this.languageList.Changed += new global::System.EventHandler(this.languageListChanged);
+			this.bttnCancel.Clicked += new global::System.EventHandler(this.bttnCancelClicked);
+			this.bttnOkay.Clicked += new global::System.EventHandler(this.bttnOkayClicked);
+		}
+	}
+}