protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MonoDevelop.Database.Designer.CreateDatabaseDialog this.Name = "MonoDevelop.Database.Designer.CreateDatabaseDialog"; this.Title = Mono.Unix.Catalog.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 = Mono.Unix.Catalog.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 = Mono.Unix.Catalog.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 = Mono.Unix.Catalog.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); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MonoDevelop.Database.Designer.CreateDatabaseDialog this.Name = "MonoDevelop.Database.Designer.CreateDatabaseDialog"; this.Title = Mono.Unix.Catalog.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 = Mono.Unix.Catalog.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 = Mono.Unix.Catalog.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 = Mono.Unix.Catalog.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); }