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

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/gtk-gui/MonoDevelop.Ide.SelectEncodingsDialog.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
        internal partial class SelectEncodingsDialog
6
6
        {
7
7
                private global::Gtk.Table table5;
8
 
 
9
8
                private global::Gtk.Label label106;
10
 
 
11
9
                private global::Gtk.Label label107;
12
 
 
13
10
                private global::Gtk.ScrolledWindow scrolledwindow10;
14
 
 
15
11
                private global::Gtk.TreeView listAvail;
16
 
 
17
12
                private global::Gtk.ScrolledWindow scrolledwindow11;
18
 
 
19
13
                private global::Gtk.TreeView listSelected;
20
 
 
21
14
                private global::Gtk.VBox vbox74;
22
 
 
23
15
                private global::Gtk.Label label108;
24
 
 
25
16
                private global::Gtk.Button btnAdd;
26
 
 
27
17
                private global::Gtk.Button btnRemove;
28
 
 
29
18
                private global::Gtk.Label label109;
30
 
 
31
19
                private global::Gtk.VBox vbox75;
32
 
 
33
20
                private global::Gtk.Button btnUp;
34
 
 
35
21
                private global::Gtk.Image image9;
36
 
 
37
22
                private global::Gtk.Button btnDown;
38
 
 
39
23
                private global::Gtk.Image image10;
40
 
 
41
24
                private global::Gtk.Button cancelbutton1;
42
 
 
43
25
                private global::Gtk.Button okbutton1;
44
26
 
45
27
                protected virtual void Build ()
67
49
                        // Container child table5.Gtk.Table+TableChild
68
50
                        this.label106 = new global::Gtk.Label ();
69
51
                        this.label106.Name = "label106";
70
 
                        this.label106.Xalign = 0f;
71
 
                        this.label106.Yalign = 0f;
 
52
                        this.label106.Xalign = 0F;
 
53
                        this.label106.Yalign = 0F;
72
54
                        this.label106.LabelProp = global::MonoDevelop.Core.GettextCatalog.GetString ("Available encodings:");
73
55
                        this.label106.WidthChars = 20;
74
56
                        this.table5.Add (this.label106);
75
 
                        global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table5[this.label106]));
 
57
                        global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table5 [this.label106]));
76
58
                        w2.XOptions = ((global::Gtk.AttachOptions)(4));
77
59
                        w2.YOptions = ((global::Gtk.AttachOptions)(0));
78
60
                        // Container child table5.Gtk.Table+TableChild
79
61
                        this.label107 = new global::Gtk.Label ();
80
62
                        this.label107.Name = "label107";
81
 
                        this.label107.Xalign = 0f;
82
 
                        this.label107.Yalign = 0f;
 
63
                        this.label107.Xalign = 0F;
 
64
                        this.label107.Yalign = 0F;
83
65
                        this.label107.LabelProp = global::MonoDevelop.Core.GettextCatalog.GetString ("Encodings shown in menu:");
84
66
                        this.label107.WidthChars = 20;
85
67
                        this.table5.Add (this.label107);
86
 
                        global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table5[this.label107]));
 
68
                        global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table5 [this.label107]));
87
69
                        w3.LeftAttach = ((uint)(2));
88
70
                        w3.RightAttach = ((uint)(3));
89
71
                        w3.XOptions = ((global::Gtk.AttachOptions)(4));
97
79
                        this.listAvail.Name = "listAvail";
98
80
                        this.scrolledwindow10.Add (this.listAvail);
99
81
                        this.table5.Add (this.scrolledwindow10);
100
 
                        global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table5[this.scrolledwindow10]));
 
82
                        global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table5 [this.scrolledwindow10]));
101
83
                        w5.TopAttach = ((uint)(1));
102
84
                        w5.BottomAttach = ((uint)(2));
103
85
                        // Container child table5.Gtk.Table+TableChild
109
91
                        this.listSelected.Name = "listSelected";
110
92
                        this.scrolledwindow11.Add (this.listSelected);
111
93
                        this.table5.Add (this.scrolledwindow11);
112
 
                        global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table5[this.scrolledwindow11]));
 
94
                        global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table5 [this.scrolledwindow11]));
113
95
                        w7.TopAttach = ((uint)(1));
114
96
                        w7.BottomAttach = ((uint)(2));
115
97
                        w7.LeftAttach = ((uint)(2));
121
103
                        // Container child vbox74.Gtk.Box+BoxChild
122
104
                        this.label108 = new global::Gtk.Label ();
