~ubuntu-branches/ubuntu/precise/gnome-do/precise-proposed

« back to all changes in this revision

Viewing changes to Do.Addins/gtk-gui/Do.UI.AbstractLoginWidget.cs

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2008-09-14 10:09:40 UTC
  • mto: (0.1.8 sid)
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: james.westby@ubuntu.com-20080914100940-kyghudg7py14bu2z
Tags: upstream-0.6.0.0
Import upstream version 0.6.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// ------------------------------------------------------------------------------
 
2
//  <autogenerated>
 
3
//      This code was generated by a tool.
 
4
//      Mono Runtime Version: 2.0.50727.42
 
5
// 
 
6
//      Changes to this file may cause incorrect behavior and will be lost if 
 
7
//      the code is regenerated.
 
8
//  </autogenerated>
 
9
// ------------------------------------------------------------------------------
 
10
 
 
11
namespace Do.UI {
 
12
    
 
13
    
 
14
    public partial class AbstractLoginWidget {
 
15
        
 
16
        private Gtk.VBox vbox1;
 
17
        
 
18
        private Gtk.Table table3;
 
19
        
 
20
        private Gtk.Entry password_entry;
 
21
        
 
22
        private Gtk.Label password_lbl;
 
23
        
 
24
        private Gtk.Entry username_entry;
 
25
        
 
26
        private Gtk.Label username_lbl;
 
27
        
 
28
        private Gtk.VBox vbox3;
 
29
        
 
30
        private Gtk.Label validate_lbl;
 
31
        
 
32
        private Gtk.Table table4;
 
33
        
 
34
        private Gtk.Fixed fixed5;
 
35
        
 
36
        private Gtk.Button validate_btn;
 
37
        
 
38
        private Gtk.VBox vbox4;
 
39
        
 
40
        private Gtk.Table table5;
 
41
        
 
42
        private Gtk.Fixed fixed1;
 
43
        
 
44
        private Gtk.Fixed fixed2;
 
45
        
 
46
        private Gtk.HSeparator hseparator1;
 
47
        
 
48
        private Gtk.Label get_account_lbl;
 
49
        
 
50
        private Gtk.HBox new_acct_hbox;
 
51
        
 
52
        private Gtk.Fixed fixed3;
 
53
        
 
54
        private Gtk.Fixed fixed4;
 
55
        
 
56
        protected virtual void Build() {
 
57
            Stetic.Gui.Initialize(this);
 
58
            // Widget Do.UI.AbstractLoginWidget
 
59
            Stetic.BinContainer.Attach(this);
 
60
            this.Name = "Do.UI.AbstractLoginWidget";
 
61
            // Container child Do.UI.AbstractLoginWidget.Gtk.Container+ContainerChild
 
62
            this.vbox1 = new Gtk.VBox();
 
63
            this.vbox1.Name = "vbox1";
 
64
            this.vbox1.Spacing = 6;
 
65
            // Container child vbox1.Gtk.Box+BoxChild
 
66
            this.table3 = new Gtk.Table(((uint)(2)), ((uint)(2)), false);
 
67
            this.table3.Name = "table3";
 
68
            this.table3.RowSpacing = ((uint)(6));
 
69
            this.table3.ColumnSpacing = ((uint)(6));
 
70
            this.table3.BorderWidth = ((uint)(7));
 
71
            // Container child table3.Gtk.Table+TableChild
 
72
            this.password_entry = new Gtk.Entry();
 
73
            this.password_entry.CanFocus = true;
 
74
            this.password_entry.Name = "password_entry";
 
75
            this.password_entry.IsEditable = true;
 
76
            this.password_entry.Visibility = false;
 
77
            this.password_entry.InvisibleChar = '●';
 
78
            this.table3.Add(this.password_entry);
 
79
            Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table3[this.password_entry]));
 
80
            w1.TopAttach = ((uint)(1));
 
81
            w1.BottomAttach = ((uint)(2));
 
82
            w1.LeftAttach = ((uint)(1));
 
83
            w1.RightAttach = ((uint)(2));
 
84
            w1.YOptions = ((Gtk.AttachOptions)(4));
 
85
            // Container child table3.Gtk.Table+TableChild
 
86
            this.password_lbl = new Gtk.Label();
 
87
            this.password_lbl.Name = "password_lbl";
 
88
            this.password_lbl.Xpad = 5;
 
89
            this.password_lbl.Xalign = 1F;
 
90
            this.password_lbl.LabelProp = Mono.Unix.Catalog.GetString("Password");
 
91
            this.table3.Add(this.password_lbl);
 
92
            Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table3[this.password_lbl]));
 
93
            w2.TopAttach = ((uint)(1));
 
94
            w2.BottomAttach = ((uint)(2));
 
