~jassmith/do/thirdsearchcontrollerfix

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
// ------------------------------------------------------------------------------
//  <autogenerated>
//      This code was generated by a tool.
//      
// 
//      Changes to this file may cause incorrect behavior and will be lost if 
//      the code is regenerated.
//  </autogenerated>
// ------------------------------------------------------------------------------

namespace Do.Platform.Linux {
    
    
    public partial class AbstractLoginWidget {
        
        private Gtk.VBox wrapper_vbox;
        
        private Gtk.VBox vbox2;
        
        private Gtk.VBox account_vbox;
        
        private Gtk.Table login_tbl;
        
        private Gtk.Entry password_entry;
        
        private Gtk.Label password_lbl;
        
        private Gtk.Entry username_entry;
        
        private Gtk.Label username_lbl;
        
        private Gtk.Label validate_lbl;
        
        private Gtk.HButtonBox hbuttonbox1;
        
        private Gtk.Button validate_btn;
        
        private Gtk.VBox middle_box;
        
        private Gtk.VBox new_account_vbox;
        
        private Gtk.HSeparator hseparator1;
        
        private Gtk.Label new_account_lbl;
        
        private Gtk.HButtonBox new_account_button_box;
        
        protected virtual void Build() {
            Stetic.Gui.Initialize(this);
            // Widget Do.Platform.Linux.AbstractLoginWidget
            Stetic.BinContainer.Attach(this);
            this.Name = "Do.Platform.Linux.AbstractLoginWidget";
            // Container child Do.Platform.Linux.AbstractLoginWidget.Gtk.Container+ContainerChild
            this.wrapper_vbox = new Gtk.VBox();
            this.wrapper_vbox.Name = "wrapper_vbox";
            this.wrapper_vbox.Spacing = 6;
            this.wrapper_vbox.BorderWidth = ((uint)(10));
            // Container child wrapper_vbox.Gtk.Box+BoxChild
            this.vbox2 = new Gtk.VBox();
            this.vbox2.Name = "vbox2";
            this.vbox2.Spacing = 6;
            // Container child vbox2.Gtk.Box+BoxChild
            this.account_vbox = new Gtk.VBox();
            this.account_vbox.Name = "account_vbox";
            this.account_vbox.Spacing = 6;
            // Container child account_vbox.Gtk.Box+BoxChild
            this.login_tbl = new Gtk.Table(((uint)(2)), ((uint)(2)), false);
            this.login_tbl.Name = "login_tbl";
            this.login_tbl.RowSpacing = ((uint)(6));
            this.login_tbl.ColumnSpacing = ((uint)(6));
            // Container child login_tbl.Gtk.Table+TableChild
            this.password_entry = new Gtk.Entry();
            this.password_entry.CanFocus = true;
            this.password_entry.Name = "password_entry";
            this.password_entry.IsEditable = true;
            this.password_entry.Visibility = false;
            this.password_entry.InvisibleChar = '●';
            this.login_tbl.Add(this.password_entry);
            Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.login_tbl[this.password_entry]));
            w1.TopAttach = ((uint)(1));
            w1.BottomAttach = ((uint)(2));
            w1.LeftAttach = ((uint)(1));
            w1.RightAttach = ((uint)(2));
            w1.YOptions = ((Gtk.AttachOptions)(4));
            // Container child login_tbl.Gtk.Table+TableChild
            this.password_lbl = new Gtk.Label();
            this.password_lbl.Name = "password_lbl";
            this.password_lbl.Xalign = 1F;
            this.password_lbl.LabelProp = Mono.Unix.Catalog.GetString("Password");
            this.login_tbl.Add(this.password_lbl);
            Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.login_tbl[this.password_lbl]));
            w2.TopAttach = ((uint)(1));
            w2.BottomAttach = ((uint)(2));
            w2.XOptions = ((Gtk.AttachOptions)(4));
            w2.YOptions = ((Gtk.AttachOptions)(4));
            // Container child login_tbl.Gtk.Table+TableChild
            this.username_entry = new Gtk.Entry();
            this.username_entry.CanFocus = true;
            this.username_entry.Name = "username_entry";
            this.username_entry.IsEditable = true;
            this.username_entry.InvisibleChar = '●';
            this.login_tbl.Add(this.username_entry);
            Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.login_tbl[this.username_entry]));
            w3.LeftAttach = ((uint)(1));
            w3.RightAttach = ((uint)(2));
            w3.YOptions = ((Gtk.AttachOptions)(4));
            // Container child login_tbl.Gtk.Table+TableChild
            this.username_lbl = new Gtk.Label();
            this.username_lbl.Name = "username_lbl";
            this.username_lbl.Xalign = 1F;
            this.username_lbl.LabelProp = Mono.Unix.Catalog.GetString("Username");
            this.login_tbl.Add(this.username_lbl);
            Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.login_tbl[this.username_lbl]));
            w4.XOptions = ((Gtk.AttachOptions)(0));
            w4.YOptions = ((Gtk.AttachOptions)(4));
            this.account_vbox.Add(this.login_tbl);
            Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.account_vbox[this.login_tbl]));
            w5.Position = 0;
            w5.Expand = false;
            w5.Fill = false;
            // Container child account_vbox.Gtk.Box+BoxChild
            this.validate_lbl = new Gtk.Label();
            this.validate_lbl.Name = "validate_lbl";
            this.validate_lbl.LabelProp = Mono.Unix.Catalog.GetString("<i>Verify and save account information</i>");
            this.validate_lbl.UseMarkup = true;
            this.account_vbox.Add(this.validate_lbl);
            Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.account_vbox[this.validate_lbl]));
            w6.Position = 1;
            w6.Expand = false;
            w6.Fill = false;
            // Container child account_vbox.Gtk.Box+BoxChild
            this.hbuttonbox1 = new Gtk.HButtonBox();
            this.hbuttonbox1.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
            // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
            this.validate_btn = new Gtk.Button();
            this.validate_btn.CanFocus = true;
            this.validate_btn.Name = "validate_btn";
            this.validate_btn.UseStock = true;
            this.validate_btn.UseUnderline = true;
            this.validate_btn.Label = "gtk-apply";
            this.hbuttonbox1.Add(this.validate_btn);
            Gtk.ButtonBox.ButtonBoxChild w7 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.validate_btn]));
            w7.Expand = false;
            w7.Fill = false;
            this.account_vbox.Add(this.hbuttonbox1);
            Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.account_vbox[this.hbuttonbox1]));
            w8.Position = 2;
            w8.Expand = false;
            w8.Fill = false;
            this.vbox2.Add(this.account_vbox);
            Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox2[this.account_vbox]));
            w9.Position = 0;
            w9.Expand = false;
            w9.Fill = false;
            // Container child vbox2.Gtk.Box+BoxChild
            this.middle_box = new Gtk.VBox();
            this.middle_box.Name = "middle_box";
            this.middle_box.Spacing = 6;
            this.vbox2.Add(this.middle_box);
            Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox2[this.middle_box]));
            w10.Position = 1;
            this.wrapper_vbox.Add(this.vbox2);
            Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.wrapper_vbox[this.vbox2]));
            w11.Position = 1;
            // Container child wrapper_vbox.Gtk.Box+BoxChild
            this.new_account_vbox = new Gtk.VBox();
            this.new_account_vbox.Name = "new_account_vbox";
            this.new_account_vbox.Spacing = 6;
            // Container child new_account_vbox.Gtk.Box+BoxChild
            this.hseparator1 = new Gtk.HSeparator();
            this.hseparator1.Name = "hseparator1";
            this.new_account_vbox.Add(this.hseparator1);
            Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.new_account_vbox[this.hseparator1]));
            w12.Position = 0;
            w12.Expand = false;
            w12.Fill = false;
            // Container child new_account_vbox.Gtk.Box+BoxChild
            this.new_account_lbl = new Gtk.Label();
            this.new_account_lbl.Name = "new_account_lbl";
            this.new_account_lbl.LabelProp = Mono.Unix.Catalog.GetString("Don't have an account?");
            this.new_account_vbox.Add(this.new_account_lbl);
            Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.new_account_vbox[this.new_account_lbl]));
            w13.Position = 1;
            w13.Expand = false;
            w13.Fill = false;
            // Container child new_account_vbox.Gtk.Box+BoxChild
            this.new_account_button_box = new Gtk.HButtonBox();
            this.new_account_button_box.Name = "new_account_button_box";
            this.new_account_button_box.LayoutStyle = ((Gtk.ButtonBoxStyle)(1));
            this.new_account_vbox.Add(this.new_account_button_box);
            Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.new_account_vbox[this.new_account_button_box]));
            w14.Position = 2;
            w14.Expand = false;
            w14.Fill = false;
            this.wrapper_vbox.Add(this.new_account_vbox);
            Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.wrapper_vbox[this.new_account_vbox]));
            w15.Position = 2;
            w15.Expand = false;
            w15.Fill = false;
            this.Add(this.wrapper_vbox);
            if ((this.Child != null)) {
                this.Child.ShowAll();
            }
            this.Hide();
            this.validate_btn.Clicked += new System.EventHandler(this.OnValidateBtnClicked);
        }
    }
}