123
105
                        this.label108.Name = "label108";
124
 
                        this.label108.Xalign = 0f;
125
 
                        this.label108.Yalign = 0f;
 
106
                        this.label108.Xalign = 0F;
 
107
                        this.label108.Yalign = 0F;
126
108
                        this.vbox74.Add (this.label108);
127
 
                        global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox74[this.label108]));
 
109
                        global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox74 [this.label108]));
128
110
                        w8.Position = 0;
129
111
                        // Container child vbox74.Gtk.Box+BoxChild
130
112
                        this.btnAdd = new global::Gtk.Button ();
131
113
                        this.btnAdd.Name = "btnAdd";
132
114
                        this.btnAdd.UseUnderline = true;
133
115
                        // Container child btnAdd.Gtk.Container+ContainerChild
134
 
                        global::Gtk.Alignment w9 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
 
116
                        global::Gtk.Alignment w9 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
135
117
                        // Container child GtkAlignment.Gtk.Container+ContainerChild
136
118
                        global::Gtk.HBox w10 = new global::Gtk.HBox ();
137
119
                        w10.Spacing = 2;
145
127
                        w9.Add (w10);
146
128
                        this.btnAdd.Add (w9);
147
129
                        this.vbox74.Add (this.btnAdd);
148
 
                        global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.vbox74[this.btnAdd]));
 
130
                        global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.vbox74 [this.btnAdd]));
149
131
                        w17.Position = 1;
150
132
                        w17.Expand = false;
151
133
                        w17.Fill = false;
153
135
                        this.btnRemove = new global::Gtk.Button ();
154
136
                        this.btnRemove.Name = "btnRemove";
155
137
                        // Container child btnRemove.Gtk.Container+ContainerChild
156
 
                        global::Gtk.Alignment w18 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
 
138
                        global::Gtk.Alignment w18 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
157
139
                        // Container child GtkAlignment.Gtk.Container+ContainerChild
158
140
                        global::Gtk.HBox w19 = new global::Gtk.HBox ();
159
141
                        w19.Spacing = 2;
167
149
                        w18.Add (w19);
168
150
                        this.btnRemove.Add (w18);
169
151
                        this.vbox74.Add (this.btnRemove);
170
 
                        global::Gtk.Box.BoxChild w26 = ((global::Gtk.Box.BoxChild)(this.vbox74[this.btnRemove]));
 
152
                        global::Gtk.Box.BoxChild w26 = ((global::Gtk.Box.BoxChild)(this.vbox74 [this.btnRemove]));
171
153
                        w26.Position = 2;
172
154
                        w26.Expand = false;
173
155
                        w26.Fill = false;
174
156
                        // Container child vbox74.Gtk.Box+BoxChild
175
157
                        this.label109 = new global::Gtk.Label ();
176
158
                        this.label109.Name = "label109";
177
 
                        this.label109.Xalign = 0f;
178
 
                        this.label109.Yalign = 0f;
 
159
                        this.label109.Xalign = 0F;
 
160
                        this.label109.Yalign = 0F;
179
161
                        this.vbox74.Add (this.label109);
180
 
                        global::Gtk.Box.BoxChild w27 = ((global::Gtk.Box.BoxChild)(this.vbox74[this.label109]));
 
162
                        global::Gtk.Box.BoxChild w27 = ((global::Gtk.Box.BoxChild)(this.vbox74 [this.label109]));
181
163
                        w27.Position = 3;
182
164
                        this.table5.Add (this.vbox74);
183
 
                        global::Gtk.Table.TableChild w28 = ((global::Gtk.Table.TableChild)(this.table5[this.vbox74]));
 
165
                        global::Gtk.Table.TableChild w28 = ((global::Gtk.Table.TableChild)(this.table5 [this.vbox74]));
184
166
                        w28.TopAttach = ((uint)(1));
185
167
                        w28.BottomAttach = ((uint)(2));
186
168
                        w28.LeftAttach = ((uint)(1));
197
179
                        // Container child btnUp.Gtk.Container+ContainerChild
198
180
                        this.image9 = new global::Gtk.Image ();
199
181
                        this.image9.Name = "image9";
200
 
                        this.image9.Xalign = 0f;
201
 
                        this.image9.Yalign = 0f;
 
182
                        this.image9.Xalign = 0F;
 
183
                        this.image9.Yalign = 0F;
202
184
                        this.image9.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-go-up", global::Gtk.IconSize.Button);
203
185
                        this.btnUp.Add (this.image9);
