File: MonoDevelop.Database.Designer.CreateDatabaseDialog.cs

package info (click to toggle)
monodevelop-database 1.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 3,240 kB
  • ctags: 3,403
  • sloc: cs: 19,989; xml: 810; makefile: 649; sh: 540
file content (204 lines) | stat: -rw-r--r-- 9,752 bytes parent folder | download
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
// ------------------------------------------------------------------------------
//  <autogenerated>
//      This code was generated by a tool.
//      Mono Runtime Version: 2.0.50727.42
// 
//      Changes to this file may cause incorrect behavior and will be lost if 
//      the code is regenerated.
//  </autogenerated>
// ------------------------------------------------------------------------------

namespace MonoDevelop.Database.Designer {
    
    
    public partial class CreateDatabaseDialog {
        
        private Gtk.Table table;
        
        private Gtk.Button buttonNew;
        
        private Gtk.Button buttonSelect;
        
        private MonoDevelop.Database.Components.DatabaseConnectionContextComboBox comboConnections;
        
        private Gtk.Entry entryDatabase;
        
        private Gtk.Entry entryName;
        
        private Gtk.Label label1;
        
        private Gtk.Label label2;
        
        private Gtk.Label label3;
        
        private Gtk.Button buttonCancel;
        
        private Gtk.Button buttonOk;
        