95
            w2.YOptions = ((Gtk.AttachOptions)(4));
 
96
            // Container child table3.Gtk.Table+TableChild
 
97
            this.username_entry = new Gtk.Entry();
 
98
            this.username_entry.CanFocus = true;
 
99
            this.username_entry.Name = "username_entry";
 
100
            this.username_entry.IsEditable = true;
 
101
            this.username_entry.InvisibleChar = '●';
 
102
            this.table3.Add(this.username_entry);
 
103
            Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table3[this.username_entry]));
 
104
            w3.LeftAttach = ((uint)(1));
 
105
            w3.RightAttach = ((uint)(2));
 
106
            w3.XOptions = ((Gtk.AttachOptions)(4));
 
107
            w3.YOptions = ((Gtk.AttachOptions)(4));
 
108
            // Container child table3.Gtk.Table+TableChild
 
109
            this.username_lbl = new Gtk.Label();
 
110
            this.username_lbl.Name = "username_lbl";
 
111
            this.username_lbl.Xpad = 5;
 
112
            this.username_lbl.Xalign = 1F;
 
113
            this.username_lbl.LabelProp = Mono.Unix.Catalog.GetString("Username");
 
114
            this.table3.Add(this.username_lbl);
 
115
            Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table3[this.username_lbl]));
 
116
            w4.XOptions = ((Gtk.AttachOptions)(4));
 
117
            w4.YOptions = ((Gtk.AttachOptions)(4));
 
118
            this.vbox1.Add(this.table3);
 
119
            Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.table3]));
 
120
            w5.Position = 0;
 
121
            w5.Expand = false;
 
122
            w5.Fill = false;
 
123
            // Container child vbox1.Gtk.Box+BoxChild
 
124
            this.vbox3 = new Gtk.VBox();
 
125
            this.vbox3.Name = "vbox3";
 
126
            this.vbox3.Spacing = 6;
 
127
            // Container child vbox3.Gtk.Box+BoxChild
 
128
            this.validate_lbl = new Gtk.Label();
 
129
            this.validate_lbl.Name = "validate_lbl";
 
130
            this.validate_lbl.LabelProp = Mono.Unix.Catalog.GetString("<i>Verify and save account information</i>");
 
131
            this.validate_lbl.UseMarkup = true;
 
132
            this.vbox3.Add(this.validate_lbl);
 
133
            Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox3[this.validate_lbl]));
 
134
            w6.Position = 0;
 
135
            w6.Expand = false;
 
136
            w6.Fill = false;
 
137
            // Container child vbox3.Gtk.Box+BoxChild
 
138
            this.table4 = new Gtk.Table(((uint)(1)), ((uint)(2)), false);
 
139
            this.table4.Name = "table4";
 
140
            this.table4.RowSpacing = ((uint)(6));
 
141
            this.table4.ColumnSpacing = ((uint)(6));
 
142
            // Container child table4.Gtk.Table+TableChild
 
143
            this.fixed5 = new Gtk.Fixed();
 
144
            this.fixed5.WidthRequest = 119;
 
145
            this.fixed5.Name = "fixed5";
 
146
            this.fixed5.HasWindow = false;
 
147
            this.table4.Add(this.fixed5);
 
148
            Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table4[this.fixed5]));
 
149
            w7.YOptions = ((Gtk.AttachOptions)(4));
 
150
            // Container child table4.Gtk.Table+TableChild
 
151
            this.validate_btn = new Gtk.Button();
 
152
            this.validate_btn.WidthRequest = 40;
 
153
            this.validate_btn.CanFocus = true;
 
154
            this.validate_btn.Name = "validate_btn";
 
155
            this.validate_btn.UseStock = true;
 
156
            this.validate_btn.UseUnderline = true;
 
157
            this.validate_btn.BorderWidth = ((uint)(7));
 
158
            this.validate_btn.Label = "gtk-apply";
 
159
            this.table4.Add(this.validate_btn);
 
160
            Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table4[this.validate_btn]));
 
161
            w8.LeftAttach = ((uint)(1));
 
162
            w8.RightAttach = ((uint)(2));
 
163
            w8.YOptions = ((Gtk.AttachOptions)(4));
 
164
            this.vbox3.Add(this.table4);
 
165
            Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox3[this.table4]));
 
166
            w9.Position = 1;
 
167
            w9.Expand = false;
 
168
            w9.Fill = false;
 
169
            this.vbox1.Add(this.vbox3);
 
170
            Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.vbox3]));
 
171
            w10.Position = 1;
 
172
            // Container child vbox1.Gtk.Box+BoxChild
 
173
            this.vbox4 = new Gtk.VBox();
 
174
            this.vbox4.Name = "vbox4";
 
