~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.Gettext/gtk-gui/MonoDevelop.Gettext.Translator.LanguageChooserDialog.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
Import upstream version 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
        public partial class LanguageChooserDialog
6
6
        {
7
7
                private global::Gtk.VBox vbox2;
8
 
 
9
8
                private global::Gtk.VBox vbox3;
10
 
 
11
9
                private global::Gtk.Frame frame1;
12
 
 
13
10
                private global::Gtk.Alignment GtkAlignment2;
14
 
 
15
11
                private global::Gtk.HBox tableKnown;
16
 
 
17
12
                private global::Gtk.VBox vbox4;
18
 
 
19
13
                private global::Gtk.Label label3;
20
 
 
21
14
                private global::Gtk.ScrolledWindow scrolledwindow1;
22
 
 
23
15
                private global::Gtk.TreeView languageTreeView;
24
 
 
25
16
                private global::Gtk.VBox vbox5;
26
 
 
27
17
                private global::Gtk.CheckButton checkbuttonUseCoutry;
28
 
 
29
18
                private global::Gtk.ScrolledWindow scrolledwindow2;
30
 
 
31
19
                private global::Gtk.TreeView countryTreeView;
32
 
 
33
20
                private global::Gtk.RadioButton radiobuttonKnown;
34
 
 
35
21
                private global::Gtk.Frame frame2;
36
 
 
37
22
                private global::Gtk.Alignment GtkAlignment3;
38
 
 
39
23
                private global::Gtk.HBox hboxUser;
40
 
 
41
24
                private global::Gtk.Label label2;
42
 
 
43
25
                private global::Gtk.Entry entryLocale;
44
 
 
45
26
                private global::Gtk.RadioButton radiobuttonCustom;
46
 
 
47
27
                private global::Gtk.Button button1;
48
 
 
49
28
                private global::Gtk.Button buttonOK;
50
29
 
51
30
                protected virtual void Build ()
82
61
                        this.frame1.Name = "frame1";
83
62
                        this.frame1.ShadowType = ((global::Gtk.ShadowType)(0));
84
63
                        // Container child frame1.Gtk.Container+ContainerChild
85
 
                        this.GtkAlignment2 = new global::Gtk.Alignment (0f, 0f, 1f, 1f);
 
64
                        this.GtkAlignment2 = new global::Gtk.Alignment (0F, 0F, 1F, 1F);
86
65
                        this.GtkAlignment2.Name = "GtkAlignment2";
87
66
                        this.GtkAlignment2.LeftPadding = ((uint)(12));
88
67
                        // Container child GtkAlignment2.Gtk.Container+ContainerChild
98
77
                        this.label3 = new global::Gtk.Label ();
99
78
                        this.label3.WidthRequest = 170;
100
79
                        this.label3.Name = "label3";
101
 
                        this.label3.Xalign = 0f;
 
80
                        this.label3.Xalign = 0F;
102
81
                        this.label3.LabelProp = global::Mono.Unix.Catalog.GetString ("_Language:");
103
82
                        this.label3.UseUnderline = true;
104
83
                        this.vbox4.Add (this.label3);
105
 
                        global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox4[this.label3]));
 
84
                        global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.label3]));
106
85
                        w2.Position = 0;
107
86
                        w2.Expand = false;
108
87
                        w2.Fill = false;
119
98
                        this.languageTreeView.HeadersVisible = false;
120
99
                        this.scrolledwindow1.Add (this.languageTreeView);
121
100
                        this.vbox4.Add (this.scrolledwindow1);
122
 
                        global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox4[this.scrolledwindow1]));
 
101
                        global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.scrolledwindow1]));
123
102
                        w4.Position = 1;
124
103
                        this.tableKnown.Add (this.vbox4);
125
 
                        global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.tableKnown[this.vbox4]));
 
104
                        global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.tableKnown [this.vbox4]));
126
105
                        w5.Position = 0;
127
106
                        w5.Expand = false;
128
107
                        w5.Fill = false;
140
119
                        this.checkbuttonUseCoutry.DrawIndicator = true;
141
120
                        this.checkbuttonUseCoutry.UseUnderline = true;
142
121
                        this.vbox5.Add (this.checkbuttonUseCoutry);
143
 
                        global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox5[this.checkbuttonUseCoutry]));
 
122
                        global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox5 [this.checkbuttonUseCoutry]));
144
123
                        w6.Position = 0;
145
124
                        w6.Expand = false;
146
125
                        w6.Fill = false;
156
135
                        this.countryTreeView.HeadersVisible = false;
157
136
                        this.scrolledwindow2.Add (this.countryTreeView);
158
137
                        this.vbox5.Add (this.scrolledwindow2);
159
 
                        global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox5[this.scrolledwindow2]));
 
138
                        global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox5 [this.scrolledwindow2]));
160
139
                        w8.Position = 1;
161
140
                        this.tableKnown.Add (this.vbox5);
162
 
                        global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.tableKnown[this.vbox5]));
 
141
                        global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.tableKnown [this.vbox5]));
163
142
                        w9.Position = 1;