        protected virtual void Build() {
            Stetic.Gui.Initialize(this);
            // Widget MonoDevelop.Database.Designer.CreateDatabaseDialog
            this.Name = "MonoDevelop.Database.Designer.CreateDatabaseDialog";
            this.Title = AddinCatalog.GetString("Create Database");
            this.TypeHint = ((Gdk.WindowTypeHint)(1));
            this.WindowPosition = ((Gtk.WindowPosition)(1));
            this.SkipTaskbarHint = true;
            this.HasSeparator = false;
            // Internal child MonoDevelop.Database.Designer.CreateDatabaseDialog.VBox
            Gtk.VBox w1 = this.VBox;
            w1.Name = "dialog1_VBox";
            w1.BorderWidth = ((uint)(2));
            // Container child dialog1_VBox.Gtk.Box+BoxChild
            this.table = new Gtk.Table(((uint)(3)), ((uint)(3)), false);
            this.table.Name = "table";
            this.table.RowSpacing = ((uint)(6));
            this.table.ColumnSpacing = ((uint)(6));
            this.table.BorderWidth = ((uint)(6));
            // Container child table.Gtk.Table+TableChild
            this.buttonNew = new Gtk.Button();
            this.buttonNew.CanFocus = true;
            this.buttonNew.Name = "buttonNew";
            this.buttonNew.UseStock = true;
            this.buttonNew.UseUnderline = true;
            this.buttonNew.Label = "gtk-new";
            this.table.Add(this.buttonNew);
            Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table[this.buttonNew]));
            w2.LeftAttach = ((uint)(2));
            w2.RightAttach = ((uint)(3));
            w2.XOptions = ((Gtk.AttachOptions)(4));
            w2.YOptions = ((Gtk.AttachOptions)(4));
            // Container child table.Gtk.Table+TableChild
            this.buttonSelect = new Gtk.Button();
            this.buttonSelect.Sensitive = false;
            this.buttonSelect.CanFocus = true;
            this.buttonSelect.Name = "buttonSelect";
            this.buttonSelect.UseStock = true;
            this.buttonSelect.UseUnderline = true;
            this.buttonSelect.Label = "gtk-save-as";
            this.table.Add(this.buttonSelect);
            Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table[this.buttonSelect]));
            w3.TopAttach = ((uint)(2));
            w3.BottomAttach = ((uint)(3));
            w3.LeftAttach = ((uint)(2));
            w3.RightAttach = ((uint)(3));
            w3.XOptions = ((Gtk.AttachOptions)(4));
            w3.YOptions = ((Gtk.AttachOptions)(4));
            // Container child table.Gtk.Table+TableChild
            this.comboConnections = new MonoDevelop.Database.Components.DatabaseConnectionContextComboBox();
            this.comboConnections.Name = "comboConnections";
            this.table.Add(this.comboConnections);
            Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table[this.comboConnections]));
            w4.LeftAttach = ((uint)(1));
            w4.RightAttach = ((uint)(2));
            w4.YOptions = ((Gtk.AttachOptions)(4));
            // Container child table.Gtk.Table+TableChild
            this.entryDatabase = new Gtk.Entry();
            this.entryDatabase.CanFocus = true;
            this.entryDatabase.Name = "entryDatabase";
            this.entryDatabase.IsEditable = true;
            this.entryDatabase.InvisibleChar = '●';
            this.table.Add(this.entryDatabase);
            Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table[this.entryDatabase]));
            w5.TopAttach = ((uint)(2));
            w5.BottomAttach = ((uint)(3));
            w5.LeftAttach = ((uint)(1));
            w5.RightAttach = ((uint)(2));
            w5.YOptions = ((Gtk.AttachOptions)(4));
            // Container child table.Gtk.Table+TableChild
            this.entryName = new Gtk.Entry();
            this.entryName.CanFocus = true;
            this.entryName.Name = "entryName";
            this.entryName.IsEditable = true;
            this.entryName.InvisibleChar = '●';
            this.table.Add(this.entryName);
            Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table[this.entryName]));
            w6.TopAttach = ((uint)(1));
            w6.BottomAttach = ((uint)(2));
            w6.LeftAttach = ((uint)(1));
            w6.RightAttach = ((uint)(3));
            w6.XOptions = ((Gtk.AttachOptions)(4));
            w6.YOptions = ((Gtk.AttachOptions)(4));
            // Container child table.Gtk.Table+TableChild
            this.label1 = new Gtk.Label();
            this.label1.Name = "label1";
            this.label1.Xalign = 0F;
            this.label1.LabelProp = AddinCatalog.GetString("Name");
            this.table.Add(this.label1);
            Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table[this.label1]));
            w7.TopAttach = ((uint)(1));
            w7.BottomAttach = ((uint)(2));
            w7.XOptions = ((Gtk.AttachOptions)(4));
            w7.YOptions = ((Gtk.AttachOptions)(4));
            // Container child table.Gtk.Table+TableChild
            this.label2 = new Gtk.Label();
            this.label2.Name = "label2";
            this.label2.Xalign = 0F;
            this.label2.LabelProp = AddinCatalog.GetString("Database");
            this.table.Add(this.label2);
            Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table[this.label2]));
            w8.TopAttach = ((uint)(2));
            w8.BottomAttach = ((uint)(3));
            w8.XOptions = ((Gtk.AttachOptions)(4));
            w8.YOptions = ((Gtk.AttachOptions)(4));
            // Container child table.Gtk.Table+TableChild
            this.label3 = new Gtk.Label();
            this.label3.Name = "label3";
            this.label3.Xalign = 0F;
            this.label3.LabelProp = AddinCatalog.GetString("Base Settings");
            this.table.Add(this.label3);
            Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table[this.label3]));
            w9.XOptions = ((Gtk.AttachOptions)(4));
            w9.YOptions = ((Gtk.AttachOptions)(4));
            w1.Add(this.table);
            Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w1[this.table]));
            w10.Position = 0;
            w10.Expand = false;
            w10.Fill = false;
            // Internal child MonoDevelop.Database.Designer.CreateDatabaseDialog.ActionArea
            Gtk.HButtonBox w11 = this.ActionArea;
            w11.Name = "dialog1_ActionArea";
            w11.Spacing = 6;
            w11.BorderWidth = ((uint)(5));
            w11.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
            // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
            this.buttonCancel = new Gtk.Button();
            this.buttonCancel.CanDefault = true;
            this.buttonCancel.CanFocus = true;
            this.buttonCancel.Name = "buttonCancel";
            this.buttonCancel.UseStock = true;
            this.buttonCancel.UseUnderline = true;
            this.buttonCancel.Label = "gtk-cancel";
            this.AddActionWidget(this.buttonCancel, -6);
            Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(w11[this.buttonCancel]));
            w12.Expand = false;
            w12.Fill = false;
            // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
            this.buttonOk = new Gtk.Button();
            this.buttonOk.Sensitive = false;
            this.buttonOk.CanDefault = true;
            this.buttonOk.CanFocus = true;
            this.buttonOk.Name = "buttonOk";
            this.buttonOk.UseStock = true;
            this.buttonOk.UseUnderline = true;
            this.buttonOk.Label = "gtk-ok";
            this.AddActionWidget(this.buttonOk, -5);
            Gtk.ButtonBox.ButtonBoxChild w13 = ((Gtk.ButtonBox.ButtonBoxChild)(w11[this.buttonOk]));
            w13.Position = 1;
            w13.Expand = false;
            w13.Fill = false;
            if ((this.Child != null)) {
                this.Child.ShowAll();
            }
            this.DefaultWidth = 420;
            this.DefaultHeight = 191;
            this.Show();
            this.entryName.Changed += new System.EventHandler(this.NameChanged);
            this.entryDatabase.Changed += new System.EventHandler(this.DatabaseNameChanged);
            this.comboConnections.Changed += new System.EventHandler(this.ConnectionChanged);
            this.buttonSelect.Clicked += new System.EventHandler(this.SaveAsClicked);
            this.buttonNew.Clicked += new System.EventHandler(this.NewClicked);
            this.buttonCancel.Clicked += new System.EventHandler(this.CancelClicked);
            this.buttonOk.Clicked += new System.EventHandler(this.OkClicked);
        }
    }
}