Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
annotate gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmNewArmy.cs @ 85:bfb29a60b802
Re #308: Make GTK# UI translatable
* Translate the bits of FrmNewArmy that can't be translated via cascade
* Set up label names and translations for translating (need to get Stetic to use TranslatableLabel)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 29 Dec 2010 16:56:55 +0000 |
parents | 68804784bf6f |
children | 9515b57ba752 |
rev | line source |
---|---|
77 | 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 FrmNewArmy | |
6 { | |
7 private global::Gtk.Table table1; | |
8 private global::Gtk.ScrolledWindow GtkScrolledWindow; | |
9 private global::Gtk.TreeView lstRaces; | |
10 private global::Gtk.HBox hbox2; | |
11 private global::Gtk.SpinButton sbPointsValue; | |
85
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
12 private global::Gtk.Label lblArmyName; |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
13 private global::Gtk.Label lblArmySize; |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
14 private global::Gtk.Label lblGameSystem; |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
15 private global::Gtk.Label lblRace; |
77 | 16 private global::Gtk.ComboBoxEntry systemCombo; |
17 private global::Gtk.Entry txtArmyName; | |
18 private global::Gtk.Button bttnCancel; | |
19 private global::Gtk.Button bttnCreate; | |
20 | |
21 protected virtual void Build() | |
22 { | |
23 global::Stetic.Gui.Initialize(this); | |
24 // Widget IBBoard.WarFoundry.GUI.GTK.FrmNewArmy | |
25 this.Events = ((global::Gdk.EventMask)(256)); | |
26 this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmNewArmy"; | |
27 this.Title = global::Mono.Unix.Catalog.GetString("Create new army"); | |
28 this.Icon = global::Stetic.IconLoader.LoadIcon(this, "gtk-new", global::Gtk.IconSize.Menu); | |
29 this.WindowPosition = ((global::Gtk.WindowPosition)(4)); | |
30 this.SkipPagerHint = true; | |
31 this.SkipTaskbarHint = true; | |
32 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmNewArmy.VBox | |
33 global::Gtk.VBox w1 = this.VBox; | |
34 w1.CanFocus = true; | |
35 w1.Events = ((global::Gdk.EventMask)(256)); | |
36 w1.Name = "dialog_VBox"; | |
37 w1.BorderWidth = ((uint)(2)); | |
38 // Container child dialog_VBox.Gtk.Box+BoxChild | |
39 this.table1 = new global::Gtk.Table(((uint)(4)), ((uint)(2)), false); | |
40 this.table1.Name = "table1"; | |
41 this.table1.RowSpacing = ((uint)(6)); | |
42 this.table1.ColumnSpacing = ((uint)(6)); | |
43 // Container child table1.Gtk.Table+TableChild | |
44 this.GtkScrolledWindow = new global::Gtk.ScrolledWindow(); | |
45 this.GtkScrolledWindow.Name = "GtkScrolledWindow"; | |
46 this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); | |
47 // Container child GtkScrolledWindow.Gtk.Container+ContainerChild | |
48 this.lstRaces = new global::Gtk.TreeView(); | |
49 this.lstRaces.HeightRequest = 150; | |
50 this.lstRaces.CanFocus = true; | |
51 this.lstRaces.Name = "lstRaces"; | |
52 this.lstRaces.HeadersVisible = false; | |
53 this.lstRaces.RulesHint = true; | |
54 this.GtkScrolledWindow.Add(this.lstRaces); | |
55 this.table1.Add(this.GtkScrolledWindow); | |
56 global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow])); | |
57 w3.TopAttach = ((uint)(1)); | |
58 w3.BottomAttach = ((uint)(2)); | |
59 w3.LeftAttach = ((uint)(1)); | |
60 w3.RightAttach = ((uint)(2)); | |
61 w3.XOptions = ((global::Gtk.AttachOptions)(4)); | |
62 w3.YOptions = ((global::Gtk.AttachOptions)(4)); | |
63 // Container child table1.Gtk.Table+TableChild | |
64 this.hbox2 = new global::Gtk.HBox(); | |
65 this.hbox2.Name = "hbox2"; | |
66 // Container child hbox2.Gtk.Box+BoxChild | |
67 this.sbPointsValue = new global::Gtk.SpinButton(0, 2000000000, 100); | |
68 this.sbPointsValue.WidthRequest = 150; | |
69 this.sbPointsValue.CanFocus = true; | |
70 this.sbPointsValue.Name = "sbPointsValue"; | |
71 this.sbPointsValue.Adjustment.PageIncrement = 1000; | |
72 this.sbPointsValue.ClimbRate = 100; | |
73 this.sbPointsValue.Numeric = true; | |
74 this.sbPointsValue.Value = 1000; | |
75 this.hbox2.Add(this.sbPointsValue); | |
76 global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.sbPointsValue])); | |
77 w4.Position = 0; | |
78 w4.Expand = false; | |
79 w4.Fill = false; | |
80 this.table1.Add(this.hbox2); | |
81 global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1[this.hbox2])); | |
82 w5.TopAttach = ((uint)(3)); | |
83 w5.BottomAttach = ((uint)(4)); | |
84 w5.LeftAttach = ((uint)(1)); | |
85 w5.RightAttach = ((uint)(2)); | |
86 w5.XOptions = ((global::Gtk.AttachOptions)(4)); | |
87 w5.YOptions = ((global::Gtk.AttachOptions)(4)); | |
88 // Container child table1.Gtk.Table+TableChild | |
85
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
89 this.lblArmyName = new global::Gtk.Label(); |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
90 this.lblArmyName.Name = "lblArmyName"; |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
91 this.lblArmyName.LabelProp = global::Mono.Unix.Catalog.GetString("army name"); |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
92 this.table1.Add(this.lblArmyName); |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
93 global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1[this.lblArmyName])); |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
94 w6.TopAttach = ((uint)(2)); |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
95 w6.BottomAttach = ((uint)(3)); |
77 | 96 w6.XOptions = ((global::Gtk.AttachOptions)(4)); |
97 w6.YOptions = ((global::Gtk.AttachOptions)(4)); | |
98 // Container child table1.Gtk.Table+TableChild | |
85
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
99 this.lblArmySize = new global::Gtk.Label(); |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
100 this.lblArmySize.Name = "lblArmySize"; |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
101 this.lblArmySize.LabelProp = global::Mono.Unix.Catalog.GetString("points value"); |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
102 this.table1.Add(this.lblArmySize); |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
103 global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1[this.lblArmySize])); |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
104 w7.TopAttach = ((uint)(3)); |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
105 w7.BottomAttach = ((uint)(4)); |
77 | 106 w7.XOptions = ((global::Gtk.AttachOptions)(4)); |
107 w7.YOptions = ((global::Gtk.AttachOptions)(4)); | |
108 // Container child table1.Gtk.Table+TableChild | |
85
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
109 this.lblGameSystem = new global::Gtk.Label(); |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
110 this.lblGameSystem.Name = "lblGameSystem"; |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
111 this.lblGameSystem.LabelProp = global::Mono.Unix.Catalog.GetString("game system"); |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
112 this.table1.Add(this.lblGameSystem); |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
113 global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table1[this.lblGameSystem])); |
77 | 114 w8.XOptions = ((global::Gtk.AttachOptions)(4)); |
115 w8.YOptions = ((global::Gtk.AttachOptions)(4)); | |
116 // Container child table1.Gtk.Table+TableChild | |
85
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
117 this.lblRace = new global::Gtk.Label(); |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
118 this.lblRace.Name = "lblRace"; |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
119 this.lblRace.LabelProp = global::Mono.Unix.Catalog.GetString("race"); |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
120 this.table1.Add(this.lblRace); |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
121 global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1[this.lblRace])); |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
122 w9.TopAttach = ((uint)(1)); |
bfb29a60b802
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
123 w9.BottomAttach = ((uint)(2)); |
77 | 124 w9.XOptions = ((global::Gtk.AttachOptions)(4)); |
125 w9.YOptions = ((global::Gtk.AttachOptions)(4)); | |
126 // Container child table1.Gtk.Table+TableChild | |
127 this.systemCombo = global::Gtk.ComboBoxEntry.NewText(); | |
128 this.systemCombo.Name = "systemCombo"; | |
129 this.table1.Add(this.systemCombo); | |
130 global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table1[this.systemCombo])); | |
131 w10.LeftAttach = ((uint)(1)); | |
132 w10.RightAttach = ((uint)(2)); | |
133 w10.YOptions = ((global::Gtk.AttachOptions)(4)); | |
134 // Container child table1.Gtk.Table+TableChild | |
135 this.txtArmyName = new global::Gtk.Entry(); | |
136 this.txtArmyName.CanFocus = true; | |
137 this.txtArmyName.Name = "txtArmyName"; | |
138 this.txtArmyName.IsEditable = true; | |
139 this.txtArmyName.InvisibleChar = '•'; | |
140 this.table1.Add(this.txtArmyName); | |
141 global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table1[this.txtArmyName])); | |
142 w11.TopAttach = ((uint)(2)); | |
143 w11.BottomAttach = ((uint)(3)); | |
144 w11.LeftAttach = ((uint)(1)); | |
145 w11.RightAttach = ((uint)(2)); | |
146 w11.XOptions = ((global::Gtk.AttachOptions)(4)); | |
147 w11.YOptions = ((global::Gtk.AttachOptions)(4)); | |
148 w1.Add(this.table1); | |
149 global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(w1[this.table1])); | |
150 w12.Position = 0; | |
151 w12.Expand = false; | |
152 w12.Fill = false; | |
153 w12.Padding = ((uint)(6)); | |
154 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmNewArmy.ActionArea | |
155 global::Gtk.HButtonBox w13 = this.ActionArea; | |
156 w13.CanFocus = true; | |
157 w13.Events = ((global::Gdk.EventMask)(256)); | |
158 w13.Name = "WarFoundrySharp.FrmNewArmy_ActionArea"; | |
159 w13.Spacing = 6; | |
160 w13.BorderWidth = ((uint)(5)); | |
161 w13.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); | |
162 // Container child WarFoundrySharp.FrmNewArmy_ActionArea.Gtk.ButtonBox+ButtonBoxChild | |
163 this.bttnCancel = new global::Gtk.Button(); | |
164 this.bttnCancel.CanFocus = true; | |
165 this.bttnCancel.Name = "bttnCancel"; | |
166 this.bttnCancel.UseStock = true; | |
167 this.bttnCancel.UseUnderline = true; | |
168 this.bttnCancel.Label = "gtk-cancel"; | |
169 this.AddActionWidget(this.bttnCancel, -6); | |
170 global::Gtk.ButtonBox.ButtonBoxChild w14 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w13[this.bttnCancel])); | |
171 w14.Expand = false; | |
172 w14.Fill = false; | |
173 // Container child WarFoundrySharp.FrmNewArmy_ActionArea.Gtk.ButtonBox+ButtonBoxChild | |
174 this.bttnCreate = new global::Gtk.Button(); | |
175 this.bttnCreate.Sensitive = false; | |
176 this.bttnCreate.CanDefault = true; | |
177 this.bttnCreate.CanFocus = true; | |
178 this.bttnCreate.Name = "bttnCreate"; | |
179 this.bttnCreate.UseUnderline = true; | |
180 // Container child bttnCreate.Gtk.Container+ContainerChild | |
181 global::Gtk.Alignment w15 = new global::Gtk.Alignment(0.5F, 0.5F, 0F, 0F); | |
182 // Container child GtkAlignment.Gtk.Container+ContainerChild | |
183 global::Gtk.HBox w16 = new global::Gtk.HBox(); | |
184 w16.Spacing = 2; | |
185 // Container child GtkHBox.Gtk.Container+ContainerChild | |
186 global::Gtk.Image w17 = new global::Gtk.Image(); | |
187 w17.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-ok", global::Gtk.IconSize.Menu); | |
188 w16.Add(w17); | |
189 // Container child GtkHBox.Gtk.Container+ContainerChild | |
190 global::Gtk.Label w19 = new global::Gtk.Label(); | |
191 w19.LabelProp = global::Mono.Unix.Catalog.GetString("C_reate"); | |
192 w19.UseUnderline = true; | |
193 w16.Add(w19); | |
194 w15.Add(w16); | |
195 this.bttnCreate.Add(w15); | |
196 this.AddActionWidget(this.bttnCreate, -5); | |
197 global::Gtk.ButtonBox.ButtonBoxChild w23 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w13[this.bttnCreate])); | |
198 w23.Position = 1; | |
199 w23.Expand = false; | |
200 w23.Fill = false; | |
201 if ((this.Child != null)) | |
202 { | |
203 this.Child.ShowAll(); | |
204 } | |
205 this.DefaultWidth = 370; | |
206 this.DefaultHeight = 348; | |
207 this.Show(); | |
208 this.txtArmyName.Changed += new global::System.EventHandler(this.OnTextChanged); | |
209 this.systemCombo.Changed += new global::System.EventHandler(this.OnSystemComboChanged); | |
210 this.sbPointsValue.ChangeValue += new global::Gtk.ChangeValueHandler(this.OnSpinChangeValue); | |
211 this.sbPointsValue.ValueChanged += new global::System.EventHandler(this.OnSpinValueChanged); | |
212 this.sbPointsValue.Changed += new global::System.EventHandler(this.OnSpinValueChanged); | |
213 this.bttnCancel.Clicked += new global::System.EventHandler(this.OnCancelClicked); | |
214 this.bttnCreate.Clicked += new global::System.EventHandler(this.OnCreateClicked); | |
215 } | |
216 } | |
217 } |