164
143
                        this.GtkAlignment2.Add (this.tableKnown);
165
144
                        this.frame1.Add (this.GtkAlignment2);
171
150
                        this.radiobuttonKnown.Group = new global::GLib.SList (global::System.IntPtr.Zero);
172
151
                        this.frame1.LabelWidget = this.radiobuttonKnown;
173
152
                        this.vbox3.Add (this.frame1);
174
 
                        global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.frame1]));
 
153
                        global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.frame1]));
175
154
                        w12.Position = 0;
176
155
                        // Container child vbox3.Gtk.Box+BoxChild
177
156
                        this.frame2 = new global::Gtk.Frame ();
178
157
                        this.frame2.Name = "frame2";
179
158
                        this.frame2.ShadowType = ((global::Gtk.ShadowType)(0));
180
159
                        // Container child frame2.Gtk.Container+ContainerChild
181
 
                        this.GtkAlignment3 = new global::Gtk.Alignment (0f, 0f, 1f, 1f);
 
160
                        this.GtkAlignment3 = new global::Gtk.Alignment (0F, 0F, 1F, 1F);
182
161
                        this.GtkAlignment3.Name = "GtkAlignment3";
183
162
                        this.GtkAlignment3.LeftPadding = ((uint)(12));
184
163
                        // Container child GtkAlignment3.Gtk.Container+ContainerChild
188
167
                        // Container child hboxUser.Gtk.Box+BoxChild
189
168
                        this.label2 = new global::Gtk.Label ();
190
169
                        this.label2.Name = "label2";
191
 
                        this.label2.Xalign = 0f;
 
170
                        this.label2.Xalign = 0F;
192
171
                        this.label2.LabelProp = global::Mono.Unix.Catalog.GetString ("L_ocale:");
193
172
                        this.label2.UseUnderline = true;
194
173
                        this.hboxUser.Add (this.label2);
195
 
                        global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.hboxUser[this.label2]));
 
174
                        global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.hboxUser [this.label2]));
196
175
                        w13.Position = 0;
197
176
                        w13.Expand = false;
198
177
                        w13.Fill = false;
203
182
                        this.entryLocale.IsEditable = true;
204
183
                        this.entryLocale.InvisibleChar = '●';
205
184
                        this.hboxUser.Add (this.entryLocale);
206
 
                        global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.hboxUser[this.entryLocale]));
 
185
                        global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.hboxUser [this.entryLocale]));
207
186
                        w14.Position = 1;
208
187
                        this.GtkAlignment3.Add (this.hboxUser);
209
188
                        this.frame2.Add (this.GtkAlignment3);
214
193
                        this.radiobuttonCustom.Group = this.radiobuttonKnown.Group;
215
194
                        this.frame2.LabelWidget = this.radiobuttonCustom;
216
195
                        this.vbox3.Add (this.frame2);
217
 
                        global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.frame2]));
 
196
                        global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.frame2]));
218
197
                        w17.Position = 1;
219
198
                        w17.Expand = false;
220
199
                        w17.Fill = false;
221
200
                        this.vbox2.Add (this.vbox3);
222
 
                        global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.vbox3]));
 
201
                        global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.vbox3]));
223
202
                        w18.Position = 0;
224
203
                        w1.Add (this.vbox2);
225
 
                        global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(w1[this.vbox2]));
 
204
                        global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(w1 [this.vbox2]));
226
205
                        w19.Position = 0;
227
206
                        w19.Expand = false;
228
207
                        w19.Fill = false;
241
220
                        this.button1.UseUnderline = true;
242
221
                        this.button1.Label = "gtk-cancel";
243
222
                        this.AddActionWidget (this.button1, -6);
244
 
                        global::Gtk.ButtonBox.ButtonBoxChild w21 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w20[this.button1]));
 
223
                        global::Gtk.ButtonBox.ButtonBoxChild w21 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w20 [this.button1]));
245
224
                        w21.Expand = false;
246
225
                        w21.Fill = false;
247
226
                        // Container child MonoDevelop.Gettext.LanguageChooserDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
253
232
                        this.buttonOK.UseUnderline = true;
254
233
                        this.buttonOK.Label = "gtk-add";
255
234
                        this.AddActionWidget (this.buttonOK, -5);
256
 
                        global::Gtk.ButtonBox.ButtonBoxChild w22 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w20[this.buttonOK]));
 
235
                        global::Gtk.ButtonBox.ButtonBoxChild w22 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w20 [this.buttonOK]));
257
236
                        w22.Position = 1;
258
237
                        w22.Expand = false;
259
238
                        w22.Fill = false;
264
243
                        this.DefaultHeight = 415;
265
244
                        this.label3.MnemonicWidget = this.languageTreeView;
266
245
                        this.label2.MnemonicWidget = this.entryLocale;
267
 
                        this.Show ();
 
246
                        this.Hide ();
268
247
                        this.checkbuttonUseCoutry.Clicked += new global::System.EventHandler (this.ChangeSensitivity);
269
248
                        this.entryLocale.Changed += new global::System.EventHandler (this.OnEntryLocaleChanged);
270
249
                }