175
            this.vbox4.Spacing = 6;
 
176
            // Container child vbox4.Gtk.Box+BoxChild
 
177
            this.table5 = new Gtk.Table(((uint)(1)), ((uint)(3)), false);
 
178
            this.table5.Name = "table5";
 
179
            this.table5.RowSpacing = ((uint)(6));
 
180
            this.table5.ColumnSpacing = ((uint)(6));
 
181
            // Container child table5.Gtk.Table+TableChild
 
182
            this.fixed1 = new Gtk.Fixed();
 
183
            this.fixed1.Name = "fixed1";
 
184
            this.fixed1.HasWindow = false;
 
185
            this.table5.Add(this.fixed1);
 
186
            Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table5[this.fixed1]));
 
187
            w11.LeftAttach = ((uint)(2));
 
188
            w11.RightAttach = ((uint)(3));
 
189
            w11.YOptions = ((Gtk.AttachOptions)(4));
 
190
            // Container child table5.Gtk.Table+TableChild
 
191
            this.fixed2 = new Gtk.Fixed();
 
192
            this.fixed2.Name = "fixed2";
 
193
            this.fixed2.HasWindow = false;
 
194
            this.table5.Add(this.fixed2);
 
195
            Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table5[this.fixed2]));
 
196
            w12.YOptions = ((Gtk.AttachOptions)(4));
 
197
            // Container child table5.Gtk.Table+TableChild
 
198
            this.hseparator1 = new Gtk.HSeparator();
 
199
            this.hseparator1.WidthRequest = 190;
 
200
            this.hseparator1.Name = "hseparator1";
 
201
            this.table5.Add(this.hseparator1);
 
202
            Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table5[this.hseparator1]));
 
203
            w13.LeftAttach = ((uint)(1));
 
204
            w13.RightAttach = ((uint)(2));
 
205
            w13.YOptions = ((Gtk.AttachOptions)(4));
 
206
            this.vbox4.Add(this.table5);
 
207
            Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox4[this.table5]));
 
208
            w14.Position = 0;
 
209
            w14.Expand = false;
 
210
            w14.Fill = false;
 
211
            // Container child vbox4.Gtk.Box+BoxChild
 
212
            this.get_account_lbl = new Gtk.Label();
 
213
            this.get_account_lbl.Name = "get_account_lbl";
 
214
            this.get_account_lbl.LabelProp = "";
 
215
            this.get_account_lbl.UseMarkup = true;
 
216
            this.vbox4.Add(this.get_account_lbl);
 
217
            Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox4[this.get_account_lbl]));
 
218
            w15.Position = 1;
 
219
            w15.Expand = false;
 
220
            w15.Fill = false;
 
221
            // Container child vbox4.Gtk.Box+BoxChild
 
222
            this.new_acct_hbox = new Gtk.HBox();
 
223
            this.new_acct_hbox.Name = "new_acct_hbox";
 
224
            this.new_acct_hbox.Spacing = 6;
 
225
            // Container child new_acct_hbox.Gtk.Box+BoxChild
 
226
            this.fixed3 = new Gtk.Fixed();
 
227
            this.fixed3.Name = "fixed3";
 
228
            this.fixed3.HasWindow = false;
 
229
            this.new_acct_hbox.Add(this.fixed3);
 
230
            Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.new_acct_hbox[this.fixed3]));
 
231
            w16.Position = 0;
 
232
            // Container child new_acct_hbox.Gtk.Box+BoxChild
 
233
            this.fixed4 = new Gtk.Fixed();
 
234
            this.fixed4.Name = "fixed4";
 
235
            this.fixed4.HasWindow = false;
 
236
            this.new_acct_hbox.Add(this.fixed4);
 
237
            Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.new_acct_hbox[this.fixed4]));
 
238
            w17.Position = 2;
 
239
            this.vbox4.Add(this.new_acct_hbox);
 
240
            Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox4[this.new_acct_hbox]));
 
241
            w18.Position = 2;
 
242
            w18.Expand = false;
 
243
            w18.Fill = false;
 
244
            this.vbox1.Add(this.vbox4);
 
245
            Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox1[this.vbox4]));
 
246
            w19.Position = 2;
 
247
            w19.Expand = false;
 
248
            w19.Fill = false;
 
249
            this.Add(this.vbox1);
 
250
            if ((this.Child != null)) {
 
251
                this.Child.ShowAll();
 
252
            }
 
253
            this.password_entry.Hide();
 
254
            this.Show();
 
255
            this.password_entry.Activated += new System.EventHandler(this.OnPasswordEntryActivated);
 
256
            this.validate_btn.Clicked += new System.EventHandler(this.OnApplyBtnClicked);
 
257
        }
 
258
    }
 
259
}