comparison 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
comparison
equal deleted inserted replaced
94:26e4525b49cf 95:ea4069bbe6e9
1
2 // This file has been generated by the GUI designer. Do not modify.
3 namespace IBBoard.WarFoundry.GUI.GTK
4 {
5 public partial class FrmPreferences
6 {
7 private global::Gtk.HPaned hpaned1;
8 private global::Gtk.ScrolledWindow GtkScrolledWindow;
9 private global::Gtk.TreeView preferencesTree;
10 private global::Gtk.Frame prefsFrame;
11 private global::Gtk.Alignment GtkAlignment2;
12 private global::Gtk.Table table1;
13 private global::Gtk.ComboBox languageList;
14 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblLanguage;
15 private global::Gtk.Label frameLabel;
16 private global::Gtk.Button bttnCancel;
17 private global::Gtk.Button bttnOkay;
18
19 protected virtual void Build()
20 {
21 global::Stetic.Gui.Initialize(this);
22 // Widget IBBoard.WarFoundry.GUI.GTK.FrmPreferences
23 this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmPreferences";
24 this.WindowPosition = ((global::Gtk.WindowPosition)(4));
25 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmPreferences.VBox
26 global::Gtk.VBox w1 = this.VBox;
27 w1.Name = "dialog1_VBox";
28 w1.BorderWidth = ((uint)(2));
29 // Container child dialog1_VBox.Gtk.Box+BoxChild
30 this.hpaned1 = new global::Gtk.HPaned();
31 this.hpaned1.CanFocus = true;
32 this.hpaned1.Name = "hpaned1";
33 this.hpaned1.Position = 164;
34 // Container child hpaned1.Gtk.Paned+PanedChild
35 this.GtkScrolledWindow = new global::Gtk.ScrolledWindow();
36 this.GtkScrolledWindow.Name = "GtkScrolledWindow";
37 this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
38 // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
39 this.preferencesTree = new global::Gtk.TreeView();
40 this.preferencesTree.CanFocus = true;
41 this.preferencesTree.Name = "preferencesTree";
42 this.preferencesTree.HeadersVisible = false;
43 this.GtkScrolledWindow.Add(this.preferencesTree);
44 this.hpaned1.Add(this.GtkScrolledWindow);
45 global::Gtk.Paned.PanedChild w3 = ((global::Gtk.Paned.PanedChild)(this.hpaned1[this.GtkScrolledWindow]));
46 w3.Resize = false;
47 // Container child hpaned1.Gtk.Paned+PanedChild
48 this.prefsFrame = new global::Gtk.Frame();
49 this.prefsFrame.Name = "prefsFrame";
50 this.prefsFrame.ShadowType = ((global::Gtk.ShadowType)(1));
51 this.prefsFrame.BorderWidth = ((uint)(2));
52 // Container child prefsFrame.Gtk.Container+ContainerChild
53 this.GtkAlignment2 = new global::Gtk.Alignment(0F, 0F, 1F, 1F);
54 this.GtkAlignment2.Name = "GtkAlignment2";
55 this.GtkAlignment2.LeftPadding = ((uint)(12));
56 // Container child GtkAlignment2.Gtk.Container+ContainerChild
57 this.table1 = new global::Gtk.Table(((uint)(3)), ((uint)(2)), false);
58 this.table1.Name = "table1";
59 this.table1.RowSpacing = ((uint)(6));
60 this.table1.ColumnSpacing = ((uint)(6));
61 // Container child table1.Gtk.Table+TableChild
62 this.languageList = global::Gtk.ComboBox.NewText();
63 this.languageList.Name = "languageList";
64 this.table1.Add(this.languageList);
65 global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1[this.languageList]));
66 w4.LeftAttach = ((uint)(1));
67 w4.RightAttach = ((uint)(2));
68 w4.XOptions = ((global::Gtk.AttachOptions)(4));
69 w4.YOptions = ((global::Gtk.AttachOptions)(4));
70 // Container child table1.Gtk.Table+TableChild
71 this.lblLanguage = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
72 this.lblLanguage.Name = "lblLanguage";
73 this.lblLanguage.LabelProp = global::Mono.Unix.Catalog.GetString("language:");
74 this.table1.Add(this.lblLanguage);
75 global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1[this.lblLanguage]));
76 w5.XOptions = ((global::Gtk.AttachOptions)(4));
77 w5.YOptions = ((global::Gtk.AttachOptions)(4));
78 this.GtkAlignment2.Add(this.table1);
79 this.prefsFrame.Add(this.GtkAlignment2);
80 this.frameLabel = new global::Gtk.Label();
81 this.frameLabel.Name = "frameLabel";
82 this.frameLabel.LabelProp = global::Mono.Unix.Catalog.GetString("<b>language</b>");
83 this.frameLabel.UseMarkup = true;
84 this.prefsFrame.LabelWidget = this.frameLabel;
85 this.hpaned1.Add(this.prefsFrame);
86 w1.Add(this.hpaned1);
87 global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(w1[this.hpaned1]));
88 w9.Position = 0;
89 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmPreferences.ActionArea
90 global::Gtk.HButtonBox w10 = this.ActionArea;
91 w10.Name = "dialog1_ActionArea";
92 w10.Spacing = 10;
93 w10.BorderWidth = ((uint)(5));
94 w10.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
95 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
96 this.bttnCancel = new global::Gtk.Button();
97 this.bttnCancel.CanDefault = true;
98 this.bttnCancel.CanFocus = true;
99 this.bttnCancel.Name = "bttnCancel";
100 this.bttnCancel.UseStock = true;
101 this.bttnCancel.UseUnderline = true;
102 this.bttnCancel.Label = "gtk-cancel";
103 this.AddActionWidget(this.bttnCancel, -6);
104 global::Gtk.ButtonBox.ButtonBoxChild w11 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w10[this.bttnCancel]));
105 w11.Expand = false;
106 w11.Fill = false;
107 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
108 this.bttnOkay = new global::Gtk.Button();
109 this.bttnOkay.CanDefault = true;
110 this.bttnOkay.CanFocus = true;
111 this.bttnOkay.Name = "bttnOkay";
112 this.bttnOkay.UseStock = true;
113 this.bttnOkay.UseUnderline = true;
114 this.bttnOkay.Label = "gtk-ok";
115 this.AddActionWidget(this.bttnOkay, -5);
116 global::Gtk.ButtonBox.ButtonBoxChild w12 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w10[this.bttnOkay]));
117 w12.Position = 1;
118 w12.Expand = false;
119 w12.Fill = false;
120 if ((this.Child != null))
121 {
122 this.Child.ShowAll();
123 }
124 this.DefaultWidth = 400;
125 this.DefaultHeight = 300;
126 this.Show();
127 this.languageList.Changed += new global::System.EventHandler(this.languageListChanged);
128 this.bttnCancel.Clicked += new global::System.EventHandler(this.bttnCancelClicked);
129 this.bttnOkay.Clicked += new global::System.EventHandler(this.bttnOkayClicked);
130 }
131 }
132 }