protected override Gtk.Widget CreateWidget() { var c = new Gtk.ComboBoxEntry(); entryBackend = new CustomComboEntryBackend((Gtk.Entry)c.Child); return(c); }
protected override Gtk.Widget CreateWidget() { var c = new Gtk.ComboBoxEntry (); c.Clear (); entryBackend = new CustomComboEntryBackend ((Gtk.Entry)c.Child); return c; }
public void Initialize(PropertyDescriptor prop) { if (!prop.PropertyType.IsEnum) { throw new ApplicationException("Enumeration editor does not support editing values of type " + prop.PropertyType); } ebox = new Gtk.EventBox(); ebox.Show(); PackStart(ebox, true, true, 0); combo = Gtk.ComboBoxEntry.NewText(); combo.Changed += combo_Changed; combo.Entry.IsEditable = false; combo.Entry.HasFrame = false; combo.Entry.HeightRequest = combo.SizeRequest().Height; // The combo does not set the entry to the correct size when it does not have a frame combo.Show(); ebox.Add(combo); tips = new Gtk.Tooltips(); enm = Registry.LookupEnum(prop.PropertyType.FullName); foreach (Enum value in enm.Values) { combo.AppendText(enm[value].Label); } }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("MainWindow"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Resizable = false; // Container child MainWindow.Gtk.Container+ContainerChild this.fixed4 = new Gtk.Fixed(); this.fixed4.Name = "fixed4"; this.fixed4.HasWindow = false; // Container child fixed4.Gtk.Fixed+FixedChild this.comboboxentry1 = Gtk.ComboBoxEntry.NewText(); this.comboboxentry1.WidthRequest = 450; this.comboboxentry1.Name = "comboboxentry1"; this.fixed4.Add(this.comboboxentry1); // Container child fixed4.Gtk.Fixed+FixedChild this.togglebutton2 = new Gtk.ToggleButton(); this.togglebutton2.WidthRequest = 50; this.togglebutton2.CanFocus = true; this.togglebutton2.Name = "togglebutton2"; this.togglebutton2.UseUnderline = true; this.togglebutton2.Label = Mono.Unix.Catalog.GetString("On"); this.fixed4.Add(this.togglebutton2); Gtk.Fixed.FixedChild w2 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.togglebutton2])); w2.X = 450; // Container child fixed4.Gtk.Fixed+FixedChild this.label1 = new Gtk.Label(); this.label1.WidthRequest = 100; this.label1.HeightRequest = 28; this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("00:11:22"); this.fixed4.Add(this.label1); Gtk.Fixed.FixedChild w3 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.label1])); w3.X = 500; // Container child fixed4.Gtk.Fixed+FixedChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.WidthRequest = 600; this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.textview2 = new Gtk.TextView(); this.textview2.CanFocus = true; this.textview2.Name = "textview2"; this.GtkScrolledWindow.Add(this.textview2); this.fixed4.Add(this.GtkScrolledWindow); Gtk.Fixed.FixedChild w5 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.GtkScrolledWindow])); w5.Y = 32; this.Add(this.fixed4); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 602; this.DefaultHeight = 178; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.togglebutton2.Toggled += new System.EventHandler(this.togglebutton2_onClick); }
public static new Gtk.ComboBoxEntry CreateInstance() { Gtk.ComboBoxEntry c = Gtk.ComboBoxEntry.NewText(); // Make sure all children are created, so the mouse events can be // bound and the widget can be selected. c.EnsureStyle(); return(c); }
protected override void Create() { #if GTK2 Control = new Gtk.ComboBoxEntry(); #else Control = Gtk.ComboBox.NewWithEntry(); Control.EntryTextColumn = 0; #endif text = Control.Cells[0] as Gtk.CellRendererText; entry = (Gtk.Entry)Control.Child; entry.IsEditable = true; Control.Changed += Connector.HandleChanged; }
public Image(bool allowStock, bool allowFile) : base(false, 6) { image = new Gtk.Image(Gnome.Stock.Blank, Gtk.IconSize.Button); PackStart(image, false, false, 0); if (allowStock) { store = new Gtk.ListStore(typeof(string), typeof(string)); store.AppendValues(Gnome.Stock.Blank, Catalog.GetString("(None)")); for (int i = 0; i < stockIds.Length; i++) { store.AppendValues(stockIds[i], stockLabels[i]); } combo = new Gtk.ComboBoxEntry(store, LabelColumn); Gtk.CellRendererPixbuf iconRenderer = new Gtk.CellRendererPixbuf(); iconRenderer.StockSize = (uint)Gtk.IconSize.Menu; combo.PackStart(iconRenderer, false); combo.Reorder(iconRenderer, 0); combo.AddAttribute(iconRenderer, "stock-id", IconColumn); combo.Changed += combo_Changed; // Pack the combo non-expandily into a VBox so it doesn't // get stretched to the file button's height Gtk.VBox vbox = new Gtk.VBox(false, 0); vbox.PackStart(combo, true, false, 0); PackStart(vbox, true, true, 0); entry = (Gtk.Entry)combo.Child; entry.Changed += entry_Changed; useStock = true; } if (allowFile) { if (!allowStock) { entry = new Gtk.Entry(); PackStart(entry, true, true, 0); entry.Changed += entry_Changed; } button = new Gtk.Button(); Gtk.Image icon = new Gtk.Image(Gtk.Stock.Open, Gtk.IconSize.Button); button.Add(icon); PackStart(button, false, false, 0); button.Clicked += button_Clicked; } ShowAll(); }
public void Initialize(EditSession session) { editSession = session; prop = session.Property; ICollection valuesCollection = prop.Converter.GetStandardValues(); values = new TraceLab.Core.Components.EnumValue[valuesCollection.Count]; valuesCollection.CopyTo(values, 0); //values = System.Enum.GetValues (prop.PropertyType); Hashtable names = new Hashtable(); foreach (FieldInfo f in prop.PropertyType.GetFields()) { DescriptionAttribute att = (DescriptionAttribute)Attribute.GetCustomAttribute(f, typeof(DescriptionAttribute)); if (att != null) { names [f.Name] = att.Description; } else { names [f.Name] = f.Name; } } ebox = new Gtk.EventBox(); ebox.Show(); PackStart(ebox, true, true, 0); combo = Gtk.ComboBoxEntry.NewText(); combo.Changed += combo_Changed; combo.Entry.IsEditable = false; combo.Entry.CanFocus = false; combo.Entry.HasFrame = false; combo.Entry.HeightRequest = combo.SizeRequest().Height; combo.Show(); ebox.Add(combo); foreach (TraceLab.Core.Components.EnumValue value in values) { string str = prop.Converter.ConvertToString(value); if (names.Contains(str)) { str = (string)names [str]; } combo.AppendText(str); } }
public void Initialize(EditSession session) { PropertyDescriptor prop = session.Property; if (!prop.PropertyType.IsEnum) { throw new ApplicationException("Enumeration editor does not support editing values of type " + prop.PropertyType); } values = System.Enum.GetValues(prop.PropertyType); Hashtable names = new Hashtable(); foreach (FieldInfo f in prop.PropertyType.GetFields()) { DescriptionAttribute att = (DescriptionAttribute)Attribute.GetCustomAttribute(f, typeof(DescriptionAttribute)); if (att != null) { names [f.Name] = att.Description; } else { names [f.Name] = f.Name; } } ebox = new Gtk.EventBox(); ebox.Show(); PackStart(ebox, true, true, 0); combo = Gtk.ComboBoxEntry.NewText(); combo.Changed += combo_Changed; combo.Entry.IsEditable = false; combo.Entry.CanFocus = false; combo.Entry.HasFrame = false; combo.Entry.HeightRequest = combo.SizeRequest().Height; combo.Show(); ebox.Add(combo); foreach (object value in values) { string str = prop.Converter.ConvertToString(value); if (names.Contains(str)) { str = (string)names [str]; } combo.AppendText(str); } }
protected override void Create() { listStore = new Gtk.ListStore(typeof(string)); #if GTK2 Control = new Gtk.ComboBoxEntry(listStore, 0); #else Control = Gtk.ComboBox.NewWithModelAndEntry(listStore); Control.EntryTextColumn = 0; #endif text = Control.Cells[0] as Gtk.CellRendererText; Control.SetAttributes(text, "text", 0); entry = (Gtk.Entry)Control.Child; entry.IsEditable = true; Control.Changed += Connector.HandleChanged; }
public ResponseIdEditor() { combo = Gtk.ComboBoxEntry.NewText (); combo.Changed += combo_Changed; combo.Show (); PackStart (combo, true, true, 0); entry = combo.Child as Gtk.Entry; entry.Changed += entry_Changed; enm = Registry.LookupEnum ("Gtk.ResponseType"); values = new ArrayList (); foreach (Enum value in enm.Values) { if (enm[value].Label != "") { combo.AppendText (enm[value].Label); values.Add ((int)enm[value].Value); } } }
public ResponseIdEditor() { combo = Gtk.ComboBoxEntry.NewText(); combo.Changed += combo_Changed; combo.Show(); PackStart(combo, true, true, 0); entry = combo.Child as Gtk.Entry; entry.Changed += entry_Changed; enm = Registry.LookupEnum("Gtk.ResponseType"); values = new ArrayList(); foreach (Enum value in enm.Values) { if (enm[value].Label != "") { combo.AppendText(enm[value].Label); values.Add(Convert.ToInt32(enm[value].Value)); } } }
public void Initialize (PropertyDescriptor prop) { if (!prop.PropertyType.IsEnum) throw new ApplicationException ("Enumeration editor does not support editing values of type " + prop.PropertyType); ebox = new Gtk.EventBox (); ebox.Show (); PackStart (ebox, true, true, 0); combo = Gtk.ComboBoxEntry.NewText (); combo.Changed += combo_Changed; combo.Entry.IsEditable = false; combo.Entry.HasFrame = false; combo.Entry.HeightRequest = combo.SizeRequest ().Height; // The combo does not set the entry to the correct size when it does not have a frame combo.Show (); ebox.Add (combo); enm = Registry.LookupEnum (prop.PropertyType.FullName); foreach (Enum value in enm.Values) combo.AppendText (enm[value].Label); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget HGDGTK.HGDLogin this.Name = "HGDGTK.HGDLogin"; this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; this.Resizable = false; this.AllowGrow = false; // Internal child HGDGTK.HGDLogin.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(3)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); this.table1.BorderWidth = ((uint)(9)); // Container child table1.Gtk.Table+TableChild this.hostname_cmd = Gtk.ComboBoxEntry.NewText(); this.hostname_cmd.Name = "hostname_cmd"; this.table1.Add(this.hostname_cmd); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.hostname_cmd])); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Host:"); this.table1.Add(this.label3); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.label3])); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("User Name:"); this.table1.Add(this.label4); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.label4])); w4.TopAttach = ((uint)(1)); w4.BottomAttach = ((uint)(2)); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.LabelProp = Mono.Unix.Catalog.GetString("Password:"******"password_txt"; this.password_txt.IsEditable = true; this.password_txt.Visibility = false; this.password_txt.InvisibleChar = '●'; this.table1.Add(this.password_txt); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.password_txt])); w6.TopAttach = ((uint)(2)); w6.BottomAttach = ((uint)(3)); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(2)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.username_cmd = Gtk.ComboBoxEntry.NewText(); this.username_cmd.Name = "username_cmd"; this.table1.Add(this.username_cmd); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.username_cmd])); w7.TopAttach = ((uint)(1)); w7.BottomAttach = ((uint)(2)); w7.LeftAttach = ((uint)(1)); w7.RightAttach = ((uint)(2)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); w1.Add(this.table1); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w1[this.table1])); w8.Position = 0; w8.Expand = false; w8.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.autologin = new Gtk.CheckButton(); this.autologin.CanFocus = true; this.autologin.Name = "autologin"; this.autologin.Label = Mono.Unix.Catalog.GetString("auto login"); this.autologin.Active = true; this.autologin.DrawIndicator = true; this.autologin.UseUnderline = true; w1.Add(this.autologin); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[this.autologin])); w9.Position = 1; // Internal child HGDGTK.HGDLogin.ActionArea Gtk.HButtonBox w10 = this.ActionArea; w10.Name = "dialog1_ActionArea"; w10.Spacing = 10; w10.BorderWidth = ((uint)(5)); w10.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 w11 = ((Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonCancel])); w11.Expand = false; w11.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); 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 w12 = ((Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonOk])); w12.Position = 1; w12.Expand = false; w12.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 185; this.Show(); this.buttonCancel.Clicked += new System.EventHandler(this.OnButtonCancelClicked); this.buttonOk.Clicked += new System.EventHandler(this.OnButtonOkClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget HGDGTK.HGDLogin this.Name = "HGDGTK.HGDLogin"; this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; this.Resizable = false; this.AllowGrow = false; // Internal child HGDGTK.HGDLogin.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(3)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); this.table1.BorderWidth = ((uint)(9)); // Container child table1.Gtk.Table+TableChild this.hostname_cmd = Gtk.ComboBoxEntry.NewText(); this.hostname_cmd.Name = "hostname_cmd"; this.table1.Add(this.hostname_cmd); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.hostname_cmd])); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Host:"); this.table1.Add(this.label3); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.label3])); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("User Name:"); this.table1.Add(this.label4); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.label4])); w4.TopAttach = ((uint)(1)); w4.BottomAttach = ((uint)(2)); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.LabelProp = Mono.Unix.Catalog.GetString("Password:"******"password_txt"; this.password_txt.IsEditable = true; this.password_txt.Visibility = false; this.password_txt.InvisibleChar = '●'; this.table1.Add(this.password_txt); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.password_txt])); w6.TopAttach = ((uint)(2)); w6.BottomAttach = ((uint)(3)); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(2)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.username_cmd = Gtk.ComboBoxEntry.NewText(); this.username_cmd.Name = "username_cmd"; this.table1.Add(this.username_cmd); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.username_cmd])); w7.TopAttach = ((uint)(1)); w7.BottomAttach = ((uint)(2)); w7.LeftAttach = ((uint)(1)); w7.RightAttach = ((uint)(2)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); w1.Add(this.table1); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w1[this.table1])); w8.Position = 0; w8.Expand = false; w8.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.autologin = new Gtk.CheckButton(); this.autologin.CanFocus = true; this.autologin.Name = "autologin"; this.autologin.Label = Mono.Unix.Catalog.GetString("auto login"); this.autologin.Active = true; this.autologin.DrawIndicator = true; this.autologin.UseUnderline = true; w1.Add(this.autologin); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[this.autologin])); w9.Position = 1; // Internal child HGDGTK.HGDLogin.ActionArea Gtk.HButtonBox w10 = this.ActionArea; w10.Name = "dialog1_ActionArea"; w10.Spacing = 10; w10.BorderWidth = ((uint)(5)); w10.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 w11 = ((Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonCancel])); w11.Expand = false; w11.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); 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 w12 = ((Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonOk])); w12.Position = 1; w12.Expand = false; w12.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 185; this.Show(); this.buttonCancel.Clicked += new System.EventHandler(this.OnButtonCancelClicked); this.buttonOk.Clicked += new System.EventHandler(this.OnButtonOkClicked); }
public void Initialize(EditSession session) { PropertyDescriptor prop = session.Property; if (!prop.PropertyType.IsEnum) throw new ApplicationException (Catalog.GetString("Enumeration editor does not support editing values of type ") + prop.PropertyType); values = System.Enum.GetValues (prop.PropertyType); Hashtable names = new Hashtable (); foreach (FieldInfo f in prop.PropertyType.GetFields ()) { DescriptionAttribute att = (DescriptionAttribute) Attribute.GetCustomAttribute (f, typeof(DescriptionAttribute)); if (att != null) names [f.Name] = att.Description; else names [f.Name] = f.Name; } ebox = new Gtk.EventBox (); ebox.Show (); PackStart (ebox, true, true, 0); combo = Gtk.ComboBoxEntry.NewText (); combo.Changed += combo_Changed; combo.Entry.IsEditable = false; combo.Entry.CanFocus = false; combo.Entry.HasFrame = false; combo.Entry.HeightRequest = combo.SizeRequest ().Height; combo.Show (); ebox.Add (combo); foreach (object value in values) { string str = prop.Converter.ConvertToString (value); if (names.Contains (str)) str = (string) names [str]; combo.AppendText (str); } }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Gedcom.UI.GTK.Widgets.NameView Stetic.BinContainer.Attach(this); this.Name = "Gedcom.UI.GTK.Widgets.NameView"; // Container child Gedcom.UI.GTK.Widgets.NameView.Gtk.Container+ContainerChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.scrolledwindow2 = new Gtk.ScrolledWindow(); this.scrolledwindow2.CanFocus = true; this.scrolledwindow2.Name = "scrolledwindow2"; this.scrolledwindow2.HscrollbarPolicy = ((Gtk.PolicyType)(2)); this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow2.Gtk.Container+ContainerChild this.NamesTreeView = new Gtk.TreeView(); this.NamesTreeView.CanFocus = true; this.NamesTreeView.Name = "NamesTreeView"; this.scrolledwindow2.Add(this.NamesTreeView); this.hbox1.Add(this.scrolledwindow2); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.scrolledwindow2])); w2.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.notebook1 = new Gtk.Notebook(); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 0; // Container child notebook1.Gtk.Notebook+NotebookChild this.table1 = new Gtk.Table(((uint)(7)), ((uint)(4)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); this.table1.BorderWidth = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.GivenEntry = new Gtk.Entry(); this.GivenEntry.CanFocus = true; this.GivenEntry.Name = "GivenEntry"; this.GivenEntry.IsEditable = true; this.GivenEntry.InvisibleChar = '●'; this.table1.Add(this.GivenEntry); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.GivenEntry])); w3.TopAttach = ((uint)(1)); w3.BottomAttach = ((uint)(2)); w3.LeftAttach = ((uint)(1)); w3.RightAttach = ((uint)(4)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; this.table1.Add(this.hbox2); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.hbox2])); w4.TopAttach = ((uint)(3)); w4.BottomAttach = ((uint)(4)); w4.LeftAttach = ((uint)(3)); w4.RightAttach = ((uint)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 1F; this.label1.LabelProp = "Nickname:"; this.table1.Add(this.label1); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.label1])); w5.TopAttach = ((uint)(5)); w5.BottomAttach = ((uint)(6)); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 1F; this.label2.LabelProp = "Prefix:"; this.table1.Add(this.label2); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.label2])); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.Xalign = 1F; this.label3.LabelProp = "Given:"; this.table1.Add(this.label3); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.label3])); w7.TopAttach = ((uint)(1)); w7.BottomAttach = ((uint)(2)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.Xalign = 1F; this.label4.LabelProp = "Surname Prefix:"; this.table1.Add(this.label4); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.label4])); w8.TopAttach = ((uint)(2)); w8.BottomAttach = ((uint)(3)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.Xalign = 1F; this.label5.LabelProp = "Surname:"; this.table1.Add(this.label5); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.label5])); w9.TopAttach = ((uint)(3)); w9.BottomAttach = ((uint)(4)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.Xalign = 1F; this.label6.LabelProp = "Suffix:"; this.table1.Add(this.label6); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.label6])); w10.TopAttach = ((uint)(4)); w10.BottomAttach = ((uint)(5)); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.NameSourceButton = new Gtk.Button(); this.NameSourceButton.CanFocus = true; this.NameSourceButton.Name = "NameSourceButton"; // Container child NameSourceButton.Gtk.Container+ContainerChild this.image438 = new Gtk.Image(); this.image438.Name = "image438"; this.image438.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-index", Gtk.IconSize.Button, 20); this.NameSourceButton.Add(this.image438); this.NameSourceButton.Label = null; this.table1.Add(this.NameSourceButton); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.NameSourceButton])); w12.TopAttach = ((uint)(5)); w12.BottomAttach = ((uint)(6)); w12.LeftAttach = ((uint)(3)); w12.RightAttach = ((uint)(4)); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.NicknameEntry = new Gtk.Entry(); this.NicknameEntry.CanFocus = true; this.NicknameEntry.Name = "NicknameEntry"; this.NicknameEntry.IsEditable = true; this.NicknameEntry.InvisibleChar = '●'; this.table1.Add(this.NicknameEntry); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.NicknameEntry])); w13.TopAttach = ((uint)(5)); w13.BottomAttach = ((uint)(6)); w13.LeftAttach = ((uint)(1)); w13.RightAttach = ((uint)(2)); w13.XOptions = ((Gtk.AttachOptions)(4)); w13.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.PreferedCheckbox = new Gtk.CheckButton(); this.PreferedCheckbox.CanFocus = true; this.PreferedCheckbox.Name = "PreferedCheckbox"; this.PreferedCheckbox.Label = "Use as prefered name"; this.PreferedCheckbox.DrawIndicator = true; this.PreferedCheckbox.UseUnderline = true; this.table1.Add(this.PreferedCheckbox); Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table1[this.PreferedCheckbox])); w14.TopAttach = ((uint)(6)); w14.BottomAttach = ((uint)(7)); w14.RightAttach = ((uint)(4)); w14.XOptions = ((Gtk.AttachOptions)(1)); w14.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.PrefixComboBoxEntry = new Gtk.ComboBoxEntry(); this.PrefixComboBoxEntry.Name = "PrefixComboBoxEntry"; this.table1.Add(this.PrefixComboBoxEntry); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.PrefixComboBoxEntry])); w15.LeftAttach = ((uint)(1)); w15.RightAttach = ((uint)(2)); w15.XOptions = ((Gtk.AttachOptions)(4)); w15.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.SuffixComboBoxEntry = new Gtk.ComboBoxEntry(); this.SuffixComboBoxEntry.Name = "SuffixComboBoxEntry"; this.table1.Add(this.SuffixComboBoxEntry); Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.SuffixComboBoxEntry])); w16.TopAttach = ((uint)(4)); w16.BottomAttach = ((uint)(5)); w16.LeftAttach = ((uint)(1)); w16.RightAttach = ((uint)(2)); w16.XOptions = ((Gtk.AttachOptions)(4)); w16.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.SurnameEntry = new Gtk.Entry(); this.SurnameEntry.CanFocus = true; this.SurnameEntry.Name = "SurnameEntry"; this.SurnameEntry.IsEditable = true; this.SurnameEntry.InvisibleChar = '●'; this.table1.Add(this.SurnameEntry); Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table1[this.SurnameEntry])); w17.TopAttach = ((uint)(3)); w17.BottomAttach = ((uint)(4)); w17.LeftAttach = ((uint)(1)); w17.RightAttach = ((uint)(4)); w17.XOptions = ((Gtk.AttachOptions)(4)); w17.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.SurnamePrefixComboBoxEntry = new Gtk.ComboBoxEntry(); this.SurnamePrefixComboBoxEntry.Name = "SurnamePrefixComboBoxEntry"; this.table1.Add(this.SurnamePrefixComboBoxEntry); Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.SurnamePrefixComboBoxEntry])); w18.TopAttach = ((uint)(2)); w18.BottomAttach = ((uint)(3)); w18.LeftAttach = ((uint)(1)); w18.RightAttach = ((uint)(2)); w18.XOptions = ((Gtk.AttachOptions)(4)); w18.YOptions = ((Gtk.AttachOptions)(4)); this.notebook1.Add(this.table1); // Notebook tab this.label7 = new Gtk.Label(); this.label7.Name = "label7"; this.label7.LabelProp = "Name"; this.notebook1.SetTabLabel(this.table1, this.label7); this.label7.ShowAll(); // Container child notebook1.Gtk.Notebook+NotebookChild this.NotesView = new Gedcom.UI.GTK.Widgets.NotesView(); this.NotesView.Events = ((Gdk.EventMask)(256)); this.NotesView.Name = "NotesView"; this.NotesView.DataNotes = false; this.NotesView.ListOnly = false; this.NotesView.NoteOnly = false; this.notebook1.Add(this.NotesView); Gtk.Notebook.NotebookChild w20 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.NotesView])); w20.Position = 1; // Notebook tab this.label8 = new Gtk.Label(); this.label8.Name = "label8"; this.label8.LabelProp = "Notes"; this.notebook1.SetTabLabel(this.NotesView, this.label8); this.label8.ShowAll(); this.hbox1.Add(this.notebook1); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox1[this.notebook1])); w21.Position = 1; w21.Expand = false; w21.Fill = false; this.Add(this.hbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.NameSourceButton.Clicked += new System.EventHandler(this.OnNameSourceButton_Clicked); this.NotesView.ShowSourceCitation += new System.EventHandler<Gedcom.UI.Common.SourceCitationArgs>(this.OnNotesView_ShowSourceCitation); this.NotesView.SelectNewNote += new System.EventHandler<Gedcom.UI.Common.NoteArgs>(this.OnNotesView_SelectNewNote); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget PanelWindow this.Name = "PanelWindow"; this.Title = Mono.Unix.Catalog.GetString("Moonlight Desklets Panel"); this.WindowPosition = ((Gtk.WindowPosition)(1)); // Container child PanelWindow.Gtk.Container+ContainerChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; this.vbox2.BorderWidth = ((uint)(6)); // Container child vbox2.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.SearchLabel = new Gtk.Label(); this.SearchLabel.Name = "SearchLabel"; this.SearchLabel.LabelProp = Mono.Unix.Catalog.GetString("Search:"); this.hbox2.Add(this.SearchLabel); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox2[this.SearchLabel])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.SearchEntry = new Gtk.ComboBoxEntry(); this.SearchEntry.Name = "SearchEntry"; this.hbox2.Add(this.SearchEntry); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox2[this.SearchEntry])); w2.Position = 1; w2.Expand = false; w2.Fill = false; this.vbox2.Add(this.hbox2); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.DeskletsScrolledWindow = new Gtk.ScrolledWindow(); this.DeskletsScrolledWindow.CanFocus = true; this.DeskletsScrolledWindow.Name = "DeskletsScrolledWindow"; this.DeskletsScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child DeskletsScrolledWindow.Gtk.Container+ContainerChild this.DeskletsView = new Gtk.TreeView(); this.DeskletsView.CanFocus = true; this.DeskletsView.Name = "DeskletsView"; this.DeskletsScrolledWindow.Add(this.DeskletsView); this.vbox2.Add(this.DeskletsScrolledWindow); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.DeskletsScrolledWindow])); w5.Position = 1; // Container child vbox2.Gtk.Box+BoxChild this.DetailsExpander = new Gtk.Expander(null); this.DetailsExpander.CanFocus = true; this.DetailsExpander.Name = "DetailsExpander"; // Container child DetailsExpander.Gtk.Container+ContainerChild this.DetailsLabel = new Gtk.Label(); this.DetailsLabel.Name = "DetailsLabel"; this.DetailsLabel.LabelProp = ""; this.DetailsExpander.Add(this.DetailsLabel); this.GtkLabel = new Gtk.Label(); this.GtkLabel.Name = "GtkLabel"; this.GtkLabel.LabelProp = Mono.Unix.Catalog.GetString("Show details"); this.GtkLabel.UseUnderline = true; this.DetailsExpander.LabelWidget = this.GtkLabel; this.vbox2.Add(this.DetailsExpander); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.DetailsExpander])); w7.Position = 2; w7.Expand = false; w7.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.ActionButtonBox = new Gtk.HButtonBox(); this.ActionButtonBox.Name = "ActionButtonBox"; this.ActionButtonBox.Spacing = 6; this.ActionButtonBox.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child ActionButtonBox.Gtk.ButtonBox+ButtonBoxChild this.HelpButton = new Gtk.Button(); this.HelpButton.CanFocus = true; this.HelpButton.Name = "HelpButton"; this.HelpButton.UseStock = true; this.HelpButton.UseUnderline = true; this.HelpButton.Label = "gtk-help"; this.ActionButtonBox.Add(this.HelpButton); Gtk.ButtonBox.ButtonBoxChild w8 = ((Gtk.ButtonBox.ButtonBoxChild)(this.ActionButtonBox[this.HelpButton])); w8.Secondary = true; w8.Expand = false; w8.Fill = false; // Container child ActionButtonBox.Gtk.ButtonBox+ButtonBoxChild this.DeskletsButton = new Gtk.Button(); this.DeskletsButton.CanFocus = true; this.DeskletsButton.Name = "DeskletsButton"; this.DeskletsButton.UseUnderline = true; // Container child DeskletsButton.Gtk.Container+ContainerChild Gtk.Alignment w9 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w10 = new Gtk.HBox(); w10.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w11 = new Gtk.Image(); w11.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-find", Gtk.IconSize.Menu, 16); w10.Add(w11); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w13 = new Gtk.Label(); w13.LabelProp = Mono.Unix.Catalog.GetString("Get desklets"); w13.UseUnderline = true; w10.Add(w13); w9.Add(w10); this.DeskletsButton.Add(w9); this.ActionButtonBox.Add(this.DeskletsButton); Gtk.ButtonBox.ButtonBoxChild w17 = ((Gtk.ButtonBox.ButtonBoxChild)(this.ActionButtonBox[this.DeskletsButton])); w17.Position = 1; w17.Expand = false; w17.Fill = false; // Container child ActionButtonBox.Gtk.ButtonBox+ButtonBoxChild this.CloseButton = new Gtk.Button(); this.CloseButton.CanFocus = true; this.CloseButton.Name = "CloseButton"; this.CloseButton.UseStock = true; this.CloseButton.UseUnderline = true; this.CloseButton.Label = "gtk-close"; this.ActionButtonBox.Add(this.CloseButton); Gtk.ButtonBox.ButtonBoxChild w18 = ((Gtk.ButtonBox.ButtonBoxChild)(this.ActionButtonBox[this.CloseButton])); w18.Position = 2; w18.Expand = false; w18.Fill = false; this.vbox2.Add(this.ActionButtonBox); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox2[this.ActionButtonBox])); w19.Position = 3; w19.Expand = false; w19.Fill = false; this.Add(this.vbox2); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 447; this.DefaultHeight = 446; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.HelpButton.Clicked += new System.EventHandler(this.OnHelpButtonClicked); this.DeskletsButton.Clicked += new System.EventHandler(this.OnDeskletsButtonClicked); this.CloseButton.Clicked += new System.EventHandler(this.OnCloseButtonClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.SymbolChooser Stetic.BinContainer.Attach(this); this.Name = "ocmgtk.SymbolChooser"; // Container child ocmgtk.SymbolChooser.Gtk.Container+ContainerChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.symbolLabel = new Gtk.Label(); this.symbolLabel.Name = "symbolLabel"; this.symbolLabel.Xalign = 0F; this.symbolLabel.LabelProp = Mono.Unix.Catalog.GetString("label4"); this.symbolLabel.WidthChars = 30; this.hbox1.Add(this.symbolLabel); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.symbolLabel])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.symbolCombo = Gtk.ComboBoxEntry.NewText(); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Geocache")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Geocache Found")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Flag, Red")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Flag, Blue")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Flag, Green")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Pin, Red")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Pin, Blue")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Pin, Green")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Block, Red")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Block, Blue")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Block, Green")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 0")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 1")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 2")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 3")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 4")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 5")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 6")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 7")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 8")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 9")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 10")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 11")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 12")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 13")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 14")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 15")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 16")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 17")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 18")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 19")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 20")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 21")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 22")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 23")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 24")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Anchor")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Bell")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Diver Down Flag 1")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Diver Down Flag 2")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Bank")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Fishing Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Gas Station")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Horn")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Residence")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Restaurant")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Light")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Bar")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Skull and Crossbones")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Buoy, White")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Shipwreck")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Man Overboard")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Navaid, Amber")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Navaid, Black")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Navaid, Blue")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Navaid, Green")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Navaid, Orange")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Navaid, Red")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Navaid, Violet")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Navaid, White")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Radio Beacon")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Boat Ramp")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Campground")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Restroom")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Shower")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Drinking Water")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Telephone")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Medical Facility")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Information")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Parking Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Park")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Picnic Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Scenic Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Skiing Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Swimming Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Dam")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Controlled Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Danger Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Restricted Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Ball Park")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Car")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Shopping Center")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Lodging")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Mine")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Trail Head")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Truck Stop")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Golf Course")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("City (Small)")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("City (Medium)")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("City (Large)")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Amusement Park")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Bowling")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Car Rental")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Car Repair")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Fast Food")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Fitness Center")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Movie Theater")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Museum")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Pharmacy")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Pizza")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Post Office")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("RV Park")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("School")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Stadium")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Department Store")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Zoo")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Convenience Store")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Live Theater")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Scales")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Toll Booth")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Bridge")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Building")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Cemetery")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Church")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Civil")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Crossing")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Oil Field")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Tunnel")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Beach")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Forest")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Summit")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Airport")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Tall Tower")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Short Tower")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Glider Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Ultralight Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Parachute Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Bike Trail")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Fishing Hot Spot Facility")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Police Station")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Ski Resort")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Ice Skating")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Wrecker")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("ATV")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Big Game")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Blind")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Blood Trail")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Cover")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Covey")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Food Source")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Furbearer")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Lodge")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Small Game")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Animal Tracks")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Treed Quarry")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Tree Stand")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Truck")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Upland Game")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Waterfowl")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Water Source")); this.symbolCombo.Name = "symbolCombo"; this.hbox1.Add(this.symbolCombo); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.symbolCombo])); w2.Position = 1; this.Add(this.hbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); }
public void Initialize (EditSession session) { editSession = session; prop = session.Property; ICollection valuesCollection = prop.Converter.GetStandardValues(); values = new TraceLab.Core.Components.EnumValue[valuesCollection.Count]; valuesCollection.CopyTo(values, 0); //values = System.Enum.GetValues (prop.PropertyType); Hashtable names = new Hashtable (); foreach (FieldInfo f in prop.PropertyType.GetFields ()) { DescriptionAttribute att = (DescriptionAttribute) Attribute.GetCustomAttribute (f, typeof(DescriptionAttribute)); if (att != null) names [f.Name] = att.Description; else names [f.Name] = f.Name; } ebox = new Gtk.EventBox (); ebox.Show (); PackStart (ebox, true, true, 0); combo = Gtk.ComboBoxEntry.NewText (); combo.Changed += combo_Changed; combo.Entry.IsEditable = false; combo.Entry.CanFocus = false; combo.Entry.HasFrame = false; combo.Entry.HeightRequest = combo.SizeRequest ().Height; combo.Show (); ebox.Add (combo); foreach (TraceLab.Core.Components.EnumValue value in values) { string str = prop.Converter.ConvertToString (value); if (names.Contains (str)) str = (string) names [str]; combo.AppendText (str); } }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget sermon2.SerPortConf Stetic.BinContainer.Attach(this); this.WidthRequest = 405; this.HeightRequest = 115; this.Name = "sermon2.SerPortConf"; // Container child sermon2.SerPortConf.Gtk.Container+ContainerChild this.frame1 = new Gtk.Frame(); this.frame1.WidthRequest = 460; this.frame1.HeightRequest = 124; this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(1)); this.frame1.BorderWidth = ((uint)(3)); // Container child frame1.Gtk.Container+ContainerChild this.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(12)); // Container child GtkAlignment.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(3)), ((uint)(4)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.baudRateComboBox = Gtk.ComboBox.NewText(); this.baudRateComboBox.Name = "baudRateComboBox"; this.baudRateComboBox.Active = 0; this.table1.Add(this.baudRateComboBox); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.baudRateComboBox])); w1.LeftAttach = ((uint)(3)); w1.RightAttach = ((uint)(4)); w1.XOptions = ((Gtk.AttachOptions)(4)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.baudRateLabel = new Gtk.Label(); this.baudRateLabel.Name = "baudRateLabel"; this.baudRateLabel.LabelProp = Mono.Unix.Catalog.GetString("baud rate"); this.table1.Add(this.baudRateLabel); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.baudRateLabel])); w2.LeftAttach = ((uint)(2)); w2.RightAttach = ((uint)(3)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.dataBitsComboBox = Gtk.ComboBox.NewText(); this.dataBitsComboBox.AppendText(Mono.Unix.Catalog.GetString("5")); this.dataBitsComboBox.AppendText(Mono.Unix.Catalog.GetString("6")); this.dataBitsComboBox.AppendText(Mono.Unix.Catalog.GetString("7")); this.dataBitsComboBox.AppendText(Mono.Unix.Catalog.GetString("8")); this.dataBitsComboBox.ExtensionEvents = ((Gdk.ExtensionMode)(1)); this.dataBitsComboBox.Name = "dataBitsComboBox"; this.table1.Add(this.dataBitsComboBox); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.dataBitsComboBox])); w3.TopAttach = ((uint)(1)); w3.BottomAttach = ((uint)(2)); w3.LeftAttach = ((uint)(1)); w3.RightAttach = ((uint)(2)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.dataBitsLabel = new Gtk.Label(); this.dataBitsLabel.Name = "dataBitsLabel"; this.dataBitsLabel.LabelProp = Mono.Unix.Catalog.GetString("data bits"); this.table1.Add(this.dataBitsLabel); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.dataBitsLabel])); w4.TopAttach = ((uint)(1)); w4.BottomAttach = ((uint)(2)); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.parityComboBox = Gtk.ComboBox.NewText(); this.parityComboBox.AppendText(Mono.Unix.Catalog.GetString("even")); this.parityComboBox.AppendText(Mono.Unix.Catalog.GetString("mark")); this.parityComboBox.AppendText(Mono.Unix.Catalog.GetString("none")); this.parityComboBox.AppendText(Mono.Unix.Catalog.GetString("odd")); this.parityComboBox.AppendText(Mono.Unix.Catalog.GetString("space")); this.parityComboBox.Name = "parityComboBox"; this.table1.Add(this.parityComboBox); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.parityComboBox])); w5.TopAttach = ((uint)(1)); w5.BottomAttach = ((uint)(2)); w5.LeftAttach = ((uint)(3)); w5.RightAttach = ((uint)(4)); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.parityLabel = new Gtk.Label(); this.parityLabel.Name = "parityLabel"; this.parityLabel.LabelProp = Mono.Unix.Catalog.GetString("parity"); this.table1.Add(this.parityLabel); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.parityLabel])); w6.TopAttach = ((uint)(1)); w6.BottomAttach = ((uint)(2)); w6.LeftAttach = ((uint)(2)); w6.RightAttach = ((uint)(3)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.portNameComboBoxEntry = Gtk.ComboBoxEntry.NewText(); this.portNameComboBoxEntry.ExtensionEvents = ((Gdk.ExtensionMode)(1)); this.portNameComboBoxEntry.Name = "portNameComboBoxEntry"; this.table1.Add(this.portNameComboBoxEntry); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.portNameComboBoxEntry])); w7.LeftAttach = ((uint)(1)); w7.RightAttach = ((uint)(2)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.portNameLabel = new Gtk.Label(); this.portNameLabel.Name = "portNameLabel"; this.portNameLabel.LabelProp = Mono.Unix.Catalog.GetString("port name"); this.table1.Add(this.portNameLabel); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.portNameLabel])); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.stopBitsComboBox = Gtk.ComboBox.NewText(); this.stopBitsComboBox.AppendText(Mono.Unix.Catalog.GetString("0")); this.stopBitsComboBox.AppendText(Mono.Unix.Catalog.GetString("1")); this.stopBitsComboBox.AppendText(Mono.Unix.Catalog.GetString("1.5")); this.stopBitsComboBox.AppendText(Mono.Unix.Catalog.GetString("2")); this.stopBitsComboBox.ExtensionEvents = ((Gdk.ExtensionMode)(1)); this.stopBitsComboBox.Name = "stopBitsComboBox"; this.table1.Add(this.stopBitsComboBox); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.stopBitsComboBox])); w9.TopAttach = ((uint)(2)); w9.BottomAttach = ((uint)(3)); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.stopBitsLabel = new Gtk.Label(); this.stopBitsLabel.Name = "stopBitsLabel"; this.stopBitsLabel.LabelProp = Mono.Unix.Catalog.GetString("stop bits"); this.table1.Add(this.stopBitsLabel); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.stopBitsLabel])); w10.TopAttach = ((uint)(2)); w10.BottomAttach = ((uint)(3)); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); this.vbox1.Add(this.table1); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox1[this.table1])); w11.Position = 0; w11.Expand = false; w11.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.xonxoffCheckButton = new Gtk.CheckButton(); this.xonxoffCheckButton.CanFocus = true; this.xonxoffCheckButton.Name = "xonxoffCheckButton"; this.xonxoffCheckButton.Label = Mono.Unix.Catalog.GetString("Xon/Xoff filter"); this.xonxoffCheckButton.DrawIndicator = true; this.xonxoffCheckButton.UseUnderline = true; this.hbox1.Add(this.xonxoffCheckButton); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox1[this.xonxoffCheckButton])); w12.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.hwFlowControlCheckButton = new Gtk.CheckButton(); this.hwFlowControlCheckButton.CanFocus = true; this.hwFlowControlCheckButton.Name = "hwFlowControlCheckButton"; this.hwFlowControlCheckButton.Label = Mono.Unix.Catalog.GetString("HW flow control"); this.hwFlowControlCheckButton.DrawIndicator = true; this.hwFlowControlCheckButton.UseUnderline = true; this.hbox1.Add(this.hwFlowControlCheckButton); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox1[this.hwFlowControlCheckButton])); w13.Position = 1; this.vbox1.Add(this.hbox1); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); w14.Position = 1; w14.Expand = false; w14.Fill = false; this.GtkAlignment.Add(this.vbox1); this.frame1.Add(this.GtkAlignment); this.nameLabel = new Gtk.Label(); this.nameLabel.Name = "nameLabel"; this.nameLabel.LabelProp = Mono.Unix.Catalog.GetString("<b>frame1</b>"); this.nameLabel.UseMarkup = true; this.frame1.LabelWidget = this.nameLabel; this.Add(this.frame1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.stopBitsComboBox.Changed += new System.EventHandler(this.OnStopBitsComboBoxChanged); this.portNameComboBoxEntry.Changed += new System.EventHandler(this.OnPortNameComboBoxEntryChanged); this.parityComboBox.Changed += new System.EventHandler(this.OnParityComboBoxChanged); this.dataBitsComboBox.Changed += new System.EventHandler(this.OnDataBitsComboBoxChanged); this.baudRateComboBox.Changed += new System.EventHandler(this.OnBaudRateComboBoxChanged); this.xonxoffCheckButton.Released += new System.EventHandler(this.OnXonxoffCheckButtonReleased); this.hwFlowControlCheckButton.Released += new System.EventHandler(this.OnHwFlowControlCheckButtonReleased); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog this.Name = "MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog"; this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.WindowPosition = ((Gtk.WindowPosition)(1)); this.SkipTaskbarHint = true; this.HasSeparator = false; // Internal child MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.notebook = new Gtk.Notebook(); this.notebook.CanFocus = true; this.notebook.Name = "notebook"; this.notebook.CurrentPage = 0; // Container child notebook.Gtk.Notebook+NotebookChild this.tableGeneral = new Gtk.Table(((uint)(7)), ((uint)(2)), false); this.tableGeneral.Name = "tableGeneral"; this.tableGeneral.RowSpacing = ((uint)(6)); this.tableGeneral.ColumnSpacing = ((uint)(6)); this.tableGeneral.BorderWidth = ((uint)(6)); // Container child tableGeneral.Gtk.Table+TableChild this.comboProvider = new Gtk.ComboBox(); this.comboProvider.Name = "comboProvider"; this.tableGeneral.Add(this.comboProvider); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.tableGeneral[this.comboProvider])); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.entryName = new Gtk.Entry(); this.entryName.CanDefault = true; this.entryName.CanFocus = true; this.entryName.Name = "entryName"; this.entryName.IsEditable = true; this.entryName.ActivatesDefault = true; this.entryName.InvisibleChar = '●'; this.tableGeneral.Add(this.entryName); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.tableGeneral[this.entryName])); w3.TopAttach = ((uint)(1)); w3.BottomAttach = ((uint)(2)); w3.LeftAttach = ((uint)(1)); w3.RightAttach = ((uint)(2)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.entryServer = new Gtk.Entry(); this.entryServer.CanFocus = true; this.entryServer.Name = "entryServer"; this.entryServer.IsEditable = true; this.entryServer.InvisibleChar = '●'; this.tableGeneral.Add(this.entryServer); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.tableGeneral[this.entryServer])); w4.TopAttach = ((uint)(2)); w4.BottomAttach = ((uint)(3)); w4.LeftAttach = ((uint)(1)); w4.RightAttach = ((uint)(2)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.entryUsername = new Gtk.Entry(); this.entryUsername.CanFocus = true; this.entryUsername.Name = "entryUsername"; this.entryUsername.IsEditable = true; this.entryUsername.InvisibleChar = '●'; this.tableGeneral.Add(this.entryUsername); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.tableGeneral[this.entryUsername])); w5.TopAttach = ((uint)(4)); w5.BottomAttach = ((uint)(5)); w5.LeftAttach = ((uint)(1)); w5.RightAttach = ((uint)(2)); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.hboxDatabase = new Gtk.HBox(); this.hboxDatabase.Name = "hboxDatabase"; this.hboxDatabase.Spacing = 6; // Container child hboxDatabase.Gtk.Box+BoxChild this.comboDatabase = Gtk.ComboBoxEntry.NewText(); this.comboDatabase.Name = "comboDatabase"; this.hboxDatabase.Add(this.comboDatabase); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hboxDatabase[this.comboDatabase])); w6.Position = 0; // Container child hboxDatabase.Gtk.Box+BoxChild this.buttonRefresh = new Gtk.Button(); this.buttonRefresh.CanFocus = true; this.buttonRefresh.Name = "buttonRefresh"; this.buttonRefresh.UseStock = true; this.buttonRefresh.UseUnderline = true; this.buttonRefresh.Label = "gtk-refresh"; this.hboxDatabase.Add(this.buttonRefresh); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hboxDatabase[this.buttonRefresh])); w7.Position = 1; w7.Expand = false; w7.Fill = false; // Container child hboxDatabase.Gtk.Box+BoxChild this.buttonOpen = new Gtk.Button(); this.buttonOpen.CanFocus = true; this.buttonOpen.Name = "buttonOpen"; this.buttonOpen.UseStock = true; this.buttonOpen.UseUnderline = true; this.buttonOpen.Label = "gtk-open"; this.hboxDatabase.Add(this.buttonOpen); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hboxDatabase[this.buttonOpen])); w8.Position = 2; w8.Expand = false; w8.Fill = false; this.tableGeneral.Add(this.hboxDatabase); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.tableGeneral[this.hboxDatabase])); w9.TopAttach = ((uint)(6)); w9.BottomAttach = ((uint)(7)); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.hboxPassword = new Gtk.HBox(); this.hboxPassword.Name = "hboxPassword"; this.hboxPassword.Spacing = 6; // Container child hboxPassword.Gtk.Box+BoxChild this.entryPassword = new Gtk.Entry(); this.entryPassword.CanFocus = true; this.entryPassword.Name = "entryPassword"; this.entryPassword.IsEditable = true; this.entryPassword.Visibility = false; this.entryPassword.InvisibleChar = '●'; this.hboxPassword.Add(this.entryPassword); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hboxPassword[this.entryPassword])); w10.Position = 0; // Container child hboxPassword.Gtk.Box+BoxChild this.checkSavePassword = new Gtk.CheckButton(); this.checkSavePassword.CanFocus = true; this.checkSavePassword.Name = "checkSavePassword"; this.checkSavePassword.Label = Mono.Unix.Catalog.GetString("Save Password"); this.checkSavePassword.Active = true; this.checkSavePassword.DrawIndicator = true; this.checkSavePassword.UseUnderline = true; this.hboxPassword.Add(this.checkSavePassword); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hboxPassword[this.checkSavePassword])); w11.Position = 1; w11.Expand = false; this.tableGeneral.Add(this.hboxPassword); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.tableGeneral[this.hboxPassword])); w12.TopAttach = ((uint)(5)); w12.BottomAttach = ((uint)(6)); w12.LeftAttach = ((uint)(1)); w12.RightAttach = ((uint)(2)); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.Xalign = 0F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Type"); this.tableGeneral.Add(this.label3); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label3])); w13.XOptions = ((Gtk.AttachOptions)(4)); w13.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.Xalign = 0F; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Name"); this.tableGeneral.Add(this.label4); Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label4])); w14.TopAttach = ((uint)(1)); w14.BottomAttach = ((uint)(2)); w14.XOptions = ((Gtk.AttachOptions)(4)); w14.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.Xalign = 0F; this.label5.LabelProp = Mono.Unix.Catalog.GetString("Server"); this.tableGeneral.Add(this.label5); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label5])); w15.TopAttach = ((uint)(2)); w15.BottomAttach = ((uint)(3)); w15.XOptions = ((Gtk.AttachOptions)(4)); w15.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.Xalign = 0F; this.label6.LabelProp = Mono.Unix.Catalog.GetString("Port"); this.tableGeneral.Add(this.label6); Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label6])); w16.TopAttach = ((uint)(3)); w16.BottomAttach = ((uint)(4)); w16.XOptions = ((Gtk.AttachOptions)(4)); w16.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.label7 = new Gtk.Label(); this.label7.Name = "label7"; this.label7.Xalign = 0F; this.label7.LabelProp = Mono.Unix.Catalog.GetString("Username"); this.tableGeneral.Add(this.label7); Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label7])); w17.TopAttach = ((uint)(4)); w17.BottomAttach = ((uint)(5)); w17.XOptions = ((Gtk.AttachOptions)(4)); w17.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.label8 = new Gtk.Label(); this.label8.Name = "label8"; this.label8.Xalign = 0F; this.label8.LabelProp = Mono.Unix.Catalog.GetString("Password"); this.tableGeneral.Add(this.label8); Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label8])); w18.TopAttach = ((uint)(5)); w18.BottomAttach = ((uint)(6)); w18.XOptions = ((Gtk.AttachOptions)(4)); w18.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.label9 = new Gtk.Label(); this.label9.Name = "label9"; this.label9.Xalign = 0F; this.label9.LabelProp = Mono.Unix.Catalog.GetString("Database"); this.tableGeneral.Add(this.label9); Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label9])); w19.TopAttach = ((uint)(6)); w19.BottomAttach = ((uint)(7)); w19.XOptions = ((Gtk.AttachOptions)(4)); w19.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.spinPort = new Gtk.SpinButton(1, 65535, 1); this.spinPort.CanFocus = true; this.spinPort.Name = "spinPort"; this.spinPort.Adjustment.PageIncrement = 10; this.spinPort.ClimbRate = 1; this.spinPort.Numeric = true; this.spinPort.Value = 1; this.tableGeneral.Add(this.spinPort); Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(this.tableGeneral[this.spinPort])); w20.TopAttach = ((uint)(3)); w20.BottomAttach = ((uint)(4)); w20.LeftAttach = ((uint)(1)); w20.RightAttach = ((uint)(2)); w20.XOptions = ((Gtk.AttachOptions)(4)); w20.YOptions = ((Gtk.AttachOptions)(4)); this.notebook.Add(this.tableGeneral); Gtk.Notebook.NotebookChild w21 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.tableGeneral])); w21.TabExpand = false; // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("General"); this.notebook.SetTabLabel(this.tableGeneral, this.label1); this.label1.ShowAll(); // Container child notebook.Gtk.Notebook+NotebookChild this.tableAdvanced = new Gtk.Table(((uint)(4)), ((uint)(2)), false); this.tableAdvanced.Name = "tableAdvanced"; this.tableAdvanced.RowSpacing = ((uint)(6)); this.tableAdvanced.ColumnSpacing = ((uint)(6)); this.tableAdvanced.BorderWidth = ((uint)(6)); // Container child tableAdvanced.Gtk.Table+TableChild this.checkCustom = new Gtk.CheckButton(); this.checkCustom.CanFocus = true; this.checkCustom.Name = "checkCustom"; this.checkCustom.Label = Mono.Unix.Catalog.GetString("Use custom connection string"); this.checkCustom.DrawIndicator = true; this.checkCustom.UseUnderline = true; this.tableAdvanced.Add(this.checkCustom); Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.checkCustom])); w22.TopAttach = ((uint)(2)); w22.BottomAttach = ((uint)(3)); w22.RightAttach = ((uint)(2)); w22.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableAdvanced.Gtk.Table+TableChild this.label10 = new Gtk.Label(); this.label10.Name = "label10"; this.label10.Xalign = 0F; this.label10.LabelProp = Mono.Unix.Catalog.GetString("Min Pool Size"); this.tableAdvanced.Add(this.label10); Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.label10])); w23.XOptions = ((Gtk.AttachOptions)(4)); w23.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableAdvanced.Gtk.Table+TableChild this.label11 = new Gtk.Label(); this.label11.Name = "label11"; this.label11.Xalign = 0F; this.label11.LabelProp = Mono.Unix.Catalog.GetString("Max Pool Size"); this.tableAdvanced.Add(this.label11); Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.label11])); w24.TopAttach = ((uint)(1)); w24.BottomAttach = ((uint)(2)); w24.XOptions = ((Gtk.AttachOptions)(4)); w24.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableAdvanced.Gtk.Table+TableChild this.scrolledwindow = new Gtk.ScrolledWindow(); this.scrolledwindow.Sensitive = false; this.scrolledwindow.CanFocus = true; this.scrolledwindow.Name = "scrolledwindow"; this.scrolledwindow.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow.Gtk.Container+ContainerChild this.textConnectionString = new Gtk.TextView(); this.textConnectionString.CanFocus = true; this.textConnectionString.Name = "textConnectionString"; this.scrolledwindow.Add(this.textConnectionString); this.tableAdvanced.Add(this.scrolledwindow); Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.scrolledwindow])); w26.TopAttach = ((uint)(3)); w26.BottomAttach = ((uint)(4)); w26.RightAttach = ((uint)(2)); w26.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableAdvanced.Gtk.Table+TableChild this.spinMaxPoolSize = new Gtk.SpinButton(1, 100, 1); this.spinMaxPoolSize.CanFocus = true; this.spinMaxPoolSize.Name = "spinMaxPoolSize"; this.spinMaxPoolSize.Adjustment.PageIncrement = 10; this.spinMaxPoolSize.ClimbRate = 1; this.spinMaxPoolSize.Numeric = true; this.spinMaxPoolSize.Value = 5; this.tableAdvanced.Add(this.spinMaxPoolSize); Gtk.Table.TableChild w27 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.spinMaxPoolSize])); w27.TopAttach = ((uint)(1)); w27.BottomAttach = ((uint)(2)); w27.LeftAttach = ((uint)(1)); w27.RightAttach = ((uint)(2)); w27.XOptions = ((Gtk.AttachOptions)(4)); w27.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableAdvanced.Gtk.Table+TableChild this.spinMinPoolSize = new Gtk.SpinButton(1, 100, 1); this.spinMinPoolSize.CanFocus = true; this.spinMinPoolSize.Name = "spinMinPoolSize"; this.spinMinPoolSize.Adjustment.PageIncrement = 10; this.spinMinPoolSize.ClimbRate = 1; this.spinMinPoolSize.Numeric = true; this.spinMinPoolSize.Value = 1; this.tableAdvanced.Add(this.spinMinPoolSize); Gtk.Table.TableChild w28 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.spinMinPoolSize])); w28.LeftAttach = ((uint)(1)); w28.RightAttach = ((uint)(2)); w28.XOptions = ((Gtk.AttachOptions)(4)); w28.YOptions = ((Gtk.AttachOptions)(4)); this.notebook.Add(this.tableAdvanced); Gtk.Notebook.NotebookChild w29 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.tableAdvanced])); w29.Position = 1; w29.TabExpand = false; // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Advanced"); this.notebook.SetTabLabel(this.tableAdvanced, this.label2); this.label2.ShowAll(); w1.Add(this.notebook); Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(w1[this.notebook])); w30.Position = 0; w30.Expand = false; w30.Fill = false; // Internal child MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog.ActionArea Gtk.HButtonBox w31 = this.ActionArea; w31.Name = "dialog1_ActionArea"; w31.Spacing = 6; w31.BorderWidth = ((uint)(5)); w31.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 w32 = ((Gtk.ButtonBox.ButtonBoxChild)(w31[this.buttonCancel])); w32.Expand = false; w32.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); 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 w33 = ((Gtk.ButtonBox.ButtonBoxChild)(w31[this.buttonOk])); w33.Position = 1; w33.Expand = false; w33.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 606; this.DefaultHeight = 351; this.entryName.HasDefault = true; this.Show(); this.spinPort.Changed += new System.EventHandler(this.PortChanged); this.entryPassword.Changed += new System.EventHandler(this.PasswordChanged); this.buttonRefresh.Clicked += new System.EventHandler(this.RefreshClicked); this.buttonOpen.Clicked += new System.EventHandler(this.OpenClicked); this.entryUsername.Changed += new System.EventHandler(this.UsernameChanged); this.entryServer.Changed += new System.EventHandler(this.ServerChanged); this.entryName.Changed += new System.EventHandler(this.NameChanged); this.comboProvider.Changed += new System.EventHandler(this.ProviderChanged); this.spinMinPoolSize.Changed += new System.EventHandler(this.MinPoolSizeChanged); this.spinMaxPoolSize.Changed += new System.EventHandler(this.MaxPoolSizeChanged); this.buttonCancel.Clicked += new System.EventHandler(this.OnCancelClicked); this.buttonOk.Clicked += new System.EventHandler(this.OnOkClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget FSharpBinding.CompilerOptionsPanelWidget Stetic.BinContainer.Attach(this); this.Name = "FSharpBinding.CompilerOptionsPanelWidget"; // Container child FSharpBinding.CompilerOptionsPanelWidget.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.label82 = new Gtk.Label(); this.label82.Name = "label82"; this.label82.Xalign = 0F; this.label82.LabelProp = Mono.Unix.Catalog.GetString("<b>Code Generation</b>"); this.label82.UseMarkup = true; this.vbox1.Add(this.label82); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.label82])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox5 = new Gtk.HBox(); this.hbox5.Name = "hbox5"; this.hbox5.Spacing = 6; // Container child hbox5.Gtk.Box+BoxChild this.label76 = new Gtk.Label(); this.label76.WidthRequest = 18; this.label76.Name = "label76"; this.hbox5.Add(this.label76); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox5[this.label76])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.table7 = new Gtk.Table(((uint)(2)), ((uint)(2)), false); this.table7.Name = "table7"; this.table7.RowSpacing = ((uint)(6)); this.table7.ColumnSpacing = ((uint)(6)); // Container child table7.Gtk.Table+TableChild this.hbox57 = new Gtk.HBox(); this.hbox57.Name = "hbox57"; // Container child hbox57.Gtk.Box+BoxChild this.compileTargetCombo = new Gtk.ComboBox(); this.compileTargetCombo.Name = "compileTargetCombo"; this.hbox57.Add(this.compileTargetCombo); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox57[this.compileTargetCombo])); w3.Position = 0; w3.Expand = false; w3.Fill = false; this.table7.Add(this.hbox57); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table7[this.hbox57])); w4.LeftAttach = ((uint)(1)); w4.RightAttach = ((uint)(2)); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.hbox6 = new Gtk.HBox(); this.hbox6.Name = "hbox6"; this.hbox6.Spacing = 6; // Container child hbox6.Gtk.Box+BoxChild this.codepageEntry = Gtk.ComboBoxEntry.NewText(); this.codepageEntry.Name = "codepageEntry"; this.hbox6.Add(this.codepageEntry); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox6[this.codepageEntry])); w5.Position = 0; w5.Expand = false; w5.Fill = false; this.table7.Add(this.hbox6); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table7[this.hbox6])); w6.TopAttach = ((uint)(1)); w6.BottomAttach = ((uint)(2)); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(2)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Compiler Code Page:"); this.table7.Add(this.label1); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table7[this.label1])); w7.TopAttach = ((uint)(1)); w7.BottomAttach = ((uint)(2)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.label86 = new Gtk.Label(); this.label86.Name = "label86"; this.label86.Xalign = 0F; this.label86.LabelProp = Mono.Unix.Catalog.GetString("Compile _Target:"); this.label86.UseUnderline = true; this.table7.Add(this.label86); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table7[this.label86])); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(0)); this.vbox2.Add(this.table7); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox2[this.table7])); w9.Position = 0; this.hbox5.Add(this.vbox2); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox5[this.vbox2])); w10.Position = 1; this.vbox1.Add(this.hbox5); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox5])); w11.Position = 1; w11.Expand = false; // Container child vbox1.Gtk.Box+BoxChild this.label75 = new Gtk.Label(); this.label75.WidthRequest = 18; this.label75.Name = "label75"; this.vbox1.Add(this.label75); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.label75])); w12.PackType = ((Gtk.PackType)(1)); w12.Position = 2; // Container child vbox1.Gtk.Box+BoxChild this.hbox7 = new Gtk.HBox(); this.hbox7.Name = "hbox7"; this.hbox7.Spacing = 6; // Container child hbox7.Gtk.Box+BoxChild this.label74 = new Gtk.Label(); this.label74.WidthRequest = 18; this.label74.Name = "label74"; this.hbox7.Add(this.label74); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox7[this.label74])); w13.Position = 0; w13.Expand = false; w13.Fill = false; this.vbox1.Add(this.hbox7); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox7])); w14.PackType = ((Gtk.PackType)(1)); w14.Position = 3; w14.Expand = false; w14.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.SymbolChooser Stetic.BinContainer.Attach(this); this.Name = "ocmgtk.SymbolChooser"; // Container child ocmgtk.SymbolChooser.Gtk.Container+ContainerChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.symbolLabel = new Gtk.Label(); this.symbolLabel.Name = "symbolLabel"; this.symbolLabel.Xalign = 0F; this.symbolLabel.LabelProp = Mono.Unix.Catalog.GetString("label4"); this.symbolLabel.WidthChars = 30; this.hbox1.Add(this.symbolLabel); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.symbolLabel])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.symbolCombo = Gtk.ComboBoxEntry.NewText(); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Geocache")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Geocache Found")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Flag, Red")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Flag, Blue")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Flag, Green")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Pin, Red")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Pin, Blue")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Pin, Green")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Block, Red")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Block, Blue")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Block, Green")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 0")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 1")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 2")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 3")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 4")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 5")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 6")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 7")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 8")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 9")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 10")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 11")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 12")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 13")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 14")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 15")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 16")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 17")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 18")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 19")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 20")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 21")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 22")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 23")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Custom 24")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Anchor")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Bell")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Diver Down Flag 1")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Diver Down Flag 2")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Bank")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Fishing Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Gas Station")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Horn")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Residence")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Restaurant")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Light")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Bar")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Skull and Crossbones")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Buoy, White")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Shipwreck")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Man Overboard")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Navaid, Amber")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Navaid, Black")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Navaid, Blue")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Navaid, Green")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Navaid, Orange")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Navaid, Red")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Navaid, Violet")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Navaid, White")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Radio Beacon")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Boat Ramp")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Campground")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Restroom")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Shower")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Drinking Water")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Telephone")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Medical Facility")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Information")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Parking Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Park")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Picnic Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Scenic Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Skiing Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Swimming Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Dam")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Controlled Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Danger Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Restricted Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Ball Park")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Car")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Shopping Center")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Lodging")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Mine")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Trail Head")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Truck Stop")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Golf Course")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("City (Small)")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("City (Medium)")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("City (Large)")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Amusement Park")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Bowling")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Car Rental")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Car Repair")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Fast Food")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Fitness Center")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Movie Theater")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Museum")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Pharmacy")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Pizza")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Post Office")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("RV Park")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("School")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Stadium")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Department Store")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Zoo")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Convenience Store")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Live Theater")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Scales")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Toll Booth")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Bridge")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Building")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Cemetery")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Church")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Civil")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Crossing")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Oil Field")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Tunnel")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Beach")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Forest")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Summit")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Airport")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Tall Tower")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Short Tower")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Glider Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Ultralight Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Parachute Area")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Bike Trail")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Fishing Hot Spot Facility")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Police Station")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Ski Resort")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Ice Skating")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Wrecker")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("ATV")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Big Game")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Blind")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Blood Trail")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Cover")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Covey")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Food Source")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Furbearer")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Lodge")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Small Game")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Animal Tracks")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Treed Quarry")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Tree Stand")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Truck")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Upland Game")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Waterfowl")); this.symbolCombo.AppendText(Mono.Unix.Catalog.GetString("Water Source")); this.symbolCombo.Name = "symbolCombo"; this.hbox1.Add(this.symbolCombo); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.symbolCombo])); w2.Position = 1; this.Add(this.hbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget serialmon.ConfigWindow this.Name = "serialmon.ConfigWindow"; this.Title = Mono.Unix.Catalog.GetString("ConfigWindow"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.BorderWidth = ((uint)(3)); // Container child serialmon.ConfigWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.frame3 = new Gtk.Frame(); this.frame3.Name = "frame3"; this.frame3.ShadowType = ((Gtk.ShadowType)(1)); this.frame3.BorderWidth = ((uint)(3)); // Container child frame3.Gtk.Container+ContainerChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.vbox4 = new Gtk.VBox(); this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 6; // Container child vbox4.Gtk.Box+BoxChild this.table3 = new Gtk.Table(((uint)(1)), ((uint)(2)), false); this.table3.Name = "table3"; this.table3.RowSpacing = ((uint)(6)); this.table3.ColumnSpacing = ((uint)(6)); // Container child table3.Gtk.Table+TableChild this.fontbutton1 = new Gtk.FontButton(); this.fontbutton1.CanFocus = true; this.fontbutton1.Name = "fontbutton1"; this.fontbutton1.FontName = "Monospace 12"; this.table3.Add(this.fontbutton1); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table3[this.fontbutton1])); w1.LeftAttach = ((uint)(1)); w1.RightAttach = ((uint)(2)); w1.XOptions = ((Gtk.AttachOptions)(4)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.label11 = new Gtk.Label(); this.label11.Name = "label11"; this.label11.LabelProp = Mono.Unix.Catalog.GetString("font"); this.table3.Add(this.label11); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table3[this.label11])); w2.XPadding = ((uint)(6)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); this.vbox4.Add(this.table3); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox4[this.table3])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.frame4 = new Gtk.Frame(); this.frame4.Name = "frame4"; this.frame4.ShadowType = ((Gtk.ShadowType)(1)); this.frame4.BorderWidth = ((uint)(3)); // Container child frame4.Gtk.Container+ContainerChild this.GtkAlignment7 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment7.Name = "GtkAlignment7"; this.GtkAlignment7.LeftPadding = ((uint)(12)); // Container child GtkAlignment7.Gtk.Container+ContainerChild this.table4 = new Gtk.Table(((uint)(2)), ((uint)(3)), false); this.table4.Name = "table4"; this.table4.RowSpacing = ((uint)(6)); this.table4.ColumnSpacing = ((uint)(6)); // Container child table4.Gtk.Table+TableChild this.colauto_rb = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("automatic")); this.colauto_rb.CanFocus = true; this.colauto_rb.Name = "colauto_rb"; this.colauto_rb.Active = true; this.colauto_rb.DrawIndicator = true; this.colauto_rb.UseUnderline = true; this.colauto_rb.Group = new GLib.SList(System.IntPtr.Zero); this.table4.Add(this.colauto_rb); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table4[this.colauto_rb])); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.colgran_spin = new Gtk.SpinButton(1, 100, 1); this.colgran_spin.CanFocus = true; this.colgran_spin.Name = "colgran_spin"; this.colgran_spin.Adjustment.PageIncrement = 10; this.colgran_spin.ClimbRate = 1; this.colgran_spin.Numeric = true; this.colgran_spin.Value = 8; this.table4.Add(this.colgran_spin); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table4[this.colgran_spin])); w5.LeftAttach = ((uint)(2)); w5.RightAttach = ((uint)(3)); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.colman_rb = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("manual")); this.colman_rb.CanFocus = true; this.colman_rb.Name = "colman_rb"; this.colman_rb.DrawIndicator = true; this.colman_rb.UseUnderline = true; this.colman_rb.Group = this.colauto_rb.Group; this.table4.Add(this.colman_rb); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table4[this.colman_rb])); w6.TopAttach = ((uint)(1)); w6.BottomAttach = ((uint)(2)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.colwidth_spin = new Gtk.SpinButton(1, 100, 1); this.colwidth_spin.CanFocus = true; this.colwidth_spin.Name = "colwidth_spin"; this.colwidth_spin.Adjustment.PageIncrement = 10; this.colwidth_spin.ClimbRate = 1; this.colwidth_spin.Numeric = true; this.colwidth_spin.Value = 16; this.table4.Add(this.colwidth_spin); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table4[this.colwidth_spin])); w7.TopAttach = ((uint)(1)); w7.BottomAttach = ((uint)(2)); w7.LeftAttach = ((uint)(2)); w7.RightAttach = ((uint)(3)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.label13 = new Gtk.Label(); this.label13.Name = "label13"; this.label13.LabelProp = Mono.Unix.Catalog.GetString("width"); this.table4.Add(this.label13); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table4[this.label13])); w8.TopAttach = ((uint)(1)); w8.BottomAttach = ((uint)(2)); w8.LeftAttach = ((uint)(1)); w8.RightAttach = ((uint)(2)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.label14 = new Gtk.Label(); this.label14.Name = "label14"; this.label14.LabelProp = Mono.Unix.Catalog.GetString("granularity"); this.table4.Add(this.label14); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table4[this.label14])); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment7.Add(this.table4); this.frame4.Add(this.GtkAlignment7); this.GtkLabel8 = new Gtk.Label(); this.GtkLabel8.Name = "GtkLabel8"; this.GtkLabel8.LabelProp = Mono.Unix.Catalog.GetString("<b>column size</b>"); this.GtkLabel8.UseMarkup = true; this.frame4.LabelWidget = this.GtkLabel8; this.vbox4.Add(this.frame4); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame4])); w12.Position = 1; w12.Expand = false; w12.Fill = false; this.hbox4.Add(this.vbox4); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox4[this.vbox4])); w13.Position = 0; w13.Expand = false; w13.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.frame5 = new Gtk.Frame(); this.frame5.Name = "frame5"; this.frame5.ShadowType = ((Gtk.ShadowType)(1)); this.frame5.BorderWidth = ((uint)(3)); // Container child frame5.Gtk.Container+ContainerChild this.GtkAlignment8 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment8.Name = "GtkAlignment8"; this.GtkAlignment8.LeftPadding = ((uint)(12)); // Container child GtkAlignment8.Gtk.Container+ContainerChild this.vbox5 = new Gtk.VBox(); this.vbox5.Name = "vbox5"; this.vbox5.Spacing = 6; // Container child vbox5.Gtk.Box+BoxChild this.addrbasehex_rb = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("hexadecimal")); this.addrbasehex_rb.CanFocus = true; this.addrbasehex_rb.Name = "addrbasehex_rb"; this.addrbasehex_rb.Active = true; this.addrbasehex_rb.DrawIndicator = true; this.addrbasehex_rb.UseUnderline = true; this.addrbasehex_rb.Group = new GLib.SList(System.IntPtr.Zero); this.vbox5.Add(this.addrbasehex_rb); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox5[this.addrbasehex_rb])); w14.Position = 0; w14.Expand = false; w14.Fill = false; // Container child vbox5.Gtk.Box+BoxChild this.addrbasedec_rb = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("decimal")); this.addrbasedec_rb.CanFocus = true; this.addrbasedec_rb.Name = "addrbasedec_rb"; this.addrbasedec_rb.DrawIndicator = true; this.addrbasedec_rb.UseUnderline = true; this.addrbasedec_rb.Group = this.addrbasehex_rb.Group; this.vbox5.Add(this.addrbasedec_rb); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox5[this.addrbasedec_rb])); w15.Position = 1; w15.Expand = false; w15.Fill = false; // Container child vbox5.Gtk.Box+BoxChild this.addrbaseoct_rb = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("octal")); this.addrbaseoct_rb.Sensitive = false; this.addrbaseoct_rb.CanFocus = true; this.addrbaseoct_rb.Name = "addrbaseoct_rb"; this.addrbaseoct_rb.DrawIndicator = true; this.addrbaseoct_rb.UseUnderline = true; this.addrbaseoct_rb.Group = this.addrbasehex_rb.Group; this.vbox5.Add(this.addrbaseoct_rb); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox5[this.addrbaseoct_rb])); w16.Position = 2; w16.Expand = false; w16.Fill = false; // Container child vbox5.Gtk.Box+BoxChild this.hbox5 = new Gtk.HBox(); this.hbox5.Name = "hbox5"; this.hbox5.Spacing = 6; // Container child hbox5.Gtk.Box+BoxChild this.label12 = new Gtk.Label(); this.label12.Name = "label12"; this.label12.LabelProp = Mono.Unix.Catalog.GetString("width"); this.hbox5.Add(this.label12); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox5[this.label12])); w17.Position = 0; w17.Expand = false; w17.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.addrwidth_spin = new Gtk.SpinButton(1, 100, 1); this.addrwidth_spin.CanFocus = true; this.addrwidth_spin.Name = "addrwidth_spin"; this.addrwidth_spin.Adjustment.PageIncrement = 10; this.addrwidth_spin.ClimbRate = 1; this.addrwidth_spin.Numeric = true; this.addrwidth_spin.Value = 4; this.hbox5.Add(this.addrwidth_spin); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox5[this.addrwidth_spin])); w18.Position = 1; w18.Expand = false; w18.Fill = false; this.vbox5.Add(this.hbox5); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox5])); w19.Position = 3; w19.Expand = false; w19.Fill = false; this.GtkAlignment8.Add(this.vbox5); this.frame5.Add(this.GtkAlignment8); this.GtkLabel12 = new Gtk.Label(); this.GtkLabel12.Name = "GtkLabel12"; this.GtkLabel12.LabelProp = Mono.Unix.Catalog.GetString("<b>address</b>"); this.GtkLabel12.UseMarkup = true; this.frame5.LabelWidget = this.GtkLabel12; this.hbox4.Add(this.frame5); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox4[this.frame5])); w22.Position = 1; w22.Expand = false; w22.Fill = false; this.frame3.Add(this.hbox4); this.GtkLabel14 = new Gtk.Label(); this.GtkLabel14.Name = "GtkLabel14"; this.GtkLabel14.LabelProp = Mono.Unix.Catalog.GetString("<b>general settings</b>"); this.GtkLabel14.UseMarkup = true; this.frame3.LabelWidget = this.GtkLabel14; this.vbox1.Add(this.frame3); Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame3])); w24.Position = 0; w24.Expand = false; w24.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.frame1 = new Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(1)); this.frame1.BorderWidth = ((uint)(3)); // Container child frame1.Gtk.Container+ContainerChild this.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(12)); // Container child GtkAlignment.Gtk.Container+ContainerChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(5)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.cb_baudrate1 = Gtk.ComboBoxEntry.NewText(); this.cb_baudrate1.AppendText(Mono.Unix.Catalog.GetString("1200")); this.cb_baudrate1.AppendText(Mono.Unix.Catalog.GetString("2400")); this.cb_baudrate1.AppendText(Mono.Unix.Catalog.GetString("4800")); this.cb_baudrate1.AppendText(Mono.Unix.Catalog.GetString("9600")); this.cb_baudrate1.AppendText(Mono.Unix.Catalog.GetString("19200")); this.cb_baudrate1.AppendText(Mono.Unix.Catalog.GetString("38400")); this.cb_baudrate1.AppendText(Mono.Unix.Catalog.GetString("57600")); this.cb_baudrate1.AppendText(Mono.Unix.Catalog.GetString("115200")); this.cb_baudrate1.Name = "cb_baudrate1"; this.cb_baudrate1.Active = 3; this.table1.Add(this.cb_baudrate1); Gtk.Table.TableChild w25 = ((Gtk.Table.TableChild)(this.table1[this.cb_baudrate1])); w25.TopAttach = ((uint)(1)); w25.BottomAttach = ((uint)(2)); w25.LeftAttach = ((uint)(1)); w25.RightAttach = ((uint)(2)); w25.XOptions = ((Gtk.AttachOptions)(4)); w25.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.cb_databits1 = Gtk.ComboBox.NewText(); this.cb_databits1.AppendText(Mono.Unix.Catalog.GetString("5")); this.cb_databits1.AppendText(Mono.Unix.Catalog.GetString("6")); this.cb_databits1.AppendText(Mono.Unix.Catalog.GetString("7")); this.cb_databits1.AppendText(Mono.Unix.Catalog.GetString("8")); this.cb_databits1.Name = "cb_databits1"; this.cb_databits1.Active = 3; this.table1.Add(this.cb_databits1); Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.table1[this.cb_databits1])); w26.TopAttach = ((uint)(3)); w26.BottomAttach = ((uint)(4)); w26.LeftAttach = ((uint)(1)); w26.RightAttach = ((uint)(2)); w26.XOptions = ((Gtk.AttachOptions)(4)); w26.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.cb_parity1 = Gtk.ComboBox.NewText(); this.cb_parity1.AppendText(Mono.Unix.Catalog.GetString("Even")); this.cb_parity1.AppendText(Mono.Unix.Catalog.GetString("Mark")); this.cb_parity1.AppendText(Mono.Unix.Catalog.GetString("None")); this.cb_parity1.AppendText(Mono.Unix.Catalog.GetString("Odd")); this.cb_parity1.AppendText(Mono.Unix.Catalog.GetString("Space")); this.cb_parity1.Name = "cb_parity1"; this.cb_parity1.Active = 2; this.table1.Add(this.cb_parity1); Gtk.Table.TableChild w27 = ((Gtk.Table.TableChild)(this.table1[this.cb_parity1])); w27.TopAttach = ((uint)(2)); w27.BottomAttach = ((uint)(3)); w27.LeftAttach = ((uint)(1)); w27.RightAttach = ((uint)(2)); w27.XOptions = ((Gtk.AttachOptions)(4)); w27.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.cb_pn1 = Gtk.ComboBoxEntry.NewText(); this.cb_pn1.Name = "cb_pn1"; this.table1.Add(this.cb_pn1); Gtk.Table.TableChild w28 = ((Gtk.Table.TableChild)(this.table1[this.cb_pn1])); w28.LeftAttach = ((uint)(1)); w28.RightAttach = ((uint)(2)); w28.XOptions = ((Gtk.AttachOptions)(4)); w28.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.cb_stopbits1 = Gtk.ComboBox.NewText(); this.cb_stopbits1.AppendText(Mono.Unix.Catalog.GetString("0")); this.cb_stopbits1.AppendText(Mono.Unix.Catalog.GetString("1")); this.cb_stopbits1.AppendText(Mono.Unix.Catalog.GetString("1.5")); this.cb_stopbits1.AppendText(Mono.Unix.Catalog.GetString("2")); this.cb_stopbits1.Name = "cb_stopbits1"; this.cb_stopbits1.Active = 1; this.table1.Add(this.cb_stopbits1); Gtk.Table.TableChild w29 = ((Gtk.Table.TableChild)(this.table1[this.cb_stopbits1])); w29.TopAttach = ((uint)(4)); w29.BottomAttach = ((uint)(5)); w29.LeftAttach = ((uint)(1)); w29.RightAttach = ((uint)(2)); w29.XOptions = ((Gtk.AttachOptions)(4)); w29.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("port name"); this.table1.Add(this.label1); Gtk.Table.TableChild w30 = ((Gtk.Table.TableChild)(this.table1[this.label1])); w30.XOptions = ((Gtk.AttachOptions)(4)); w30.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("baudrate"); this.table1.Add(this.label2); Gtk.Table.TableChild w31 = ((Gtk.Table.TableChild)(this.table1[this.label2])); w31.TopAttach = ((uint)(1)); w31.BottomAttach = ((uint)(2)); w31.XOptions = ((Gtk.AttachOptions)(4)); w31.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("parity"); this.table1.Add(this.label3); Gtk.Table.TableChild w32 = ((Gtk.Table.TableChild)(this.table1[this.label3])); w32.TopAttach = ((uint)(2)); w32.BottomAttach = ((uint)(3)); w32.XOptions = ((Gtk.AttachOptions)(4)); w32.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("data bits"); this.table1.Add(this.label4); Gtk.Table.TableChild w33 = ((Gtk.Table.TableChild)(this.table1[this.label4])); w33.TopAttach = ((uint)(3)); w33.BottomAttach = ((uint)(4)); w33.XOptions = ((Gtk.AttachOptions)(4)); w33.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.LabelProp = Mono.Unix.Catalog.GetString("stop bits"); this.table1.Add(this.label5); Gtk.Table.TableChild w34 = ((Gtk.Table.TableChild)(this.table1[this.label5])); w34.TopAttach = ((uint)(4)); w34.BottomAttach = ((uint)(5)); w34.XOptions = ((Gtk.AttachOptions)(4)); w34.YOptions = ((Gtk.AttachOptions)(4)); this.hbox1.Add(this.table1); Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(this.hbox1[this.table1])); w35.Position = 0; w35.Expand = false; w35.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.checkbutton1 = new Gtk.CheckButton(); this.checkbutton1.CanFocus = true; this.checkbutton1.Name = "checkbutton1"; this.checkbutton1.Label = Mono.Unix.Catalog.GetString("active"); this.checkbutton1.Active = true; this.checkbutton1.DrawIndicator = true; this.checkbutton1.UseUnderline = true; this.vbox2.Add(this.checkbutton1); Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.vbox2[this.checkbutton1])); w36.Position = 0; w36.Expand = false; w36.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.colorbutton1 = new Gtk.ColorButton(); this.colorbutton1.CanFocus = true; this.colorbutton1.Events = ((Gdk.EventMask)(784)); this.colorbutton1.Name = "colorbutton1"; this.colorbutton1.Title = Mono.Unix.Catalog.GetString("#FF0000"); this.vbox2.Add(this.colorbutton1); Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.vbox2[this.colorbutton1])); w37.Position = 1; w37.Expand = false; w37.Fill = false; this.hbox1.Add(this.vbox2); Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox2])); w38.Position = 1; w38.Expand = false; w38.Fill = false; this.GtkAlignment.Add(this.hbox1); this.frame1.Add(this.GtkAlignment); this.GtkLabel10 = new Gtk.Label(); this.GtkLabel10.Name = "GtkLabel10"; this.GtkLabel10.LabelProp = Mono.Unix.Catalog.GetString("<b>serial port 1</b>"); this.GtkLabel10.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel10; this.vbox1.Add(this.frame1); Gtk.Box.BoxChild w41 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame1])); w41.Position = 1; w41.Expand = false; w41.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.frame2 = new Gtk.Frame(); this.frame2.Name = "frame2"; this.frame2.ShadowType = ((Gtk.ShadowType)(1)); this.frame2.BorderWidth = ((uint)(3)); // Container child frame2.Gtk.Container+ContainerChild this.GtkAlignment3 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment3.Name = "GtkAlignment3"; this.GtkAlignment3.LeftPadding = ((uint)(12)); // Container child GtkAlignment3.Gtk.Container+ContainerChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.table2 = new Gtk.Table(((uint)(5)), ((uint)(2)), false); this.table2.Name = "table2"; this.table2.RowSpacing = ((uint)(6)); this.table2.ColumnSpacing = ((uint)(6)); // Container child table2.Gtk.Table+TableChild this.cb_baudrate2 = Gtk.ComboBoxEntry.NewText(); this.cb_baudrate2.AppendText(Mono.Unix.Catalog.GetString("1200")); this.cb_baudrate2.AppendText(Mono.Unix.Catalog.GetString("2400")); this.cb_baudrate2.AppendText(Mono.Unix.Catalog.GetString("4800")); this.cb_baudrate2.AppendText(Mono.Unix.Catalog.GetString("9600")); this.cb_baudrate2.AppendText(Mono.Unix.Catalog.GetString("19200")); this.cb_baudrate2.AppendText(Mono.Unix.Catalog.GetString("38400")); this.cb_baudrate2.AppendText(Mono.Unix.Catalog.GetString("57600")); this.cb_baudrate2.AppendText(Mono.Unix.Catalog.GetString("115200")); this.cb_baudrate2.Name = "cb_baudrate2"; this.cb_baudrate2.Active = 3; this.table2.Add(this.cb_baudrate2); Gtk.Table.TableChild w42 = ((Gtk.Table.TableChild)(this.table2[this.cb_baudrate2])); w42.TopAttach = ((uint)(1)); w42.BottomAttach = ((uint)(2)); w42.LeftAttach = ((uint)(1)); w42.RightAttach = ((uint)(2)); w42.XOptions = ((Gtk.AttachOptions)(4)); w42.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.cb_databits2 = Gtk.ComboBox.NewText(); this.cb_databits2.AppendText(Mono.Unix.Catalog.GetString("5")); this.cb_databits2.AppendText(Mono.Unix.Catalog.GetString("6")); this.cb_databits2.AppendText(Mono.Unix.Catalog.GetString("7")); this.cb_databits2.AppendText(Mono.Unix.Catalog.GetString("8")); this.cb_databits2.Name = "cb_databits2"; this.cb_databits2.Active = 3; this.table2.Add(this.cb_databits2); Gtk.Table.TableChild w43 = ((Gtk.Table.TableChild)(this.table2[this.cb_databits2])); w43.TopAttach = ((uint)(3)); w43.BottomAttach = ((uint)(4)); w43.LeftAttach = ((uint)(1)); w43.RightAttach = ((uint)(2)); w43.XOptions = ((Gtk.AttachOptions)(4)); w43.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.cb_parity2 = Gtk.ComboBox.NewText(); this.cb_parity2.AppendText(Mono.Unix.Catalog.GetString("Even")); this.cb_parity2.AppendText(Mono.Unix.Catalog.GetString("Mark")); this.cb_parity2.AppendText(Mono.Unix.Catalog.GetString("None")); this.cb_parity2.AppendText(Mono.Unix.Catalog.GetString("Odd")); this.cb_parity2.AppendText(Mono.Unix.Catalog.GetString("Space")); this.cb_parity2.Name = "cb_parity2"; this.cb_parity2.Active = 2; this.table2.Add(this.cb_parity2); Gtk.Table.TableChild w44 = ((Gtk.Table.TableChild)(this.table2[this.cb_parity2])); w44.TopAttach = ((uint)(2)); w44.BottomAttach = ((uint)(3)); w44.LeftAttach = ((uint)(1)); w44.RightAttach = ((uint)(2)); w44.XOptions = ((Gtk.AttachOptions)(4)); w44.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.cb_pn2 = Gtk.ComboBoxEntry.NewText(); this.cb_pn2.Name = "cb_pn2"; this.table2.Add(this.cb_pn2); Gtk.Table.TableChild w45 = ((Gtk.Table.TableChild)(this.table2[this.cb_pn2])); w45.LeftAttach = ((uint)(1)); w45.RightAttach = ((uint)(2)); w45.XOptions = ((Gtk.AttachOptions)(4)); w45.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.cb_stopbits2 = Gtk.ComboBox.NewText(); this.cb_stopbits2.AppendText(Mono.Unix.Catalog.GetString("0")); this.cb_stopbits2.AppendText(Mono.Unix.Catalog.GetString("1")); this.cb_stopbits2.AppendText(Mono.Unix.Catalog.GetString("1.5")); this.cb_stopbits2.AppendText(Mono.Unix.Catalog.GetString("2")); this.cb_stopbits2.Name = "cb_stopbits2"; this.cb_stopbits2.Active = 1; this.table2.Add(this.cb_stopbits2); Gtk.Table.TableChild w46 = ((Gtk.Table.TableChild)(this.table2[this.cb_stopbits2])); w46.TopAttach = ((uint)(4)); w46.BottomAttach = ((uint)(5)); w46.LeftAttach = ((uint)(1)); w46.RightAttach = ((uint)(2)); w46.XOptions = ((Gtk.AttachOptions)(4)); w46.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label10 = new Gtk.Label(); this.label10.Name = "label10"; this.label10.LabelProp = Mono.Unix.Catalog.GetString("port name"); this.table2.Add(this.label10); Gtk.Table.TableChild w47 = ((Gtk.Table.TableChild)(this.table2[this.label10])); w47.XOptions = ((Gtk.AttachOptions)(4)); w47.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.LabelProp = Mono.Unix.Catalog.GetString("stop bits"); this.table2.Add(this.label6); Gtk.Table.TableChild w48 = ((Gtk.Table.TableChild)(this.table2[this.label6])); w48.TopAttach = ((uint)(4)); w48.BottomAttach = ((uint)(5)); w48.XOptions = ((Gtk.AttachOptions)(4)); w48.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label7 = new Gtk.Label(); this.label7.Name = "label7"; this.label7.LabelProp = Mono.Unix.Catalog.GetString("data bits"); this.table2.Add(this.label7); Gtk.Table.TableChild w49 = ((Gtk.Table.TableChild)(this.table2[this.label7])); w49.TopAttach = ((uint)(3)); w49.BottomAttach = ((uint)(4)); w49.XOptions = ((Gtk.AttachOptions)(4)); w49.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label8 = new Gtk.Label(); this.label8.Name = "label8"; this.label8.LabelProp = Mono.Unix.Catalog.GetString("parity"); this.table2.Add(this.label8); Gtk.Table.TableChild w50 = ((Gtk.Table.TableChild)(this.table2[this.label8])); w50.TopAttach = ((uint)(2)); w50.BottomAttach = ((uint)(3)); w50.XOptions = ((Gtk.AttachOptions)(4)); w50.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label9 = new Gtk.Label(); this.label9.Name = "label9"; this.label9.LabelProp = Mono.Unix.Catalog.GetString("baudrate"); this.table2.Add(this.label9); Gtk.Table.TableChild w51 = ((Gtk.Table.TableChild)(this.table2[this.label9])); w51.TopAttach = ((uint)(1)); w51.BottomAttach = ((uint)(2)); w51.XOptions = ((Gtk.AttachOptions)(4)); w51.YOptions = ((Gtk.AttachOptions)(4)); this.hbox2.Add(this.table2); Gtk.Box.BoxChild w52 = ((Gtk.Box.BoxChild)(this.hbox2[this.table2])); w52.Position = 0; w52.Expand = false; w52.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.checkbutton2 = new Gtk.CheckButton(); this.checkbutton2.CanFocus = true; this.checkbutton2.Name = "checkbutton2"; this.checkbutton2.Label = Mono.Unix.Catalog.GetString("active"); this.checkbutton2.Active = true; this.checkbutton2.DrawIndicator = true; this.checkbutton2.UseUnderline = true; this.vbox3.Add(this.checkbutton2); Gtk.Box.BoxChild w53 = ((Gtk.Box.BoxChild)(this.vbox3[this.checkbutton2])); w53.Position = 0; w53.Expand = false; w53.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.colorbutton2 = new Gtk.ColorButton(); this.colorbutton2.CanFocus = true; this.colorbutton2.Events = ((Gdk.EventMask)(784)); this.colorbutton2.Name = "colorbutton2"; this.colorbutton2.Title = Mono.Unix.Catalog.GetString("#FF0000"); this.vbox3.Add(this.colorbutton2); Gtk.Box.BoxChild w54 = ((Gtk.Box.BoxChild)(this.vbox3[this.colorbutton2])); w54.Position = 1; w54.Expand = false; w54.Fill = false; this.hbox2.Add(this.vbox3); Gtk.Box.BoxChild w55 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox3])); w55.Position = 1; w55.Expand = false; w55.Fill = false; this.GtkAlignment3.Add(this.hbox2); this.frame2.Add(this.GtkAlignment3); this.GtkLabel13 = new Gtk.Label(); this.GtkLabel13.Name = "GtkLabel13"; this.GtkLabel13.LabelProp = Mono.Unix.Catalog.GetString("<b>serial port 2</b>"); this.GtkLabel13.UseMarkup = true; this.frame2.LabelWidget = this.GtkLabel13; this.vbox1.Add(this.frame2); Gtk.Box.BoxChild w58 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame2])); w58.Position = 2; w58.Expand = false; w58.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.ok_button = new Gtk.Button(); this.ok_button.CanFocus = true; this.ok_button.Name = "ok_button"; this.ok_button.UseUnderline = true; // Container child ok_button.Gtk.Container+ContainerChild Gtk.Alignment w59 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w60 = new Gtk.HBox(); w60.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w61 = new Gtk.Image(); w61.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-apply", Gtk.IconSize.Menu, 16); w60.Add(w61); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w63 = new Gtk.Label(); w63.LabelProp = Mono.Unix.Catalog.GetString("OK"); w63.UseUnderline = true; w60.Add(w63); w59.Add(w60); this.ok_button.Add(w59); this.hbox3.Add(this.ok_button); Gtk.Box.BoxChild w67 = ((Gtk.Box.BoxChild)(this.hbox3[this.ok_button])); w67.Position = 1; w67.Expand = false; w67.Fill = false; this.vbox1.Add(this.hbox3); Gtk.Box.BoxChild w68 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox3])); w68.Position = 3; w68.Expand = false; w68.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 520; this.DefaultHeight = 550; this.Show(); this.DestroyEvent += new Gtk.DestroyEventHandler(this.OnDestroyEvent); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.fontbutton1.FontSet += new System.EventHandler(this.OnFontbutton1FontSet); this.colwidth_spin.ValueChanged += new System.EventHandler(this.OnColwidthSpinValueChanged); this.colgran_spin.ValueChanged += new System.EventHandler(this.OnColgranSpinValueChanged); this.colauto_rb.GroupChanged += new System.EventHandler(this.OnColautoRbGroupChanged); this.addrbasehex_rb.GroupChanged += new System.EventHandler(this.OnAddrbasehexRbGroupChanged); this.addrwidth_spin.ValueChanged += new System.EventHandler(this.OnAddrwidthSpinValueChanged); this.cb_stopbits1.EditingDone += new System.EventHandler(this.OnCbStopbits1EditingDone); this.cb_stopbits1.Changed += new System.EventHandler(this.OnCbStopbits1EditingDone); this.cb_pn1.Changed += new System.EventHandler(this.OnCbPn1EditingDone); this.cb_parity1.EditingDone += new System.EventHandler(this.OnCbParity1EditingDone); this.cb_parity1.Changed += new System.EventHandler(this.OnCbParity1EditingDone); this.cb_databits1.EditingDone += new System.EventHandler(this.OnCbDatabits1EditingDone); this.cb_databits1.Changed += new System.EventHandler(this.OnCbDatabits1EditingDone); this.cb_baudrate1.Changed += new System.EventHandler(this.OnCbBaudrate1EditingDone); this.checkbutton1.Released += new System.EventHandler(this.OnCheckbutton1Released); this.colorbutton1.ColorSet += new System.EventHandler(this.OnColorbutton1ColorSet); this.cb_stopbits2.EditingDone += new System.EventHandler(this.OnCbStopbits2EditingDone); this.cb_stopbits2.Changed += new System.EventHandler(this.OnCbStopbits2EditingDone); this.cb_pn2.EditingDone += new System.EventHandler(this.OnCbPn2EditingDone); this.cb_pn2.Changed += new System.EventHandler(this.OnCbPn2EditingDone); this.cb_parity2.EditingDone += new System.EventHandler(this.OnCbParity2EditingDone); this.cb_parity2.Changed += new System.EventHandler(this.OnCbParity2EditingDone); this.cb_databits2.EditingDone += new System.EventHandler(this.OnCbDatabits2EditingDone); this.cb_databits2.Changed += new System.EventHandler(this.OnCbDatabits2EditingDone); this.cb_baudrate2.EditingDone += new System.EventHandler(this.OnCbBaudrate2EditingDone); this.cb_baudrate2.Changed += new System.EventHandler(this.OnCbBaudrate2EditingDone); this.checkbutton2.Released += new System.EventHandler(this.OnCheckbutton2Released); this.colorbutton2.ColorSet += new System.EventHandler(this.OnColorbutton2ColorSet); this.ok_button.Released += new System.EventHandler(this.OnOKButtonReleased); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MonoDevelop.FSharp.Project.CompilerOptionsPanelWidget Stetic.BinContainer.Attach(this); this.Name = "MonoDevelop.FSharp.Project.CompilerOptionsPanelWidget"; // Container child MonoDevelop.FSharp.Project.CompilerOptionsPanelWidget.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.label82 = new Gtk.Label(); this.label82.Name = "label82"; this.label82.Xalign = 0F; this.label82.LabelProp = Mono.Unix.Catalog.GetString("<b>Code Generation</b>"); this.label82.UseMarkup = true; this.vbox1.Add(this.label82); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.label82])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox5 = new Gtk.HBox(); this.hbox5.Name = "hbox5"; this.hbox5.Spacing = 6; // Container child hbox5.Gtk.Box+BoxChild this.label76 = new Gtk.Label(); this.label76.WidthRequest = 18; this.label76.Name = "label76"; this.hbox5.Add(this.label76); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox5[this.label76])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.table7 = new Gtk.Table(((uint)(5)), ((uint)(2)), false); this.table7.Name = "table7"; this.table7.RowSpacing = ((uint)(6)); this.table7.ColumnSpacing = ((uint)(6)); // Container child table7.Gtk.Table+TableChild this.codepageEntry = Gtk.ComboBoxEntry.NewText(); this.codepageEntry.Name = "codepageEntry"; this.table7.Add(this.codepageEntry); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table7[this.codepageEntry])); w3.TopAttach = ((uint)(3)); w3.BottomAttach = ((uint)(4)); w3.LeftAttach = ((uint)(1)); w3.RightAttach = ((uint)(2)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.hbox57 = new Gtk.HBox(); this.hbox57.Name = "hbox57"; // Container child hbox57.Gtk.Box+BoxChild this.compileTargetCombo = new Gtk.ComboBox(); this.compileTargetCombo.Name = "compileTargetCombo"; this.hbox57.Add(this.compileTargetCombo); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox57[this.compileTargetCombo])); w4.Position = 0; w4.Expand = false; w4.Fill = false; this.table7.Add(this.hbox57); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table7[this.hbox57])); w5.LeftAttach = ((uint)(1)); w5.RightAttach = ((uint)(2)); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.iconEntry = new MonoDevelop.Components.FileEntry(); this.iconEntry.Name = "iconEntry"; this.table7.Add(this.iconEntry); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table7[this.iconEntry])); w6.TopAttach = ((uint)(2)); w6.BottomAttach = ((uint)(3)); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(2)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Compiler Code Page:"); this.table7.Add(this.label1); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table7[this.label1])); w7.TopAttach = ((uint)(3)); w7.BottomAttach = ((uint)(4)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.Xalign = 0F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Win32 Icon:"); this.table7.Add(this.label3); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table7[this.label3])); w8.TopAttach = ((uint)(2)); w8.BottomAttach = ((uint)(3)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.label86 = new Gtk.Label(); this.label86.Name = "label86"; this.label86.Xalign = 0F; this.label86.LabelProp = Mono.Unix.Catalog.GetString("Compile _Target:"); this.label86.UseUnderline = true; this.table7.Add(this.label86); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table7[this.label86])); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(0)); // Container child table7.Gtk.Table+TableChild this.label88 = new Gtk.Label(); this.label88.Name = "label88"; this.label88.Xalign = 0F; this.label88.LabelProp = Mono.Unix.Catalog.GetString("_Main Class:"); this.label88.UseUnderline = true; this.table7.Add(this.label88); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table7[this.label88])); w10.TopAttach = ((uint)(1)); w10.BottomAttach = ((uint)(2)); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(0)); // Container child table7.Gtk.Table+TableChild this.mainClassEntry = new Gtk.ComboBoxEntry(); this.mainClassEntry.Name = "mainClassEntry"; this.table7.Add(this.mainClassEntry); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table7[this.mainClassEntry])); w11.TopAttach = ((uint)(1)); w11.BottomAttach = ((uint)(2)); w11.LeftAttach = ((uint)(1)); w11.RightAttach = ((uint)(2)); w11.YOptions = ((Gtk.AttachOptions)(4)); this.vbox2.Add(this.table7); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox2[this.table7])); w12.Position = 0; this.hbox5.Add(this.vbox2); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox5[this.vbox2])); w13.Position = 1; this.vbox1.Add(this.hbox5); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox5])); w14.Position = 1; w14.Expand = false; // Container child vbox1.Gtk.Box+BoxChild this.label83 = new Gtk.Label(); this.label83.Name = "label83"; this.label83.Xalign = 0F; this.label83.LabelProp = Mono.Unix.Catalog.GetString("<b>Language Options</b>"); this.label83.UseMarkup = true; this.vbox1.Add(this.label83); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox1[this.label83])); w15.Position = 2; w15.Expand = false; w15.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.label75 = new Gtk.Label(); this.label75.WidthRequest = 18; this.label75.Name = "label75"; this.vbox1.Add(this.label75); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox1[this.label75])); w16.PackType = ((Gtk.PackType)(1)); w16.Position = 3; // Container child vbox1.Gtk.Box+BoxChild this.hbox7 = new Gtk.HBox(); this.hbox7.Name = "hbox7"; this.hbox7.Spacing = 6; // Container child hbox7.Gtk.Box+BoxChild this.label74 = new Gtk.Label(); this.label74.WidthRequest = 18; this.label74.Name = "label74"; this.hbox7.Add(this.label74); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox7[this.label74])); w17.Position = 0; w17.Expand = false; w17.Fill = false; // Container child hbox7.Gtk.Box+BoxChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.table2 = new Gtk.Table(((uint)(1)), ((uint)(2)), false); this.table2.Name = "table2"; this.table2.RowSpacing = ((uint)(6)); this.table2.ColumnSpacing = ((uint)(6)); // Container child table2.Gtk.Table+TableChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 0F; this.label2.LabelProp = Mono.Unix.Catalog.GetString("C# Language Version:"); this.table2.Add(this.label2); Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table2[this.label2])); w18.XOptions = ((Gtk.AttachOptions)(4)); w18.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.langVerCombo = Gtk.ComboBox.NewText(); this.langVerCombo.Name = "langVerCombo"; this.table2.Add(this.langVerCombo); Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table2[this.langVerCombo])); w19.LeftAttach = ((uint)(1)); w19.RightAttach = ((uint)(2)); w19.XOptions = ((Gtk.AttachOptions)(4)); w19.YOptions = ((Gtk.AttachOptions)(4)); this.vbox3.Add(this.table2); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox3[this.table2])); w20.Position = 0; w20.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.allowUnsafeCodeCheckButton = new Gtk.CheckButton(); this.allowUnsafeCodeCheckButton.CanFocus = true; this.allowUnsafeCodeCheckButton.Name = "allowUnsafeCodeCheckButton"; this.allowUnsafeCodeCheckButton.Label = Mono.Unix.Catalog.GetString("Allow '_unsafe' code"); this.allowUnsafeCodeCheckButton.DrawIndicator = true; this.allowUnsafeCodeCheckButton.UseUnderline = true; this.vbox3.Add(this.allowUnsafeCodeCheckButton); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox3[this.allowUnsafeCodeCheckButton])); w21.Position = 1; w21.Expand = false; w21.Fill = false; this.hbox7.Add(this.vbox3); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox7[this.vbox3])); w22.Position = 1; this.vbox1.Add(this.hbox7); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox7])); w23.PackType = ((Gtk.PackType)(1)); w23.Position = 4; w23.Expand = false; w23.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.label88.MnemonicWidget = this.mainClassEntry; this.Show(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); this.XFileAction = new Gtk.Action("XFileAction", Mono.Unix.Catalog.GetString("XFile"), null, null); this.XFileAction.ShortLabel = Mono.Unix.Catalog.GetString("File"); w1.Add(this.XFileAction, null); this.GimmeHelpAction = new Gtk.Action("GimmeHelpAction", Mono.Unix.Catalog.GetString("GimmeHelp"), null, null); this.GimmeHelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help"); w1.Add(this.GimmeHelpAction, null); this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("About"), null, null); this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("About"); w1.Add(this.AboutAction, null); this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("Quit"), null, null); this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("Quit"); w1.Add(this.QuitAction, null); this.SomeEditMenuAction = new Gtk.Action("SomeEditMenuAction", Mono.Unix.Catalog.GetString("SomeEditMenu"), null, null); this.SomeEditMenuAction.ShortLabel = Mono.Unix.Catalog.GetString("SomeEditMenu"); w1.Add(this.SomeEditMenuAction, null); this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("New"), null, null); this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("New"); w1.Add(this.NewAction, null); this.Action1 = new Gtk.Action("Action1", null, null, null); w1.Add(this.Action1, null); this.indexAction = new Gtk.Action("indexAction", null, Mono.Unix.Catalog.GetString("tooltipText"), "gtk-index"); w1.Add(this.indexAction, null); this.cdromAction = new Gtk.Action("cdromAction", null, null, "gtk-cdrom"); w1.Add(this.cdromAction, null); this.RadioInToolBarTest1Action = new Gtk.RadioAction("RadioInToolBarTest1Action", Mono.Unix.Catalog.GetString("RadioInToolBarTest1"), null, null, 0); this.RadioInToolBarTest1Action.Group = new GLib.SList(System.IntPtr.Zero); this.RadioInToolBarTest1Action.ShortLabel = Mono.Unix.Catalog.GetString("RadioInToolBarTest1"); w1.Add(this.RadioInToolBarTest1Action, null); this.RadioInToolBarTest2Action = new Gtk.RadioAction("RadioInToolBarTest2Action", Mono.Unix.Catalog.GetString("RadioInToolBarTest2"), null, null, 0); this.RadioInToolBarTest2Action.Group = this.RadioInToolBarTest1Action.Group; this.RadioInToolBarTest2Action.ShortLabel = Mono.Unix.Catalog.GetString("RadioInToolBarTest2"); w1.Add(this.RadioInToolBarTest2Action, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("MainWindow"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='XFileAction' action='XFileAction'><menuitem name='NewAction' action='NewAction'/><separator/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='SomeEditMenuAction' action='SomeEditMenuAction'/><menu name='GimmeHelpAction' action='GimmeHelpAction'><menuitem name='AboutAction' action='AboutAction'/></menu></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox1.Add(this.menubar1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='indexAction' action='indexAction'/><toolitem name='RadioInToolBarTest1Action' action='RadioInToolBarTest1Action'/><toolitem name='RadioInToolBarTest2Action' action='RadioInToolBarTest2Action'/></toolbar></ui>"); this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1"))); this.toolbar1.Name = "toolbar1"; this.toolbar1.ShowArrow = false; this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.vbox1.Add(this.toolbar1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.notebook1 = new Gtk.Notebook(); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 0; // Container child notebook1.Gtk.Notebook+NotebookChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.treeview2 = new Gtk.TreeView(); this.treeview2.CanFocus = true; this.treeview2.Name = "treeview2"; this.GtkScrolledWindow.Add(this.treeview2); this.hbox1.Add(this.GtkScrolledWindow); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow])); w5.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(5)), ((uint)(3)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.btnTest1 = new Gtk.Button(); this.btnTest1.CanFocus = true; this.btnTest1.Name = "btnTest1"; this.btnTest1.UseUnderline = true; this.btnTest1.Label = Mono.Unix.Catalog.GetString("hey ya"); this.table1.Add(this.btnTest1); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.btnTest1])); w6.LeftAttach = ((uint)(2)); w6.RightAttach = ((uint)(3)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.btnWithImg = new Gtk.Button(); this.btnWithImg.CanFocus = true; this.btnWithImg.Name = "btnWithImg"; this.btnWithImg.UseUnderline = true; this.btnWithImg.Label = Mono.Unix.Catalog.GetString("IMG"); this.table1.Add(this.btnWithImg); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.btnWithImg])); w7.TopAttach = ((uint)(3)); w7.BottomAttach = ((uint)(4)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.cbeTest = Gtk.ComboBoxEntry.NewText(); this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("First element")); this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("Second element")); this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("Third element")); this.cbeTest.Name = "cbeTest"; this.table1.Add(this.cbeTest); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.cbeTest])); w8.TopAttach = ((uint)(1)); w8.BottomAttach = ((uint)(2)); w8.LeftAttach = ((uint)(2)); w8.RightAttach = ((uint)(3)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.cbxTest = Gtk.ComboBox.NewText(); this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("FirstItem")); this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("SecondItem")); this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("LastItem")); this.cbxTest.Name = "cbxTest"; this.table1.Add(this.cbxTest); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.cbxTest])); w9.TopAttach = ((uint)(1)); w9.BottomAttach = ((uint)(2)); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.checkbutton1 = new Gtk.CheckButton(); this.checkbutton1.CanFocus = true; this.checkbutton1.Name = "checkbutton1"; this.checkbutton1.Label = Mono.Unix.Catalog.GetString("checkbutton1"); this.checkbutton1.DrawIndicator = true; this.checkbutton1.UseUnderline = true; this.table1.Add(this.checkbutton1); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.checkbutton1])); w10.TopAttach = ((uint)(2)); w10.BottomAttach = ((uint)(3)); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.chkTest = new Gtk.CheckButton(); this.chkTest.CanFocus = true; this.chkTest.Name = "chkTest"; this.chkTest.Label = Mono.Unix.Catalog.GetString("checkbutton1"); this.chkTest.DrawIndicator = true; this.chkTest.UseUnderline = true; this.table1.Add(this.chkTest); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.chkTest])); w11.TopAttach = ((uint)(1)); w11.BottomAttach = ((uint)(2)); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.lblTest1 = new Gtk.Label(); this.lblTest1.Name = "lblTest1"; this.lblTest1.LabelProp = Mono.Unix.Catalog.GetString("This is a test message\nin a label"); this.table1.Add(this.lblTest1); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.lblTest1])); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.maskedEntry = new Gtk.Entry(); this.maskedEntry.CanFocus = true; this.maskedEntry.Name = "maskedEntry"; this.maskedEntry.IsEditable = true; this.maskedEntry.InvisibleChar = '●'; this.table1.Add(this.maskedEntry); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.maskedEntry])); w13.TopAttach = ((uint)(4)); w13.BottomAttach = ((uint)(5)); w13.LeftAttach = ((uint)(2)); w13.RightAttach = ((uint)(3)); w13.XOptions = ((Gtk.AttachOptions)(4)); w13.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.radiobutton1 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("radiobutton1")); this.radiobutton1.CanFocus = true; this.radiobutton1.Name = "radiobutton1"; this.radiobutton1.DrawIndicator = true; this.radiobutton1.UseUnderline = true; this.radiobutton1.Group = new GLib.SList(System.IntPtr.Zero); this.table1.Add(this.radiobutton1); Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table1[this.radiobutton1])); w14.TopAttach = ((uint)(3)); w14.BottomAttach = ((uint)(4)); w14.LeftAttach = ((uint)(1)); w14.RightAttach = ((uint)(2)); w14.XOptions = ((Gtk.AttachOptions)(4)); w14.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.radiobutton2 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("radiobutton2")); this.radiobutton2.CanFocus = true; this.radiobutton2.Name = "radiobutton2"; this.radiobutton2.DrawIndicator = true; this.radiobutton2.UseUnderline = true; this.radiobutton2.Group = this.radiobutton1.Group; this.table1.Add(this.radiobutton2); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.radiobutton2])); w15.TopAttach = ((uint)(3)); w15.BottomAttach = ((uint)(4)); w15.LeftAttach = ((uint)(2)); w15.RightAttach = ((uint)(3)); w15.XOptions = ((Gtk.AttachOptions)(4)); w15.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.radTest1 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("rad Opt 0")); this.radTest1.CanFocus = true; this.radTest1.Name = "radTest1"; this.radTest1.DrawIndicator = true; this.radTest1.UseUnderline = true; this.radTest1.Group = new GLib.SList(System.IntPtr.Zero); this.table1.Add(this.radTest1); Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.radTest1])); w16.TopAttach = ((uint)(2)); w16.BottomAttach = ((uint)(3)); w16.LeftAttach = ((uint)(1)); w16.RightAttach = ((uint)(2)); w16.XOptions = ((Gtk.AttachOptions)(4)); w16.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.radTest2 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("rad Opt 1")); this.radTest2.CanFocus = true; this.radTest2.Name = "radTest2"; this.radTest2.DrawIndicator = true; this.radTest2.UseUnderline = true; this.radTest2.Group = this.radTest1.Group; this.table1.Add(this.radTest2); Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table1[this.radTest2])); w17.TopAttach = ((uint)(2)); w17.BottomAttach = ((uint)(3)); w17.LeftAttach = ((uint)(2)); w17.RightAttach = ((uint)(3)); w17.XOptions = ((Gtk.AttachOptions)(4)); w17.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.spinbuttonTest1 = new Gtk.SpinButton(0, 100, 1); this.spinbuttonTest1.CanFocus = true; this.spinbuttonTest1.Name = "spinbuttonTest1"; this.spinbuttonTest1.Adjustment.PageIncrement = 10; this.spinbuttonTest1.ClimbRate = 1; this.spinbuttonTest1.Numeric = true; this.table1.Add(this.spinbuttonTest1); Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.spinbuttonTest1])); w18.TopAttach = ((uint)(4)); w18.BottomAttach = ((uint)(5)); w18.XOptions = ((Gtk.AttachOptions)(4)); w18.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.txtEntry = new Gtk.Entry(); this.txtEntry.CanFocus = true; this.txtEntry.Name = "txtEntry"; this.txtEntry.Text = Mono.Unix.Catalog.GetString("test text"); this.txtEntry.IsEditable = true; this.txtEntry.InvisibleChar = '●'; this.table1.Add(this.txtEntry); Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.txtEntry])); w19.LeftAttach = ((uint)(1)); w19.RightAttach = ((uint)(2)); w19.XOptions = ((Gtk.AttachOptions)(4)); w19.YOptions = ((Gtk.AttachOptions)(4)); this.hbox1.Add(this.table1); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox1[this.table1])); w20.Position = 1; w20.Expand = false; w20.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.vscrollbar1 = new Gtk.VScrollbar(null); this.vscrollbar1.Name = "vscrollbar1"; this.vscrollbar1.Adjustment.Upper = 100; this.vscrollbar1.Adjustment.PageIncrement = 10; this.vscrollbar1.Adjustment.PageSize = 10; this.vscrollbar1.Adjustment.StepIncrement = 1; this.hbox1.Add(this.vscrollbar1); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox1[this.vscrollbar1])); w21.Position = 2; w21.Expand = false; w21.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.imgTest1 = new Gtk.Image(); this.imgTest1.Name = "imgTest1"; this.hbox1.Add(this.imgTest1); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox1[this.imgTest1])); w22.Position = 3; w22.Expand = false; w22.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.imgTest2 = new Gtk.Image(); this.imgTest2.Name = "imgTest2"; this.hbox1.Add(this.imgTest2); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox1[this.imgTest2])); w23.Position = 5; w23.Expand = false; w23.Fill = false; this.notebook1.Add(this.hbox1); // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("page1"); this.notebook1.SetTabLabel(this.hbox1, this.label1); this.label1.ShowAll(); // Container child notebook1.Gtk.Notebook+NotebookChild this.calendar1 = new Gtk.Calendar(); this.calendar1.CanFocus = true; this.calendar1.Name = "calendar1"; this.calendar1.DisplayOptions = ((Gtk.CalendarDisplayOptions)(3)); this.notebook1.Add(this.calendar1); Gtk.Notebook.NotebookChild w25 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.calendar1])); w25.Position = 1; // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("page2"); this.notebook1.SetTabLabel(this.calendar1, this.label2); this.label2.ShowAll(); this.vbox1.Add(this.notebook1); Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook1])); w26.Position = 2; w26.Expand = false; w26.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.progressbar1 = new Gtk.ProgressBar(); this.progressbar1.Name = "progressbar1"; this.vbox1.Add(this.progressbar1); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox1[this.progressbar1])); w27.Position = 3; w27.Expand = false; w27.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hscrollbar1 = new Gtk.HScrollbar(null); this.hscrollbar1.Name = "hscrollbar1"; this.hscrollbar1.Adjustment.Upper = 100; this.hscrollbar1.Adjustment.PageIncrement = 10; this.hscrollbar1.Adjustment.PageSize = 10; this.hscrollbar1.Adjustment.StepIncrement = 1; this.hscrollbar1.Adjustment.Value = 9.28317766722556; this.vbox1.Add(this.hscrollbar1); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox1[this.hscrollbar1])); w28.Position = 4; w28.Expand = false; w28.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.hpaned1 = new Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 19; // Container child hpaned1.Gtk.Paned+PanedChild this.vscale1 = new Gtk.VScale(null); this.vscale1.CanFocus = true; this.vscale1.Name = "vscale1"; this.vscale1.Adjustment.Upper = 100; this.vscale1.Adjustment.PageIncrement = 10; this.vscale1.Adjustment.StepIncrement = 1; this.vscale1.DrawValue = true; this.vscale1.Digits = 0; this.vscale1.ValuePos = ((Gtk.PositionType)(2)); this.hpaned1.Add(this.vscale1); Gtk.Paned.PanedChild w29 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vscale1])); w29.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild this.GtkScrolledWindow2 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow2.Name = "GtkScrolledWindow2"; this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild this.nodeview1 = new Gtk.NodeView(); this.nodeview1.CanFocus = true; this.nodeview1.Name = "nodeview1"; this.GtkScrolledWindow2.Add(this.nodeview1); this.hpaned1.Add(this.GtkScrolledWindow2); this.hbox2.Add(this.hpaned1); Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.hbox2[this.hpaned1])); w32.Position = 0; // Container child hbox2.Gtk.Box+BoxChild this.GtkScrolledWindow1 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild this.txtViewTest = new Gtk.TextView(); this.txtViewTest.CanFocus = true; this.txtViewTest.Name = "txtViewTest"; this.GtkScrolledWindow1.Add(this.txtViewTest); this.hbox2.Add(this.GtkScrolledWindow1); Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.hbox2[this.GtkScrolledWindow1])); w34.Position = 1; // Container child hbox2.Gtk.Box+BoxChild this.frame1 = new Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame1.Gtk.Container+ContainerChild this.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(12)); this.frame1.Add(this.GtkAlignment); this.GtkLabel13 = new Gtk.Label(); this.GtkLabel13.Name = "GtkLabel13"; this.GtkLabel13.LabelProp = Mono.Unix.Catalog.GetString("<b>frame1</b>"); this.GtkLabel13.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel13; this.hbox2.Add(this.frame1); Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.hbox2[this.frame1])); w36.Position = 2; w36.Expand = false; w36.Fill = false; this.vbox1.Add(this.hbox2); Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2])); w37.Position = 5; // Container child vbox1.Gtk.Box+BoxChild this.statusbar1 = new Gtk.Statusbar(); this.statusbar1.Name = "statusbar1"; this.statusbar1.Spacing = 6; this.vbox1.Add(this.statusbar1); Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1])); w38.Position = 7; w38.Expand = false; w38.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 757; this.DefaultHeight = 516; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog this.Name = "MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog"; this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.WindowPosition = ((Gtk.WindowPosition)(1)); this.SkipTaskbarHint = true; this.HasSeparator = false; // Internal child MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.notebook = new Gtk.Notebook(); this.notebook.CanFocus = true; this.notebook.Name = "notebook"; this.notebook.CurrentPage = 0; // Container child notebook.Gtk.Notebook+NotebookChild this.tableGeneral = new Gtk.Table(((uint)(7)), ((uint)(2)), false); this.tableGeneral.Name = "tableGeneral"; this.tableGeneral.RowSpacing = ((uint)(6)); this.tableGeneral.ColumnSpacing = ((uint)(6)); this.tableGeneral.BorderWidth = ((uint)(6)); // Container child tableGeneral.Gtk.Table+TableChild this.comboProvider = new Gtk.ComboBox(); this.comboProvider.Name = "comboProvider"; this.tableGeneral.Add(this.comboProvider); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.tableGeneral[this.comboProvider])); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.entryName = new Gtk.Entry(); this.entryName.CanDefault = true; this.entryName.CanFocus = true; this.entryName.Name = "entryName"; this.entryName.IsEditable = true; this.entryName.ActivatesDefault = true; this.entryName.InvisibleChar = '●'; this.tableGeneral.Add(this.entryName); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.tableGeneral[this.entryName])); w3.TopAttach = ((uint)(1)); w3.BottomAttach = ((uint)(2)); w3.LeftAttach = ((uint)(1)); w3.RightAttach = ((uint)(2)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.entryServer = new Gtk.Entry(); this.entryServer.CanFocus = true; this.entryServer.Name = "entryServer"; this.entryServer.IsEditable = true; this.entryServer.InvisibleChar = '●'; this.tableGeneral.Add(this.entryServer); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.tableGeneral[this.entryServer])); w4.TopAttach = ((uint)(2)); w4.BottomAttach = ((uint)(3)); w4.LeftAttach = ((uint)(1)); w4.RightAttach = ((uint)(2)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.entryUsername = new Gtk.Entry(); this.entryUsername.CanFocus = true; this.entryUsername.Name = "entryUsername"; this.entryUsername.IsEditable = true; this.entryUsername.InvisibleChar = '●'; this.tableGeneral.Add(this.entryUsername); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.tableGeneral[this.entryUsername])); w5.TopAttach = ((uint)(4)); w5.BottomAttach = ((uint)(5)); w5.LeftAttach = ((uint)(1)); w5.RightAttach = ((uint)(2)); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.hboxDatabase = new Gtk.HBox(); this.hboxDatabase.Name = "hboxDatabase"; this.hboxDatabase.Spacing = 6; // Container child hboxDatabase.Gtk.Box+BoxChild this.comboDatabase = Gtk.ComboBoxEntry.NewText(); this.comboDatabase.Name = "comboDatabase"; this.hboxDatabase.Add(this.comboDatabase); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hboxDatabase[this.comboDatabase])); w6.Position = 0; // Container child hboxDatabase.Gtk.Box+BoxChild this.buttonRefresh = new Gtk.Button(); this.buttonRefresh.CanFocus = true; this.buttonRefresh.Name = "buttonRefresh"; this.buttonRefresh.UseStock = true; this.buttonRefresh.UseUnderline = true; this.buttonRefresh.Label = "gtk-refresh"; this.hboxDatabase.Add(this.buttonRefresh); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hboxDatabase[this.buttonRefresh])); w7.Position = 1; w7.Expand = false; w7.Fill = false; // Container child hboxDatabase.Gtk.Box+BoxChild this.buttonOpen = new Gtk.Button(); this.buttonOpen.CanFocus = true; this.buttonOpen.Name = "buttonOpen"; this.buttonOpen.UseStock = true; this.buttonOpen.UseUnderline = true; this.buttonOpen.Label = "gtk-open"; this.hboxDatabase.Add(this.buttonOpen); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hboxDatabase[this.buttonOpen])); w8.Position = 2; w8.Expand = false; w8.Fill = false; this.tableGeneral.Add(this.hboxDatabase); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.tableGeneral[this.hboxDatabase])); w9.TopAttach = ((uint)(6)); w9.BottomAttach = ((uint)(7)); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.hboxPassword = new Gtk.HBox(); this.hboxPassword.Name = "hboxPassword"; this.hboxPassword.Spacing = 6; // Container child hboxPassword.Gtk.Box+BoxChild this.entryPassword = new Gtk.Entry(); this.entryPassword.CanFocus = true; this.entryPassword.Name = "entryPassword"; this.entryPassword.IsEditable = true; this.entryPassword.Visibility = false; this.entryPassword.InvisibleChar = '●'; this.hboxPassword.Add(this.entryPassword); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hboxPassword[this.entryPassword])); w10.Position = 0; // Container child hboxPassword.Gtk.Box+BoxChild this.checkSavePassword = new Gtk.CheckButton(); this.checkSavePassword.CanFocus = true; this.checkSavePassword.Name = "checkSavePassword"; this.checkSavePassword.Label = Mono.Unix.Catalog.GetString("Save Password"); this.checkSavePassword.Active = true; this.checkSavePassword.DrawIndicator = true; this.checkSavePassword.UseUnderline = true; this.hboxPassword.Add(this.checkSavePassword); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hboxPassword[this.checkSavePassword])); w11.Position = 1; w11.Expand = false; this.tableGeneral.Add(this.hboxPassword); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.tableGeneral[this.hboxPassword])); w12.TopAttach = ((uint)(5)); w12.BottomAttach = ((uint)(6)); w12.LeftAttach = ((uint)(1)); w12.RightAttach = ((uint)(2)); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.Xalign = 0F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Type"); this.tableGeneral.Add(this.label3); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label3])); w13.XOptions = ((Gtk.AttachOptions)(4)); w13.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.Xalign = 0F; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Name"); this.tableGeneral.Add(this.label4); Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label4])); w14.TopAttach = ((uint)(1)); w14.BottomAttach = ((uint)(2)); w14.XOptions = ((Gtk.AttachOptions)(4)); w14.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.Xalign = 0F; this.label5.LabelProp = Mono.Unix.Catalog.GetString("Server"); this.tableGeneral.Add(this.label5); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label5])); w15.TopAttach = ((uint)(2)); w15.BottomAttach = ((uint)(3)); w15.XOptions = ((Gtk.AttachOptions)(4)); w15.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.Xalign = 0F; this.label6.LabelProp = Mono.Unix.Catalog.GetString("Port"); this.tableGeneral.Add(this.label6); Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label6])); w16.TopAttach = ((uint)(3)); w16.BottomAttach = ((uint)(4)); w16.XOptions = ((Gtk.AttachOptions)(4)); w16.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.label7 = new Gtk.Label(); this.label7.Name = "label7"; this.label7.Xalign = 0F; this.label7.LabelProp = Mono.Unix.Catalog.GetString("Username"); this.tableGeneral.Add(this.label7); Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label7])); w17.TopAttach = ((uint)(4)); w17.BottomAttach = ((uint)(5)); w17.XOptions = ((Gtk.AttachOptions)(4)); w17.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.label8 = new Gtk.Label(); this.label8.Name = "label8"; this.label8.Xalign = 0F; this.label8.LabelProp = Mono.Unix.Catalog.GetString("Password"); this.tableGeneral.Add(this.label8); Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label8])); w18.TopAttach = ((uint)(5)); w18.BottomAttach = ((uint)(6)); w18.XOptions = ((Gtk.AttachOptions)(4)); w18.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.label9 = new Gtk.Label(); this.label9.Name = "label9"; this.label9.Xalign = 0F; this.label9.LabelProp = Mono.Unix.Catalog.GetString("Database"); this.tableGeneral.Add(this.label9); Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label9])); w19.TopAttach = ((uint)(6)); w19.BottomAttach = ((uint)(7)); w19.XOptions = ((Gtk.AttachOptions)(4)); w19.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.spinPort = new Gtk.SpinButton(1, 65535, 1); this.spinPort.CanFocus = true; this.spinPort.Name = "spinPort"; this.spinPort.Adjustment.PageIncrement = 10; this.spinPort.ClimbRate = 1; this.spinPort.Numeric = true; this.spinPort.Value = 1; this.tableGeneral.Add(this.spinPort); Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(this.tableGeneral[this.spinPort])); w20.TopAttach = ((uint)(3)); w20.BottomAttach = ((uint)(4)); w20.LeftAttach = ((uint)(1)); w20.RightAttach = ((uint)(2)); w20.XOptions = ((Gtk.AttachOptions)(4)); w20.YOptions = ((Gtk.AttachOptions)(4)); this.notebook.Add(this.tableGeneral); Gtk.Notebook.NotebookChild w21 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.tableGeneral])); w21.TabExpand = false; // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("General"); this.notebook.SetTabLabel(this.tableGeneral, this.label1); this.label1.ShowAll(); // Container child notebook.Gtk.Notebook+NotebookChild this.tableAdvanced = new Gtk.Table(((uint)(4)), ((uint)(2)), false); this.tableAdvanced.Name = "tableAdvanced"; this.tableAdvanced.RowSpacing = ((uint)(6)); this.tableAdvanced.ColumnSpacing = ((uint)(6)); this.tableAdvanced.BorderWidth = ((uint)(6)); // Container child tableAdvanced.Gtk.Table+TableChild this.checkCustom = new Gtk.CheckButton(); this.checkCustom.CanFocus = true; this.checkCustom.Name = "checkCustom"; this.checkCustom.Label = Mono.Unix.Catalog.GetString("Use custom connection string"); this.checkCustom.DrawIndicator = true; this.checkCustom.UseUnderline = true; this.tableAdvanced.Add(this.checkCustom); Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.checkCustom])); w22.TopAttach = ((uint)(2)); w22.BottomAttach = ((uint)(3)); w22.RightAttach = ((uint)(2)); w22.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableAdvanced.Gtk.Table+TableChild this.label10 = new Gtk.Label(); this.label10.Name = "label10"; this.label10.Xalign = 0F; this.label10.LabelProp = Mono.Unix.Catalog.GetString("Min Pool Size"); this.tableAdvanced.Add(this.label10); Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.label10])); w23.XOptions = ((Gtk.AttachOptions)(4)); w23.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableAdvanced.Gtk.Table+TableChild this.label11 = new Gtk.Label(); this.label11.Name = "label11"; this.label11.Xalign = 0F; this.label11.LabelProp = Mono.Unix.Catalog.GetString("Max Pool Size"); this.tableAdvanced.Add(this.label11); Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.label11])); w24.TopAttach = ((uint)(1)); w24.BottomAttach = ((uint)(2)); w24.XOptions = ((Gtk.AttachOptions)(4)); w24.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableAdvanced.Gtk.Table+TableChild this.scrolledwindow = new Gtk.ScrolledWindow(); this.scrolledwindow.Sensitive = false; this.scrolledwindow.CanFocus = true; this.scrolledwindow.Name = "scrolledwindow"; this.scrolledwindow.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow.Gtk.Container+ContainerChild this.textConnectionString = new Gtk.TextView(); this.textConnectionString.CanFocus = true; this.textConnectionString.Name = "textConnectionString"; this.scrolledwindow.Add(this.textConnectionString); this.tableAdvanced.Add(this.scrolledwindow); Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.scrolledwindow])); w26.TopAttach = ((uint)(3)); w26.BottomAttach = ((uint)(4)); w26.RightAttach = ((uint)(2)); w26.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableAdvanced.Gtk.Table+TableChild this.spinMaxPoolSize = new Gtk.SpinButton(1, 100, 1); this.spinMaxPoolSize.CanFocus = true; this.spinMaxPoolSize.Name = "spinMaxPoolSize"; this.spinMaxPoolSize.Adjustment.PageIncrement = 10; this.spinMaxPoolSize.ClimbRate = 1; this.spinMaxPoolSize.Numeric = true; this.spinMaxPoolSize.Value = 5; this.tableAdvanced.Add(this.spinMaxPoolSize); Gtk.Table.TableChild w27 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.spinMaxPoolSize])); w27.TopAttach = ((uint)(1)); w27.BottomAttach = ((uint)(2)); w27.LeftAttach = ((uint)(1)); w27.RightAttach = ((uint)(2)); w27.XOptions = ((Gtk.AttachOptions)(4)); w27.YOptions = ((Gtk.AttachOptions)(4)); // Container child tableAdvanced.Gtk.Table+TableChild this.spinMinPoolSize = new Gtk.SpinButton(1, 100, 1); this.spinMinPoolSize.CanFocus = true; this.spinMinPoolSize.Name = "spinMinPoolSize"; this.spinMinPoolSize.Adjustment.PageIncrement = 10; this.spinMinPoolSize.ClimbRate = 1; this.spinMinPoolSize.Numeric = true; this.spinMinPoolSize.Value = 1; this.tableAdvanced.Add(this.spinMinPoolSize); Gtk.Table.TableChild w28 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.spinMinPoolSize])); w28.LeftAttach = ((uint)(1)); w28.RightAttach = ((uint)(2)); w28.XOptions = ((Gtk.AttachOptions)(4)); w28.YOptions = ((Gtk.AttachOptions)(4)); this.notebook.Add(this.tableAdvanced); Gtk.Notebook.NotebookChild w29 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.tableAdvanced])); w29.Position = 1; w29.TabExpand = false; // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Advanced"); this.notebook.SetTabLabel(this.tableAdvanced, this.label2); this.label2.ShowAll(); w1.Add(this.notebook); Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(w1[this.notebook])); w30.Position = 0; w30.Expand = false; w30.Fill = false; // Internal child MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog.ActionArea Gtk.HButtonBox w31 = this.ActionArea; w31.Name = "dialog1_ActionArea"; w31.Spacing = 6; w31.BorderWidth = ((uint)(5)); w31.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 w32 = ((Gtk.ButtonBox.ButtonBoxChild)(w31[this.buttonCancel])); w32.Expand = false; w32.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); 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 w33 = ((Gtk.ButtonBox.ButtonBoxChild)(w31[this.buttonOk])); w33.Position = 1; w33.Expand = false; w33.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 606; this.DefaultHeight = 351; this.entryName.HasDefault = true; this.Show(); this.spinPort.Changed += new System.EventHandler(this.PortChanged); this.entryPassword.Changed += new System.EventHandler(this.PasswordChanged); this.buttonRefresh.Clicked += new System.EventHandler(this.RefreshClicked); this.buttonOpen.Clicked += new System.EventHandler(this.OpenClicked); this.entryUsername.Changed += new System.EventHandler(this.UsernameChanged); this.entryServer.Changed += new System.EventHandler(this.ServerChanged); this.entryName.Changed += new System.EventHandler(this.NameChanged); this.comboProvider.Changed += new System.EventHandler(this.ProviderChanged); this.spinMinPoolSize.Changed += new System.EventHandler(this.MinPoolSizeChanged); this.spinMaxPoolSize.Changed += new System.EventHandler(this.MaxPoolSizeChanged); this.buttonCancel.Clicked += new System.EventHandler(this.OnCancelClicked); this.buttonOk.Clicked += new System.EventHandler(this.OnOkClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget PanelWindow this.Name = "PanelWindow"; this.Title = Mono.Unix.Catalog.GetString("Moonlight Desklets Panel"); this.WindowPosition = ((Gtk.WindowPosition)(1)); // Container child PanelWindow.Gtk.Container+ContainerChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; this.vbox2.BorderWidth = ((uint)(6)); // Container child vbox2.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.SearchLabel = new Gtk.Label(); this.SearchLabel.Name = "SearchLabel"; this.SearchLabel.LabelProp = Mono.Unix.Catalog.GetString("Search:"); this.hbox2.Add(this.SearchLabel); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox2[this.SearchLabel])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.SearchEntry = new Gtk.ComboBoxEntry(); this.SearchEntry.Name = "SearchEntry"; this.hbox2.Add(this.SearchEntry); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox2[this.SearchEntry])); w2.Position = 1; w2.Expand = false; w2.Fill = false; this.vbox2.Add(this.hbox2); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.DeskletsScrolledWindow = new Gtk.ScrolledWindow(); this.DeskletsScrolledWindow.CanFocus = true; this.DeskletsScrolledWindow.Name = "DeskletsScrolledWindow"; this.DeskletsScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child DeskletsScrolledWindow.Gtk.Container+ContainerChild this.DeskletsView = new Gtk.TreeView(); this.DeskletsView.CanFocus = true; this.DeskletsView.Name = "DeskletsView"; this.DeskletsScrolledWindow.Add(this.DeskletsView); this.vbox2.Add(this.DeskletsScrolledWindow); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.DeskletsScrolledWindow])); w5.Position = 1; // Container child vbox2.Gtk.Box+BoxChild this.DetailsExpander = new Gtk.Expander(null); this.DetailsExpander.CanFocus = true; this.DetailsExpander.Name = "DetailsExpander"; // Container child DetailsExpander.Gtk.Container+ContainerChild this.DetailsLabel = new Gtk.Label(); this.DetailsLabel.Name = "DetailsLabel"; this.DetailsLabel.LabelProp = ""; this.DetailsExpander.Add(this.DetailsLabel); this.GtkLabel = new Gtk.Label(); this.GtkLabel.Name = "GtkLabel"; this.GtkLabel.LabelProp = Mono.Unix.Catalog.GetString("Show details"); this.GtkLabel.UseUnderline = true; this.DetailsExpander.LabelWidget = this.GtkLabel; this.vbox2.Add(this.DetailsExpander); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.DetailsExpander])); w7.Position = 2; w7.Expand = false; w7.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.ActionButtonBox = new Gtk.HButtonBox(); this.ActionButtonBox.Name = "ActionButtonBox"; this.ActionButtonBox.Spacing = 6; this.ActionButtonBox.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child ActionButtonBox.Gtk.ButtonBox+ButtonBoxChild this.HelpButton = new Gtk.Button(); this.HelpButton.CanFocus = true; this.HelpButton.Name = "HelpButton"; this.HelpButton.UseStock = true; this.HelpButton.UseUnderline = true; this.HelpButton.Label = "gtk-help"; this.ActionButtonBox.Add(this.HelpButton); Gtk.ButtonBox.ButtonBoxChild w8 = ((Gtk.ButtonBox.ButtonBoxChild)(this.ActionButtonBox[this.HelpButton])); w8.Secondary = true; w8.Expand = false; w8.Fill = false; // Container child ActionButtonBox.Gtk.ButtonBox+ButtonBoxChild this.DeskletsButton = new Gtk.Button(); this.DeskletsButton.CanFocus = true; this.DeskletsButton.Name = "DeskletsButton"; this.DeskletsButton.UseUnderline = true; // Container child DeskletsButton.Gtk.Container+ContainerChild Gtk.Alignment w9 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w10 = new Gtk.HBox(); w10.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w11 = new Gtk.Image(); w11.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-find", Gtk.IconSize.Menu, 16); w10.Add(w11); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w13 = new Gtk.Label(); w13.LabelProp = Mono.Unix.Catalog.GetString("Get desklets"); w13.UseUnderline = true; w10.Add(w13); w9.Add(w10); this.DeskletsButton.Add(w9); this.ActionButtonBox.Add(this.DeskletsButton); Gtk.ButtonBox.ButtonBoxChild w17 = ((Gtk.ButtonBox.ButtonBoxChild)(this.ActionButtonBox[this.DeskletsButton])); w17.Position = 1; w17.Expand = false; w17.Fill = false; // Container child ActionButtonBox.Gtk.ButtonBox+ButtonBoxChild this.CloseButton = new Gtk.Button(); this.CloseButton.CanFocus = true; this.CloseButton.Name = "CloseButton"; this.CloseButton.UseStock = true; this.CloseButton.UseUnderline = true; this.CloseButton.Label = "gtk-close"; this.ActionButtonBox.Add(this.CloseButton); Gtk.ButtonBox.ButtonBoxChild w18 = ((Gtk.ButtonBox.ButtonBoxChild)(this.ActionButtonBox[this.CloseButton])); w18.Position = 2; w18.Expand = false; w18.Fill = false; this.vbox2.Add(this.ActionButtonBox); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox2[this.ActionButtonBox])); w19.Position = 3; w19.Expand = false; w19.Fill = false; this.Add(this.vbox2); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 447; this.DefaultHeight = 446; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.HelpButton.Clicked += new System.EventHandler(this.OnHelpButtonClicked); this.DeskletsButton.Clicked += new System.EventHandler(this.OnDeskletsButtonClicked); this.CloseButton.Clicked += new System.EventHandler(this.OnCloseButtonClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(); // Widget MainWindow Gtk.UIManager w1 = new Gtk.UIManager(); Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); this.Datei = new Gtk.Action("Datei", Mono.Unix.Catalog.GetString("_Datei"), null, null); this.Datei.ShortLabel = Mono.Unix.Catalog.GetString("_Datei"); w2.Add(this.Datei, null); this.Aktionen = new Gtk.Action("Aktionen", Mono.Unix.Catalog.GetString("_Aktionen"), null, null); this.Aktionen.ShortLabel = Mono.Unix.Catalog.GetString("_Aktionen"); w2.Add(this.Aktionen, null); this.Hilfe = new Gtk.Action("Hilfe", Mono.Unix.Catalog.GetString("_Hilfe"), null, null); this.Hilfe.ShortLabel = Mono.Unix.Catalog.GetString("_Hilfe"); w2.Add(this.Hilfe, "<Control>question"); this.Revert = new Gtk.Action("Revert", Mono.Unix.Catalog.GetString("_Revert"), null, "gtk-undo"); this.Revert.ShortLabel = Mono.Unix.Catalog.GetString("_Revert"); w2.Add(this.Revert, null); this.LA = new Gtk.Action("LA", Mono.Unix.Catalog.GetString("_LA"), null, "gtk-delete"); this.LA.ShortLabel = Mono.Unix.Catalog.GetString("_LA"); w2.Add(this.LA, null); this.SLA = new Gtk.Action("SLA", Mono.Unix.Catalog.GetString("_SLA"), null, "gtk-delete"); this.SLA.ShortLabel = Mono.Unix.Catalog.GetString("_SLA"); w2.Add(this.SLA, null); this.Beobachten = new Gtk.Action("Beobachten", Mono.Unix.Catalog.GetString("_Beobachten"), null, "gtk-find"); this.Beobachten.ShortLabel = Mono.Unix.Catalog.GetString("_Beobachten"); w2.Add(this.Beobachten, null); this.VHinweis = new Gtk.Action("VHinweis", Mono.Unix.Catalog.GetString("_VHinweis"), null, "gtk-dialog-error"); this.VHinweis.ShortLabel = Mono.Unix.Catalog.GetString("_VHinweis"); w2.Add(this.VHinweis, null); this.home = new Gtk.Action("home", null, null, "gtk-home"); w2.Add(this.home, null); this.spellCheck = new Gtk.Action("spellCheck", null, null, "gtk-spell-check"); w2.Add(this.spellCheck, null); this.quit = new Gtk.Action("quit", null, null, "gtk-quit"); w2.Add(this.quit, null); this.dialogQuestion = new Gtk.Action("dialogQuestion", null, null, "gtk-dialog-question"); w2.Add(this.dialogQuestion, null); this.Beenden = new Gtk.Action("Beenden", Mono.Unix.Catalog.GetString("Beenden"), null, null); this.Beenden.ShortLabel = Mono.Unix.Catalog.GetString("Beenden"); w2.Add(this.Beenden, "<Control>q"); this.LA1 = new Gtk.Action("LA1", Mono.Unix.Catalog.GetString("LA+"), null, null); this.LA1.ShortLabel = Mono.Unix.Catalog.GetString("LA+"); w2.Add(this.LA1, "<Alt>l"); this.SLA1 = new Gtk.Action("SLA1", Mono.Unix.Catalog.GetString("SLA+"), null, null); this.SLA1.ShortLabel = Mono.Unix.Catalog.GetString("SLA+"); w2.Add(this.SLA1, "<Alt>s"); this.Vandal = new Gtk.Action("Vandal", Mono.Unix.Catalog.GetString("Vandal+"), null, null); this.Vandal.ShortLabel = Mono.Unix.Catalog.GetString("Vandal+"); w2.Add(this.Vandal, "<Alt>v"); this.ber = new Gtk.Action("ber", Mono.Unix.Catalog.GetString("Über"), null, null); this.ber.ShortLabel = Mono.Unix.Catalog.GetString("Über"); w2.Add(this.ber, null); this.Artikel = new Gtk.Action("Artikel", Mono.Unix.Catalog.GetString("_Artikel"), null, null); this.Artikel.ShortLabel = Mono.Unix.Catalog.GetString("_Artikel"); w2.Add(this.Artikel, null); this.LokalSpeichern = new Gtk.Action("LokalSpeichern", Mono.Unix.Catalog.GetString("_Lokal Speichern"), null, "gtk-save"); this.LokalSpeichern.ShortLabel = Mono.Unix.Catalog.GetString("_Lokal Speichern"); w2.Add(this.LokalSpeichern, null); this.OnlineSpeichern = new Gtk.Action("OnlineSpeichern", Mono.Unix.Catalog.GetString("_Online Speichern"), null, "gtk-network"); this.OnlineSpeichern.ShortLabel = Mono.Unix.Catalog.GetString("_Online Speichern"); w2.Add(this.OnlineSpeichern, null); this.Aktualisieren = new Gtk.Action("Aktualisieren", Mono.Unix.Catalog.GetString("_Aktualisieren"), null, "gtk-refresh"); this.Aktualisieren.ShortLabel = Mono.Unix.Catalog.GetString("_Aktualisieren"); w2.Add(this.Aktualisieren, null); this.Bearbeiten = new Gtk.Action("Bearbeiten", Mono.Unix.Catalog.GetString("_Bearbeiten"), null, null); this.Bearbeiten.ShortLabel = Mono.Unix.Catalog.GetString("_Bearbeiten"); w2.Add(this.Bearbeiten, null); this.Einstellungen = new Gtk.Action("Einstellungen", Mono.Unix.Catalog.GetString("_Einstellungen"), null, null); this.Einstellungen.ShortLabel = Mono.Unix.Catalog.GetString("_Einstellungen"); w2.Add(this.Einstellungen, "<Control>o"); this.add = new Gtk.Action("add", null, null, "gtk-add"); w2.Add(this.add, null); this.remove = new Gtk.Action("remove", null, null, "gtk-remove"); w2.Add(this.remove, null); this.clear = new Gtk.Action("clear", null, null, "gtk-clear"); w2.Add(this.clear, null); w1.InsertActionGroup(w2, 0); this.AddAccelGroup(w1.AccelGroup); this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Wikifighter"); this.Icon = Gtk.IconTheme.Default.LoadIcon("stock_smiley-18", 16, 0); // Container child MainWindow.Gtk.Container+ContainerChild this.main_vbox = new Gtk.VBox(); this.main_vbox.Name = "main_vbox"; // Container child main_vbox.Gtk.Box+BoxChild w1.AddUiFromString("<ui><menubar name='menubar'><menu action='Datei'><menuitem action='Beenden'/></menu><menu action='Bearbeiten'><menuitem action='Einstellungen'/></menu><menu action='Aktionen'><menuitem action='LA1'/><menuitem action='SLA1'/><menuitem action='Vandal'/></menu><menu action='Hilfe'><menuitem action='ber'/></menu></menubar></ui>"); this.menubar = ((Gtk.MenuBar)(w1.GetWidget("/menubar"))); this.menubar.Name = "menubar"; this.main_vbox.Add(this.menubar); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.main_vbox[this.menubar])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child main_vbox.Gtk.Box+BoxChild this.browserbox = new Gtk.VBox(); this.browserbox.Name = "browserbox"; // Container child browserbox.Gtk.Box+BoxChild w1.AddUiFromString("<ui><toolbar name='geckotoolbar'><toolitem action='Revert'/><toolitem action='SLA'/><toolitem action='Beobachten'/><toolitem action='VHinweis'/><toolitem action='spellCheck'/><toolitem action='dialogQuestion'/><toolitem action='home'/><toolitem action='quit'/></toolbar></ui>"); this.geckotoolbar = ((Gtk.Toolbar)(w1.GetWidget("/geckotoolbar"))); this.geckotoolbar.Name = "geckotoolbar"; this.geckotoolbar.ShowArrow = false; this.geckotoolbar.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.geckotoolbar.IconSize = ((Gtk.IconSize)(3)); this.browserbox.Add(this.geckotoolbar); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.browserbox[this.geckotoolbar])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child browserbox.Gtk.Box+BoxChild this.navigationbox = new Gtk.HBox(); this.navigationbox.Name = "navigationbox"; this.navigationbox.Spacing = 3; this.navigationbox.BorderWidth = ((uint)(1)); // Container child navigationbox.Gtk.Box+BoxChild this.back = new Gtk.Button(); this.back.CanFocus = true; this.back.Name = "back"; this.back.UseStock = true; this.back.UseUnderline = true; this.back.Label = "gtk-go-back"; this.navigationbox.Add(this.back); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.navigationbox[this.back])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Container child navigationbox.Gtk.Box+BoxChild this.forward = new Gtk.Button(); this.forward.CanFocus = true; this.forward.Name = "forward"; this.forward.UseStock = true; this.forward.UseUnderline = true; this.forward.Label = "gtk-go-forward"; this.navigationbox.Add(this.forward); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.navigationbox[this.forward])); w6.Position = 1; w6.Expand = false; w6.Fill = false; // Container child navigationbox.Gtk.Box+BoxChild this.urlentry = Gtk.ComboBoxEntry.NewText(); this.urlentry.Name = "urlentry"; this.urlentry.Active = 0; this.navigationbox.Add(this.urlentry); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.navigationbox[this.urlentry])); w7.Position = 2; // Container child navigationbox.Gtk.Box+BoxChild this.go = new Gtk.Button(); this.go.CanFocus = true; this.go.Name = "go"; this.go.UseUnderline = true; // Container child go.Gtk.Container+ContainerChild Gtk.Alignment w8 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w8.Name = "GtkAlignment2"; // Container child GtkAlignment2.Gtk.Container+ContainerChild Gtk.HBox w9 = new Gtk.HBox(); w9.Name = "GtkHBox3"; w9.Spacing = 2; // Container child GtkHBox3.Gtk.Container+ContainerChild Gtk.Image w10 = new Gtk.Image(); w10.Name = "image37"; w10.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-apply", 16, 0); w9.Add(w10); // Container child GtkHBox3.Gtk.Container+ContainerChild Gtk.Label w12 = new Gtk.Label(); w12.Name = "GtkLabel3"; w12.LabelProp = Mono.Unix.Catalog.GetString("_Go!"); w12.UseUnderline = true; w9.Add(w12); w8.Add(w9); this.go.Add(w8); this.navigationbox.Add(this.go); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.navigationbox[this.go])); w16.Position = 3; w16.Expand = false; w16.Fill = false; this.browserbox.Add(this.navigationbox); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.browserbox[this.navigationbox])); w17.Position = 1; w17.Expand = false; w17.Fill = false; // Container child browserbox.Gtk.Box+BoxChild this.notebook = new Gtk.Notebook(); this.notebook.CanFocus = true; this.notebook.Name = "notebook"; // Container child notebook.Gtk.Notebook+NotebookChild this.scrolledwindow2 = new Gtk.ScrolledWindow(); this.scrolledwindow2.CanFocus = true; this.scrolledwindow2.Name = "scrolledwindow2"; this.scrolledwindow2.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow2.HscrollbarPolicy = ((Gtk.PolicyType)(1)); // Container child scrolledwindow2.Gtk.Container+ContainerChild Gtk.Viewport w18 = new Gtk.Viewport(); w18.Name = "GtkViewport"; w18.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.vpaned1 = new Gtk.VPaned(); this.vpaned1.CanFocus = true; this.vpaned1.Name = "vpaned1"; this.vpaned1.Position = 125; // Container child vpaned1.Gtk.Paned+PanedChild this.hbox5 = new Gtk.HBox(); this.hbox5.Name = "hbox5"; // Container child hbox5.Gtk.Box+BoxChild this.hpaned1 = new Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 135; // Container child hpaned1.Gtk.Paned+PanedChild this.frame5 = new Gtk.Frame(); this.frame5.Name = "frame5"; this.frame5.ShadowType = ((Gtk.ShadowType)(0)); this.frame5.LabelXalign = 0F; // Container child frame5.Gtk.Container+ContainerChild this.GtkAlignment5 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment5.Name = "GtkAlignment5"; this.GtkAlignment5.LeftPadding = ((uint)(12)); // Container child GtkAlignment5.Gtk.Container+ContainerChild this.image44 = new Gtk.Image(); this.image44.Name = "image44"; this.GtkAlignment5.Add(this.image44); this.frame5.Add(this.GtkAlignment5); this.GtkLabel10 = new Gtk.Label(); this.GtkLabel10.Events = ((Gdk.EventMask)(256)); this.GtkLabel10.Name = "GtkLabel10"; this.GtkLabel10.LabelProp = Mono.Unix.Catalog.GetString("<b>RC-Status</b>"); this.GtkLabel10.UseMarkup = true; this.frame5.LabelWidget = this.GtkLabel10; this.hpaned1.Add(this.frame5); Gtk.Paned.PanedChild w21 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.frame5])); w21.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild this.white_black_watch_notebook = new Gtk.Notebook(); this.white_black_watch_notebook.CanFocus = true; this.white_black_watch_notebook.Name = "white_black_watch_notebook"; this.white_black_watch_notebook.TabPos = ((Gtk.PositionType)(1)); // Container child white_black_watch_notebook.Gtk.Notebook+NotebookChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; // Container child hbox1.Gtk.Box+BoxChild this.whitelist_scrolledwindow = new Gtk.ScrolledWindow(); this.whitelist_scrolledwindow.CanFocus = true; this.whitelist_scrolledwindow.Name = "whitelist_scrolledwindow"; this.whitelist_scrolledwindow.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.whitelist_scrolledwindow.HscrollbarPolicy = ((Gtk.PolicyType)(1)); // Container child whitelist_scrolledwindow.Gtk.Container+ContainerChild this.whitelist_treeview = new Gtk.TreeView(); this.whitelist_treeview.CanFocus = true; this.whitelist_treeview.Name = "whitelist_treeview"; this.whitelist_scrolledwindow.Add(this.whitelist_treeview); this.hbox1.Add(this.whitelist_scrolledwindow); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox1[this.whitelist_scrolledwindow])); w23.Position = 0; // Container child hbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><toolbar name='whitelist_toolbar'><toolitem action='add'/><toolitem action='remove'/><toolitem action='clear'/></toolbar></ui>"); this.whitelist_toolbar = ((Gtk.Toolbar)(w1.GetWidget("/whitelist_toolbar"))); this.whitelist_toolbar.Name = "whitelist_toolbar"; this.whitelist_toolbar.Orientation = ((Gtk.Orientation)(1)); this.whitelist_toolbar.ShowArrow = false; this.whitelist_toolbar.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.whitelist_toolbar.IconSize = ((Gtk.IconSize)(3)); this.hbox1.Add(this.whitelist_toolbar); Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.hbox1[this.whitelist_toolbar])); w24.Position = 1; w24.Expand = false; w24.Fill = false; this.white_black_watch_notebook.Add(this.hbox1); Gtk.Notebook.NotebookChild w25 = ((Gtk.Notebook.NotebookChild)(this.white_black_watch_notebook[this.hbox1])); w25.TabExpand = false; // Notebook tab this.whitelist_label = new Gtk.Label(); this.whitelist_label.Name = "whitelist_label"; this.whitelist_label.LabelProp = Mono.Unix.Catalog.GetString("Whitelist"); this.white_black_watch_notebook.SetTabLabel(this.hbox1, this.whitelist_label); // Container child white_black_watch_notebook.Gtk.Notebook+NotebookChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; // Container child hbox2.Gtk.Box+BoxChild this.scrolledwindow4 = new Gtk.ScrolledWindow(); this.scrolledwindow4.CanFocus = true; this.scrolledwindow4.Name = "scrolledwindow4"; this.scrolledwindow4.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow4.HscrollbarPolicy = ((Gtk.PolicyType)(1)); // Container child scrolledwindow4.Gtk.Container+ContainerChild Gtk.Viewport w26 = new Gtk.Viewport(); w26.Name = "GtkViewport4"; w26.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport4.Gtk.Container+ContainerChild this.blacklist_scrolledwindow = new Gtk.ScrolledWindow(); this.blacklist_scrolledwindow.CanFocus = true; this.blacklist_scrolledwindow.Name = "blacklist_scrolledwindow"; this.blacklist_scrolledwindow.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.blacklist_scrolledwindow.HscrollbarPolicy = ((Gtk.PolicyType)(1)); // Container child blacklist_scrolledwindow.Gtk.Container+ContainerChild this.blacklist_treeview = new Gtk.TreeView(); this.blacklist_treeview.CanFocus = true; this.blacklist_treeview.Name = "blacklist_treeview"; this.blacklist_scrolledwindow.Add(this.blacklist_treeview); w26.Add(this.blacklist_scrolledwindow); this.scrolledwindow4.Add(w26); this.hbox2.Add(this.scrolledwindow4); Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.hbox2[this.scrolledwindow4])); w30.Position = 0; // Container child hbox2.Gtk.Box+BoxChild w1.AddUiFromString("<ui><toolbar name='blacklist_toolbar'><toolitem action='add'/><toolitem action='remove'/><toolitem action='clear'/></toolbar></ui>"); this.blacklist_toolbar = ((Gtk.Toolbar)(w1.GetWidget("/blacklist_toolbar"))); this.blacklist_toolbar.Name = "blacklist_toolbar"; this.blacklist_toolbar.Orientation = ((Gtk.Orientation)(1)); this.blacklist_toolbar.ShowArrow = false; this.blacklist_toolbar.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.blacklist_toolbar.IconSize = ((Gtk.IconSize)(3)); this.hbox2.Add(this.blacklist_toolbar); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.hbox2[this.blacklist_toolbar])); w31.Position = 1; w31.Expand = false; w31.Fill = false; this.white_black_watch_notebook.Add(this.hbox2); Gtk.Notebook.NotebookChild w32 = ((Gtk.Notebook.NotebookChild)(this.white_black_watch_notebook[this.hbox2])); w32.Position = 1; w32.TabExpand = false; // Notebook tab this.blacklist_label = new Gtk.Label(); this.blacklist_label.Name = "blacklist_label"; this.blacklist_label.LabelProp = Mono.Unix.Catalog.GetString("Blacklist"); this.white_black_watch_notebook.SetTabLabel(this.hbox2, this.blacklist_label); // Container child white_black_watch_notebook.Gtk.Notebook+NotebookChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; // Container child hbox4.Gtk.Box+BoxChild this.watchlist_scrolledwindow = new Gtk.ScrolledWindow(); this.watchlist_scrolledwindow.CanFocus = true; this.watchlist_scrolledwindow.Name = "watchlist_scrolledwindow"; this.watchlist_scrolledwindow.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.watchlist_scrolledwindow.HscrollbarPolicy = ((Gtk.PolicyType)(1)); // Container child watchlist_scrolledwindow.Gtk.Container+ContainerChild this.watchlist_treeview = new Gtk.TreeView(); this.watchlist_treeview.CanFocus = true; this.watchlist_treeview.Name = "watchlist_treeview"; this.watchlist_scrolledwindow.Add(this.watchlist_treeview); this.hbox4.Add(this.watchlist_scrolledwindow); Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.hbox4[this.watchlist_scrolledwindow])); w34.Position = 0; // Container child hbox4.Gtk.Box+BoxChild w1.AddUiFromString("<ui><toolbar name='blacklist_toolbar1'><toolitem action='add'/><toolitem action='remove'/><toolitem action='clear'/></toolbar></ui>"); this.blacklist_toolbar1 = ((Gtk.Toolbar)(w1.GetWidget("/blacklist_toolbar1"))); this.blacklist_toolbar1.Name = "blacklist_toolbar1"; this.blacklist_toolbar1.Orientation = ((Gtk.Orientation)(1)); this.blacklist_toolbar1.ShowArrow = false; this.blacklist_toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.blacklist_toolbar1.IconSize = ((Gtk.IconSize)(3)); this.hbox4.Add(this.blacklist_toolbar1); Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(this.hbox4[this.blacklist_toolbar1])); w35.Position = 1; w35.Expand = false; w35.Fill = false; this.white_black_watch_notebook.Add(this.hbox4); Gtk.Notebook.NotebookChild w36 = ((Gtk.Notebook.NotebookChild)(this.white_black_watch_notebook[this.hbox4])); w36.Position = 2; w36.TabExpand = false; // Notebook tab this.watchlist_label = new Gtk.Label(); this.watchlist_label.Name = "watchlist_label"; this.watchlist_label.LabelProp = Mono.Unix.Catalog.GetString("Beobacht-\nungsliste"); this.white_black_watch_notebook.SetTabLabel(this.hbox4, this.watchlist_label); this.hpaned1.Add(this.white_black_watch_notebook); this.hbox5.Add(this.hpaned1); Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(this.hbox5[this.hpaned1])); w38.Position = 0; this.vpaned1.Add(this.hbox5); Gtk.Paned.PanedChild w39 = ((Gtk.Paned.PanedChild)(this.vpaned1[this.hbox5])); w39.Resize = false; // Container child vpaned1.Gtk.Paned+PanedChild this.scrolledwindow3 = new Gtk.ScrolledWindow(); this.scrolledwindow3.CanFocus = true; this.scrolledwindow3.Name = "scrolledwindow3"; this.scrolledwindow3.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow3.HscrollbarPolicy = ((Gtk.PolicyType)(1)); // Container child scrolledwindow3.Gtk.Container+ContainerChild this.rc_view = new Gtk.TreeView(); this.rc_view.CanFocus = true; this.rc_view.Name = "rc_view"; this.scrolledwindow3.Add(this.rc_view); this.vpaned1.Add(this.scrolledwindow3); w18.Add(this.vpaned1); this.scrolledwindow2.Add(w18); this.notebook.Add(this.scrolledwindow2); Gtk.Notebook.NotebookChild w44 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.scrolledwindow2])); w44.TabExpand = false; // Notebook tab this.notebook_rc_label = new Gtk.Label(); this.notebook_rc_label.Name = "notebook_rc_label"; this.notebook_rc_label.LabelProp = Mono.Unix.Catalog.GetString("Letzte Änderungen"); this.notebook.SetTabLabel(this.scrolledwindow2, this.notebook_rc_label); // Container child notebook.Gtk.Notebook+NotebookChild this.geckobox = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.geckobox.Name = "geckobox"; this.notebook.Add(this.geckobox); Gtk.Notebook.NotebookChild w45 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.geckobox])); w45.Position = 1; w45.TabExpand = false; // Notebook tab this.notebook_browser_label = new Gtk.Label(); this.notebook_browser_label.Name = "notebook_browser_label"; this.notebook_browser_label.LabelProp = Mono.Unix.Catalog.GetString("Browser"); this.notebook.SetTabLabel(this.geckobox, this.notebook_browser_label); // Container child notebook.Gtk.Notebook+NotebookChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><menubar name='menubar2'><menu action='Artikel'><menuitem action='LokalSpeichern'/><menuitem action='OnlineSpeichern'/><menuitem action='Aktualisieren'/></menu></menubar></ui>"); this.menubar2 = ((Gtk.MenuBar)(w1.GetWidget("/menubar2"))); this.menubar2.Name = "menubar2"; this.vbox1.Add(this.menubar2); Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar2])); w46.Position = 0; w46.Expand = false; w46.Fill = false; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><toolbar name='toolbar1'/></ui>"); this.toolbar1 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1"))); this.toolbar1.Name = "toolbar1"; this.toolbar1.ShowArrow = false; this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.toolbar1.IconSize = ((Gtk.IconSize)(3)); this.vbox1.Add(this.toolbar1); Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1])); w47.Position = 1; w47.Expand = false; w47.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.scrolledwindow6 = new Gtk.ScrolledWindow(); this.scrolledwindow6.CanFocus = true; this.scrolledwindow6.Name = "scrolledwindow6"; this.scrolledwindow6.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow6.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow6.ShadowType = ((Gtk.ShadowType)(2)); // Container child scrolledwindow6.Gtk.Container+ContainerChild this.textview1 = new Gtk.TextView(); this.textview1.CanFocus = true; this.textview1.Name = "textview1"; this.textview1.WrapMode = ((Gtk.WrapMode)(3)); this.scrolledwindow6.Add(this.textview1); this.vbox1.Add(this.scrolledwindow6); Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(this.vbox1[this.scrolledwindow6])); w49.Position = 2; this.notebook.Add(this.vbox1); Gtk.Notebook.NotebookChild w50 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.vbox1])); w50.Position = 2; w50.TabExpand = false; // Notebook tab this.notebook_artikel_label = new Gtk.Label(); this.notebook_artikel_label.Name = "notebook_artikel_label"; this.notebook_artikel_label.LabelProp = Mono.Unix.Catalog.GetString("Artikeleditor"); this.notebook.SetTabLabel(this.vbox1, this.notebook_artikel_label); // Container child notebook.Gtk.Notebook+NotebookChild this.history_treeview = new Gtk.TreeView(); this.history_treeview.CanFocus = true; this.history_treeview.Name = "history_treeview"; this.notebook.Add(this.history_treeview); Gtk.Notebook.NotebookChild w51 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.history_treeview])); w51.Position = 3; w51.TabExpand = false; // Notebook tab this.notebook_history_label = new Gtk.Label(); this.notebook_history_label.Name = "notebook_history_label"; this.notebook_history_label.LabelProp = Mono.Unix.Catalog.GetString("History"); this.notebook.SetTabLabel(this.history_treeview, this.notebook_history_label); // Container child notebook.Gtk.Notebook+NotebookChild this.table4 = new Gtk.Table(((uint)(3)), ((uint)(2)), false); this.table4.Name = "table4"; // Container child table4.Gtk.Table+TableChild this.diff_new_scrolled_window = new Gtk.ScrolledWindow(); this.diff_new_scrolled_window.CanFocus = true; this.diff_new_scrolled_window.Name = "diff_new_scrolled_window"; this.diff_new_scrolled_window.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.diff_new_scrolled_window.HscrollbarPolicy = ((Gtk.PolicyType)(1)); // Container child diff_new_scrolled_window.Gtk.Container+ContainerChild Gtk.Viewport w52 = new Gtk.Viewport(); w52.Name = "GtkViewport1"; w52.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport1.Gtk.Container+ContainerChild this.diff_new_frame = new Gtk.Frame(); this.diff_new_frame.Name = "diff_new_frame"; this.diff_new_frame.ShadowType = ((Gtk.ShadowType)(0)); this.diff_new_frame.LabelXalign = 0F; // Container child diff_new_frame.Gtk.Container+ContainerChild this.GtkAlignment11 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment11.Name = "GtkAlignment11"; this.GtkAlignment11.LeftPadding = ((uint)(12)); // Container child GtkAlignment11.Gtk.Container+ContainerChild this.diff_new_treeview = new Gtk.TreeView(); this.diff_new_treeview.CanFocus = true; this.diff_new_treeview.Name = "diff_new_treeview"; this.GtkAlignment11.Add(this.diff_new_treeview); this.diff_new_frame.Add(this.GtkAlignment11); this.diff_new_label = new Gtk.Label(); this.diff_new_label.Events = ((Gdk.EventMask)(256)); this.diff_new_label.Name = "diff_new_label"; this.diff_new_label.LabelProp = Mono.Unix.Catalog.GetString("<b>neue Verion von</b>"); this.diff_new_label.UseMarkup = true; this.diff_new_frame.LabelWidget = this.diff_new_label; w52.Add(this.diff_new_frame); this.diff_new_scrolled_window.Add(w52); this.table4.Add(this.diff_new_scrolled_window); Gtk.Table.TableChild w57 = ((Gtk.Table.TableChild)(this.table4[this.diff_new_scrolled_window])); w57.TopAttach = ((uint)(1)); w57.BottomAttach = ((uint)(2)); w57.LeftAttach = ((uint)(1)); w57.RightAttach = ((uint)(2)); // Container child table4.Gtk.Table+TableChild this.diff_old_scrolled_window = new Gtk.ScrolledWindow(); this.diff_old_scrolled_window.CanFocus = true; this.diff_old_scrolled_window.Name = "diff_old_scrolled_window"; this.diff_old_scrolled_window.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.diff_old_scrolled_window.HscrollbarPolicy = ((Gtk.PolicyType)(1)); // Container child diff_old_scrolled_window.Gtk.Container+ContainerChild Gtk.Viewport w58 = new Gtk.Viewport(); w58.Name = "GtkViewport2"; w58.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport2.Gtk.Container+ContainerChild this.diff_old_frame = new Gtk.Frame(); this.diff_old_frame.Name = "diff_old_frame"; this.diff_old_frame.ShadowType = ((Gtk.ShadowType)(0)); this.diff_old_frame.LabelXalign = 0F; // Container child diff_old_frame.Gtk.Container+ContainerChild this.GtkAlignment10 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment10.Name = "GtkAlignment10"; this.GtkAlignment10.LeftPadding = ((uint)(12)); // Container child GtkAlignment10.Gtk.Container+ContainerChild this.diff_old_treeview = new Gtk.TreeView(); this.diff_old_treeview.CanFocus = true; this.diff_old_treeview.Name = "diff_old_treeview"; this.GtkAlignment10.Add(this.diff_old_treeview); this.diff_old_frame.Add(this.GtkAlignment10); this.diff_old_label = new Gtk.Label(); this.diff_old_label.Events = ((Gdk.EventMask)(256)); this.diff_old_label.Name = "diff_old_label"; this.diff_old_label.LabelProp = Mono.Unix.Catalog.GetString("<b>Alte Version von</b>"); this.diff_old_label.UseMarkup = true; this.diff_old_frame.LabelWidget = this.diff_old_label; w58.Add(this.diff_old_frame); this.diff_old_scrolled_window.Add(w58); this.table4.Add(this.diff_old_scrolled_window); Gtk.Table.TableChild w63 = ((Gtk.Table.TableChild)(this.table4[this.diff_old_scrolled_window])); w63.TopAttach = ((uint)(1)); w63.BottomAttach = ((uint)(2)); // Container child table4.Gtk.Table+TableChild this.hbuttonbox2 = new Gtk.HButtonBox(); this.hbuttonbox2.Name = "hbuttonbox2"; // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild this.diff_old_back_button1 = new Gtk.Button(); this.diff_old_back_button1.WidthRequest = 80; this.diff_old_back_button1.CanFocus = true; this.diff_old_back_button1.Name = "diff_old_back_button1"; this.diff_old_back_button1.UseStock = true; this.diff_old_back_button1.UseUnderline = true; this.diff_old_back_button1.Label = "gtk-go-back"; this.hbuttonbox2.Add(this.diff_old_back_button1); Gtk.ButtonBox.ButtonBoxChild w64 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.diff_old_back_button1])); w64.Expand = false; w64.Fill = false; // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild this.button47 = new Gtk.Button(); this.button47.WidthRequest = 100; this.button47.CanFocus = true; this.button47.Name = "button47"; this.button47.UseUnderline = true; // Container child button47.Gtk.Container+ContainerChild Gtk.Alignment w65 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w65.Name = "GtkAlignment8"; // Container child GtkAlignment8.Gtk.Container+ContainerChild Gtk.HBox w66 = new Gtk.HBox(); w66.Name = "GtkHBox8"; w66.Spacing = 2; // Container child GtkHBox8.Gtk.Container+ContainerChild Gtk.Image w67 = new Gtk.Image(); w67.Name = "image38"; w67.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-clear", 16, 0); w66.Add(w67); // Container child GtkHBox8.Gtk.Container+ContainerChild Gtk.Label w69 = new Gtk.Label(); w69.Name = "GtkLabel13"; w69.LabelProp = Mono.Unix.Catalog.GetString("_Entfernen"); w69.UseUnderline = true; w66.Add(w69); w65.Add(w66); this.button47.Add(w65); this.hbuttonbox2.Add(this.button47); Gtk.ButtonBox.ButtonBoxChild w73 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.button47])); w73.Position = 1; w73.Expand = false; w73.Fill = false; // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild this.diff_new_next_button = new Gtk.Button(); this.diff_new_next_button.WidthRequest = 80; this.diff_new_next_button.CanFocus = true; this.diff_new_next_button.Name = "diff_new_next_button"; this.diff_new_next_button.UseStock = true; this.diff_new_next_button.UseUnderline = true; this.diff_new_next_button.Label = "gtk-go-forward"; this.hbuttonbox2.Add(this.diff_new_next_button); Gtk.ButtonBox.ButtonBoxChild w74 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.diff_new_next_button])); w74.Position = 2; w74.Expand = false; w74.Fill = false; this.table4.Add(this.hbuttonbox2); Gtk.Table.TableChild w75 = ((Gtk.Table.TableChild)(this.table4[this.hbuttonbox2])); w75.LeftAttach = ((uint)(1)); w75.RightAttach = ((uint)(2)); w75.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.hbuttonbox3 = new Gtk.HButtonBox(); this.hbuttonbox3.Name = "hbuttonbox3"; // Container child hbuttonbox3.Gtk.ButtonBox+ButtonBoxChild this.diff_old_back_button = new Gtk.Button(); this.diff_old_back_button.WidthRequest = 80; this.diff_old_back_button.CanFocus = true; this.diff_old_back_button.Name = "diff_old_back_button"; this.diff_old_back_button.UseStock = true; this.diff_old_back_button.UseUnderline = true; this.diff_old_back_button.Label = "gtk-go-back"; this.hbuttonbox3.Add(this.diff_old_back_button); Gtk.ButtonBox.ButtonBoxChild w76 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.diff_old_back_button])); w76.Expand = false; w76.Fill = false; // Container child hbuttonbox3.Gtk.ButtonBox+ButtonBoxChild this.diff_old_revert_button = new Gtk.Button(); this.diff_old_revert_button.WidthRequest = 100; this.diff_old_revert_button.CanFocus = true; this.diff_old_revert_button.Name = "diff_old_revert_button"; this.diff_old_revert_button.UseStock = true; this.diff_old_revert_button.UseUnderline = true; this.diff_old_revert_button.Label = "gtk-undo"; this.hbuttonbox3.Add(this.diff_old_revert_button); Gtk.ButtonBox.ButtonBoxChild w77 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.diff_old_revert_button])); w77.Position = 1; w77.Expand = false; w77.Fill = false; // Container child hbuttonbox3.Gtk.ButtonBox+ButtonBoxChild this.diff_old_next_button = new Gtk.Button(); this.diff_old_next_button.WidthRequest = 80; this.diff_old_next_button.CanFocus = true; this.diff_old_next_button.Name = "diff_old_next_button"; this.diff_old_next_button.UseStock = true; this.diff_old_next_button.UseUnderline = true; this.diff_old_next_button.Label = "gtk-go-forward"; this.hbuttonbox3.Add(this.diff_old_next_button); Gtk.ButtonBox.ButtonBoxChild w78 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.diff_old_next_button])); w78.Position = 2; w78.Expand = false; w78.Fill = false; this.table4.Add(this.hbuttonbox3); Gtk.Table.TableChild w79 = ((Gtk.Table.TableChild)(this.table4[this.hbuttonbox3])); w79.YOptions = ((Gtk.AttachOptions)(4)); this.notebook.Add(this.table4); Gtk.Notebook.NotebookChild w80 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.table4])); w80.Position = 4; w80.TabExpand = false; // Notebook tab this.notebook_diff_label = new Gtk.Label(); this.notebook_diff_label.Name = "notebook_diff_label"; this.notebook_diff_label.LabelProp = Mono.Unix.Catalog.GetString("Diff"); this.notebook.SetTabLabel(this.table4, this.notebook_diff_label); // Notebook tab Gtk.Label w81 = new Gtk.Label(); w81.Visible = true; this.notebook.Add(w81); this.notebook_user_label = new Gtk.Label(); this.notebook_user_label.Name = "notebook_user_label"; this.notebook_user_label.LabelProp = Mono.Unix.Catalog.GetString("Benutzer"); this.notebook.SetTabLabel(w81, this.notebook_user_label); this.browserbox.Add(this.notebook); Gtk.Box.BoxChild w82 = ((Gtk.Box.BoxChild)(this.browserbox[this.notebook])); w82.Position = 2; this.main_vbox.Add(this.browserbox); Gtk.Box.BoxChild w83 = ((Gtk.Box.BoxChild)(this.main_vbox[this.browserbox])); w83.Position = 1; // Container child main_vbox.Gtk.Box+BoxChild this.statusbar1 = new Gtk.Statusbar(); this.statusbar1.Name = "statusbar1"; this.statusbar1.Spacing = 2; this.main_vbox.Add(this.statusbar1); Gtk.Box.BoxChild w84 = ((Gtk.Box.BoxChild)(this.main_vbox[this.statusbar1])); w84.PackType = ((Gtk.PackType)(1)); w84.Position = 2; w84.Expand = false; w84.Fill = false; this.Add(this.main_vbox); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 662; this.DefaultHeight = 653; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.Beenden.Activated += new System.EventHandler(this.onBeenden); this.Einstellungen.Activated += new System.EventHandler(this.OnEinstellungenActivated); this.urlentry.KeyReleaseEvent += new Gtk.KeyReleaseEventHandler(this.OnUrlentryKeyReleaseEvent); this.go.Clicked += new System.EventHandler(this.OnGoClicked); }
public Image(bool allowStock, bool allowFile) : base(false, 6) { image = new Gtk.Image (Gnome.Stock.Blank, Gtk.IconSize.Button); PackStart (image, false, false, 0); if (allowStock) { store = new Gtk.ListStore (typeof (string), typeof (string)); store.AppendValues (Gnome.Stock.Blank, Catalog.GetString ("(None)")); for (int i = 0; i < stockIds.Length; i++) store.AppendValues (stockIds[i], stockLabels[i]); combo = new Gtk.ComboBoxEntry (store, LabelColumn); Gtk.CellRendererPixbuf iconRenderer = new Gtk.CellRendererPixbuf (); iconRenderer.StockSize = (uint)Gtk.IconSize.Menu; combo.PackStart (iconRenderer, false); combo.Reorder (iconRenderer, 0); combo.AddAttribute (iconRenderer, "stock-id", IconColumn); combo.Changed += combo_Changed; // Pack the combo non-expandily into a VBox so it doesn't // get stretched to the file button's height Gtk.VBox vbox = new Gtk.VBox (false, 0); vbox.PackStart (combo, true, false, 0); PackStart (vbox, true, true, 0); entry = (Gtk.Entry)combo.Child; entry.Changed += entry_Changed; useStock = true; } if (allowFile) { if (!allowStock) { entry = new Gtk.Entry (); PackStart (entry, true, true, 0); entry.Changed += entry_Changed; } button = new Gtk.Button (); Gtk.Image icon = new Gtk.Image (Gtk.Stock.Open, Gtk.IconSize.Button); button.Add (icon); PackStart (button, false, false, 0); button.Clicked += button_Clicked; } ShowAll (); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); this.XFileAction = new Gtk.Action("XFileAction", Mono.Unix.Catalog.GetString("XFile"), null, null); this.XFileAction.ShortLabel = Mono.Unix.Catalog.GetString("File"); w1.Add(this.XFileAction, null); this.GimmeHelpAction = new Gtk.Action("GimmeHelpAction", Mono.Unix.Catalog.GetString("GimmeHelp"), null, null); this.GimmeHelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help"); w1.Add(this.GimmeHelpAction, null); this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("About"), null, null); this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("About"); w1.Add(this.AboutAction, null); this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("Quit"), null, null); this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("Quit"); w1.Add(this.QuitAction, null); this.SomeEditMenuAction = new Gtk.Action("SomeEditMenuAction", Mono.Unix.Catalog.GetString("SomeEditMenu"), null, null); this.SomeEditMenuAction.ShortLabel = Mono.Unix.Catalog.GetString("SomeEditMenu"); w1.Add(this.SomeEditMenuAction, null); this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("New"), null, null); this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("New"); w1.Add(this.NewAction, null); this.Action1 = new Gtk.Action("Action1", null, null, null); w1.Add(this.Action1, null); this.indexAction = new Gtk.Action("indexAction", null, Mono.Unix.Catalog.GetString("tooltipText"), "gtk-index"); w1.Add(this.indexAction, null); this.cdromAction = new Gtk.Action("cdromAction", null, null, "gtk-cdrom"); w1.Add(this.cdromAction, null); this.RadioInToolBarTest1Action = new Gtk.RadioAction("RadioInToolBarTest1Action", Mono.Unix.Catalog.GetString("RadioInToolBarTest1"), null, null, 0); this.RadioInToolBarTest1Action.Group = new GLib.SList(System.IntPtr.Zero); this.RadioInToolBarTest1Action.ShortLabel = Mono.Unix.Catalog.GetString("RadioInToolBarTest1"); w1.Add(this.RadioInToolBarTest1Action, null); this.RadioInToolBarTest2Action = new Gtk.RadioAction("RadioInToolBarTest2Action", Mono.Unix.Catalog.GetString("RadioInToolBarTest2"), null, null, 0); this.RadioInToolBarTest2Action.Group = this.RadioInToolBarTest1Action.Group; this.RadioInToolBarTest2Action.ShortLabel = Mono.Unix.Catalog.GetString("RadioInToolBarTest2"); w1.Add(this.RadioInToolBarTest2Action, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("MainWindow"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='XFileAction' action='XFileAction'><menuitem name='NewAction' action='NewAction'/><separator/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='SomeEditMenuAction' action='SomeEditMenuAction'/><menu name='GimmeHelpAction' action='GimmeHelpAction'><menuitem name='AboutAction' action='AboutAction'/></menu></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox1.Add(this.menubar1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='indexAction' action='indexAction'/><toolitem name='RadioInToolBarTest1Action' action='RadioInToolBarTest1Action'/><toolitem name='RadioInToolBarTest2Action' action='RadioInToolBarTest2Action'/></toolbar></ui>"); this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1"))); this.toolbar1.Name = "toolbar1"; this.toolbar1.ShowArrow = false; this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.vbox1.Add(this.toolbar1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.notebook1 = new Gtk.Notebook(); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 0; // Container child notebook1.Gtk.Notebook+NotebookChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.treeview2 = new Gtk.TreeView(); this.treeview2.CanFocus = true; this.treeview2.Name = "treeview2"; this.GtkScrolledWindow.Add(this.treeview2); this.hbox1.Add(this.GtkScrolledWindow); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow])); w5.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(5)), ((uint)(3)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.btnTest1 = new Gtk.Button(); this.btnTest1.CanFocus = true; this.btnTest1.Name = "btnTest1"; this.btnTest1.UseUnderline = true; this.btnTest1.Label = Mono.Unix.Catalog.GetString("hey ya"); this.table1.Add(this.btnTest1); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.btnTest1])); w6.LeftAttach = ((uint)(2)); w6.RightAttach = ((uint)(3)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.btnWithImg = new Gtk.Button(); this.btnWithImg.CanFocus = true; this.btnWithImg.Name = "btnWithImg"; this.btnWithImg.UseUnderline = true; this.btnWithImg.Label = Mono.Unix.Catalog.GetString("IMG"); this.table1.Add(this.btnWithImg); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.btnWithImg])); w7.TopAttach = ((uint)(3)); w7.BottomAttach = ((uint)(4)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.cbeTest = Gtk.ComboBoxEntry.NewText(); this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("First element")); this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("Second element")); this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("Third element")); this.cbeTest.Name = "cbeTest"; this.table1.Add(this.cbeTest); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.cbeTest])); w8.TopAttach = ((uint)(1)); w8.BottomAttach = ((uint)(2)); w8.LeftAttach = ((uint)(2)); w8.RightAttach = ((uint)(3)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.cbxTest = Gtk.ComboBox.NewText(); this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("FirstItem")); this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("SecondItem")); this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("LastItem")); this.cbxTest.Name = "cbxTest"; this.table1.Add(this.cbxTest); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.cbxTest])); w9.TopAttach = ((uint)(1)); w9.BottomAttach = ((uint)(2)); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.checkbutton1 = new Gtk.CheckButton(); this.checkbutton1.CanFocus = true; this.checkbutton1.Name = "checkbutton1"; this.checkbutton1.Label = Mono.Unix.Catalog.GetString("checkbutton1"); this.checkbutton1.DrawIndicator = true; this.checkbutton1.UseUnderline = true; this.table1.Add(this.checkbutton1); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.checkbutton1])); w10.TopAttach = ((uint)(2)); w10.BottomAttach = ((uint)(3)); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.chkTest = new Gtk.CheckButton(); this.chkTest.CanFocus = true; this.chkTest.Name = "chkTest"; this.chkTest.Label = Mono.Unix.Catalog.GetString("checkbutton1"); this.chkTest.DrawIndicator = true; this.chkTest.UseUnderline = true; this.table1.Add(this.chkTest); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.chkTest])); w11.TopAttach = ((uint)(1)); w11.BottomAttach = ((uint)(2)); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.lblTest1 = new Gtk.Label(); this.lblTest1.Name = "lblTest1"; this.lblTest1.LabelProp = Mono.Unix.Catalog.GetString("This is a test message\nin a label"); this.table1.Add(this.lblTest1); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.lblTest1])); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.maskedEntry = new Gtk.Entry(); this.maskedEntry.CanFocus = true; this.maskedEntry.Name = "maskedEntry"; this.maskedEntry.IsEditable = true; this.maskedEntry.InvisibleChar = '●'; this.table1.Add(this.maskedEntry); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.maskedEntry])); w13.TopAttach = ((uint)(4)); w13.BottomAttach = ((uint)(5)); w13.LeftAttach = ((uint)(2)); w13.RightAttach = ((uint)(3)); w13.XOptions = ((Gtk.AttachOptions)(4)); w13.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.radiobutton1 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("radiobutton1")); this.radiobutton1.CanFocus = true; this.radiobutton1.Name = "radiobutton1"; this.radiobutton1.DrawIndicator = true; this.radiobutton1.UseUnderline = true; this.radiobutton1.Group = new GLib.SList(System.IntPtr.Zero); this.table1.Add(this.radiobutton1); Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table1[this.radiobutton1])); w14.TopAttach = ((uint)(3)); w14.BottomAttach = ((uint)(4)); w14.LeftAttach = ((uint)(1)); w14.RightAttach = ((uint)(2)); w14.XOptions = ((Gtk.AttachOptions)(4)); w14.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.radiobutton2 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("radiobutton2")); this.radiobutton2.CanFocus = true; this.radiobutton2.Name = "radiobutton2"; this.radiobutton2.DrawIndicator = true; this.radiobutton2.UseUnderline = true; this.radiobutton2.Group = this.radiobutton1.Group; this.table1.Add(this.radiobutton2); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.radiobutton2])); w15.TopAttach = ((uint)(3)); w15.BottomAttach = ((uint)(4)); w15.LeftAttach = ((uint)(2)); w15.RightAttach = ((uint)(3)); w15.XOptions = ((Gtk.AttachOptions)(4)); w15.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.radTest1 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("rad Opt 0")); this.radTest1.CanFocus = true; this.radTest1.Name = "radTest1"; this.radTest1.DrawIndicator = true; this.radTest1.UseUnderline = true; this.radTest1.Group = new GLib.SList(System.IntPtr.Zero); this.table1.Add(this.radTest1); Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.radTest1])); w16.TopAttach = ((uint)(2)); w16.BottomAttach = ((uint)(3)); w16.LeftAttach = ((uint)(1)); w16.RightAttach = ((uint)(2)); w16.XOptions = ((Gtk.AttachOptions)(4)); w16.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.radTest2 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("rad Opt 1")); this.radTest2.CanFocus = true; this.radTest2.Name = "radTest2"; this.radTest2.DrawIndicator = true; this.radTest2.UseUnderline = true; this.radTest2.Group = this.radTest1.Group; this.table1.Add(this.radTest2); Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table1[this.radTest2])); w17.TopAttach = ((uint)(2)); w17.BottomAttach = ((uint)(3)); w17.LeftAttach = ((uint)(2)); w17.RightAttach = ((uint)(3)); w17.XOptions = ((Gtk.AttachOptions)(4)); w17.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.spinbuttonTest1 = new Gtk.SpinButton(0, 100, 1); this.spinbuttonTest1.CanFocus = true; this.spinbuttonTest1.Name = "spinbuttonTest1"; this.spinbuttonTest1.Adjustment.PageIncrement = 10; this.spinbuttonTest1.ClimbRate = 1; this.spinbuttonTest1.Numeric = true; this.table1.Add(this.spinbuttonTest1); Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.spinbuttonTest1])); w18.TopAttach = ((uint)(4)); w18.BottomAttach = ((uint)(5)); w18.XOptions = ((Gtk.AttachOptions)(4)); w18.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.txtEntry = new Gtk.Entry(); this.txtEntry.CanFocus = true; this.txtEntry.Name = "txtEntry"; this.txtEntry.Text = Mono.Unix.Catalog.GetString("test text"); this.txtEntry.IsEditable = true; this.txtEntry.InvisibleChar = '●'; this.table1.Add(this.txtEntry); Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.txtEntry])); w19.LeftAttach = ((uint)(1)); w19.RightAttach = ((uint)(2)); w19.XOptions = ((Gtk.AttachOptions)(4)); w19.YOptions = ((Gtk.AttachOptions)(4)); this.hbox1.Add(this.table1); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox1[this.table1])); w20.Position = 1; w20.Expand = false; w20.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.vscrollbar1 = new Gtk.VScrollbar(null); this.vscrollbar1.Name = "vscrollbar1"; this.vscrollbar1.Adjustment.Upper = 100; this.vscrollbar1.Adjustment.PageIncrement = 10; this.vscrollbar1.Adjustment.PageSize = 10; this.vscrollbar1.Adjustment.StepIncrement = 1; this.hbox1.Add(this.vscrollbar1); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox1[this.vscrollbar1])); w21.Position = 2; w21.Expand = false; w21.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.imgTest1 = new Gtk.Image(); this.imgTest1.Name = "imgTest1"; this.hbox1.Add(this.imgTest1); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox1[this.imgTest1])); w22.Position = 3; w22.Expand = false; w22.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.imgTest2 = new Gtk.Image(); this.imgTest2.Name = "imgTest2"; this.hbox1.Add(this.imgTest2); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox1[this.imgTest2])); w23.Position = 5; w23.Expand = false; w23.Fill = false; this.notebook1.Add(this.hbox1); // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("page1"); this.notebook1.SetTabLabel(this.hbox1, this.label1); this.label1.ShowAll(); // Container child notebook1.Gtk.Notebook+NotebookChild this.calendar1 = new Gtk.Calendar(); this.calendar1.CanFocus = true; this.calendar1.Name = "calendar1"; this.calendar1.DisplayOptions = ((Gtk.CalendarDisplayOptions)(3)); this.notebook1.Add(this.calendar1); Gtk.Notebook.NotebookChild w25 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.calendar1])); w25.Position = 1; // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("page2"); this.notebook1.SetTabLabel(this.calendar1, this.label2); this.label2.ShowAll(); this.vbox1.Add(this.notebook1); Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook1])); w26.Position = 2; w26.Expand = false; w26.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.progressbar1 = new Gtk.ProgressBar(); this.progressbar1.Name = "progressbar1"; this.vbox1.Add(this.progressbar1); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox1[this.progressbar1])); w27.Position = 3; w27.Expand = false; w27.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hscrollbar1 = new Gtk.HScrollbar(null); this.hscrollbar1.Name = "hscrollbar1"; this.hscrollbar1.Adjustment.Upper = 100; this.hscrollbar1.Adjustment.PageIncrement = 10; this.hscrollbar1.Adjustment.PageSize = 10; this.hscrollbar1.Adjustment.StepIncrement = 1; this.hscrollbar1.Adjustment.Value = 9.28317766722556; this.vbox1.Add(this.hscrollbar1); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox1[this.hscrollbar1])); w28.Position = 4; w28.Expand = false; w28.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.hpaned1 = new Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 19; // Container child hpaned1.Gtk.Paned+PanedChild this.vscale1 = new Gtk.VScale(null); this.vscale1.CanFocus = true; this.vscale1.Name = "vscale1"; this.vscale1.Adjustment.Upper = 100; this.vscale1.Adjustment.PageIncrement = 10; this.vscale1.Adjustment.StepIncrement = 1; this.vscale1.DrawValue = true; this.vscale1.Digits = 0; this.vscale1.ValuePos = ((Gtk.PositionType)(2)); this.hpaned1.Add(this.vscale1); Gtk.Paned.PanedChild w29 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vscale1])); w29.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild this.GtkScrolledWindow2 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow2.Name = "GtkScrolledWindow2"; this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild this.nodeview1 = new Gtk.NodeView(); this.nodeview1.CanFocus = true; this.nodeview1.Name = "nodeview1"; this.GtkScrolledWindow2.Add(this.nodeview1); this.hpaned1.Add(this.GtkScrolledWindow2); this.hbox2.Add(this.hpaned1); Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.hbox2[this.hpaned1])); w32.Position = 0; // Container child hbox2.Gtk.Box+BoxChild this.GtkScrolledWindow1 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild this.txtViewTest = new Gtk.TextView(); this.txtViewTest.CanFocus = true; this.txtViewTest.Name = "txtViewTest"; this.GtkScrolledWindow1.Add(this.txtViewTest); this.hbox2.Add(this.GtkScrolledWindow1); Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.hbox2[this.GtkScrolledWindow1])); w34.Position = 1; // Container child hbox2.Gtk.Box+BoxChild this.frame1 = new Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame1.Gtk.Container+ContainerChild this.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(12)); this.frame1.Add(this.GtkAlignment); this.GtkLabel13 = new Gtk.Label(); this.GtkLabel13.Name = "GtkLabel13"; this.GtkLabel13.LabelProp = Mono.Unix.Catalog.GetString("<b>frame1</b>"); this.GtkLabel13.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel13; this.hbox2.Add(this.frame1); Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.hbox2[this.frame1])); w36.Position = 2; w36.Expand = false; w36.Fill = false; this.vbox1.Add(this.hbox2); Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2])); w37.Position = 5; // Container child vbox1.Gtk.Box+BoxChild this.statusbar1 = new Gtk.Statusbar(); this.statusbar1.Name = "statusbar1"; this.statusbar1.Spacing = 6; this.vbox1.Add(this.statusbar1); Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1])); w38.Position = 7; w38.Expand = false; w38.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 757; this.DefaultHeight = 516; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); }