204
186
                        this.btnUp.Label = null;
205
187
                        this.vbox75.Add (this.btnUp);
206
 
                        global::Gtk.Box.BoxChild w30 = ((global::Gtk.Box.BoxChild)(this.vbox75[this.btnUp]));
 
188
                        global::Gtk.Box.BoxChild w30 = ((global::Gtk.Box.BoxChild)(this.vbox75 [this.btnUp]));
207
189
                        w30.Position = 0;
208
190
                        w30.Expand = false;
209
191
                        w30.Fill = false;
213
195
                        // Container child btnDown.Gtk.Container+ContainerChild
214
196
                        this.image10 = new global::Gtk.Image ();
215
197
                        this.image10.Name = "image10";
216
 
                        this.image10.Xalign = 0f;
217
 
                        this.image10.Yalign = 0f;
 
198
                        this.image10.Xalign = 0F;
 
199
                        this.image10.Yalign = 0F;
218
200
                        this.image10.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-go-down", global::Gtk.IconSize.Button);
219
201
                        this.btnDown.Add (this.image10);
220
202
                        this.btnDown.Label = null;
221
203
                        this.vbox75.Add (this.btnDown);
222
 
                        global::Gtk.Box.BoxChild w32 = ((global::Gtk.Box.BoxChild)(this.vbox75[this.btnDown]));
 
204
                        global::Gtk.Box.BoxChild w32 = ((global::Gtk.Box.BoxChild)(this.vbox75 [this.btnDown]));
223
205
                        w32.Position = 1;
224
206
                        w32.Expand = false;
225
207
                        w32.Fill = false;
226
208
                        this.table5.Add (this.vbox75);
227
 
                        global::Gtk.Table.TableChild w33 = ((global::Gtk.Table.TableChild)(this.table5[this.vbox75]));
 
209
                        global::Gtk.Table.TableChild w33 = ((global::Gtk.Table.TableChild)(this.table5 [this.vbox75]));
228
210
                        w33.TopAttach = ((uint)(1));
229
211
                        w33.BottomAttach = ((uint)(2));
230
212
                        w33.LeftAttach = ((uint)(3));
232
214
                        w33.XOptions = ((global::Gtk.AttachOptions)(0));
233
215
                        w33.YOptions = ((global::Gtk.AttachOptions)(0));
234
216
                        w1.Add (this.table5);
235
 
                        global::Gtk.Box.BoxChild w34 = ((global::Gtk.Box.BoxChild)(w1[this.table5]));
 
217
                        global::Gtk.Box.BoxChild w34 = ((global::Gtk.Box.BoxChild)(w1 [this.table5]));
236
218
                        w34.Position = 0;
237
219
                        // Internal child MonoDevelop.Ide.SelectEncodingsDialog.ActionArea
238
220
                        global::Gtk.HButtonBox w35 = this.ActionArea;
247
229
                        this.cancelbutton1.UseUnderline = true;
248
230
                        this.cancelbutton1.Label = "gtk-cancel";
249
231
                        this.AddActionWidget (this.cancelbutton1, -6);
250
 
                        global::Gtk.ButtonBox.ButtonBoxChild w36 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w35[this.cancelbutton1]));
 
232
                        global::Gtk.ButtonBox.ButtonBoxChild w36 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w35 [this.cancelbutton1]));
251
233
                        w36.Expand = false;
252
234
                        w36.Fill = false;
253
235
                        // Container child dialog-action_area5.Gtk.ButtonBox+ButtonBoxChild
257
239
                        this.okbutton1.UseUnderline = true;
258
240
                        this.okbutton1.Label = "gtk-ok";
259
241
                        this.AddActionWidget (this.okbutton1, -5);
260
 
                        global::Gtk.ButtonBox.ButtonBoxChild w37 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w35[this.okbutton1]));
 
242
                        global::Gtk.ButtonBox.ButtonBoxChild w37 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w35 [this.okbutton1]));
261
243
                        w37.Position = 1;
262
244
                        w37.Expand = false;
263
245
                        w37.Fill = false;
264
246
                        if ((this.Child != null)) {
265
247
                                this.Child.ShowAll ();
266
248
                        }
267
 
                        this.Show ();
 
249
                        this.Hide ();
268
250
                        this.Response += new global::Gtk.ResponseHandler (this.OnRespond);
269
251
                        this.btnUp.Clicked += new global::System.EventHandler (this.OnUpClicked);
270
252
                        this.btnDown.Clicked += new global::System.EventHandler (this.OnDownClicked);