public WebSyncPreferencesWidget (Api.OAuth oauth, string server, EventHandler requiredPrefChanged) : base (false, 5) { this.oauth = oauth; Gtk.Table prefsTable = new Gtk.Table (1, 2, false); prefsTable.RowSpacing = 5; prefsTable.ColumnSpacing = 10; serverEntry = new Gtk.Entry (); serverEntry.Text = server; AddRow (prefsTable, serverEntry, Catalog.GetString ("Se_rver:"), 0); Add (prefsTable); authButton = new Gtk.Button (); // TODO: If Auth is valid, this text should change if (!Auth.IsAccessToken) authButton.Label = Catalog.GetString ("Connect to Server"); else { authButton.Label = Catalog.GetString ("Connected"); authButton.Sensitive = false; } authButton.Clicked += OnAuthButtonClicked; serverEntry.Changed += delegate { Auth = null; }; serverEntry.Changed += requiredPrefChanged; Add (authButton); // TODO: Add a section that shows the user something to verify they put // in the right URL...something that constructs their user URL, maybe? ShowAll (); }
public PedigreeView() { this.Build(); _forceSize = 0; _showImages = false; _showMarriageData = false; _lines = new Hashtable(); _notebook = new Gtk.Notebook(); Add(_notebook); _notebook.ShowBorder = false; _notebook.ShowTabs = false; _table2 = new Gtk.Table(1, 1, false); AddTableToNotebook(_table2); _table3 = new Gtk.Table(1, 1, false); AddTableToNotebook(_table3); _table4 = new Gtk.Table(1, 1, false); AddTableToNotebook(_table4); _table5 = new Gtk.Table(1, 1, false); AddTableToNotebook(_table5); _notebook.CurrentPage = 0; _notebook.ShowAll(); }
public ActionGroupEditor() { changedEvent = new ObjectWrapperEventHandler (OnActionChanged); Gtk.Fixed fx = new Gtk.Fixed (); table = new Gtk.Table (0, 0, false); table.RowSpacing = 8; table.ColumnSpacing = 8; table.BorderWidth = 12; Gtk.EventBox ebox = new Gtk.EventBox (); ebox.ModifyBg (Gtk.StateType.Normal, this.Style.Backgrounds [0]); headerLabel = new EditableLabel (); headerLabel.MarkupTemplate = "<b>$TEXT</b>"; headerLabel.Changed += OnGroupNameChanged; Gtk.VBox vbox = new Gtk.VBox (); Gtk.Label grpLabel = new Gtk.Label (); grpLabel.Xalign = 0; grpLabel.Markup = "<small><i>Action Group</i></small>"; // vbox.PackStart (grpLabel, false, false, 0); vbox.PackStart (headerLabel, false, false, 3); vbox.BorderWidth = 12; ebox.Add (vbox); Gtk.VBox box = new Gtk.VBox (); box.Spacing = 6; box.PackStart (ebox, false, false, 0); box.PackStart (table, false, false, 0); fx.Put (box, 0, 0); Add (fx); ShowAll (); }
public ExportToHtmlDialog (string default_file) : base (Catalog.GetString ("Destination for HTML Export"), null, Gtk.FileChooserAction.Save, new object[] {}) { AddButton (Gtk.Stock.Cancel, Gtk.ResponseType.Cancel); AddButton (Gtk.Stock.Save, Gtk.ResponseType.Ok); DefaultResponse = Gtk.ResponseType.Ok; Gtk.Table table = new Gtk.Table (2, 2, false); export_linked = new Gtk.CheckButton (Catalog.GetString ("Export linked notes")); export_linked.Toggled += OnExportLinkedToggled; table.Attach (export_linked, 0, 2, 0, 1, Gtk.AttachOptions.Fill, 0, 0, 0); export_linked_all = new Gtk.CheckButton (Catalog.GetString ("Include all other linked notes")); table.Attach (export_linked_all, 1, 2, 1, 2, Gtk.AttachOptions.Expand | Gtk.AttachOptions.Fill, 0, 20, 0); ExtraWidget = table; DoOverwriteConfirmation = true; LocalOnly = true; ShowAll (); LoadPreferences (default_file); }
public displayWindow(int picWidth, int picHeight) : base(Gtk.WindowType.Toplevel) { Build (); displayTable = new Gtk.Table ((uint)picWidth/128, (uint)picHeight/128, false); this.Add (displayTable); this.ShowAll (); this.Visible = true; }
public CreateNotebookDialog(Gtk.Window parent, Gtk.DialogFlags flags) : base (parent, flags, Gtk.MessageType.Info, Gtk.ButtonsType.None, Catalog.GetString ("Create a new notebook"), Catalog.GetString ("Type the name of the notebook you'd like to create.")) { this.Pixbuf = newNotebookIconDialog; Gtk.Table table = new Gtk.Table (2, 2, false); Gtk.Label label = new Gtk.Label (Catalog.GetString ("N_otebook name:")); label.Xalign = 0; label.UseUnderline = true; label.Show (); nameEntry = new Gtk.Entry (); nameEntry.Changed += OnNameEntryChanged; nameEntry.ActivatesDefault = true; nameEntry.Show (); label.MnemonicWidget = nameEntry; errorLabel = new Gtk.Label (); errorLabel.Xalign = 0; errorLabel.Markup = string.Format("<span foreground='red' style='italic'>{0}</span>", Catalog.GetString ("Name already taken")); table.Attach (label, 0, 1, 0, 1); table.Attach (nameEntry, 1, 2, 0, 1); table.Attach (errorLabel, 1, 2, 1, 2); table.Show (); ExtraWidget = table; AddButton (Gtk.Stock.Cancel, Gtk.ResponseType.Cancel, false); AddButton ( newNotebookIcon, // Translation note: This is the Create button in the Create // New Note Dialog. Catalog.GetString ("C_reate"), Gtk.ResponseType.Ok, true); // Only let the Ok response be sensitive when // there's something in nameEntry SetResponseSensitive (Gtk.ResponseType.Ok, false); errorLabel.Hide (); }
//TODO: dropdown menus for picking string substitutions. also substitutions for port, ip public clsDebuggerOptionsDialog() : base("SSH Debug", MonoDevelop.Ide.MessageService.RootWindow, Gtk.DialogFlags.DestroyWithParent | Gtk.DialogFlags.Modal) { properties = PropertyService.Get ("MonoDevelop.Debugger.Soft.SSHDebug", new Properties()); AddActionWidget (connectButton, connectResponse); AddActionWidget (newButton, newResponse); AddActionWidget (new Gtk.Button (Gtk.Stock.Cancel), Gtk.ResponseType.Cancel); var table = new Gtk.Table (1, 2, false); table.BorderWidth = 6; VBox.PackStart (table, true, true, 0); table.Attach (new Gtk.Label ("Host") { Xalign = 0 }, 0, 1, 0, 1); var values = clsSSHDebuggerEngine.HostsList.Select (x => String.Format ("{0} ({1})", x.Name, System.IO.Path.GetFileName (x.ScriptPath))).ToArray (); combo = new Gtk.ComboBox (values); int row=0; if (clsSSHDebuggerEngine.HostsList.Count == 0) { connectButton.Sensitive = false; } else { var lastSelected = clsSSHDebuggerEngine.HostsList.Find (x => x.ScriptPath == properties.Get<string> ("host", "")); if (lastSelected != null) { row = clsSSHDebuggerEngine.HostsList.IndexOf (lastSelected); if (row == -1) row = 0; } Gtk.TreeIter iter; combo.Model.IterNthChild (out iter, row); combo.SetActiveIter (iter); SelectedHost = clsSSHDebuggerEngine.HostsList [combo.Active]; combo.Changed += (object sender, EventArgs e) => { SelectedHost = clsSSHDebuggerEngine.HostsList [combo.Active]; }; } table.Attach (combo, 1, 2, 0, 1); VBox.ShowAll (); }
protected virtual void Build() { Stetic.Gui.Initialize(); // Widget CBinding.CompilerPanel Stetic.BinContainer.Attach(this); this.Name = "CBinding.CompilerPanel"; // Container child CBinding.CompilerPanel.Gtk.Container+ContainerChild this.table2 = new Gtk.Table(((uint)(3)), ((uint)(3)), false); this.table2.Name = "table2"; this.table2.RowSpacing = ((uint)(6)); this.table2.ColumnSpacing = ((uint)(6)); // Container child table2.Gtk.Table+TableChild this.compilerComboBox = Gtk.ComboBox.NewText(); this.compilerComboBox.Name = "compilerComboBox"; this.table2.Add(this.compilerComboBox); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table2[this.compilerComboBox])); w1.TopAttach = ((uint)(1)); w1.BottomAttach = ((uint)(2)); w1.LeftAttach = ((uint)(1)); w1.RightAttach = ((uint)(2)); w1.XOptions = ((Gtk.AttachOptions)(4)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.useCcacheCheckBox = new Gtk.CheckButton(); this.useCcacheCheckBox.CanFocus = true; this.useCcacheCheckBox.Name = "useCcacheCheckBox"; this.useCcacheCheckBox.Label = Mono.Unix.Catalog.GetString("Use ccache"); this.useCcacheCheckBox.DrawIndicator = true; this.useCcacheCheckBox.UseUnderline = true; this.table2.Add(this.useCcacheCheckBox); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table2[this.useCcacheCheckBox])); w2.TopAttach = ((uint)(2)); w2.BottomAttach = ((uint)(3)); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); this.Add(this.table2); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.compilerComboBox.Changed += new System.EventHandler(this.OnCompilerComboBoxChanged); }
internal ActionMenu (Widget wrapper, IMenuItemContainer parentMenu, ActionTreeNode node) { DND.DestSet (this, true); parentNode = node; this.parentMenu = parentMenu; this.wrapper = wrapper; this.nodes = node.Children; table = new Gtk.Table (0, 0, false); table.ColumnSpacing = 5; table.RowSpacing = 5; table.BorderWidth = 5; this.AppPaintable = true; Add (table); Fill (); parentNode.ChildNodeAdded += OnChildAdded; parentNode.ChildNodeRemoved += OnChildRemoved; }
public PreferenceView() { vbox1 = new Gtk.VBox () { Spacing = 6 }; table1 = new Gtk.Table (3, 2, true) { RowSpacing = 6, ColumnSpacing = 6 }; entPassword = new Gtk.Entry () { CanFocus = true, IsEditable = true, Visibility = false, InvisibleChar = '●' }; table1.Attach (entPassword, 1, 2, 2, 3); entUrl = new Gtk.Entry () { CanFocus = true, IsEditable = true }; table1.Attach (entUrl, 1, 2, 0, 1); entUser = new Gtk.Entry () { CanFocus = true, IsEditable = true }; table1.Attach (entUser, 1, 2, 1, 2); lblPassword = new Gtk.Label ("Password:"******"Ampache Server Name:"); table1.Attach (lblUrl, 0, 1, 0 ,1); lblUser = new Gtk.Label ("User Name:"); table1.Attach (lblUser, 0, 1, 1, 2); vbox1.PackStart (table1, true, false, 0); hbox1 = new Gtk.HBox (); btnSave = new Gtk.Button (); btnSave.Label = "Save"; btnSave.Clicked += Save_OnClicked; hbox1.PackStart (btnSave, false, false, 0); btnClear = new Gtk.Button (); btnClear.Label = "Clear"; btnClear.Clicked += Clean_OnClicked; hbox1.PackStart (btnClear, true, false, 0); vbox1.PackStart (hbox1, false, false, 0); this.Add (vbox1); ShowAll (); entUrl.Text = AmpacheSource.AmpacheRootAddress.Get(AmpacheSource.AmpacheRootAddress.DefaultValue); entUser.Text = AmpacheSource.UserName.Get(AmpacheSource.UserName.DefaultValue); entPassword.Text = AmpacheSource.UserPassword.Get(AmpacheSource.UserPassword.DefaultValue); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Monoplayer.windows.MainWindow Gtk.UIManager w1 = new Gtk.UIManager(); Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); w1.InsertActionGroup(w2, 0); this.AddAccelGroup(w1.AccelGroup); this.Name = "Monoplayer.windows.MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Monoplayer"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child Monoplayer.windows.MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.menus_box = new Gtk.VBox(); this.menus_box.Name = "menus_box"; this.menus_box.Spacing = 6; this.vbox1.Add(this.menus_box); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menus_box])); w3.Position = 0; // Container child vbox1.Gtk.Box+BoxChild this.centro = new Gtk.VBox(); this.centro.Name = "centro"; this.centro.Spacing = 6; this.vbox1.Add(this.centro); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.centro])); w4.Position = 1; w4.Padding = ((uint)(5)); // Container child vbox1.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(1)), ((uint)(4)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.hseparator2 = new Gtk.HSeparator(); this.hseparator2.Name = "hseparator2"; this.table1.Add(this.hseparator2); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.hseparator2])); w5.RightAttach = ((uint)(4)); w5.XOptions = ((Gtk.AttachOptions)(7)); w5.YOptions = ((Gtk.AttachOptions)(4)); this.vbox1.Add(this.table1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.table1])); w6.Position = 2; w6.Expand = false; w6.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; this.hbox1.BorderWidth = ((uint)(2)); // Container child hbox1.Gtk.Box+BoxChild this.frame3 = new Gtk.Frame(); this.frame3.Name = "frame3"; this.frame3.ShadowType = ((Gtk.ShadowType)(1)); // Container child frame3.Gtk.Container+ContainerChild this.label1 = new Gtk.Label(); this.label1.WidthRequest = 150; this.label1.Name = "label1"; this.label1.LabelProp = ""; this.frame3.Add(this.label1); this.hbox1.Add(this.frame3); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame3])); w8.Position = 0; w8.Expand = false; w8.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.frame4 = new Gtk.Frame(); this.frame4.Name = "frame4"; this.frame4.ShadowType = ((Gtk.ShadowType)(1)); // Container child frame4.Gtk.Container+ContainerChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.progress = new Gtk.ProgressBar(); this.progress.Name = "progress"; this.hbox2.Add(this.progress); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox2[this.progress])); w9.Position = 0; // Container child hbox2.Gtk.Box+BoxChild this.time = new Gtk.Label(); this.time.WidthRequest = 100; this.time.Name = "time"; this.time.LabelProp = Mono.Unix.Catalog.GetString("00:00 / 00:00"); this.hbox2.Add(this.time); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox2[this.time])); w10.Position = 1; w10.Expand = false; w10.Fill = false; this.frame4.Add(this.hbox2); this.hbox1.Add(this.frame4); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame4])); w12.Position = 1; // Container child hbox1.Gtk.Box+BoxChild this.frame5 = new Gtk.Frame(); this.frame5.Name = "frame5"; this.frame5.ShadowType = ((Gtk.ShadowType)(1)); // Container child frame5.Gtk.Container+ContainerChild this.label3 = new Gtk.Label(); this.label3.WidthRequest = 150; this.label3.Name = "label3"; this.label3.LabelProp = ""; this.frame5.Add(this.label3); this.hbox1.Add(this.frame5); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame5])); w14.Position = 2; w14.Expand = false; w14.Fill = false; this.vbox1.Add(this.hbox1); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); w15.Position = 3; w15.Expand = false; w15.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 628; this.DefaultHeight = 219; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.AddLocationDialog this.Name = "ocmgtk.AddLocationDialog"; this.Title = Mono.Unix.Catalog.GetString("Add Location..."); this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; this.BorderWidth = ((uint)(6)); this.Resizable = false; this.AllowGrow = false; this.Role = ""; this.SkipPagerHint = true; this.SkipTaskbarHint = true; // Internal child ocmgtk.AddLocationDialog.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)(2)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Name:"); this.table1.Add(this.label1); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.label1])); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.locationwidget1 = new ocmgtk.LocationWidget(); this.locationwidget1.Events = ((Gdk.EventMask)(256)); this.locationwidget1.Name = "locationwidget1"; this.locationwidget1.Latitude = 0; this.locationwidget1.Longitude = 0; this.table1.Add(this.locationwidget1); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.locationwidget1])); w3.TopAttach = ((uint)(1)); w3.BottomAttach = ((uint)(2)); w3.RightAttach = ((uint)(2)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.nameEntry = new Gtk.Entry(); this.nameEntry.CanFocus = true; this.nameEntry.Name = "nameEntry"; this.nameEntry.IsEditable = true; this.nameEntry.InvisibleChar = '•'; this.table1.Add(this.nameEntry); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.nameEntry])); w4.LeftAttach = ((uint)(1)); w4.RightAttach = ((uint)(2)); w4.YOptions = ((Gtk.AttachOptions)(4)); w1.Add(this.table1); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[this.table1])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Internal child ocmgtk.AddLocationDialog.ActionArea Gtk.HButtonBox w6 = this.ActionArea; w6.Name = "dialog1_ActionArea"; w6.Spacing = 10; w6.BorderWidth = ((uint)(5)); w6.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 w7 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonCancel])); w7.Expand = false; w7.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 w8 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonOk])); w8.Position = 1; w8.Expand = false; w8.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 351; this.DefaultHeight = 195; this.Show(); this.buttonCancel.Clicked += new System.EventHandler(this.OnCancelClick); this.buttonOk.Clicked += new System.EventHandler(this.OnOKClick); }
public void CreateGui() { Gtk.Image icn_reload=new Gtk.Image(Gtk.Stock.Refresh,Gtk.IconSize.Button); _reload=new Gtk.Button(icn_reload); _reload.Clicked+=OnReload; _performer=new Gtk.Entry(200); _title=new Gtk.Entry(200); _title.WidthChars=60; _performer.WidthChars=60; _subtitle=new Gtk.Entry(300); _subtitle.WidthChars=60; _composer=new Gtk.Entry(200); _composer.WidthChars=60; _year=new Gtk.Entry(20); _year.WidthChars=20; _image=new Gtk.Image(); _image.SetSizeRequest (100,100); _imagefile=new Gtk.FileChooserButton("Choose image file",Gtk.FileChooserAction.Open); _imagefile.FileSet+=new EventHandler(EvtImageSet); Gtk.Image icn_add_track=new Gtk.Image(Gtk.Stock.Add,Gtk.IconSize.Button); _add_track=new Gtk.Button(icn_add_track); _add_track.Clicked+=OnAddTrack; Gtk.Image icn_del_track=new Gtk.Image(Gtk.Stock.Delete,Gtk.IconSize.Button); _del_track=new Gtk.Button(icn_del_track); _del_track.Clicked+=OnDelTrack; Gtk.Image icn_save=new Gtk.Image(Gtk.Stock.Save,Gtk.IconSize.Button); _save=new Gtk.Button(icn_save); _save.Clicked+=OnSave; _store=new Gtk.ListStore(typeof(int),typeof(string),typeof(string),typeof(string),typeof(string),typeof(string)); _tracks=new Gtk.TreeView(); { Gtk.CellRendererText cr0=new Gtk.CellRendererText(); cr0.Scale=0.8; _tracks.AppendColumn ("Nr.", cr0, "text", 0); Gtk.CellRendererText cr_title=new Gtk.CellRendererText(); cr_title.Scale=0.8; cr_title.Editable=true; cr_title.Edited+=new Gtk.EditedHandler(delegate(object sender,Gtk.EditedArgs args) { setCell(1,args.NewText,new Gtk.TreePath(args.Path)); }); _tracks.AppendColumn ("Title", cr_title, "text", 1); Gtk.CellRendererText cr_artist=new Gtk.CellRendererText(); cr_artist.Editable=true; cr_artist.Scale=0.8; cr_artist.Edited+=new Gtk.EditedHandler(delegate(object sender,Gtk.EditedArgs args) { setCell(2,args.NewText,new Gtk.TreePath(args.Path)); }); _tracks.AppendColumn ("Artist", cr_artist, "text", 2); Gtk.CellRendererText cr_composer=new Gtk.CellRendererText(); cr_composer.Editable=true; cr_composer.Scale=0.8; cr_composer.Edited+=new Gtk.EditedHandler(delegate(object sender,Gtk.EditedArgs args) { setCell(3,args.NewText,new Gtk.TreePath(args.Path)); }); _tracks.AppendColumn ("Composer", cr_composer, "text", 3); Gtk.CellRendererText cr_piece=new Gtk.CellRendererText(); cr_piece.Editable=true; cr_piece.Scale=0.8; cr_piece.Edited+=new Gtk.EditedHandler(delegate(object sender,Gtk.EditedArgs args) { setCell(4,args.NewText,new Gtk.TreePath(args.Path)); }); _tracks.AppendColumn ("Piece", cr_piece, "text", 4); Gtk.CellRendererText cr_time=new Gtk.CellRendererText(); cr_time.Editable=true; cr_time.Scale=0.8; cr_time.Edited+=new Gtk.EditedHandler(delegate(object sender,Gtk.EditedArgs args) { setCell (5,args.NewText,new Gtk.TreePath(args.Path)); }); _tracks.AppendColumn ("Offset", cr_time, "text", 5); } _tracks.Model = _store; Gtk.Table tbl=new Gtk.Table(2,5,false); tbl.Attach (new Gtk.Label("Album:"),0,1,0,1); tbl.Attach (_title,1,2,0,1); tbl.Attach (new Gtk.Label("Artist:"),0,1,1,2); tbl.Attach (_performer,1,2,1,2); tbl.Attach (new Gtk.Label("Composer:"),0,1,2,3); tbl.Attach (_composer,1,2,2,3); tbl.Attach (new Gtk.Label("Subtitle:"),0,1,3,4); tbl.Attach (_subtitle,1,2,3,4); tbl.Attach (new Gtk.Label("year:"),0,1,4,5); tbl.Attach (_year,1,2,4,5); Gtk.Frame frm=new Gtk.Frame(); frm.Add (tbl); Gtk.HBox hb2=new Gtk.HBox(); hb2.PackEnd (_reload,false,false,1); hb2.PackEnd (_del_track,false,false,1); hb2.PackEnd (_add_track,false,false,1); hb2.PackEnd (_save,false,false,1); Gtk.HBox hb=new Gtk.HBox(); Gtk.VBox vb1=new Gtk.VBox(); vb1.PackStart (frm,false,false,0); vb1.PackStart (hb2,true,true,0); hb.PackStart (vb1,false,false,0); Gtk.Frame frm2=new Gtk.Frame(); frm2.Add (_image); Gtk.VBox vbi=new Gtk.VBox(); Gtk.HBox bb=new Gtk.HBox(); bb.PackStart(new Gtk.VBox(),true,true,0); bb.PackStart(frm2,false,false,0); bb.PackEnd (new Gtk.VBox(),true,true,0); vbi.PackStart (bb,true,true,2); vbi.PackEnd (_imagefile,false,false,2); hb.PackEnd (vbi,true,true,2); Gtk.ScrolledWindow scroll=new Gtk.ScrolledWindow(); scroll.Add (_tracks); scroll.SetSizeRequest (800,300); base.VBox.PackStart(hb,false,false,4); base.VBox.PackStart(scroll,true,true,0); base.VBox.ShowAll (); base.AddButton ("Close",0); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Gedcom.UI.GTK.Widgets.FamilyView Stetic.BinContainer.Attach(this); this.Events = ((Gdk.EventMask)(256)); this.Name = "Gedcom.UI.GTK.Widgets.FamilyView"; // Container child Gedcom.UI.GTK.Widgets.FamilyView.Gtk.Container+ContainerChild this.table1 = new Gtk.Table(((uint)(5)), ((uint)(5)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(12)); this.table1.BorderWidth = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.hbox7 = new Gtk.HBox(); this.hbox7.Name = "hbox7"; this.hbox7.Spacing = 6; // Container child hbox7.Gtk.Box+BoxChild this.scrolledwindow1 = new Gtk.ScrolledWindow(); this.scrolledwindow1.CanFocus = true; this.scrolledwindow1.Name = "scrolledwindow1"; this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow1.Gtk.Container+ContainerChild this.ChildrenTreeView = new Gtk.TreeView(); this.ChildrenTreeView.CanFocus = true; this.ChildrenTreeView.Name = "ChildrenTreeView"; this.ChildrenTreeView.RulesHint = true; this.scrolledwindow1.Add(this.ChildrenTreeView); this.hbox7.Add(this.scrolledwindow1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox7[this.scrolledwindow1])); w2.Position = 0; // Container child hbox7.Gtk.Box+BoxChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.AddChildButton = new Gtk.Button(); this.AddChildButton.CanFocus = true; this.AddChildButton.Name = "AddChildButton"; this.AddChildButton.UseStock = true; this.AddChildButton.UseUnderline = true; this.AddChildButton.Label = "gtk-add"; this.vbox2.Add(this.AddChildButton); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.AddChildButton])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.NewChildButton = new Gtk.Button(); this.NewChildButton.CanFocus = true; this.NewChildButton.Name = "NewChildButton"; this.NewChildButton.UseStock = true; this.NewChildButton.UseUnderline = true; this.NewChildButton.Label = "gtk-new"; this.vbox2.Add(this.NewChildButton); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.NewChildButton])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.hbox7.Add(this.vbox2); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox7[this.vbox2])); w5.Position = 1; w5.Expand = false; w5.Fill = false; this.table1.Add(this.hbox7); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.hbox7])); w6.TopAttach = ((uint)(4)); w6.BottomAttach = ((uint)(5)); w6.RightAttach = ((uint)(5)); // Container child table1.Gtk.Table+TableChild this.hseparator2 = new Gtk.HSeparator(); this.hseparator2.Name = "hseparator2"; this.table1.Add(this.hseparator2); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.hseparator2])); w7.TopAttach = ((uint)(1)); w7.BottomAttach = ((uint)(2)); w7.RightAttach = ((uint)(5)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.hseparator3 = new Gtk.HSeparator(); this.hseparator3.Name = "hseparator3"; this.table1.Add(this.hseparator3); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.hseparator3])); w8.TopAttach = ((uint)(3)); w8.BottomAttach = ((uint)(4)); w8.RightAttach = ((uint)(5)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.HusbandSpouseView = new Gedcom.UI.GTK.Widgets.SpouseView(); this.HusbandSpouseView.Events = ((Gdk.EventMask)(256)); this.HusbandSpouseView.Name = "HusbandSpouseView"; this.HusbandSpouseView.NameLabel = "Husband:"; this.table1.Add(this.HusbandSpouseView); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.HusbandSpouseView])); w9.RightAttach = ((uint)(3)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.MarriageView = new Gedcom.UI.GTK.Widgets.MarriageView(); this.MarriageView.Events = ((Gdk.EventMask)(256)); this.MarriageView.Name = "MarriageView"; this.table1.Add(this.MarriageView); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.MarriageView])); w10.TopAttach = ((uint)(2)); w10.BottomAttach = ((uint)(3)); w10.RightAttach = ((uint)(5)); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.vseparator2 = new Gtk.VSeparator(); this.vseparator2.Name = "vseparator2"; this.table1.Add(this.vseparator2); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.vseparator2])); w11.LeftAttach = ((uint)(3)); w11.RightAttach = ((uint)(4)); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.WifeSpouseView = new Gedcom.UI.GTK.Widgets.SpouseView(); this.WifeSpouseView.Events = ((Gdk.EventMask)(256)); this.WifeSpouseView.Name = "WifeSpouseView"; this.WifeSpouseView.NameLabel = "Wife:"; this.table1.Add(this.WifeSpouseView); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.WifeSpouseView])); w12.LeftAttach = ((uint)(4)); w12.RightAttach = ((uint)(5)); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); this.Add(this.table1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.ChildrenTreeView.RowActivated += new Gtk.RowActivatedHandler(this.OnChildrenTreeView_RowActivated); this.ChildrenTreeView.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnChildrenTreeView_ButtonPressEvent); this.AddChildButton.Clicked += new System.EventHandler(this.OnAddChildButton_Clicked); this.NewChildButton.Clicked += new System.EventHandler(this.OnNewChildButton_Clicked); }
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 Gedcom.UI.GTK.Widgets.DuplicateIndividualView Stetic.BinContainer.Attach(this); this.Name = "Gedcom.UI.GTK.Widgets.DuplicateIndividualView"; // Container child Gedcom.UI.GTK.Widgets.DuplicateIndividualView.Gtk.Container+ContainerChild this.table1 = new Gtk.Table(((uint)(6)), ((uint)(3)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(12)); this.table1.BorderWidth = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.hbox8 = new Gtk.HBox(); this.hbox8.Name = "hbox8"; this.hbox8.Spacing = 6; // Container child hbox8.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.ParentsLabel = new Gtk.Label(); this.ParentsLabel.Name = "ParentsLabel"; this.ParentsLabel.LabelProp = "Parents"; this.hbox1.Add(this.ParentsLabel); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.ParentsLabel])); w1.Position = 0; w1.Expand = false; w1.Fill = false; this.hbox8.Add(this.hbox1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox8[this.hbox1])); w2.Position = 0; this.table1.Add(this.hbox8); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.hbox8])); w3.RightAttach = ((uint)(3)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.HusbandBornInEntry = new Gtk.Entry(); this.HusbandBornInEntry.CanFocus = true; this.HusbandBornInEntry.Name = "HusbandBornInEntry"; this.HusbandBornInEntry.IsEditable = false; this.HusbandBornInEntry.InvisibleChar = '●'; this.table1.Add(this.HusbandBornInEntry); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.HusbandBornInEntry])); w4.TopAttach = ((uint)(3)); w4.BottomAttach = ((uint)(4)); w4.LeftAttach = ((uint)(1)); w4.RightAttach = ((uint)(2)); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.HusbandDateBornEntry = new Gtk.Entry(); this.HusbandDateBornEntry.CanFocus = true; this.HusbandDateBornEntry.Name = "HusbandDateBornEntry"; this.HusbandDateBornEntry.IsEditable = false; this.HusbandDateBornEntry.InvisibleChar = '●'; this.table1.Add(this.HusbandDateBornEntry); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.HusbandDateBornEntry])); w5.TopAttach = ((uint)(2)); w5.BottomAttach = ((uint)(3)); w5.LeftAttach = ((uint)(1)); w5.RightAttach = ((uint)(2)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.HusbandDateBornSourceButton = new Gtk.Button(); this.HusbandDateBornSourceButton.CanFocus = true; this.HusbandDateBornSourceButton.Name = "HusbandDateBornSourceButton"; // Container child HusbandDateBornSourceButton.Gtk.Container+ContainerChild this.image439 = new Gtk.Image(); this.image439.Name = "image439"; this.image439.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-index", Gtk.IconSize.Button, 20); this.HusbandDateBornSourceButton.Add(this.image439); this.HusbandDateBornSourceButton.Label = null; this.table1.Add(this.HusbandDateBornSourceButton); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.HusbandDateBornSourceButton])); w7.TopAttach = ((uint)(2)); w7.BottomAttach = ((uint)(3)); w7.LeftAttach = ((uint)(2)); w7.RightAttach = ((uint)(3)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.HusbandDateDiedEntry = new Gtk.Entry(); this.HusbandDateDiedEntry.CanFocus = true; this.HusbandDateDiedEntry.Name = "HusbandDateDiedEntry"; this.HusbandDateDiedEntry.IsEditable = false; this.HusbandDateDiedEntry.InvisibleChar = '●'; this.table1.Add(this.HusbandDateDiedEntry); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.HusbandDateDiedEntry])); w8.TopAttach = ((uint)(4)); w8.BottomAttach = ((uint)(5)); w8.LeftAttach = ((uint)(1)); w8.RightAttach = ((uint)(2)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.HusbandDateDiedSourceButton = new Gtk.Button(); this.HusbandDateDiedSourceButton.CanFocus = true; this.HusbandDateDiedSourceButton.Name = "HusbandDateDiedSourceButton"; // Container child HusbandDateDiedSourceButton.Gtk.Container+ContainerChild this.image440 = new Gtk.Image(); this.image440.Name = "image440"; this.image440.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-index", Gtk.IconSize.Button, 20); this.HusbandDateDiedSourceButton.Add(this.image440); this.HusbandDateDiedSourceButton.Label = null; this.table1.Add(this.HusbandDateDiedSourceButton); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.HusbandDateDiedSourceButton])); w10.TopAttach = ((uint)(4)); w10.BottomAttach = ((uint)(5)); w10.LeftAttach = ((uint)(2)); w10.RightAttach = ((uint)(3)); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.HusbandDiedInEntry = new Gtk.Entry(); this.HusbandDiedInEntry.CanFocus = true; this.HusbandDiedInEntry.Name = "HusbandDiedInEntry"; this.HusbandDiedInEntry.IsEditable = false; this.HusbandDiedInEntry.InvisibleChar = '●'; this.table1.Add(this.HusbandDiedInEntry); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.HusbandDiedInEntry])); w11.TopAttach = ((uint)(5)); w11.BottomAttach = ((uint)(6)); w11.LeftAttach = ((uint)(1)); w11.RightAttach = ((uint)(2)); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.HusbandNameEntry = new Gtk.Entry(); this.HusbandNameEntry.CanFocus = true; this.HusbandNameEntry.Name = "HusbandNameEntry"; this.HusbandNameEntry.IsEditable = false; this.HusbandNameEntry.InvisibleChar = '●'; this.table1.Add(this.HusbandNameEntry); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.HusbandNameEntry])); w12.TopAttach = ((uint)(1)); w12.BottomAttach = ((uint)(2)); w12.LeftAttach = ((uint)(1)); w12.RightAttach = ((uint)(2)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.HusbandNameSourceButton = new Gtk.Button(); this.HusbandNameSourceButton.CanFocus = true; this.HusbandNameSourceButton.Name = "HusbandNameSourceButton"; // Container child HusbandNameSourceButton.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.HusbandNameSourceButton.Add(this.image438); this.HusbandNameSourceButton.Label = null; this.table1.Add(this.HusbandNameSourceButton); Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table1[this.HusbandNameSourceButton])); w14.TopAttach = ((uint)(1)); w14.BottomAttach = ((uint)(2)); w14.LeftAttach = ((uint)(2)); w14.RightAttach = ((uint)(3)); w14.XOptions = ((Gtk.AttachOptions)(4)); w14.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label10 = new Gtk.Label(); this.label10.Name = "label10"; this.label10.Xalign = 1F; this.label10.LabelProp = "in:"; this.table1.Add(this.label10); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.label10])); w15.TopAttach = ((uint)(5)); w15.BottomAttach = ((uint)(6)); w15.XOptions = ((Gtk.AttachOptions)(4)); w15.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label12 = new Gtk.Label(); this.label12.Name = "label12"; this.label12.Xalign = 1F; this.label12.LabelProp = "in:"; this.table1.Add(this.label12); Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.label12])); w16.TopAttach = ((uint)(3)); w16.BottomAttach = ((uint)(4)); w16.XOptions = ((Gtk.AttachOptions)(4)); w16.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label18 = new Gtk.Label(); this.label18.Name = "label18"; this.label18.Xalign = 1F; this.label18.LabelProp = "Born:"; this.table1.Add(this.label18); Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table1[this.label18])); w17.TopAttach = ((uint)(2)); w17.BottomAttach = ((uint)(3)); w17.XOptions = ((Gtk.AttachOptions)(4)); w17.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label19 = new Gtk.Label(); this.label19.Name = "label19"; this.label19.Xalign = 1F; this.label19.LabelProp = "Died:"; this.table1.Add(this.label19); Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.label19])); 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.NameButton = new Gtk.Button(); this.NameButton.CanFocus = true; this.NameButton.Name = "NameButton"; // Container child NameButton.Gtk.Container+ContainerChild this.SpouseNameLabel = new Gtk.Label(); this.SpouseNameLabel.Name = "SpouseNameLabel"; this.SpouseNameLabel.Xalign = 1F; this.SpouseNameLabel.LabelProp = "Name:"; this.NameButton.Add(this.SpouseNameLabel); this.NameButton.Label = null; this.table1.Add(this.NameButton); Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(this.table1[this.NameButton])); w20.TopAttach = ((uint)(1)); w20.BottomAttach = ((uint)(2)); w20.XOptions = ((Gtk.AttachOptions)(4)); w20.YOptions = ((Gtk.AttachOptions)(4)); this.Add(this.table1); if ((this.Child != null)) { this.Child.ShowAll(); } 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.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null); this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File"); w1.Add(this.FileAction, null); this.AddCounterAction = new Gtk.Action("AddCounterAction", Mono.Unix.Catalog.GetString("_Add counter"), null, "gtk-add"); this.AddCounterAction.ShortLabel = Mono.Unix.Catalog.GetString("_Add performance counter"); w1.Add(this.AddCounterAction, null); this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit"); this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Quit"); w1.Add(this.QuitAction, null); this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, null); this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help"); w1.Add(this.HelpAction, null); this.HelpAction1 = new Gtk.Action("HelpAction1", Mono.Unix.Catalog.GetString("_Help"), null, "gtk-help"); this.HelpAction1.ShortLabel = Mono.Unix.Catalog.GetString("_Help"); w1.Add(this.HelpAction1, null); this.quitAction = new Gtk.Action("quitAction", null, null, "gtk-quit"); w1.Add(this.quitAction, null); this.addAction = new Gtk.Action("addAction", null, Mono.Unix.Catalog.GetString("Add a new counter"), "gtk-add"); w1.Add(this.addAction, null); this.preferencesAction = new Gtk.Action("preferencesAction", null, Mono.Unix.Catalog.GetString("Preferences"), "gtk-preferences"); w1.Add(this.preferencesAction, null); this.stopAction = new Gtk.Action("stopAction", null, null, "gtk-stop"); w1.Add(this.stopAction, null); this.ClearAction = new Gtk.Action("ClearAction", Mono.Unix.Catalog.GetString("_Clear"), Mono.Unix.Catalog.GetString("Remove all the counters"), "gtk-clear"); this.ClearAction.ShortLabel = Mono.Unix.Catalog.GetString("_Clear"); w1.Add(this.ClearAction, null); this.mediaPauseAction = new Gtk.Action("mediaPauseAction", null, Mono.Unix.Catalog.GetString("Stop ccollecting samples"), "gtk-media-pause"); w1.Add(this.mediaPauseAction, null); this.mediaPlayAction = new Gtk.Action("mediaPlayAction", null, Mono.Unix.Catalog.GetString("Start collecting samples"), "gtk-media-play"); w1.Add(this.mediaPlayAction, null); this.SaveAsAction = new Gtk.Action("SaveAsAction", Mono.Unix.Catalog.GetString("Save _As"), null, "gtk-save-as"); this.SaveAsAction.ShortLabel = Mono.Unix.Catalog.GetString("Save _As"); w1.Add(this.SaveAsAction, null); this.AddCounterSetAction = new Gtk.Action("AddCounterSetAction", Mono.Unix.Catalog.GetString("Add counter set"), null, "gtk-add"); this.AddCounterSetAction.ShortLabel = Mono.Unix.Catalog.GetString("Add counter set"); w1.Add(this.AddCounterSetAction, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Mono Perf Monitor"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.table1 = new Gtk.Table(((uint)(3)), ((uint)(3)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FileAction' action='FileAction'><menuitem name='AddCounterAction' action='AddCounterAction'/><menuitem name='AddCounterSetAction' action='AddCounterSetAction'/><menuitem name='SaveAsAction' action='SaveAsAction'/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='HelpAction1' action='HelpAction1'/></menu></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.table1.Add(this.menubar1); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.menubar1])); w2.RightAttach = ((uint)(3)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.scrolledwindow1 = new Gtk.ScrolledWindow(); this.scrolledwindow1.CanFocus = true; this.scrolledwindow1.Name = "scrolledwindow1"; this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow1.Gtk.Container+ContainerChild Gtk.Viewport w3 = new Gtk.Viewport(); w3.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.graph_vbox = new Gtk.VBox(); this.graph_vbox.Name = "graph_vbox"; this.graph_vbox.Spacing = 6; w3.Add(this.graph_vbox); this.scrolledwindow1.Add(w3); this.table1.Add(this.scrolledwindow1); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.scrolledwindow1])); w6.TopAttach = ((uint)(2)); w6.BottomAttach = ((uint)(3)); w6.RightAttach = ((uint)(3)); w6.XOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='quitAction' action='quitAction'/><toolitem name='AddCounterAction' action='AddCounterAction'/><toolitem name='ClearAction' action='ClearAction'/><toolitem name='mediaPauseAction' action='mediaPauseAction'/><toolitem name='mediaPlayAction' action='mediaPlayAction'/><toolitem name='preferencesAction' action='preferencesAction'/></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.table1.Add(this.toolbar1); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.toolbar1])); w7.TopAttach = ((uint)(1)); w7.BottomAttach = ((uint)(2)); w7.RightAttach = ((uint)(3)); w7.YOptions = ((Gtk.AttachOptions)(4)); this.Add(this.table1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 533; this.DefaultHeight = 436; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.AddCounterAction.Activated += new System.EventHandler(this.AddCounter); this.QuitAction.Activated += new System.EventHandler(this.OnQuit); this.quitAction.Activated += new System.EventHandler(this.OnQuit); this.preferencesAction.Activated += new System.EventHandler(this.OnPreferences); this.ClearAction.Activated += new System.EventHandler(this.OnClear); this.mediaPauseAction.Activated += new System.EventHandler(this.OnPause); this.mediaPlayAction.Activated += new System.EventHandler(this.OnPlay); this.SaveAsAction.Activated += new System.EventHandler(this.OnSaveAs); this.AddCounterSetAction.Activated += new System.EventHandler(this.OnAddSet); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget mperfmon.AddSet this.Name = "mperfmon.AddSet"; this.Title = Mono.Unix.Catalog.GetString("Add a counter set"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.HasSeparator = false; // Internal child mperfmon.AddSet.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)(2)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.counterset = Gtk.ComboBox.NewText(); this.counterset.Name = "counterset"; this.table1.Add(this.counterset); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.counterset])); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.instances = new Gtk.TreeView(); this.instances.CanFocus = true; this.instances.Name = "instances"; this.instances.HeadersClickable = true; this.GtkScrolledWindow.Add(this.instances); this.table1.Add(this.GtkScrolledWindow); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow])); w4.TopAttach = ((uint)(1)); w4.BottomAttach = ((uint)(2)); w4.RightAttach = ((uint)(2)); // Container child table1.Gtk.Table+TableChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Counter set:"); this.table1.Add(this.label1); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.label1])); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); w1.Add(this.table1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w1[this.table1])); w6.Position = 0; // Internal child mperfmon.AddSet.ActionArea Gtk.HButtonBox w7 = this.ActionArea; w7.Name = "dialog1_ActionArea"; w7.Spacing = 6; w7.BorderWidth = ((uint)(5)); w7.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 w8 = ((Gtk.ButtonBox.ButtonBoxChild)(w7[this.buttonCancel])); w8.Expand = false; w8.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 w9 = ((Gtk.ButtonBox.ButtonBoxChild)(w7[this.buttonOk])); w9.Position = 1; w9.Expand = false; w9.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 300; this.Show(); this.counterset.Changed += new System.EventHandler(this.OnSetSelected); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.GarminUSBWidget Stetic.BinContainer.Attach(this); this.Name = "ocmgtk.GarminUSBWidget"; // Container child ocmgtk.GarminUSBWidget.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.table1 = new Gtk.Table(((uint)(3)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.descMode = Gtk.ComboBox.NewText(); this.descMode.AppendText(Mono.Unix.Catalog.GetString("Cache Name")); this.descMode.AppendText(Mono.Unix.Catalog.GetString("Cache Code/Size/Hint")); this.descMode.AppendText(Mono.Unix.Catalog.GetString("Cache Code/Size/Type")); this.descMode.Name = "descMode"; this.descMode.Active = 0; this.table1.Add(this.descMode); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.descMode])); w1.TopAttach = ((uint)(2)); w1.BottomAttach = ((uint)(3)); w1.LeftAttach = ((uint)(1)); w1.RightAttach = ((uint)(2)); w1.XOptions = ((Gtk.AttachOptions)(4)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Waypoint Name Format:"); this.table1.Add(this.label1); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.label1])); w2.TopAttach = ((uint)(1)); w2.BottomAttach = ((uint)(2)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 0F; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Waypoint Description Format:"); this.table1.Add(this.label2); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.label2])); w3.TopAttach = ((uint)(2)); w3.BottomAttach = ((uint)(3)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.limitCheck = new Gtk.CheckButton(); this.limitCheck.CanFocus = true; this.limitCheck.Name = "limitCheck"; this.limitCheck.Label = Mono.Unix.Catalog.GetString("Limit Number of Geocaches"); this.limitCheck.Active = true; this.limitCheck.DrawIndicator = true; this.limitCheck.UseUnderline = true; this.table1.Add(this.limitCheck); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.limitCheck])); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.limitEntry = new Gtk.Entry(); this.limitEntry.CanFocus = true; this.limitEntry.Name = "limitEntry"; this.limitEntry.Text = "500"; this.limitEntry.IsEditable = true; this.limitEntry.InvisibleChar = '•'; this.table1.Add(this.limitEntry); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.limitEntry])); w5.LeftAttach = ((uint)(1)); w5.RightAttach = ((uint)(2)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.nameMode = Gtk.ComboBox.NewText(); this.nameMode.AppendText(Mono.Unix.Catalog.GetString("Cache Code")); this.nameMode.AppendText(Mono.Unix.Catalog.GetString("Cache Name")); this.nameMode.Name = "nameMode"; this.nameMode.Active = 0; this.table1.Add(this.nameMode); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.nameMode])); 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)); this.vbox2.Add(this.table1); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.table1])); w7.Position = 0; w7.Expand = false; w7.Fill = false; // 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.image2 = new Gtk.Image(); this.image2.Name = "image2"; this.image2.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-warning", Gtk.IconSize.Menu, 16); this.hbox2.Add(this.image2); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox2[this.image2])); w8.Position = 0; w8.Expand = false; w8.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.hotPlugButton = new Gtk.Button(); this.hotPlugButton.CanFocus = true; this.hotPlugButton.Name = "hotPlugButton"; this.hotPlugButton.Relief = ((Gtk.ReliefStyle)(2)); // Container child hotPlugButton.Gtk.Container+ContainerChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("<b>Important:</b> You may need to configure non-root access to\nUSB to allow OCM to write to your Garmin Device. See:\n<span fgcolor=\"blue\">http://www.gpsbabel.org/os/Linux_Hotplug.html</span>"); this.label4.UseMarkup = true; this.hotPlugButton.Add(this.label4); this.hotPlugButton.Label = null; this.hbox2.Add(this.hotPlugButton); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox2[this.hotPlugButton])); w10.Position = 1; w10.Expand = false; w10.Fill = false; this.vbox2.Add(this.hbox2); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2])); w11.Position = 1; w11.Expand = false; w11.Fill = false; this.Add(this.vbox2); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); this.limitCheck.Toggled += new System.EventHandler(this.OnLimitToggle); this.hotPlugButton.Clicked += new System.EventHandler(this.OnHotplugClick); }
public DocumentationDialog(Documentation _doc) { documentation = _doc; Gtk.Label nameLabel = new Gtk.Label("<b>" + documentation.Name + "</b>"); nameLabel.Wrap = true; nameLabel.UseUnderline = false; nameLabel.UseMarkup = true; nameLabel.Xalign = 0.5f; VBox.PackStart(nameLabel, false, false, 10); string desc = documentation.Description; if (desc == null) { desc = ""; } var subidEntries = documentation.Keys; Gtk.Label descLabel = new Gtk.Label(desc); descLabel.Wrap = true; descLabel.UseUnderline = false; descLabel.Xalign = 0; VBox.PackStart(descLabel, false, false, 0); // Display X and Y (TODO: just display all unrecognized fields?) AddGenericField("Y"); AddGenericField("X"); // Create SubID table if (subidEntries.Count > 0) { Gtk.Label valuesLabel = new Gtk.Label("\nValues:"); valuesLabel.UseUnderline = false; valuesLabel.Xalign = 0; VBox.Add(valuesLabel); Gtk.Table subidTable = new Gtk.Table(2, (uint)subidEntries.Count * 2, false); uint subidX = 0; uint subidY = 0; foreach (string key in subidEntries) { string value = documentation.GetField(key); Gtk.Label l1 = new Gtk.Label(key); l1.UseUnderline = false; l1.Xalign = 0; l1.Yalign = 0; Gtk.Label l2 = new Gtk.Label(value); l2.UseUnderline = false; l2.Wrap = true; l2.Xalign = 0; l2.Yalign = 0; subidTable.Attach(l1, subidX + 0, subidX + 1, subidY, subidY + 1, Gtk.AttachOptions.Fill, Gtk.AttachOptions.Fill, 4, 0); subidTable.Attach(l2, subidX + 2, subidX + 3, subidY, subidY + 1); subidY++; subidTable.Attach(new Gtk.HSeparator(), subidX + 0, subidX + 3, subidY, subidY + 1, Gtk.AttachOptions.Fill, 0, 0, 0); subidY++; } subidTable.Attach(new Gtk.VSeparator(), subidX + 1, subidX + 2, 0, subidTable.NRows, 0, Gtk.AttachOptions.Fill, 4, 0); Gtk.ScrolledWindow scrolledWindow = new Gtk.ScrolledWindow(); scrolledWindow.AddWithViewport(subidTable); scrolledWindow.ShadowType = Gtk.ShadowType.EtchedIn; scrolledWindow.SetPolicy(Gtk.PolicyType.Automatic, Gtk.PolicyType.Automatic); subidTable.ShowAll(); // Determine width/height to request on scrolledWindow Gtk.Requisition subidTableRequest = subidTable.SizeRequest(); int width = Math.Min(subidTableRequest.Width + 20, 700); width = Math.Max(width, 400); int height = Math.Min(subidTableRequest.Height + 5, 400); height = Math.Max(height, 200); scrolledWindow.SetSizeRequest(width, height); VBox.PackStart(scrolledWindow, true, true, 0); } AddActionWidget(new Gtk.Button("gtk-ok"), 0); //SetSizeRequest(500, 500); ShowAll(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget mperfmon.Preferences this.Name = "mperfmon.Preferences"; this.Title = Mono.Unix.Catalog.GetString("Mono Perf Monitor preferences"); this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.HasSeparator = false; // Internal child mperfmon.Preferences.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)(6)); // Container child table1.Gtk.Table+TableChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Update interval (seconds):"); this.table1.Add(this.label1); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.label1])); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.update_interval = new Gtk.SpinButton(0.2, 60, 0.2); this.update_interval.CanFocus = true; this.update_interval.Name = "update_interval"; this.update_interval.Adjustment.PageIncrement = 1; this.update_interval.Adjustment.PageSize = 1; this.update_interval.ClimbRate = 1; this.update_interval.Digits = ((uint)(1)); this.update_interval.Numeric = true; this.update_interval.SnapToTicks = true; this.update_interval.Value = 1; this.table1.Add(this.update_interval); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.update_interval])); w3.LeftAttach = ((uint)(1)); w3.RightAttach = ((uint)(2)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); w1.Add(this.table1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.table1])); w4.Position = 0; // Internal child mperfmon.Preferences.ActionArea Gtk.HButtonBox w5 = this.ActionArea; w5.Name = "dialog1_ActionArea"; w5.Spacing = 6; w5.BorderWidth = ((uint)(5)); w5.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 w6 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonCancel])); w6.Expand = false; w6.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 w7 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonOk])); w7.Position = 1; w7.Expand = false; w7.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 290; this.DefaultHeight = 248; this.Show(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MonoDevelop.Database.Designer.CreateDatabaseDialog this.Name = "MonoDevelop.Database.Designer.CreateDatabaseDialog"; this.Title = Mono.Unix.Catalog.GetString("Create Database"); this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.WindowPosition = ((Gtk.WindowPosition)(1)); this.SkipTaskbarHint = true; this.HasSeparator = false; // Internal child MonoDevelop.Database.Designer.CreateDatabaseDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.table = new Gtk.Table(((uint)(3)), ((uint)(3)), false); this.table.Name = "table"; this.table.RowSpacing = ((uint)(6)); this.table.ColumnSpacing = ((uint)(6)); this.table.BorderWidth = ((uint)(6)); // Container child table.Gtk.Table+TableChild this.buttonNew = new Gtk.Button(); this.buttonNew.CanFocus = true; this.buttonNew.Name = "buttonNew"; this.buttonNew.UseStock = true; this.buttonNew.UseUnderline = true; this.buttonNew.Label = "gtk-new"; this.table.Add(this.buttonNew); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table[this.buttonNew])); w2.LeftAttach = ((uint)(2)); w2.RightAttach = ((uint)(3)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.buttonSelect = new Gtk.Button(); this.buttonSelect.Sensitive = false; this.buttonSelect.CanFocus = true; this.buttonSelect.Name = "buttonSelect"; this.buttonSelect.UseStock = true; this.buttonSelect.UseUnderline = true; this.buttonSelect.Label = "gtk-save-as"; this.table.Add(this.buttonSelect); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table[this.buttonSelect])); w3.TopAttach = ((uint)(2)); w3.BottomAttach = ((uint)(3)); w3.LeftAttach = ((uint)(2)); w3.RightAttach = ((uint)(3)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.comboConnections = new MonoDevelop.Database.Components.DatabaseConnectionContextComboBox(); this.comboConnections.Name = "comboConnections"; this.table.Add(this.comboConnections); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table[this.comboConnections])); w4.LeftAttach = ((uint)(1)); w4.RightAttach = ((uint)(2)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.entryDatabase = new Gtk.Entry(); this.entryDatabase.CanFocus = true; this.entryDatabase.Name = "entryDatabase"; this.entryDatabase.IsEditable = true; this.entryDatabase.InvisibleChar = '●'; this.table.Add(this.entryDatabase); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table[this.entryDatabase])); w5.TopAttach = ((uint)(2)); w5.BottomAttach = ((uint)(3)); w5.LeftAttach = ((uint)(1)); w5.RightAttach = ((uint)(2)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.entryName = new Gtk.Entry(); this.entryName.CanFocus = true; this.entryName.Name = "entryName"; this.entryName.IsEditable = true; this.entryName.InvisibleChar = '●'; this.table.Add(this.entryName); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table[this.entryName])); w6.TopAttach = ((uint)(1)); w6.BottomAttach = ((uint)(2)); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(3)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Name"); this.table.Add(this.label1); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table[this.label1])); w7.TopAttach = ((uint)(1)); w7.BottomAttach = ((uint)(2)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 0F; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Database"); this.table.Add(this.label2); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table[this.label2])); w8.TopAttach = ((uint)(2)); w8.BottomAttach = ((uint)(3)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.Xalign = 0F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Base Settings"); this.table.Add(this.label3); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table[this.label3])); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); w1.Add(this.table); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w1[this.table])); w10.Position = 0; w10.Expand = false; w10.Fill = false; // Internal child MonoDevelop.Database.Designer.CreateDatabaseDialog.ActionArea Gtk.HButtonBox w11 = this.ActionArea; w11.Name = "dialog1_ActionArea"; w11.Spacing = 6; w11.BorderWidth = ((uint)(5)); w11.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new Gtk.Button(); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget(this.buttonCancel, -6); Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(w11[this.buttonCancel])); w12.Expand = false; w12.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); this.buttonOk.Sensitive = false; this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget(this.buttonOk, -5); Gtk.ButtonBox.ButtonBoxChild w13 = ((Gtk.ButtonBox.ButtonBoxChild)(w11[this.buttonOk])); w13.Position = 1; w13.Expand = false; w13.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 420; this.DefaultHeight = 191; this.Show(); this.entryName.Changed += new System.EventHandler(this.NameChanged); this.entryDatabase.Changed += new System.EventHandler(this.DatabaseNameChanged); this.comboConnections.Changed += new System.EventHandler(this.ConnectionChanged); this.buttonSelect.Clicked += new System.EventHandler(this.SaveAsClicked); this.buttonNew.Clicked += new System.EventHandler(this.NewClicked); this.buttonCancel.Clicked += new System.EventHandler(this.CancelClicked); this.buttonOk.Clicked += new System.EventHandler(this.OkClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget OpenVP.GtkGui.LinearPresetEditor Stetic.BinContainer.Attach(this); this.Name = "OpenVP.GtkGui.LinearPresetEditor"; // Container child OpenVP.GtkGui.LinearPresetEditor.Gtk.Container+ContainerChild this.notebook1 = new Gtk.Notebook(); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 1; // Container child notebook1.Gtk.Notebook+NotebookChild this.hpaned1 = new Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 211; // Container child hpaned1.Gtk.Paned+PanedChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.hbuttonbox1 = new Gtk.HButtonBox(); this.hbuttonbox1.Homogeneous = true; this.hbuttonbox1.Spacing = 6; // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild this.AddEffect = new Gtk.Button(); this.AddEffect.CanFocus = true; this.AddEffect.Name = "AddEffect"; this.AddEffect.UseStock = true; this.AddEffect.UseUnderline = true; this.AddEffect.Label = "gtk-add"; this.hbuttonbox1.Add(this.AddEffect); Gtk.ButtonBox.ButtonBoxChild w1 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.AddEffect])); w1.Expand = false; w1.Fill = false; // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild this.RemoveEffect = new Gtk.Button(); this.RemoveEffect.Sensitive = false; this.RemoveEffect.CanFocus = true; this.RemoveEffect.Name = "RemoveEffect"; this.RemoveEffect.UseStock = true; this.RemoveEffect.UseUnderline = true; this.RemoveEffect.Label = "gtk-remove"; this.hbuttonbox1.Add(this.RemoveEffect); Gtk.ButtonBox.ButtonBoxChild w2 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.RemoveEffect])); w2.Position = 1; w2.Expand = false; w2.Fill = false; this.vbox1.Add(this.hbuttonbox1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbuttonbox1])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox1.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.EffectList = new Gtk.TreeView(); this.EffectList.CanFocus = true; this.EffectList.Name = "EffectList"; this.EffectList.HeadersVisible = false; this.EffectList.HeadersClickable = true; this.GtkScrolledWindow.Add(this.EffectList); this.vbox1.Add(this.GtkScrolledWindow); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow])); w5.Position = 1; // Container child vbox1.Gtk.Box+BoxChild this.hbuttonbox2 = new Gtk.HButtonBox(); this.hbuttonbox2.Name = "hbuttonbox2"; this.hbuttonbox2.Homogeneous = true; this.hbuttonbox2.Spacing = 6; // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild this.UpButton = new Gtk.Button(); this.UpButton.Sensitive = false; this.UpButton.CanFocus = true; this.UpButton.Name = "UpButton"; this.UpButton.UseStock = true; this.UpButton.UseUnderline = true; this.UpButton.Label = "gtk-go-up"; this.hbuttonbox2.Add(this.UpButton); Gtk.ButtonBox.ButtonBoxChild w6 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.UpButton])); w6.Expand = false; w6.Fill = false; // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild this.DownButton = new Gtk.Button(); this.DownButton.Sensitive = false; this.DownButton.CanFocus = true; this.DownButton.Name = "DownButton"; this.DownButton.UseStock = true; this.DownButton.UseUnderline = true; this.DownButton.Label = "gtk-go-down"; this.hbuttonbox2.Add(this.DownButton); Gtk.ButtonBox.ButtonBoxChild w7 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.DownButton])); w7.Position = 1; w7.Expand = false; w7.Fill = false; this.vbox1.Add(this.hbuttonbox2); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbuttonbox2])); w8.Position = 2; w8.Expand = false; w8.Fill = false; this.hpaned1.Add(this.vbox1); Gtk.Paned.PanedChild w9 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vbox1])); w9.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild this.EffectPane = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.EffectPane.Name = "EffectPane"; this.hpaned1.Add(this.EffectPane); this.notebook1.Add(this.hpaned1); // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Effects"); this.notebook1.SetTabLabel(this.hpaned1, this.label1); this.label1.ShowAll(); // 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.frame1 = new Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame1.Gtk.Container+ContainerChild this.GtkAlignment4 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment4.Name = "GtkAlignment4"; this.GtkAlignment4.LeftPadding = ((uint)(12)); // Container child GtkAlignment4.Gtk.Container+ContainerChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.hbuttonbox3 = new Gtk.HButtonBox(); this.hbuttonbox3.Name = "hbuttonbox3"; this.hbuttonbox3.Spacing = 6; // Container child hbuttonbox3.Gtk.ButtonBox+ButtonBoxChild this.KeybindAddButton = new Gtk.Button(); this.KeybindAddButton.CanFocus = true; this.KeybindAddButton.Name = "KeybindAddButton"; this.KeybindAddButton.UseStock = true; this.KeybindAddButton.UseUnderline = true; this.KeybindAddButton.Label = "gtk-add"; this.hbuttonbox3.Add(this.KeybindAddButton); Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.KeybindAddButton])); w12.Expand = false; w12.Fill = false; // Container child hbuttonbox3.Gtk.ButtonBox+ButtonBoxChild this.KeybindRemoveButton = new Gtk.Button(); this.KeybindRemoveButton.CanFocus = true; this.KeybindRemoveButton.Name = "KeybindRemoveButton"; this.KeybindRemoveButton.UseStock = true; this.KeybindRemoveButton.UseUnderline = true; this.KeybindRemoveButton.Label = "gtk-remove"; this.hbuttonbox3.Add(this.KeybindRemoveButton); Gtk.ButtonBox.ButtonBoxChild w13 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.KeybindRemoveButton])); w13.Position = 1; w13.Expand = false; w13.Fill = false; this.vbox2.Add(this.hbuttonbox3); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbuttonbox3])); w14.Position = 0; w14.Expand = false; w14.Fill = false; // Container child vbox2.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.KeybindList = new Gtk.TreeView(); this.KeybindList.CanFocus = true; this.KeybindList.Name = "KeybindList"; this.KeybindList.HeadersClickable = true; this.GtkScrolledWindow1.Add(this.KeybindList); this.vbox2.Add(this.GtkScrolledWindow1); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow1])); w16.Position = 1; this.GtkAlignment4.Add(this.vbox2); this.frame1.Add(this.GtkAlignment4); this.GtkLabel6 = new Gtk.Label(); this.GtkLabel6.Name = "GtkLabel6"; this.GtkLabel6.LabelProp = Mono.Unix.Catalog.GetString("<b>Bound keys</b>"); this.GtkLabel6.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel6; this.hbox1.Add(this.frame1); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame1])); w19.Position = 0; w19.Expand = false; w19.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.vbox4 = new Gtk.VBox(); this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 6; // Container child vbox4.Gtk.Box+BoxChild this.frame2 = new Gtk.Frame(); this.frame2.Name = "frame2"; this.frame2.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame2.Gtk.Container+ContainerChild this.GtkAlignment9 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment9.Name = "GtkAlignment9"; this.GtkAlignment9.LeftPadding = ((uint)(12)); this.frame2.Add(this.GtkAlignment9); this.GtkLabel7 = new Gtk.Label(); this.GtkLabel7.Name = "GtkLabel7"; this.GtkLabel7.LabelProp = Mono.Unix.Catalog.GetString("<b>Script</b>"); this.GtkLabel7.UseMarkup = true; this.frame2.LabelWidget = this.GtkLabel7; this.vbox4.Add(this.frame2); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame2])); w21.Position = 0; // Container child vbox4.Gtk.Box+BoxChild this.frame3 = new Gtk.Frame(); this.frame3.Name = "frame3"; this.frame3.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame3.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.table1 = new Gtk.Table(((uint)(2)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.KeybindEventCheck = new Gtk.ToggleButton(); this.KeybindEventCheck.CanFocus = true; this.KeybindEventCheck.Name = "KeybindEventCheck"; this.KeybindEventCheck.UseUnderline = true; this.KeybindEventCheck.Active = true; this.KeybindEventCheck.Label = Mono.Unix.Catalog.GetString("On press"); this.table1.Add(this.KeybindEventCheck); Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.table1[this.KeybindEventCheck])); w22.TopAttach = ((uint)(1)); w22.BottomAttach = ((uint)(2)); w22.LeftAttach = ((uint)(1)); w22.RightAttach = ((uint)(2)); w22.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.KeyEntryAlign = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.KeyEntryAlign.Name = "KeyEntryAlign"; this.table1.Add(this.KeyEntryAlign); Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.table1[this.KeyEntryAlign])); w23.LeftAttach = ((uint)(1)); w23.RightAttach = ((uint)(2)); w23.XOptions = ((Gtk.AttachOptions)(4)); w23.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("Key:"); this.table1.Add(this.label4); Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table1[this.label4])); w24.XOptions = ((Gtk.AttachOptions)(4)); w24.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment8.Add(this.table1); this.frame3.Add(this.GtkAlignment8); this.GtkLabel10 = new Gtk.Label(); this.GtkLabel10.Name = "GtkLabel10"; this.GtkLabel10.LabelProp = Mono.Unix.Catalog.GetString("<b>Trigger</b>"); this.GtkLabel10.UseMarkup = true; this.frame3.LabelWidget = this.GtkLabel10; this.vbox4.Add(this.frame3); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame3])); w27.Position = 1; w27.Expand = false; w27.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.hbuttonbox4 = new Gtk.HButtonBox(); this.hbuttonbox4.Name = "hbuttonbox4"; this.hbuttonbox4.Spacing = 6; this.hbuttonbox4.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child hbuttonbox4.Gtk.ButtonBox+ButtonBoxChild this.KeybindRevertButton = new Gtk.Button(); this.KeybindRevertButton.Sensitive = false; this.KeybindRevertButton.CanFocus = true; this.KeybindRevertButton.Name = "KeybindRevertButton"; this.KeybindRevertButton.UseStock = true; this.KeybindRevertButton.UseUnderline = true; this.KeybindRevertButton.Label = "gtk-revert-to-saved"; this.hbuttonbox4.Add(this.KeybindRevertButton); Gtk.ButtonBox.ButtonBoxChild w28 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox4[this.KeybindRevertButton])); w28.Expand = false; w28.Fill = false; // Container child hbuttonbox4.Gtk.ButtonBox+ButtonBoxChild this.KeybindApplyButton = new Gtk.Button(); this.KeybindApplyButton.Sensitive = false; this.KeybindApplyButton.CanFocus = true; this.KeybindApplyButton.Name = "KeybindApplyButton"; this.KeybindApplyButton.UseStock = true; this.KeybindApplyButton.UseUnderline = true; this.KeybindApplyButton.Label = "gtk-apply"; this.hbuttonbox4.Add(this.KeybindApplyButton); Gtk.ButtonBox.ButtonBoxChild w29 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox4[this.KeybindApplyButton])); w29.Position = 1; w29.Expand = false; w29.Fill = false; this.vbox4.Add(this.hbuttonbox4); Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbuttonbox4])); w30.Position = 2; w30.Expand = false; w30.Fill = false; this.hbox1.Add(this.vbox4); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox4])); w31.Position = 1; this.notebook1.Add(this.hbox1); Gtk.Notebook.NotebookChild w32 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.hbox1])); w32.Position = 1; // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Keybindings"); this.notebook1.SetTabLabel(this.hbox1, this.label2); this.label2.ShowAll(); this.Add(this.notebook1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.AddEffect.Clicked += new System.EventHandler(this.OnAddEffectClicked); this.RemoveEffect.Clicked += new System.EventHandler(this.OnRemoveEffectClicked); this.UpButton.Clicked += new System.EventHandler(this.OnUpButtonClicked); this.DownButton.Clicked += new System.EventHandler(this.OnDownButtonClicked); this.KeybindEventCheck.Toggled += new System.EventHandler(this.OnKeybindEventCheckToggled); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Pinta.Gui.Widgets.PointPickerWidget Stetic.BinContainer.Attach(this); this.Name = "Pinta.Gui.Widgets.PointPickerWidget"; // Container child Pinta.Gui.Widgets.PointPickerWidget.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // 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.label = new Gtk.Label(); this.label.Name = "label"; this.label.LabelProp = Mono.Unix.Catalog.GetString("label"); this.hbox1.Add(this.label); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.label])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.hseparator1 = new Gtk.HSeparator(); this.hseparator1.Name = "hseparator1"; this.hbox1.Add(this.hseparator1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.hseparator1])); w2.Position = 1; this.vbox1.Add(this.hbox1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); w3.Position = 0; w3.Expand = false; w3.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.pointpickergraphic1 = new Pinta.Gui.Widgets.PointPickerGraphic(); this.pointpickergraphic1.Name = "pointpickergraphic1"; this.hbox2.Add(this.pointpickergraphic1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox2[this.pointpickergraphic1])); w4.Position = 0; w4.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(2)), ((uint)(3)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.button1 = new Gtk.Button(); this.button1.CanFocus = true; this.button1.Name = "button1"; this.button1.UseUnderline = true; // Container child button1.Gtk.Container+ContainerChild Gtk.Alignment w5 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w6 = new Gtk.HBox(); w6.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w7 = new Gtk.Image(); w7.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-go-back", Gtk.IconSize.Menu, 16); w6.Add(w7); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w9 = new Gtk.Label(); w6.Add(w9); w5.Add(w6); this.button1.Add(w5); this.table1.Add(this.button1); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.button1])); 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.button2 = new Gtk.Button(); this.button2.CanFocus = true; this.button2.Name = "button2"; this.button2.UseUnderline = true; // Container child button2.Gtk.Container+ContainerChild Gtk.Alignment w14 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w15 = new Gtk.HBox(); w15.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w16 = new Gtk.Image(); w16.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-go-back", Gtk.IconSize.Menu, 16); w15.Add(w16); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w18 = new Gtk.Label(); w15.Add(w18); w14.Add(w15); this.button2.Add(w14); this.table1.Add(this.button2); Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.table1[this.button2])); w22.TopAttach = ((uint)(1)); w22.BottomAttach = ((uint)(2)); w22.LeftAttach = ((uint)(2)); w22.RightAttach = ((uint)(3)); w22.XOptions = ((Gtk.AttachOptions)(4)); w22.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("X :"); this.table1.Add(this.label2); Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.table1[this.label2])); w23.XOptions = ((Gtk.AttachOptions)(4)); w23.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("Y :"); this.table1.Add(this.label3); Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table1[this.label3])); w24.TopAttach = ((uint)(1)); w24.BottomAttach = ((uint)(2)); w24.XOptions = ((Gtk.AttachOptions)(4)); w24.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.spinX = new Gtk.SpinButton(0, 100, 1); this.spinX.CanFocus = true; this.spinX.Name = "spinX"; this.spinX.Adjustment.PageIncrement = 10; this.spinX.ClimbRate = 1; this.spinX.Numeric = true; this.table1.Add(this.spinX); Gtk.Table.TableChild w25 = ((Gtk.Table.TableChild)(this.table1[this.spinX])); 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.spinY = new Gtk.SpinButton(0, 100, 1); this.spinY.CanFocus = true; this.spinY.Name = "spinY"; this.spinY.Adjustment.PageIncrement = 10; this.spinY.ClimbRate = 1; this.spinY.Numeric = true; this.table1.Add(this.spinY); Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.table1[this.spinY])); w26.TopAttach = ((uint)(1)); w26.BottomAttach = ((uint)(2)); w26.LeftAttach = ((uint)(1)); w26.RightAttach = ((uint)(2)); w26.XOptions = ((Gtk.AttachOptions)(4)); w26.YOptions = ((Gtk.AttachOptions)(4)); this.hbox2.Add(this.table1); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.hbox2[this.table1])); w27.Position = 1; w27.Expand = false; w27.Fill = false; this.vbox1.Add(this.hbox2); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2])); w28.Position = 1; w28.Expand = false; w28.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.ImportDirectoryDialog this.WidthRequest = 500; this.Name = "ocmgtk.ImportDirectoryDialog"; this.Title = Mono.Unix.Catalog.GetString("Import Directory"); this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; this.BorderWidth = ((uint)(6)); this.Resizable = false; this.AllowGrow = false; // Internal child ocmgtk.ImportDirectoryDialog.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)(1)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.dirChooser = new Gtk.FileChooserButton(Mono.Unix.Catalog.GetString("Select A Folder"), ((Gtk.FileChooserAction)(2))); this.dirChooser.Name = "dirChooser"; this.dirChooser.ShowHidden = true; this.table1.Add(this.dirChooser); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.dirChooser])); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.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("Directory:"); this.table1.Add(this.label1); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.label1])); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); w1.Add(this.table1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.table1])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child dialog1_VBox.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.GtkAlignment2 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment2.Name = "GtkAlignment2"; this.GtkAlignment2.LeftPadding = ((uint)(12)); // Container child GtkAlignment2.Gtk.Container+ContainerChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.deleteCheck = new Gtk.CheckButton(); this.deleteCheck.CanFocus = true; this.deleteCheck.Name = "deleteCheck"; this.deleteCheck.Label = Mono.Unix.Catalog.GetString("Delete files on completion"); this.deleteCheck.DrawIndicator = true; this.deleteCheck.UseUnderline = true; this.vbox2.Add(this.deleteCheck); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.deleteCheck])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.statusCheck = new Gtk.CheckButton(); this.statusCheck.CanFocus = true; this.statusCheck.Name = "statusCheck"; this.statusCheck.Label = Mono.Unix.Catalog.GetString("Do not overwrite existing found status in database"); this.statusCheck.DrawIndicator = true; this.statusCheck.UseUnderline = true; this.vbox2.Add(this.statusCheck); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.statusCheck])); w6.Position = 1; w6.Expand = false; w6.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.oldLogsCheck = new Gtk.CheckButton(); this.oldLogsCheck.CanFocus = true; this.oldLogsCheck.Name = "oldLogsCheck"; this.oldLogsCheck.Label = Mono.Unix.Catalog.GetString("Purge old cache logs"); this.oldLogsCheck.DrawIndicator = true; this.oldLogsCheck.UseUnderline = true; this.vbox2.Add(this.oldLogsCheck); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.oldLogsCheck])); w7.Position = 2; w7.Expand = false; w7.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.gsakFieldsCheck = new Gtk.CheckButton(); this.gsakFieldsCheck.CanFocus = true; this.gsakFieldsCheck.Name = "gsakFieldsCheck"; this.gsakFieldsCheck.Label = Mono.Unix.Catalog.GetString("Ignore GSAK/OCM extra fields in GPX file"); this.gsakFieldsCheck.DrawIndicator = true; this.gsakFieldsCheck.UseUnderline = true; this.vbox2.Add(this.gsakFieldsCheck); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox2[this.gsakFieldsCheck])); w8.Position = 3; w8.Expand = false; w8.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.addToListCheck = new Gtk.CheckButton(); this.addToListCheck.CanFocus = true; this.addToListCheck.Name = "addToListCheck"; this.addToListCheck.Label = Mono.Unix.Catalog.GetString("Add to bookmark list:"); this.addToListCheck.DrawIndicator = true; this.addToListCheck.UseUnderline = true; this.hbox1.Add(this.addToListCheck); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox1[this.addToListCheck])); w9.Position = 0; w9.Expand = false; // Container child hbox1.Gtk.Box+BoxChild this.bmCombo = Gtk.ComboBox.NewText(); this.bmCombo.Sensitive = false; this.bmCombo.Name = "bmCombo"; this.hbox1.Add(this.bmCombo); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox1[this.bmCombo])); w10.Position = 1; w10.Expand = false; w10.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.addBmrkButton = new Gtk.Button(); this.addBmrkButton.Sensitive = false; this.addBmrkButton.CanFocus = true; this.addBmrkButton.Name = "addBmrkButton"; // Container child addBmrkButton.Gtk.Container+ContainerChild this.image20 = new Gtk.Image(); this.image20.Sensitive = false; this.image20.Name = "image20"; this.image20.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-add", Gtk.IconSize.Menu, 16); this.addBmrkButton.Add(this.image20); this.addBmrkButton.Label = null; this.hbox1.Add(this.addBmrkButton); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox1[this.addBmrkButton])); w12.Position = 2; w12.Expand = false; w12.Fill = false; this.vbox2.Add(this.hbox1); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); w13.Position = 4; w13.Expand = false; w13.Fill = false; this.GtkAlignment2.Add(this.vbox2); this.frame1.Add(this.GtkAlignment2); this.GtkLabel7 = new Gtk.Label(); this.GtkLabel7.Name = "GtkLabel7"; this.GtkLabel7.LabelProp = Mono.Unix.Catalog.GetString("<b>Options</b>"); this.GtkLabel7.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel7; w1.Add(this.frame1); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(w1[this.frame1])); w16.Position = 1; w16.Expand = false; w16.Fill = false; // Internal child ocmgtk.ImportDirectoryDialog.ActionArea Gtk.HButtonBox w17 = this.ActionArea; w17.Name = "dialog1_ActionArea"; w17.Spacing = 10; w17.BorderWidth = ((uint)(5)); w17.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 w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w17[this.buttonCancel])); w18.Expand = false; w18.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 w19 = ((Gtk.ButtonBox.ButtonBoxChild)(w17[this.buttonOk])); w19.Position = 1; w19.Expand = false; w19.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 512; this.DefaultHeight = 281; this.Show(); this.addToListCheck.Toggled += new System.EventHandler(this.OnBmrkToggle); this.addBmrkButton.Clicked += new System.EventHandler(this.OnAddClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget sermon2.TaggerDataConf Stetic.BinContainer.Attach(this); this.Name = "sermon2.TaggerDataConf"; // Container child sermon2.TaggerDataConf.Gtk.Container+ContainerChild 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.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(2)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); this.table1.BorderWidth = ((uint)(3)); // Container child table1.Gtk.Table+TableChild this.backgroundCheckButton = new Gtk.CheckButton(); this.backgroundCheckButton.CanFocus = true; this.backgroundCheckButton.Name = "backgroundCheckButton"; this.backgroundCheckButton.Label = Mono.Unix.Catalog.GetString("background"); this.backgroundCheckButton.DrawIndicator = true; this.backgroundCheckButton.UseUnderline = true; this.table1.Add(this.backgroundCheckButton); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.backgroundCheckButton])); w1.TopAttach = ((uint)(1)); w1.BottomAttach = ((uint)(2)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.backgroundColorButton = new Gtk.ColorButton(); this.backgroundColorButton.CanFocus = true; this.backgroundColorButton.Events = ((Gdk.EventMask)(784)); this.backgroundColorButton.Name = "backgroundColorButton"; this.backgroundColorButton.Title = Mono.Unix.Catalog.GetString("#000000"); this.table1.Add(this.backgroundColorButton); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.backgroundColorButton])); w2.TopAttach = ((uint)(1)); w2.BottomAttach = ((uint)(2)); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.foregroundCheckButton = new Gtk.CheckButton(); this.foregroundCheckButton.CanFocus = true; this.foregroundCheckButton.Name = "foregroundCheckButton"; this.foregroundCheckButton.Label = Mono.Unix.Catalog.GetString("foreground"); this.foregroundCheckButton.DrawIndicator = true; this.foregroundCheckButton.UseUnderline = true; this.table1.Add(this.foregroundCheckButton); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.foregroundCheckButton])); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.foregroundColorButton = new Gtk.ColorButton(); this.foregroundColorButton.CanFocus = true; this.foregroundColorButton.Events = ((Gdk.EventMask)(784)); this.foregroundColorButton.Name = "foregroundColorButton"; this.table1.Add(this.foregroundColorButton); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.foregroundColorButton])); w4.LeftAttach = ((uint)(1)); w4.RightAttach = ((uint)(2)); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); this.vbox3.Add(this.table1); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.table1])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.remButton = new Gtk.Button(); this.remButton.CanFocus = true; this.remButton.Name = "remButton"; this.remButton.UseUnderline = true; this.remButton.BorderWidth = ((uint)(3)); // Container child remButton.Gtk.Container+ContainerChild Gtk.Alignment w6 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w7 = new Gtk.HBox(); w7.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w8 = new Gtk.Image(); w8.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-remove", Gtk.IconSize.Menu, 16); w7.Add(w8); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w10 = new Gtk.Label(); w10.LabelProp = Mono.Unix.Catalog.GetString("remove"); w10.UseUnderline = true; w7.Add(w10); w6.Add(w7); this.remButton.Add(w6); this.vbox3.Add(this.remButton); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox3[this.remButton])); w14.Position = 1; w14.Expand = false; w14.Fill = false; this.GtkAlignment.Add(this.vbox3); this.frame1.Add(this.GtkAlignment); this.dataLabel = new Gtk.Label(); this.dataLabel.Name = "dataLabel"; this.dataLabel.LabelProp = Mono.Unix.Catalog.GetString("<b>data tagger</b>"); this.dataLabel.UseMarkup = true; this.frame1.LabelWidget = this.dataLabel; this.Add(this.frame1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.foregroundColorButton.ColorSet += new System.EventHandler(this.OnForegroundColorButtonColorSet); this.foregroundCheckButton.Released += new System.EventHandler(this.OnForegroundCheckButtonReleased); this.backgroundColorButton.ColorSet += new System.EventHandler(this.OnBackgroundColorButtonColorSet); this.backgroundCheckButton.Released += new System.EventHandler(this.OnBackgroundCheckButtonReleased); this.remButton.Released += new System.EventHandler(this.OnRemButtonReleased); }
protected virtual void Build() { Stetic.Gui.Initialize(); // Widget CBinding.CodeGenerationPanel Stetic.BinContainer.Attach(this); this.Name = "CBinding.CodeGenerationPanel"; // Container child CBinding.CodeGenerationPanel.Gtk.Container+ContainerChild this.notebook1 = new Gtk.Notebook(); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 0; // Container child notebook1.Gtk.Notebook+NotebookChild this.vbox6 = new Gtk.VBox(); this.vbox6.Name = "vbox6"; this.vbox6.Spacing = 3; // Container child vbox6.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(3)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(5)); this.table1.ColumnSpacing = ((uint)(5)); this.table1.BorderWidth = ((uint)(2)); // Container child table1.Gtk.Table+TableChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.Xpad = 10; this.label4.Xalign = 0F; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Warning Level:"); this.table1.Add(this.label4); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.label4])); w1.XOptions = ((Gtk.AttachOptions)(4)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.Xpad = 10; this.label5.Xalign = 0F; this.label5.LabelProp = Mono.Unix.Catalog.GetString("Optimization Level:"); this.table1.Add(this.label5); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.label5])); w2.TopAttach = ((uint)(1)); w2.BottomAttach = ((uint)(2)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.Xpad = 10; this.label6.Xalign = 0F; this.label6.LabelProp = Mono.Unix.Catalog.GetString("Target:"); this.table1.Add(this.label6); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.label6])); w3.TopAttach = ((uint)(2)); w3.BottomAttach = ((uint)(3)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.optimizationSpinButton = new Gtk.SpinButton(0, 3, 1); this.optimizationSpinButton.CanFocus = true; this.optimizationSpinButton.Name = "optimizationSpinButton"; this.optimizationSpinButton.Adjustment.PageIncrement = 10; this.optimizationSpinButton.ClimbRate = 1; this.optimizationSpinButton.Numeric = true; this.table1.Add(this.optimizationSpinButton); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.optimizationSpinButton])); w4.TopAttach = ((uint)(1)); w4.BottomAttach = ((uint)(2)); w4.LeftAttach = ((uint)(1)); w4.RightAttach = ((uint)(2)); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.targetComboBox = Gtk.ComboBox.NewText(); this.targetComboBox.AppendText(Mono.Unix.Catalog.GetString("Executable")); this.targetComboBox.AppendText(Mono.Unix.Catalog.GetString("Static Library")); this.targetComboBox.AppendText(Mono.Unix.Catalog.GetString("Shared Object")); this.targetComboBox.Name = "targetComboBox"; this.table1.Add(this.targetComboBox); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.targetComboBox])); w5.TopAttach = ((uint)(2)); w5.BottomAttach = ((uint)(3)); w5.LeftAttach = ((uint)(1)); w5.RightAttach = ((uint)(2)); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 1; // Container child vbox1.Gtk.Box+BoxChild this.noWarningRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("no warnings")); this.noWarningRadio.CanFocus = true; this.noWarningRadio.Name = "noWarningRadio"; this.noWarningRadio.Active = true; this.noWarningRadio.DrawIndicator = true; this.noWarningRadio.UseUnderline = true; this.noWarningRadio.Group = new GLib.SList(System.IntPtr.Zero); this.vbox1.Add(this.noWarningRadio); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.noWarningRadio])); w6.Position = 0; w6.Expand = false; w6.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.normalWarningRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("normal")); this.normalWarningRadio.CanFocus = true; this.normalWarningRadio.Name = "normalWarningRadio"; this.normalWarningRadio.DrawIndicator = true; this.normalWarningRadio.UseUnderline = true; this.normalWarningRadio.Group = this.noWarningRadio.Group; this.vbox1.Add(this.normalWarningRadio); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.normalWarningRadio])); w7.Position = 1; w7.Expand = false; w7.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.allWarningRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("all")); this.allWarningRadio.CanFocus = true; this.allWarningRadio.Name = "allWarningRadio"; this.allWarningRadio.DrawIndicator = true; this.allWarningRadio.UseUnderline = true; this.allWarningRadio.Group = this.noWarningRadio.Group; this.vbox1.Add(this.allWarningRadio); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox1[this.allWarningRadio])); w8.Position = 2; w8.Expand = false; w8.Fill = false; this.table1.Add(this.vbox1); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.vbox1])); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); this.vbox6.Add(this.table1); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox6[this.table1])); w10.Position = 0; w10.Expand = false; w10.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.label12 = new Gtk.Label(); this.label12.Name = "label12"; this.label12.Xpad = 13; this.label12.Xalign = 0F; this.label12.LabelProp = Mono.Unix.Catalog.GetString("Define Symbols:"); this.hbox1.Add(this.label12); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox1[this.label12])); w11.Position = 0; w11.Expand = false; w11.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.defineSymbolsTextEntry = new Gtk.Entry(); Gtk.Tooltips w12 = new Gtk.Tooltips(); w12.SetTip(this.defineSymbolsTextEntry, "A space seperated list of symbols to define.", "A space seperated list of symbols to define."); this.defineSymbolsTextEntry.CanFocus = true; this.defineSymbolsTextEntry.Name = "defineSymbolsTextEntry"; this.defineSymbolsTextEntry.IsEditable = true; this.defineSymbolsTextEntry.InvisibleChar = '●'; this.hbox1.Add(this.defineSymbolsTextEntry); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox1[this.defineSymbolsTextEntry])); w13.Position = 1; w13.Padding = ((uint)(14)); this.vbox6.Add(this.hbox1); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbox1])); w14.Position = 1; w14.Expand = false; w14.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.frame2 = new Gtk.Frame(); this.frame2.Name = "frame2"; this.frame2.ShadowType = ((Gtk.ShadowType)(0)); this.frame2.LabelXalign = 0F; this.frame2.LabelYalign = 0F; // Container child frame2.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.table5 = new Gtk.Table(((uint)(2)), ((uint)(2)), false); this.table5.Name = "table5"; this.table5.RowSpacing = ((uint)(6)); this.table5.ColumnSpacing = ((uint)(9)); this.table5.BorderWidth = ((uint)(6)); // Container child table5.Gtk.Table+TableChild this.label11 = new Gtk.Label(); this.label11.Name = "label11"; this.label11.Xalign = 0F; this.label11.LabelProp = Mono.Unix.Catalog.GetString("Extra Linker Options"); this.table5.Add(this.label11); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table5[this.label11])); w15.LeftAttach = ((uint)(1)); w15.RightAttach = ((uint)(2)); w15.XOptions = ((Gtk.AttachOptions)(4)); w15.YOptions = ((Gtk.AttachOptions)(4)); // Container child table5.Gtk.Table+TableChild this.label7 = new Gtk.Label(); this.label7.Name = "label7"; this.label7.Xalign = 0F; this.label7.LabelProp = Mono.Unix.Catalog.GetString("Extra Compiler Options"); this.table5.Add(this.label7); Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table5[this.label7])); w16.XOptions = ((Gtk.AttachOptions)(4)); w16.YOptions = ((Gtk.AttachOptions)(4)); // Container child table5.Gtk.Table+TableChild 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)); this.scrolledwindow4.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow4.Gtk.Container+ContainerChild this.extraCompilerTextView = new Gtk.TextView(); w12.SetTip(this.extraCompilerTextView, "A newline seperated list of extra options to send to the compiler.\nOne option can be in more than one line.\nExample:\n\t`pkg-config\n\t--cflags\n\tcairo`", "A newline seperated list of extra options to send to the compiler.\nOne option can be in more than one line.\nExample:\n\t`pkg-config\n\t--cflags\n\tcairo`"); this.extraCompilerTextView.CanFocus = true; this.extraCompilerTextView.Name = "extraCompilerTextView"; this.scrolledwindow4.Add(this.extraCompilerTextView); this.table5.Add(this.scrolledwindow4); Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table5[this.scrolledwindow4])); w18.TopAttach = ((uint)(1)); w18.BottomAttach = ((uint)(2)); // Container child table5.Gtk.Table+TableChild this.scrolledwindow5 = new Gtk.ScrolledWindow(); this.scrolledwindow5.CanFocus = true; this.scrolledwindow5.Name = "scrolledwindow5"; this.scrolledwindow5.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow5.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow5.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow5.Gtk.Container+ContainerChild this.extraLinkerTextView = new Gtk.TextView(); w12.SetTip(this.extraLinkerTextView, "A newline seperated list of extra options to send to the linker.\nOne option can be in more than one line.\nExample:\n\t`pkg-config\n\t--libs\n\tcairo`", "A newline seperated list of extra options to send to the linker.\nOne option can be in more than one line.\nExample:\n\t`pkg-config\n\t--libs\n\tcairo`"); this.extraLinkerTextView.CanFocus = true; this.extraLinkerTextView.Name = "extraLinkerTextView"; this.scrolledwindow5.Add(this.extraLinkerTextView); this.table5.Add(this.scrolledwindow5); Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(this.table5[this.scrolledwindow5])); w20.TopAttach = ((uint)(1)); w20.BottomAttach = ((uint)(2)); w20.LeftAttach = ((uint)(1)); w20.RightAttach = ((uint)(2)); this.GtkAlignment.Add(this.table5); this.frame2.Add(this.GtkAlignment); this.GtkLabel12 = new Gtk.Label(); this.GtkLabel12.Name = "GtkLabel12"; this.GtkLabel12.LabelProp = Mono.Unix.Catalog.GetString("<b>Extra Options</b>"); this.GtkLabel12.UseMarkup = true; this.frame2.LabelWidget = this.GtkLabel12; this.vbox6.Add(this.frame2); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox6[this.frame2])); w23.Position = 2; this.notebook1.Add(this.vbox6); Gtk.Notebook.NotebookChild w24 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.vbox6])); w24.TabExpand = false; // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Code Generation"); this.notebook1.SetTabLabel(this.vbox6, this.label1); // Container child notebook1.Gtk.Notebook+NotebookChild this.table2 = new Gtk.Table(((uint)(2)), ((uint)(3)), false); this.table2.Name = "table2"; this.table2.RowSpacing = ((uint)(10)); this.table2.ColumnSpacing = ((uint)(10)); this.table2.BorderWidth = ((uint)(3)); // Container child table2.Gtk.Table+TableChild this.addLibButton = new Gtk.Button(); this.addLibButton.Sensitive = false; this.addLibButton.CanFocus = true; this.addLibButton.Name = "addLibButton"; this.addLibButton.UseUnderline = true; this.addLibButton.Label = Mono.Unix.Catalog.GetString("Add"); this.table2.Add(this.addLibButton); Gtk.Table.TableChild w25 = ((Gtk.Table.TableChild)(this.table2[this.addLibButton])); w25.LeftAttach = ((uint)(2)); w25.RightAttach = ((uint)(3)); w25.XOptions = ((Gtk.AttachOptions)(4)); w25.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("Library:"); this.table2.Add(this.label8); Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.table2[this.label8])); w26.XOptions = ((Gtk.AttachOptions)(4)); w26.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.libAddEntry = new Gtk.Entry(); this.libAddEntry.CanFocus = true; this.libAddEntry.Name = "libAddEntry"; this.libAddEntry.IsEditable = true; this.libAddEntry.InvisibleChar = '●'; this.table2.Add(this.libAddEntry); Gtk.Table.TableChild w27 = ((Gtk.Table.TableChild)(this.table2[this.libAddEntry])); w27.LeftAttach = ((uint)(1)); w27.RightAttach = ((uint)(2)); w27.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.scrolledwindow1 = new Gtk.ScrolledWindow(); this.scrolledwindow1.CanFocus = true; this.scrolledwindow1.Name = "scrolledwindow1"; this.scrolledwindow1.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow1.Gtk.Container+ContainerChild this.libTreeView = new Gtk.TreeView(); this.libTreeView.CanFocus = true; this.libTreeView.Name = "libTreeView"; this.libTreeView.HeadersClickable = true; this.scrolledwindow1.Add(this.libTreeView); this.table2.Add(this.scrolledwindow1); Gtk.Table.TableChild w29 = ((Gtk.Table.TableChild)(this.table2[this.scrolledwindow1])); w29.TopAttach = ((uint)(1)); w29.BottomAttach = ((uint)(2)); w29.LeftAttach = ((uint)(1)); w29.RightAttach = ((uint)(2)); // Container child table2.Gtk.Table+TableChild this.vbox4 = new Gtk.VBox(); this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 6; // Container child vbox4.Gtk.Box+BoxChild this.browseButton = new Gtk.Button(); this.browseButton.CanFocus = true; this.browseButton.Name = "browseButton"; this.browseButton.UseUnderline = true; this.browseButton.Label = Mono.Unix.Catalog.GetString("Browse..."); this.vbox4.Add(this.browseButton); Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.vbox4[this.browseButton])); w30.Position = 0; w30.Expand = false; w30.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.removeLibButton = new Gtk.Button(); this.removeLibButton.Sensitive = false; this.removeLibButton.CanFocus = true; this.removeLibButton.Name = "removeLibButton"; this.removeLibButton.UseUnderline = true; this.removeLibButton.Label = Mono.Unix.Catalog.GetString("Remove"); this.vbox4.Add(this.removeLibButton); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.vbox4[this.removeLibButton])); w31.Position = 1; w31.Expand = false; w31.Fill = false; this.table2.Add(this.vbox4); Gtk.Table.TableChild w32 = ((Gtk.Table.TableChild)(this.table2[this.vbox4])); w32.TopAttach = ((uint)(1)); w32.BottomAttach = ((uint)(2)); w32.LeftAttach = ((uint)(2)); w32.RightAttach = ((uint)(3)); w32.XOptions = ((Gtk.AttachOptions)(4)); this.notebook1.Add(this.table2); Gtk.Notebook.NotebookChild w33 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.table2])); w33.Position = 1; w33.TabExpand = false; // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Libraries"); this.notebook1.SetTabLabel(this.table2, this.label2); // Container child notebook1.Gtk.Notebook+NotebookChild this.vbox7 = new Gtk.VBox(); this.vbox7.Name = "vbox7"; this.vbox7.Spacing = 6; this.vbox7.BorderWidth = ((uint)(3)); // Container child vbox7.Gtk.Box+BoxChild this.table4 = new Gtk.Table(((uint)(2)), ((uint)(3)), false); this.table4.Name = "table4"; this.table4.RowSpacing = ((uint)(10)); this.table4.ColumnSpacing = ((uint)(10)); // Container child table4.Gtk.Table+TableChild this.label10 = new Gtk.Label(); this.label10.Name = "label10"; this.label10.LabelProp = Mono.Unix.Catalog.GetString("Library:"); this.table4.Add(this.label10); Gtk.Table.TableChild w34 = ((Gtk.Table.TableChild)(this.table4[this.label10])); w34.XOptions = ((Gtk.AttachOptions)(4)); w34.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.libPathAddButton = new Gtk.Button(); this.libPathAddButton.Sensitive = false; this.libPathAddButton.CanFocus = true; this.libPathAddButton.Name = "libPathAddButton"; this.libPathAddButton.UseUnderline = true; this.libPathAddButton.Label = Mono.Unix.Catalog.GetString("Add"); this.table4.Add(this.libPathAddButton); Gtk.Table.TableChild w35 = ((Gtk.Table.TableChild)(this.table4[this.libPathAddButton])); w35.LeftAttach = ((uint)(2)); w35.RightAttach = ((uint)(3)); w35.XOptions = ((Gtk.AttachOptions)(4)); w35.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.libPathEntry = new Gtk.Entry(); this.libPathEntry.CanFocus = true; this.libPathEntry.Name = "libPathEntry"; this.libPathEntry.IsEditable = true; this.libPathEntry.InvisibleChar = '●'; this.table4.Add(this.libPathEntry); Gtk.Table.TableChild w36 = ((Gtk.Table.TableChild)(this.table4[this.libPathEntry])); w36.LeftAttach = ((uint)(1)); w36.RightAttach = ((uint)(2)); w36.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild 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)); this.scrolledwindow3.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow3.Gtk.Container+ContainerChild this.libPathTreeView = new Gtk.TreeView(); this.libPathTreeView.CanFocus = true; this.libPathTreeView.Name = "libPathTreeView"; this.libPathTreeView.HeadersClickable = true; this.scrolledwindow3.Add(this.libPathTreeView); this.table4.Add(this.scrolledwindow3); Gtk.Table.TableChild w38 = ((Gtk.Table.TableChild)(this.table4[this.scrolledwindow3])); w38.TopAttach = ((uint)(1)); w38.BottomAttach = ((uint)(2)); w38.LeftAttach = ((uint)(1)); w38.RightAttach = ((uint)(2)); // Container child table4.Gtk.Table+TableChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.libPathBrowseButton = new Gtk.Button(); this.libPathBrowseButton.CanFocus = true; this.libPathBrowseButton.Name = "libPathBrowseButton"; this.libPathBrowseButton.UseUnderline = true; this.libPathBrowseButton.Label = Mono.Unix.Catalog.GetString("Browse..."); this.vbox3.Add(this.libPathBrowseButton); Gtk.Box.BoxChild w39 = ((Gtk.Box.BoxChild)(this.vbox3[this.libPathBrowseButton])); w39.Position = 0; w39.Expand = false; w39.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.libPathRemoveButton = new Gtk.Button(); this.libPathRemoveButton.Sensitive = false; this.libPathRemoveButton.CanFocus = true; this.libPathRemoveButton.Name = "libPathRemoveButton"; this.libPathRemoveButton.UseUnderline = true; this.libPathRemoveButton.Label = Mono.Unix.Catalog.GetString("Remove"); this.vbox3.Add(this.libPathRemoveButton); Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.vbox3[this.libPathRemoveButton])); w40.Position = 1; w40.Expand = false; w40.Fill = false; this.table4.Add(this.vbox3); Gtk.Table.TableChild w41 = ((Gtk.Table.TableChild)(this.table4[this.vbox3])); w41.TopAttach = ((uint)(1)); w41.BottomAttach = ((uint)(2)); w41.LeftAttach = ((uint)(2)); w41.RightAttach = ((uint)(3)); w41.XOptions = ((Gtk.AttachOptions)(4)); this.vbox7.Add(this.table4); Gtk.Box.BoxChild w42 = ((Gtk.Box.BoxChild)(this.vbox7[this.table4])); w42.Position = 0; // Container child vbox7.Gtk.Box+BoxChild this.table3 = new Gtk.Table(((uint)(2)), ((uint)(3)), false); this.table3.Name = "table3"; this.table3.RowSpacing = ((uint)(10)); this.table3.ColumnSpacing = ((uint)(10)); // Container child table3.Gtk.Table+TableChild this.includePathAddButton = new Gtk.Button(); this.includePathAddButton.Sensitive = false; this.includePathAddButton.CanFocus = true; this.includePathAddButton.Name = "includePathAddButton"; this.includePathAddButton.UseUnderline = true; this.includePathAddButton.Label = Mono.Unix.Catalog.GetString("Add"); this.table3.Add(this.includePathAddButton); Gtk.Table.TableChild w43 = ((Gtk.Table.TableChild)(this.table3[this.includePathAddButton])); w43.LeftAttach = ((uint)(2)); w43.RightAttach = ((uint)(3)); w43.XOptions = ((Gtk.AttachOptions)(4)); w43.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.includePathEntry = new Gtk.Entry(); this.includePathEntry.CanFocus = true; this.includePathEntry.Name = "includePathEntry"; this.includePathEntry.IsEditable = true; this.includePathEntry.InvisibleChar = '●'; this.table3.Add(this.includePathEntry); Gtk.Table.TableChild w44 = ((Gtk.Table.TableChild)(this.table3[this.includePathEntry])); w44.LeftAttach = ((uint)(1)); w44.RightAttach = ((uint)(2)); w44.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.label9 = new Gtk.Label(); this.label9.Name = "label9"; this.label9.LabelProp = Mono.Unix.Catalog.GetString("Include:"); this.table3.Add(this.label9); Gtk.Table.TableChild w45 = ((Gtk.Table.TableChild)(this.table3[this.label9])); w45.XOptions = ((Gtk.AttachOptions)(4)); w45.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild 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)); this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow2.Gtk.Container+ContainerChild this.includePathTreeView = new Gtk.TreeView(); this.includePathTreeView.CanFocus = true; this.includePathTreeView.Name = "includePathTreeView"; this.includePathTreeView.HeadersClickable = true; this.scrolledwindow2.Add(this.includePathTreeView); this.table3.Add(this.scrolledwindow2); Gtk.Table.TableChild w47 = ((Gtk.Table.TableChild)(this.table3[this.scrolledwindow2])); w47.TopAttach = ((uint)(1)); w47.BottomAttach = ((uint)(2)); w47.LeftAttach = ((uint)(1)); w47.RightAttach = ((uint)(2)); // Container child table3.Gtk.Table+TableChild this.vbox5 = new Gtk.VBox(); this.vbox5.Name = "vbox5"; this.vbox5.Spacing = 6; // Container child vbox5.Gtk.Box+BoxChild this.includePathBrowseButton = new Gtk.Button(); this.includePathBrowseButton.CanFocus = true; this.includePathBrowseButton.Name = "includePathBrowseButton"; this.includePathBrowseButton.UseUnderline = true; this.includePathBrowseButton.Label = Mono.Unix.Catalog.GetString("Browse..."); this.vbox5.Add(this.includePathBrowseButton); Gtk.Box.BoxChild w48 = ((Gtk.Box.BoxChild)(this.vbox5[this.includePathBrowseButton])); w48.Position = 0; w48.Expand = false; w48.Fill = false; // Container child vbox5.Gtk.Box+BoxChild this.includePathRemoveButton = new Gtk.Button(); this.includePathRemoveButton.Sensitive = false; this.includePathRemoveButton.CanFocus = true; this.includePathRemoveButton.Name = "includePathRemoveButton"; this.includePathRemoveButton.UseUnderline = true; this.includePathRemoveButton.Label = Mono.Unix.Catalog.GetString("Remove"); this.vbox5.Add(this.includePathRemoveButton); Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(this.vbox5[this.includePathRemoveButton])); w49.Position = 1; w49.Expand = false; w49.Fill = false; this.table3.Add(this.vbox5); Gtk.Table.TableChild w50 = ((Gtk.Table.TableChild)(this.table3[this.vbox5])); w50.TopAttach = ((uint)(1)); w50.BottomAttach = ((uint)(2)); w50.LeftAttach = ((uint)(2)); w50.RightAttach = ((uint)(3)); w50.XOptions = ((Gtk.AttachOptions)(4)); this.vbox7.Add(this.table3); Gtk.Box.BoxChild w51 = ((Gtk.Box.BoxChild)(this.vbox7[this.table3])); w51.Position = 1; this.notebook1.Add(this.vbox7); Gtk.Notebook.NotebookChild w52 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.vbox7])); w52.Position = 2; w52.TabExpand = false; // Notebook tab this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Paths"); this.notebook1.SetTabLabel(this.vbox7, this.label3); this.Add(this.notebook1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.browseButton.Clicked += new System.EventHandler(this.OnBrowseButtonClick); this.removeLibButton.Clicked += new System.EventHandler(this.OnRemoveLibButtonClicked); this.removeLibButton.Clicked += new System.EventHandler(this.OnLibRemoved); this.libTreeView.CursorChanged += new System.EventHandler(this.OnLibTreeViewCursorChanged); this.libAddEntry.Changed += new System.EventHandler(this.OnLibAddEntryChanged); this.libAddEntry.Activated += new System.EventHandler(this.OnLibAddEntryActivated); this.addLibButton.Clicked += new System.EventHandler(this.OnLibAdded); this.libPathBrowseButton.Clicked += new System.EventHandler(this.OnLibPathBrowseButtonClick); this.libPathRemoveButton.Clicked += new System.EventHandler(this.OnLibPathRemoveButtonClicked); this.libPathRemoveButton.Clicked += new System.EventHandler(this.OnLibPathRemoved); this.libPathTreeView.CursorChanged += new System.EventHandler(this.OnLibPathTreeViewCursorChanged); this.libPathEntry.Changed += new System.EventHandler(this.OnLibPathEntryChanged); this.libPathEntry.Activated += new System.EventHandler(this.OnLibPathEntryActivated); this.libPathAddButton.Clicked += new System.EventHandler(this.OnLibPathAdded); this.includePathBrowseButton.Clicked += new System.EventHandler(this.OnIncludePathBrowseButtonClick); this.includePathRemoveButton.Clicked += new System.EventHandler(this.OnIncludePathRemoveButtonClicked); this.includePathRemoveButton.Clicked += new System.EventHandler(this.OnIncludePathRemoved); this.includePathTreeView.CursorChanged += new System.EventHandler(this.OnIncludePathTreeViewCursorChanged); this.includePathEntry.Changed += new System.EventHandler(this.OnIncludePathEntryChanged); this.includePathEntry.Activated += new System.EventHandler(this.OnIncludePathEntryActivated); this.includePathAddButton.Clicked += new System.EventHandler(this.OnIncludePathAdded); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget LinuxGUITest.BalanceBoardInformation Stetic.BinContainer w1 = Stetic.BinContainer.Attach(this); Gtk.UIManager w2 = new Gtk.UIManager(); Gtk.ActionGroup w3 = new Gtk.ActionGroup("Default"); this.BalanceBoardAction = new Gtk.Action("BalanceBoardAction", Mono.Unix.Catalog.GetString("BalanceBoard"), null, null); this.BalanceBoardAction.ShortLabel = Mono.Unix.Catalog.GetString("BalanceBoard"); w3.Add(this.BalanceBoardAction, null); this.DisconnectAction = new Gtk.Action("DisconnectAction", Mono.Unix.Catalog.GetString("Disconnect"), null, null); this.DisconnectAction.ShortLabel = Mono.Unix.Catalog.GetString("Disconnect"); w3.Add(this.DisconnectAction, null); w2.InsertActionGroup(w3, 0); this.Name = "LinuxGUITest.BalanceBoardInformation"; // Container child LinuxGUITest.BalanceBoardInformation.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild w2.AddUiFromString("<ui><menubar name='menubar1'><menu action='BalanceBoardAction'><menuitem action='DisconnectAction'/></menu></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(w2.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox1.Add(this.menubar1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hseparator2 = new Gtk.HSeparator(); this.hseparator2.Name = "hseparator2"; this.vbox1.Add(this.hseparator2); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.hseparator2])); w5.Position = 1; w5.Expand = false; w5.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.checkboxLed = new Gtk.CheckButton(); this.checkboxLed.CanFocus = true; this.checkboxLed.Name = "checkboxLed"; this.checkboxLed.Label = Mono.Unix.Catalog.GetString("Led"); this.checkboxLed.DrawIndicator = true; this.checkboxLed.UseUnderline = true; this.hbox4.Add(this.checkboxLed); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox4[this.checkboxLed])); w6.Position = 0; // Container child hbox4.Gtk.Box+BoxChild this.lblButton = new Gtk.Label(); this.lblButton.Name = "lblButton"; this.lblButton.LabelProp = Mono.Unix.Catalog.GetString("Button"); this.hbox4.Add(this.lblButton); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox4[this.lblButton])); w7.Position = 1; w7.Expand = false; w7.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.entryButton = new Gtk.Entry(); this.entryButton.CanFocus = true; this.entryButton.Name = "entryButton"; this.entryButton.IsEditable = false; this.entryButton.InvisibleChar = '●'; this.hbox4.Add(this.entryButton); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox4[this.entryButton])); w8.Position = 2; this.vbox1.Add(this.hbox4); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox4])); w9.Position = 2; w9.Expand = false; w9.Fill = false; // Container child vbox1.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)); // Container child GtkAlignment.Gtk.Container+ContainerChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.table4 = new Gtk.Table(((uint)(2)), ((uint)(2)), false); this.table4.Name = "table4"; this.table4.RowSpacing = ((uint)(6)); this.table4.ColumnSpacing = ((uint)(6)); // Container child table4.Gtk.Table+TableChild this.entryBottomLeft = new Gtk.Entry(); this.entryBottomLeft.CanFocus = true; this.entryBottomLeft.Name = "entryBottomLeft"; this.entryBottomLeft.IsEditable = false; this.entryBottomLeft.InvisibleChar = '●'; this.table4.Add(this.entryBottomLeft); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table4[this.entryBottomLeft])); w10.TopAttach = ((uint)(1)); w10.BottomAttach = ((uint)(2)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.entryBottomRight = new Gtk.Entry(); this.entryBottomRight.CanFocus = true; this.entryBottomRight.Name = "entryBottomRight"; this.entryBottomRight.IsEditable = false; this.entryBottomRight.InvisibleChar = '●'; this.table4.Add(this.entryBottomRight); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table4[this.entryBottomRight])); w11.TopAttach = ((uint)(1)); w11.BottomAttach = ((uint)(2)); w11.LeftAttach = ((uint)(1)); w11.RightAttach = ((uint)(2)); w11.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.entryTopLeft = new Gtk.Entry(); this.entryTopLeft.CanFocus = true; this.entryTopLeft.Name = "entryTopLeft"; this.entryTopLeft.IsEditable = false; this.entryTopLeft.InvisibleChar = '●'; this.table4.Add(this.entryTopLeft); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table4[this.entryTopLeft])); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.entryTopRight = new Gtk.Entry(); this.entryTopRight.CanFocus = true; this.entryTopRight.Name = "entryTopRight"; this.entryTopRight.IsEditable = false; this.entryTopRight.InvisibleChar = '●'; this.table4.Add(this.entryTopRight); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table4[this.entryTopRight])); w13.LeftAttach = ((uint)(1)); w13.RightAttach = ((uint)(2)); w13.YOptions = ((Gtk.AttachOptions)(4)); this.vbox3.Add(this.table4); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox3[this.table4])); w14.Position = 0; w14.Expand = false; w14.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.lblTotalWeight = new Gtk.Label(); this.lblTotalWeight.Name = "lblTotalWeight"; this.lblTotalWeight.LabelProp = Mono.Unix.Catalog.GetString("Total Weight"); this.hbox3.Add(this.lblTotalWeight); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox3[this.lblTotalWeight])); w15.Position = 0; w15.Expand = false; w15.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.entryTotalWeight = new Gtk.Entry(); this.entryTotalWeight.CanFocus = true; this.entryTotalWeight.Name = "entryTotalWeight"; this.entryTotalWeight.IsEditable = false; this.entryTotalWeight.InvisibleChar = '●'; this.hbox3.Add(this.entryTotalWeight); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox3[this.entryTotalWeight])); w16.Position = 1; // Container child hbox3.Gtk.Box+BoxChild this.entryAverageWeight = new Gtk.Entry(); this.entryAverageWeight.CanFocus = true; this.entryAverageWeight.Name = "entryAverageWeight"; this.entryAverageWeight.IsEditable = false; this.entryAverageWeight.InvisibleChar = '●'; this.hbox3.Add(this.entryAverageWeight); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox3[this.entryAverageWeight])); w17.PackType = ((Gtk.PackType)(1)); w17.Position = 2; // Container child hbox3.Gtk.Box+BoxChild this.labelAverageWeight = new Gtk.Label(); this.labelAverageWeight.Name = "labelAverageWeight"; this.labelAverageWeight.LabelProp = Mono.Unix.Catalog.GetString("Average"); this.hbox3.Add(this.labelAverageWeight); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox3[this.labelAverageWeight])); w18.PackType = ((Gtk.PackType)(1)); w18.Position = 3; w18.Expand = false; w18.Fill = false; this.vbox3.Add(this.hbox3); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3])); w19.Position = 1; w19.Expand = false; w19.Fill = false; this.GtkAlignment.Add(this.vbox3); this.frame1.Add(this.GtkAlignment); this.GtkLabel2 = new Gtk.Label(); this.GtkLabel2.Name = "GtkLabel2"; this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("<b>Weight Sensors</b>"); this.GtkLabel2.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel2; this.vbox1.Add(this.frame1); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame1])); w22.Position = 3; w22.Expand = false; w22.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.frame2 = new Gtk.Frame(); this.frame2.Name = "frame2"; this.frame2.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame2.Gtk.Container+ContainerChild this.GtkAlignment1 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment1.Name = "GtkAlignment1"; this.GtkAlignment1.LeftPadding = ((uint)(12)); // Container child GtkAlignment1.Gtk.Container+ContainerChild this.drawingareaBalance = new Gtk.DrawingArea(); this.drawingareaBalance.Name = "drawingareaBalance"; this.GtkAlignment1.Add(this.drawingareaBalance); this.frame2.Add(this.GtkAlignment1); this.GtkLabel3 = new Gtk.Label(); this.GtkLabel3.Name = "GtkLabel3"; this.GtkLabel3.LabelProp = Mono.Unix.Catalog.GetString("<b>Balance</b>"); this.GtkLabel3.UseMarkup = true; this.frame2.LabelWidget = this.GtkLabel3; this.vbox1.Add(this.frame2); Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame2])); w25.Position = 4; // 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.btnUpdateBattery = new Gtk.Button(); this.btnUpdateBattery.CanFocus = true; this.btnUpdateBattery.Name = "btnUpdateBattery"; this.btnUpdateBattery.UseUnderline = true; this.btnUpdateBattery.Label = Mono.Unix.Catalog.GetString("Update Battery"); this.hbox1.Add(this.btnUpdateBattery); Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.hbox1[this.btnUpdateBattery])); w26.Position = 0; w26.Expand = false; w26.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.progressbar1 = new Gtk.ProgressBar(); this.progressbar1.Name = "progressbar1"; this.hbox1.Add(this.progressbar1); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.hbox1[this.progressbar1])); w27.Position = 1; this.vbox1.Add(this.hbox1); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); w28.Position = 5; w28.Expand = false; w28.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } w1.SetUiManager(w2); this.Show(); this.DisconnectAction.Activated += new System.EventHandler(this.OnDisconnectActionActivated); this.checkboxLed.Pressed += new System.EventHandler(this.OnCheckboxLedPressed); this.drawingareaBalance.ExposeEvent += new Gtk.ExposeEventHandler(this.OnDrawingareaBalanceExposeEvent); this.btnUpdateBattery.Pressed += new System.EventHandler(this.OnBtnUpdateBatteryPressed); }
Gtk.Widget CreateFakeWidget(string typeName) { Stetic.Custom c = new Stetic.Custom(); // Give it some default size c.WidthRequest = 20; c.HeightRequest = 20; Gtk.Container box = null; switch (typeClassDescriptor.Name) { case "Gtk.Alignment": box = new Gtk.Alignment(0.5f, 0.5f, 1f, 1f); break; case "Gtk.Fixed": box = new Gtk.Alignment(0.5f, 0.5f, 1f, 1f); break; case "Gtk.Frame": box = new Gtk.Frame(); break; case "Gtk.Box": case "Gtk.HBox": { Gtk.HBox cc = new Gtk.HBox(); cc.PackStart(c, true, true, 0); return(cc); } case "Gtk.VBox": { Gtk.VBox cc = new Gtk.VBox(); cc.PackStart(c, true, true, 0); return(cc); } case "Gtk.Paned": case "Gtk.VPaned": { Gtk.VPaned cc = new Gtk.VPaned(); cc.Add1(c); return(cc); } case "Gtk.HPaned": { Gtk.HPaned cc = new Gtk.HPaned(); cc.Add1(c); return(cc); } case "Gtk.Notebook": { Gtk.Notebook nb = new Gtk.Notebook(); nb.ShowTabs = false; nb.AppendPage(c, null); return(nb); } case "Gtk.ScrolledWindow": { Gtk.ScrolledWindow cc = new Gtk.ScrolledWindow(); cc.VscrollbarPolicy = Gtk.PolicyType.Never; cc.HscrollbarPolicy = Gtk.PolicyType.Never; cc.Add(c); return(cc); } case "Gtk.Table": { Gtk.Table t = new Gtk.Table(1, 1, false); t.Attach(c, 0, 1, 0, 1); return(t); } case "Gtk.ButtonBox": return(new Gtk.HButtonBox()); } if (box != null) { box.Add(c); return(box); } else { Stetic.CustomWidget custom = new Stetic.CustomWidget(); if (custom.Child != null) { custom.Remove(custom.Child); } custom.Add(c); return(custom); } }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.LocationWidget Stetic.BinContainer.Attach(this); this.Name = "ocmgtk.LocationWidget"; // Container child ocmgtk.LocationWidget.Gtk.Container+ContainerChild this.widgetTable = new Gtk.Table(((uint)(2)), ((uint)(4)), false); this.widgetTable.Name = "widgetTable"; this.widgetTable.RowSpacing = ((uint)(6)); this.widgetTable.ColumnSpacing = ((uint)(6)); // Container child widgetTable.Gtk.Table+TableChild this.button9 = new Gtk.Button(); this.button9.CanFocus = true; this.button9.Name = "button9"; // Container child button9.Gtk.Container+ContainerChild this.editIcon = new Gtk.Image(); this.editIcon.Name = "editIcon"; this.editIcon.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-edit", Gtk.IconSize.Button, 20); this.button9.Add(this.editIcon); this.button9.Label = null; this.widgetTable.Add(this.button9); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.widgetTable[this.button9])); w2.LeftAttach = ((uint)(2)); w2.RightAttach = ((uint)(3)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child widgetTable.Gtk.Table+TableChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.widgetTable.Add(this.label1); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.widgetTable[this.label1])); w3.LeftAttach = ((uint)(3)); w3.RightAttach = ((uint)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child widgetTable.Gtk.Table+TableChild this.latLabel = new Gtk.Label(); this.latLabel.Name = "latLabel"; this.latLabel.Xalign = 0F; this.latLabel.LabelProp = Mono.Unix.Catalog.GetString("Latitude:"); this.widgetTable.Add(this.latLabel); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.widgetTable[this.latLabel])); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child widgetTable.Gtk.Table+TableChild this.latWidget = new ocmgtk.CoordinateWidget(); this.latWidget.Events = ((Gdk.EventMask)(256)); this.latWidget.Name = "latWidget"; this.widgetTable.Add(this.latWidget); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.widgetTable[this.latWidget])); w5.LeftAttach = ((uint)(1)); w5.RightAttach = ((uint)(2)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child widgetTable.Gtk.Table+TableChild this.lonLabel = new Gtk.Label(); this.lonLabel.Name = "lonLabel"; this.lonLabel.Xalign = 0F; this.lonLabel.LabelProp = Mono.Unix.Catalog.GetString("Longitude:"); this.widgetTable.Add(this.lonLabel); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.widgetTable[this.lonLabel])); w6.TopAttach = ((uint)(1)); w6.BottomAttach = ((uint)(2)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child widgetTable.Gtk.Table+TableChild this.lonWidget = new ocmgtk.CoordinateWidget(); this.lonWidget.Events = ((Gdk.EventMask)(256)); this.lonWidget.Name = "lonWidget"; this.widgetTable.Add(this.lonWidget); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.widgetTable[this.lonWidget])); 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)); this.Add(this.widgetTable); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); this.button9.Clicked += new System.EventHandler(this.OnEditClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Monsoon.LoadTorrentDialog this.Name = "Monsoon.LoadTorrentDialog"; this.Title = Mono.Unix.Catalog.GetString("Load torrent"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Internal child Monsoon.LoadTorrentDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.vbox4 = new Gtk.VBox(); this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 6; // Container child vbox4.Gtk.Box+BoxChild this.frame3 = new Gtk.Frame(); this.frame3.Name = "frame3"; this.frame3.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame3.Gtk.Container+ContainerChild this.GtkAlignment2 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment2.Name = "GtkAlignment2"; this.GtkAlignment2.LeftPadding = ((uint)(12)); // Container child GtkAlignment2.Gtk.Container+ContainerChild this.vbox5 = new Gtk.VBox(); this.vbox5.Name = "vbox5"; this.vbox5.Spacing = 6; // 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.fileChooser = new Gtk.FileChooserButton(Mono.Unix.Catalog.GetString("Select A Folder"), ((Gtk.FileChooserAction)(2))); this.fileChooser.Name = "fileChooser"; this.fileChooser.ShowHidden = true; this.hbox5.Add(this.fileChooser); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox5[this.fileChooser])); w2.Position = 0; this.vbox5.Add(this.hbox5); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox5])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox5.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(2)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 0F; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Name:"); this.table1.Add(this.label2); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.label2])); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.Xalign = 0F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Size:"); this.table1.Add(this.label3); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.label3])); w5.TopAttach = ((uint)(1)); w5.BottomAttach = ((uint)(2)); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.lblName = new Gtk.Label(); this.lblName.Name = "lblName"; this.lblName.Xalign = 0F; this.lblName.LabelProp = Mono.Unix.Catalog.GetString("Suse-11.0-i386.iso"); this.table1.Add(this.lblName); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.lblName])); 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.lblSize = new Gtk.Label(); this.lblSize.Name = "lblSize"; this.lblSize.Xalign = 0F; this.lblSize.LabelProp = Mono.Unix.Catalog.GetString("700MB"); this.table1.Add(this.lblSize); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.lblSize])); 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)); this.vbox5.Add(this.table1); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox5[this.table1])); w8.Position = 1; w8.Expand = false; w8.Fill = false; this.GtkAlignment2.Add(this.vbox5); this.frame3.Add(this.GtkAlignment2); this.GtkLabel2 = new Gtk.Label(); this.GtkLabel2.Name = "GtkLabel2"; this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("<b>Save</b>"); this.GtkLabel2.UseMarkup = true; this.frame3.LabelWidget = this.GtkLabel2; this.vbox4.Add(this.frame3); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame3])); w11.Position = 0; w11.Expand = false; w11.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.expander1 = new Gtk.Expander(null); this.expander1.CanFocus = true; this.expander1.Name = "expander1"; this.expander1.Expanded = true; // Container child expander1.Gtk.Container+ContainerChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.torrentTreeView = new Gtk.TreeView(); this.torrentTreeView.CanFocus = true; this.torrentTreeView.Name = "torrentTreeView"; this.GtkScrolledWindow.Add(this.torrentTreeView); this.expander1.Add(this.GtkScrolledWindow); this.GtkLabel1 = new Gtk.Label(); this.GtkLabel1.Name = "GtkLabel1"; this.GtkLabel1.LabelProp = Mono.Unix.Catalog.GetString("Files"); this.GtkLabel1.UseUnderline = true; this.expander1.LabelWidget = this.GtkLabel1; this.vbox4.Add(this.expander1); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox4[this.expander1])); w14.Position = 1; // Container child vbox4.Gtk.Box+BoxChild this.checkbutton2 = new Gtk.CheckButton(); this.checkbutton2.CanFocus = true; this.checkbutton2.Name = "checkbutton2"; this.checkbutton2.Label = Mono.Unix.Catalog.GetString("Always show this dialog"); this.checkbutton2.Active = true; this.checkbutton2.DrawIndicator = true; this.checkbutton2.UseUnderline = true; this.vbox4.Add(this.checkbutton2); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox4[this.checkbutton2])); w15.Position = 2; w15.Expand = false; w15.Fill = false; w1.Add(this.vbox4); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(w1[this.vbox4])); w16.Position = 0; // Internal child Monsoon.LoadTorrentDialog.ActionArea Gtk.HButtonBox w17 = this.ActionArea; w17.Name = "dialog1_ActionArea"; w17.Spacing = 6; w17.BorderWidth = ((uint)(5)); w17.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 w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w17[this.buttonCancel])); w18.Expand = false; w18.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 w19 = ((Gtk.ButtonBox.ButtonBoxChild)(w17[this.buttonOk])); w19.Position = 1; w19.Expand = false; w19.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 474; this.Show(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.OCMQueryPage2 Stetic.BinContainer.Attach(this); this.Name = "ocmgtk.OCMQueryPage2"; // Container child ocmgtk.OCMQueryPage2.Gtk.Container+ContainerChild this.vbox5 = new Gtk.VBox(); this.vbox5.Name = "vbox5"; this.vbox5.Spacing = 6; this.vbox5.BorderWidth = ((uint)(6)); // Container child vbox5.Gtk.Box+BoxChild this.frame4 = new Gtk.Frame(); this.frame4.Name = "frame4"; this.frame4.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame4.Gtk.Container+ContainerChild this.GtkAlignment1 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment1.Name = "GtkAlignment1"; this.GtkAlignment1.LeftPadding = ((uint)(12)); // Container child GtkAlignment1.Gtk.Container+ContainerChild 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)(6)); // Container child table1.Gtk.Table+TableChild this.allContRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Has any container size")); this.allContRadio.CanFocus = true; this.allContRadio.Name = "allContRadio"; this.allContRadio.Active = true; this.allContRadio.DrawIndicator = true; this.allContRadio.UseUnderline = true; this.allContRadio.Group = new GLib.SList(System.IntPtr.Zero); this.table1.Add(this.allContRadio); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.allContRadio])); w1.XOptions = ((Gtk.AttachOptions)(4)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.contFrame = new Gtk.Frame(); this.contFrame.Sensitive = false; this.contFrame.Name = "contFrame"; // Container child contFrame.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.table2 = new Gtk.Table(((uint)(2)), ((uint)(3)), false); this.table2.Name = "table2"; this.table2.RowSpacing = ((uint)(6)); this.table2.ColumnSpacing = ((uint)(6)); // Container child table2.Gtk.Table+TableChild this.largeCheck = new Gtk.CheckButton(); this.largeCheck.CanFocus = true; this.largeCheck.Name = "largeCheck"; this.largeCheck.Label = Mono.Unix.Catalog.GetString("Large"); this.largeCheck.DrawIndicator = true; this.largeCheck.UseUnderline = true; this.table2.Add(this.largeCheck); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table2[this.largeCheck])); w2.TopAttach = ((uint)(1)); w2.BottomAttach = ((uint)(2)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.microCheck = new Gtk.CheckButton(); this.microCheck.CanFocus = true; this.microCheck.Name = "microCheck"; this.microCheck.Label = Mono.Unix.Catalog.GetString("Micro"); this.microCheck.DrawIndicator = true; this.microCheck.UseUnderline = true; this.table2.Add(this.microCheck); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table2[this.microCheck])); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.notChosenCheck = new Gtk.CheckButton(); this.notChosenCheck.CanFocus = true; this.notChosenCheck.Name = "notChosenCheck"; this.notChosenCheck.Label = Mono.Unix.Catalog.GetString("Not Chosen"); this.notChosenCheck.DrawIndicator = true; this.notChosenCheck.UseUnderline = true; this.table2.Add(this.notChosenCheck); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table2[this.notChosenCheck])); w4.TopAttach = ((uint)(1)); w4.BottomAttach = ((uint)(2)); w4.LeftAttach = ((uint)(2)); w4.RightAttach = ((uint)(3)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.regularCheck = new Gtk.CheckButton(); this.regularCheck.CanFocus = true; this.regularCheck.Name = "regularCheck"; this.regularCheck.Label = Mono.Unix.Catalog.GetString("Regular"); this.regularCheck.DrawIndicator = true; this.regularCheck.UseUnderline = true; this.table2.Add(this.regularCheck); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table2[this.regularCheck])); w5.LeftAttach = ((uint)(2)); w5.RightAttach = ((uint)(3)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.smallCheck = new Gtk.CheckButton(); this.smallCheck.CanFocus = true; this.smallCheck.Name = "smallCheck"; this.smallCheck.Label = Mono.Unix.Catalog.GetString("Small"); this.smallCheck.DrawIndicator = true; this.smallCheck.UseUnderline = true; this.table2.Add(this.smallCheck); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table2[this.smallCheck])); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(2)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.virtualCheck = new Gtk.CheckButton(); this.virtualCheck.CanFocus = true; this.virtualCheck.Name = "virtualCheck"; this.virtualCheck.Label = Mono.Unix.Catalog.GetString("Virtual"); this.virtualCheck.DrawIndicator = true; this.virtualCheck.UseUnderline = true; this.table2.Add(this.virtualCheck); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table2[this.virtualCheck])); w7.TopAttach = ((uint)(1)); w7.BottomAttach = ((uint)(2)); w7.LeftAttach = ((uint)(1)); w7.RightAttach = ((uint)(2)); w7.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment.Add(this.table2); this.contFrame.Add(this.GtkAlignment); this.table1.Add(this.contFrame); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.contFrame])); w10.TopAttach = ((uint)(2)); w10.BottomAttach = ((uint)(3)); w10.RightAttach = ((uint)(2)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.selRado = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Has any of the following sizes:")); this.selRado.CanFocus = true; this.selRado.Name = "selRado"; this.selRado.DrawIndicator = true; this.selRado.UseUnderline = true; this.selRado.Group = this.allContRadio.Group; this.table1.Add(this.selRado); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.selRado])); w11.TopAttach = ((uint)(1)); w11.BottomAttach = ((uint)(2)); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment1.Add(this.table1); this.frame4.Add(this.GtkAlignment1); this.GtkLabel12 = new Gtk.Label(); this.GtkLabel12.Name = "GtkLabel12"; this.GtkLabel12.LabelProp = Mono.Unix.Catalog.GetString("<b>Container Type</b>"); this.GtkLabel12.UseMarkup = true; this.frame4.LabelWidget = this.GtkLabel12; this.vbox5.Add(this.frame4); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox5[this.frame4])); w14.Position = 0; w14.Expand = false; w14.Fill = false; // Container child vbox5.Gtk.Box+BoxChild this.frame5 = new Gtk.Frame(); this.frame5.Name = "frame5"; this.frame5.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame5.Gtk.Container+ContainerChild this.GtkAlignment2 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment2.Name = "GtkAlignment2"; this.GtkAlignment2.LeftPadding = ((uint)(12)); // Container child GtkAlignment2.Gtk.Container+ContainerChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.descCheck = new Gtk.CheckButton(); this.descCheck.CanFocus = true; this.descCheck.Name = "descCheck"; this.descCheck.Label = Mono.Unix.Catalog.GetString("Description contains the following words:"); this.descCheck.DrawIndicator = true; this.descCheck.UseUnderline = true; this.hbox1.Add(this.descCheck); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox1[this.descCheck])); w15.Position = 0; w15.Expand = false; // Container child hbox1.Gtk.Box+BoxChild this.descEntry = new Gtk.Entry(); this.descEntry.Sensitive = false; this.descEntry.CanFocus = true; this.descEntry.Name = "descEntry"; this.descEntry.IsEditable = true; this.descEntry.InvisibleChar = '•'; this.hbox1.Add(this.descEntry); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox1[this.descEntry])); w16.Position = 1; this.GtkAlignment2.Add(this.hbox1); this.frame5.Add(this.GtkAlignment2); this.GtkLabel13 = new Gtk.Label(); this.GtkLabel13.Name = "GtkLabel13"; this.GtkLabel13.LabelProp = Mono.Unix.Catalog.GetString("<b>Cache Description</b>"); this.GtkLabel13.UseMarkup = true; this.frame5.LabelWidget = this.GtkLabel13; this.vbox5.Add(this.frame5); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox5[this.frame5])); w19.Position = 1; w19.Expand = false; w19.Fill = false; // Container child vbox5.Gtk.Box+BoxChild this.frame7 = new Gtk.Frame(); this.frame7.Name = "frame7"; this.frame7.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame7.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.vbox7 = new Gtk.VBox(); this.vbox7.Name = "vbox7"; this.vbox7.Spacing = 6; // Container child vbox7.Gtk.Box+BoxChild this.markedCheck = new Gtk.CheckButton(); this.markedCheck.CanFocus = true; this.markedCheck.Name = "markedCheck"; this.markedCheck.Label = Mono.Unix.Catalog.GetString("Only caches that are marked:"); this.markedCheck.DrawIndicator = true; this.markedCheck.UseUnderline = true; this.vbox7.Add(this.markedCheck); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox7[this.markedCheck])); w20.Position = 0; w20.Expand = false; w20.Fill = false; // Container child vbox7.Gtk.Box+BoxChild this.markFrame = new Gtk.Frame(); this.markFrame.Sensitive = false; this.markFrame.Name = "markFrame"; this.markFrame.ShadowType = ((Gtk.ShadowType)(1)); // Container child markFrame.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.table3 = new Gtk.Table(((uint)(2)), ((uint)(3)), false); this.table3.Name = "table3"; this.table3.RowSpacing = ((uint)(6)); this.table3.ColumnSpacing = ((uint)(6)); // Container child table3.Gtk.Table+TableChild this.dnfRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Didn't Find It")); this.dnfRadio.CanFocus = true; this.dnfRadio.Name = "dnfRadio"; this.dnfRadio.Active = true; this.dnfRadio.DrawIndicator = true; this.dnfRadio.UseUnderline = true; this.dnfRadio.Group = new GLib.SList(System.IntPtr.Zero); this.table3.Add(this.dnfRadio); Gtk.Table.TableChild w21 = ((Gtk.Table.TableChild)(this.table3[this.dnfRadio])); w21.TopAttach = ((uint)(1)); w21.BottomAttach = ((uint)(2)); w21.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.ftfRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("First to Find")); this.ftfRadio.CanFocus = true; this.ftfRadio.Name = "ftfRadio"; this.ftfRadio.DrawIndicator = true; this.ftfRadio.UseUnderline = true; this.ftfRadio.Group = this.dnfRadio.Group; this.table3.Add(this.ftfRadio); Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.table3[this.ftfRadio])); w22.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.noDNFRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Not Didn't Find It")); this.noDNFRadio.CanFocus = true; this.noDNFRadio.Name = "noDNFRadio"; this.noDNFRadio.DrawIndicator = true; this.noDNFRadio.UseUnderline = true; this.noDNFRadio.Group = this.dnfRadio.Group; this.table3.Add(this.noDNFRadio); Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.table3[this.noDNFRadio])); w23.TopAttach = ((uint)(1)); w23.BottomAttach = ((uint)(2)); w23.LeftAttach = ((uint)(1)); w23.RightAttach = ((uint)(2)); w23.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.noFTFRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Not First to Find")); this.noFTFRadio.CanFocus = true; this.noFTFRadio.Name = "noFTFRadio"; this.noFTFRadio.DrawIndicator = true; this.noFTFRadio.UseUnderline = true; this.noFTFRadio.Group = this.dnfRadio.Group; this.table3.Add(this.noFTFRadio); Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table3[this.noFTFRadio])); w24.LeftAttach = ((uint)(1)); w24.RightAttach = ((uint)(2)); w24.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment5.Add(this.table3); this.markFrame.Add(this.GtkAlignment5); this.vbox7.Add(this.markFrame); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox7[this.markFrame])); w27.Position = 1; w27.Expand = false; // Container child vbox7.Gtk.Box+BoxChild this.statusCheck = new Gtk.CheckButton(); this.statusCheck.CanFocus = true; this.statusCheck.Name = "statusCheck"; this.statusCheck.Label = Mono.Unix.Catalog.GetString("Caches with the following status flags:"); this.statusCheck.DrawIndicator = true; this.statusCheck.UseUnderline = true; this.vbox7.Add(this.statusCheck); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox7[this.statusCheck])); w28.Position = 2; w28.Expand = false; w28.Fill = false; // Container child vbox7.Gtk.Box+BoxChild this.statusFrame = new Gtk.Frame(); this.statusFrame.Sensitive = false; this.statusFrame.Name = "statusFrame"; this.statusFrame.ShadowType = ((Gtk.ShadowType)(1)); // Container child statusFrame.Gtk.Container+ContainerChild this.GtkAlignment4 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment4.Name = "GtkAlignment4"; this.GtkAlignment4.LeftPadding = ((uint)(12)); // Container child GtkAlignment4.Gtk.Container+ContainerChild this.table4 = new Gtk.Table(((uint)(2)), ((uint)(4)), false); this.table4.Name = "table4"; this.table4.RowSpacing = ((uint)(6)); this.table4.ColumnSpacing = ((uint)(6)); // Container child table4.Gtk.Table+TableChild this.archiveCheck = new Gtk.CheckButton(); this.archiveCheck.CanFocus = true; this.archiveCheck.Name = "archiveCheck"; this.archiveCheck.Label = Mono.Unix.Catalog.GetString("Archived"); this.archiveCheck.Active = true; this.archiveCheck.DrawIndicator = true; this.archiveCheck.UseUnderline = true; this.table4.Add(this.archiveCheck); Gtk.Table.TableChild w29 = ((Gtk.Table.TableChild)(this.table4[this.archiveCheck])); w29.TopAttach = ((uint)(1)); w29.BottomAttach = ((uint)(2)); w29.LeftAttach = ((uint)(2)); w29.RightAttach = ((uint)(3)); w29.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.availCheck = new Gtk.CheckButton(); this.availCheck.CanFocus = true; this.availCheck.Name = "availCheck"; this.availCheck.Label = Mono.Unix.Catalog.GetString("Available"); this.availCheck.Active = true; this.availCheck.DrawIndicator = true; this.availCheck.UseUnderline = true; this.table4.Add(this.availCheck); Gtk.Table.TableChild w30 = ((Gtk.Table.TableChild)(this.table4[this.availCheck])); w30.TopAttach = ((uint)(1)); w30.BottomAttach = ((uint)(2)); w30.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.disabledCheck = new Gtk.CheckButton(); this.disabledCheck.CanFocus = true; this.disabledCheck.Name = "disabledCheck"; this.disabledCheck.Label = Mono.Unix.Catalog.GetString("Disabled"); this.disabledCheck.Active = true; this.disabledCheck.DrawIndicator = true; this.disabledCheck.UseUnderline = true; this.table4.Add(this.disabledCheck); Gtk.Table.TableChild w31 = ((Gtk.Table.TableChild)(this.table4[this.disabledCheck])); w31.TopAttach = ((uint)(1)); w31.BottomAttach = ((uint)(2)); w31.LeftAttach = ((uint)(1)); w31.RightAttach = ((uint)(2)); w31.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.foundCheck = new Gtk.CheckButton(); this.foundCheck.CanFocus = true; this.foundCheck.Name = "foundCheck"; this.foundCheck.Label = Mono.Unix.Catalog.GetString("Found"); this.foundCheck.Active = true; this.foundCheck.DrawIndicator = true; this.foundCheck.UseUnderline = true; this.table4.Add(this.foundCheck); Gtk.Table.TableChild w32 = ((Gtk.Table.TableChild)(this.table4[this.foundCheck])); w32.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.mineCheck = new Gtk.CheckButton(); this.mineCheck.CanFocus = true; this.mineCheck.Name = "mineCheck"; this.mineCheck.Label = Mono.Unix.Catalog.GetString("Mine"); this.mineCheck.Active = true; this.mineCheck.DrawIndicator = true; this.mineCheck.UseUnderline = true; this.table4.Add(this.mineCheck); Gtk.Table.TableChild w33 = ((Gtk.Table.TableChild)(this.table4[this.mineCheck])); w33.LeftAttach = ((uint)(2)); w33.RightAttach = ((uint)(3)); w33.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.notFoundCheck = new Gtk.CheckButton(); this.notFoundCheck.CanFocus = true; this.notFoundCheck.Name = "notFoundCheck"; this.notFoundCheck.Label = Mono.Unix.Catalog.GetString("Not Found"); this.notFoundCheck.Active = true; this.notFoundCheck.DrawIndicator = true; this.notFoundCheck.UseUnderline = true; this.table4.Add(this.notFoundCheck); Gtk.Table.TableChild w34 = ((Gtk.Table.TableChild)(this.table4[this.notFoundCheck])); w34.LeftAttach = ((uint)(1)); w34.RightAttach = ((uint)(2)); w34.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment4.Add(this.table4); this.statusFrame.Add(this.GtkAlignment4); this.vbox7.Add(this.statusFrame); Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.vbox7[this.statusFrame])); w37.Position = 3; w37.Expand = false; this.GtkAlignment3.Add(this.vbox7); this.frame7.Add(this.GtkAlignment3); this.GtkLabel20 = new Gtk.Label(); this.GtkLabel20.Name = "GtkLabel20"; this.GtkLabel20.LabelProp = Mono.Unix.Catalog.GetString("<b>Cache Status</b>"); this.GtkLabel20.UseMarkup = true; this.frame7.LabelWidget = this.GtkLabel20; this.vbox5.Add(this.frame7); Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.vbox5[this.frame7])); w40.Position = 2; w40.Expand = false; w40.Fill = false; this.Add(this.vbox5); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); this.allContRadio.Toggled += new System.EventHandler(this.OnAnyToggle); this.descCheck.Toggled += new System.EventHandler(this.OnDescToggled); this.markedCheck.Toggled += new System.EventHandler(this.OnMarkedtoggle); this.statusCheck.Toggled += new System.EventHandler(this.OnStatusToggle); }
void AddItem(ActionMenuItem aitem, int pos) { Gtk.Table t = new Gtk.Table (1, 3, false); aitem.Attach (t, 0, 0); aitem.KeyPressEvent += OnItemKeyPress; t.ShowAll (); CustomMenuBarItem it = new CustomMenuBarItem (); it.ActionMenuItem = aitem; aitem.Bind (it); it.Child = t; it.ShowAll (); Insert (it, pos); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.ExportPOIDialog this.WidthRequest = 600; this.Name = "ocmgtk.ExportPOIDialog"; this.Title = Mono.Unix.Catalog.GetString("Export Garmin POI"); this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; this.BorderWidth = ((uint)(6)); this.Resizable = false; this.AllowGrow = false; this.SkipPagerHint = true; this.SkipTaskbarHint = true; // Internal child ocmgtk.ExportPOIDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("File:"); this.hbox1.Add(this.label1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.fileEntry = new Gtk.Entry(); this.fileEntry.CanFocus = true; this.fileEntry.Name = "fileEntry"; this.fileEntry.IsEditable = true; this.fileEntry.InvisibleChar = '●'; this.hbox1.Add(this.fileEntry); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.fileEntry])); w3.Position = 1; // Container child hbox1.Gtk.Box+BoxChild this.fileButton = new Gtk.Button(); this.fileButton.CanFocus = true; this.fileButton.Name = "fileButton"; // Container child fileButton.Gtk.Container+ContainerChild this.image3 = new Gtk.Image(); this.image3.Name = "image3"; this.image3.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-open", Gtk.IconSize.Menu, 16); this.fileButton.Add(this.image3); this.fileButton.Label = null; this.hbox1.Add(this.fileButton); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.fileButton])); w5.Position = 2; w5.Expand = false; w5.Fill = false; this.vbox2.Add(this.hbox1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); w6.Position = 0; w6.Expand = false; w6.Fill = false; // Container child vbox2.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.GtkAlignment2 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment2.Name = "GtkAlignment2"; this.GtkAlignment2.LeftPadding = ((uint)(12)); // Container child GtkAlignment2.Gtk.Container+ContainerChild this.table1 = new Gtk.Table(((uint)(9)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.catagoryEntry = new Gtk.Entry(); this.catagoryEntry.CanFocus = true; this.catagoryEntry.Name = "catagoryEntry"; this.catagoryEntry.Text = Mono.Unix.Catalog.GetString("Geocaches"); this.catagoryEntry.IsEditable = true; this.catagoryEntry.InvisibleChar = '●'; this.table1.Add(this.catagoryEntry); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.catagoryEntry])); w7.TopAttach = ((uint)(2)); w7.BottomAttach = ((uint)(3)); 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.descCombo = Gtk.ComboBox.NewText(); this.descCombo.AppendText(Mono.Unix.Catalog.GetString("Cache Name")); this.descCombo.AppendText(Mono.Unix.Catalog.GetString("Cache Code/Size/Hint")); this.descCombo.AppendText(Mono.Unix.Catalog.GetString("Cache Code/Size/Type")); this.descCombo.AppendText(Mono.Unix.Catalog.GetString("Full Paperless")); this.descCombo.Name = "descCombo"; this.descCombo.Active = 0; this.table1.Add(this.descCombo); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.descCombo])); 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 table1.Gtk.Table+TableChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.includeBMPCheck = new Gtk.CheckButton(); this.includeBMPCheck.CanFocus = true; this.includeBMPCheck.Name = "includeBMPCheck"; this.includeBMPCheck.Label = Mono.Unix.Catalog.GetString("BMP Icon:"); this.includeBMPCheck.DrawIndicator = true; this.includeBMPCheck.UseUnderline = true; this.hbox2.Add(this.includeBMPCheck); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox2[this.includeBMPCheck])); w9.Position = 0; w9.Expand = false; // Container child hbox2.Gtk.Box+BoxChild this.bmpFile = new Gtk.Entry(); this.bmpFile.Sensitive = false; this.bmpFile.CanFocus = true; this.bmpFile.Name = "bmpFile"; this.bmpFile.IsEditable = true; this.bmpFile.InvisibleChar = '●'; this.hbox2.Add(this.bmpFile); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox2[this.bmpFile])); w10.Position = 1; // Container child hbox2.Gtk.Box+BoxChild this.bmpButton = new Gtk.Button(); this.bmpButton.Sensitive = false; this.bmpButton.CanFocus = true; this.bmpButton.Name = "bmpButton"; // Container child bmpButton.Gtk.Container+ContainerChild this.image4 = new Gtk.Image(); this.image4.Name = "image4"; this.image4.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-open", Gtk.IconSize.Menu, 16); this.bmpButton.Add(this.image4); this.bmpButton.Label = null; this.hbox2.Add(this.bmpButton); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox2[this.bmpButton])); w12.Position = 2; w12.Expand = false; w12.Fill = false; this.table1.Add(this.hbox2); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.hbox2])); w13.TopAttach = ((uint)(8)); w13.BottomAttach = ((uint)(9)); w13.RightAttach = ((uint)(2)); w13.XOptions = ((Gtk.AttachOptions)(4)); w13.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.proxEntry = new Gtk.Entry(); this.proxEntry.Sensitive = false; this.proxEntry.CanFocus = true; this.proxEntry.Name = "proxEntry"; this.proxEntry.Text = Mono.Unix.Catalog.GetString("1"); this.proxEntry.IsEditable = true; this.proxEntry.InvisibleChar = '●'; this.hbox3.Add(this.proxEntry); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox3[this.proxEntry])); w14.Position = 0; // Container child hbox3.Gtk.Box+BoxChild this.proxCombo = Gtk.ComboBox.NewText(); this.proxCombo.AppendText(Mono.Unix.Catalog.GetString("kilometers")); this.proxCombo.AppendText(Mono.Unix.Catalog.GetString("miles")); this.proxCombo.Sensitive = false; this.proxCombo.Name = "proxCombo"; this.proxCombo.Active = 0; this.hbox3.Add(this.proxCombo); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox3[this.proxCombo])); w15.Position = 1; w15.Expand = false; w15.Fill = false; this.table1.Add(this.hbox3); Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.hbox3])); w16.TopAttach = ((uint)(3)); w16.BottomAttach = ((uint)(4)); 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.includeChildrenCheck = new Gtk.CheckButton(); this.includeChildrenCheck.CanFocus = true; this.includeChildrenCheck.Name = "includeChildrenCheck"; this.includeChildrenCheck.Label = Mono.Unix.Catalog.GetString("Include Child Waypoints"); this.includeChildrenCheck.DrawIndicator = true; this.includeChildrenCheck.UseUnderline = true; this.table1.Add(this.includeChildrenCheck); Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table1[this.includeChildrenCheck])); w17.TopAttach = ((uint)(6)); w17.BottomAttach = ((uint)(7)); w17.RightAttach = ((uint)(2)); w17.XOptions = ((Gtk.AttachOptions)(4)); w17.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 0F; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Name:"); this.table1.Add(this.label2); Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.label2])); w18.XOptions = ((Gtk.AttachOptions)(4)); w18.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.Xalign = 0F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Description:"); this.table1.Add(this.label3); Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.label3])); w19.TopAttach = ((uint)(1)); w19.BottomAttach = ((uint)(2)); w19.XOptions = ((Gtk.AttachOptions)(4)); w19.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.Xalign = 0F; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Category:"); this.table1.Add(this.label4); Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(this.table1[this.label4])); w20.TopAttach = ((uint)(2)); w20.BottomAttach = ((uint)(3)); w20.XOptions = ((Gtk.AttachOptions)(4)); w20.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.limitCaches = new Gtk.CheckButton(); this.limitCaches.CanFocus = true; this.limitCaches.Name = "limitCaches"; this.limitCaches.Label = Mono.Unix.Catalog.GetString("Limit Number of Geocaches"); this.limitCaches.DrawIndicator = true; this.limitCaches.UseUnderline = true; this.table1.Add(this.limitCaches); Gtk.Table.TableChild w21 = ((Gtk.Table.TableChild)(this.table1[this.limitCaches])); w21.TopAttach = ((uint)(4)); w21.BottomAttach = ((uint)(5)); w21.XOptions = ((Gtk.AttachOptions)(4)); w21.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.limitEntry = new Gtk.Entry(); this.limitEntry.Sensitive = false; this.limitEntry.CanFocus = true; this.limitEntry.Name = "limitEntry"; this.limitEntry.Text = Mono.Unix.Catalog.GetString("1000"); this.limitEntry.IsEditable = true; this.limitEntry.InvisibleChar = '●'; this.table1.Add(this.limitEntry); Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.table1[this.limitEntry])); w22.TopAttach = ((uint)(4)); w22.BottomAttach = ((uint)(5)); w22.LeftAttach = ((uint)(1)); w22.RightAttach = ((uint)(2)); w22.XOptions = ((Gtk.AttachOptions)(4)); w22.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.logCheck = new Gtk.CheckButton(); this.logCheck.CanFocus = true; this.logCheck.Name = "logCheck"; this.logCheck.Label = Mono.Unix.Catalog.GetString("Limit Number of Logs"); this.logCheck.DrawIndicator = true; this.logCheck.UseUnderline = true; this.table1.Add(this.logCheck); Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.table1[this.logCheck])); w23.TopAttach = ((uint)(5)); w23.BottomAttach = ((uint)(6)); w23.XOptions = ((Gtk.AttachOptions)(4)); w23.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.logEntry = new Gtk.Entry(); this.logEntry.Sensitive = false; this.logEntry.CanFocus = true; this.logEntry.Name = "logEntry"; this.logEntry.Text = Mono.Unix.Catalog.GetString("5"); this.logEntry.IsEditable = true; this.logEntry.InvisibleChar = '●'; this.table1.Add(this.logEntry); Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table1[this.logEntry])); w24.TopAttach = ((uint)(5)); w24.BottomAttach = ((uint)(6)); w24.LeftAttach = ((uint)(1)); w24.RightAttach = ((uint)(2)); w24.XOptions = ((Gtk.AttachOptions)(4)); w24.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.nameCombo = Gtk.ComboBox.NewText(); this.nameCombo.AppendText(Mono.Unix.Catalog.GetString("Cache Code")); this.nameCombo.AppendText(Mono.Unix.Catalog.GetString("Cache Name")); this.nameCombo.Name = "nameCombo"; this.nameCombo.Active = 0; this.table1.Add(this.nameCombo); Gtk.Table.TableChild w25 = ((Gtk.Table.TableChild)(this.table1[this.nameCombo])); w25.LeftAttach = ((uint)(1)); w25.RightAttach = ((uint)(2)); w25.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.proximityAlertCheck = new Gtk.CheckButton(); this.proximityAlertCheck.CanFocus = true; this.proximityAlertCheck.Name = "proximityAlertCheck"; this.proximityAlertCheck.Label = Mono.Unix.Catalog.GetString("Proximity Alert:"); this.proximityAlertCheck.DrawIndicator = true; this.proximityAlertCheck.UseUnderline = true; this.table1.Add(this.proximityAlertCheck); Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.table1[this.proximityAlertCheck])); w26.TopAttach = ((uint)(3)); w26.BottomAttach = ((uint)(4)); w26.XOptions = ((Gtk.AttachOptions)(4)); w26.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.useHTMLCheck = new Gtk.CheckButton(); this.useHTMLCheck.CanFocus = true; this.useHTMLCheck.Name = "useHTMLCheck"; this.useHTMLCheck.Label = Mono.Unix.Catalog.GetString("Convert HTML to Plain Text"); this.useHTMLCheck.DrawIndicator = true; this.useHTMLCheck.UseUnderline = true; this.table1.Add(this.useHTMLCheck); Gtk.Table.TableChild w27 = ((Gtk.Table.TableChild)(this.table1[this.useHTMLCheck])); w27.TopAttach = ((uint)(7)); w27.BottomAttach = ((uint)(8)); w27.RightAttach = ((uint)(2)); w27.XOptions = ((Gtk.AttachOptions)(4)); w27.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment2.Add(this.table1); this.frame1.Add(this.GtkAlignment2); this.GtkLabel4 = new Gtk.Label(); this.GtkLabel4.Name = "GtkLabel4"; this.GtkLabel4.LabelProp = Mono.Unix.Catalog.GetString("<b>POI Options</b>"); this.GtkLabel4.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel4; this.vbox2.Add(this.frame1); Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame1])); w30.Position = 1; w30.Expand = false; w30.Fill = false; w1.Add(this.vbox2); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); w31.Position = 0; w31.Expand = false; w31.Fill = false; // Internal child ocmgtk.ExportPOIDialog.ActionArea Gtk.HButtonBox w32 = this.ActionArea; w32.Name = "dialog1_ActionArea"; w32.Spacing = 10; w32.BorderWidth = ((uint)(5)); w32.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 w33 = ((Gtk.ButtonBox.ButtonBoxChild)(w32[this.buttonCancel])); w33.Expand = false; w33.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 w34 = ((Gtk.ButtonBox.ButtonBoxChild)(w32[this.buttonOk])); w34.Position = 1; w34.Expand = false; w34.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 612; this.DefaultHeight = 415; this.Show(); this.fileButton.Clicked += new System.EventHandler(this.OnFileClick); this.proximityAlertCheck.Toggled += new System.EventHandler(this.OnProxToggle); this.logCheck.Toggled += new System.EventHandler(this.OnLogToggle); this.limitCaches.Toggled += new System.EventHandler(this.OnCacheToggle); this.includeBMPCheck.Toggled += new System.EventHandler(this.OnBMPToggle); this.bmpButton.Clicked += new System.EventHandler(this.OnBMPClick); this.buttonCancel.Clicked += new System.EventHandler(this.OnCancelClick); this.buttonOk.Clicked += new System.EventHandler(this.OnOKClick); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget PropertyManager.LoginDlg this.Name = "PropertyManager.LoginDlg"; this.Title = Mono.Unix.Catalog.GetString("Logon to Property Manager"); this.WindowPosition = ((Gtk.WindowPosition)(3)); this.HasSeparator = false; // Internal child PropertyManager.LoginDlg.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)(4)); this.table1.ColumnSpacing = ((uint)(4)); this.table1.BorderWidth = ((uint)(4)); // Container child table1.Gtk.Table+TableChild this.cbEnvironment = Gtk.ComboBox.NewText(); this.cbEnvironment.AppendText(Mono.Unix.Catalog.GetString("Local")); this.cbEnvironment.AppendText(Mono.Unix.Catalog.GetString("Development")); this.cbEnvironment.AppendText(Mono.Unix.Catalog.GetString("QA")); this.cbEnvironment.AppendText(Mono.Unix.Catalog.GetString("UAT")); this.cbEnvironment.AppendText(Mono.Unix.Catalog.GetString("Production")); this.cbEnvironment.Name = "cbEnvironment"; this.cbEnvironment.Active = 0; this.table1.Add(this.cbEnvironment); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.cbEnvironment])); w2.TopAttach = ((uint)(2)); w2.BottomAttach = ((uint)(3)); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.lblEnvironment = new Gtk.Label(); this.lblEnvironment.Name = "lblEnvironment"; this.lblEnvironment.Xalign = 0F; this.lblEnvironment.LabelProp = Mono.Unix.Catalog.GetString("Environment:"); this.table1.Add(this.lblEnvironment); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.lblEnvironment])); w3.TopAttach = ((uint)(2)); w3.BottomAttach = ((uint)(3)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.lblPassword = new Gtk.Label(); this.lblPassword.Name = "lblPassword"; this.lblPassword.Xalign = 0F; this.lblPassword.LabelProp = Mono.Unix.Catalog.GetString("Password:"******"lblUserName"; this.lblUserName.Xalign = 0F; this.lblUserName.LabelProp = Mono.Unix.Catalog.GetString("User Name:"); this.table1.Add(this.lblUserName); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.lblUserName])); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.txtPassword = new Gtk.Entry(); this.txtPassword.CanFocus = true; this.txtPassword.Name = "txtPassword"; this.txtPassword.IsEditable = true; this.txtPassword.ActivatesDefault = true; this.txtPassword.Visibility = false; this.txtPassword.InvisibleChar = '●'; this.table1.Add(this.txtPassword); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.txtPassword])); 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 table1.Gtk.Table+TableChild this.txtUserName = new Gtk.Entry(); this.txtUserName.CanFocus = true; this.txtUserName.Name = "txtUserName"; this.txtUserName.IsEditable = true; this.txtUserName.ActivatesDefault = true; this.txtUserName.InvisibleChar = '●'; this.table1.Add(this.txtUserName); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.txtUserName])); 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; // Internal child PropertyManager.LoginDlg.ActionArea Gtk.HButtonBox w9 = this.ActionArea; w9.Name = "dialog1_ActionArea"; w9.Spacing = 6; w9.BorderWidth = ((uint)(5)); w9.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 w10 = ((Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonCancel])); w10.Expand = false; w10.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); this.buttonOk.Sensitive = false; this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget(this.buttonOk, -5); Gtk.ButtonBox.ButtonBoxChild w11 = ((Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonOk])); w11.Position = 1; w11.Expand = false; w11.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 270; this.DefaultHeight = 163; this.buttonOk.HasDefault = true; this.Show(); this.txtUserName.Changed += new System.EventHandler(this.UserNameChanged); this.txtPassword.Changed += new System.EventHandler(this.PasswordChanged); this.cbEnvironment.Changed += new System.EventHandler(this.EnvironmentChanged); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Gedcom.UI.GTK.Widgets.IndividualView Stetic.BinContainer.Attach(this); this.Events = ((Gdk.EventMask)(256)); this.Name = "Gedcom.UI.GTK.Widgets.IndividualView"; // Container child Gedcom.UI.GTK.Widgets.IndividualView.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; this.vbox1.BorderWidth = ((uint)(6)); // Container child vbox1.Gtk.Box+BoxChild this.Notebook = new Gtk.Notebook(); this.Notebook.CanFocus = true; this.Notebook.Name = "Notebook"; this.Notebook.CurrentPage = 3; // Container child Notebook.Gtk.Notebook+NotebookChild this.table1 = new Gtk.Table(((uint)(5)), ((uint)(7)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(12)); this.table1.BorderWidth = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.BornInEntry = new Gtk.Entry(); this.BornInEntry.CanFocus = true; this.BornInEntry.Name = "BornInEntry"; this.BornInEntry.IsEditable = true; this.BornInEntry.InvisibleChar = '●'; this.table1.Add(this.BornInEntry); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.BornInEntry])); w1.TopAttach = ((uint)(1)); w1.BottomAttach = ((uint)(2)); w1.LeftAttach = ((uint)(4)); w1.RightAttach = ((uint)(7)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.DateBornEntry = new Gtk.Entry(); this.DateBornEntry.CanFocus = true; this.DateBornEntry.Name = "DateBornEntry"; this.DateBornEntry.IsEditable = true; this.DateBornEntry.InvisibleChar = '●'; this.table1.Add(this.DateBornEntry); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.DateBornEntry])); w2.TopAttach = ((uint)(1)); w2.BottomAttach = ((uint)(2)); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.DateBornSourceButton = new Gtk.Button(); this.DateBornSourceButton.CanFocus = true; this.DateBornSourceButton.Name = "DateBornSourceButton"; // Container child DateBornSourceButton.Gtk.Container+ContainerChild this.image440 = new Gtk.Image(); this.image440.Name = "image440"; this.image440.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-index", Gtk.IconSize.Button, 20); this.DateBornSourceButton.Add(this.image440); this.DateBornSourceButton.Label = null; this.table1.Add(this.DateBornSourceButton); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.DateBornSourceButton])); w4.TopAttach = ((uint)(1)); w4.BottomAttach = ((uint)(2)); w4.LeftAttach = ((uint)(2)); w4.RightAttach = ((uint)(3)); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.DateDiedEntry = new Gtk.Entry(); this.DateDiedEntry.CanFocus = true; this.DateDiedEntry.Name = "DateDiedEntry"; this.DateDiedEntry.IsEditable = true; this.DateDiedEntry.InvisibleChar = '●'; this.table1.Add(this.DateDiedEntry); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.DateDiedEntry])); w5.TopAttach = ((uint)(2)); w5.BottomAttach = ((uint)(3)); w5.LeftAttach = ((uint)(1)); w5.RightAttach = ((uint)(2)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.DateDiedSourceButton = new Gtk.Button(); this.DateDiedSourceButton.CanFocus = true; this.DateDiedSourceButton.Name = "DateDiedSourceButton"; // Container child DateDiedSourceButton.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.DateDiedSourceButton.Add(this.image438); this.DateDiedSourceButton.Label = null; this.table1.Add(this.DateDiedSourceButton); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.DateDiedSourceButton])); w7.TopAttach = ((uint)(2)); w7.BottomAttach = ((uint)(3)); w7.LeftAttach = ((uint)(2)); w7.RightAttach = ((uint)(3)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.DeleteButton = new Gtk.Button(); this.DeleteButton.CanFocus = true; this.DeleteButton.Name = "DeleteButton"; // Container child DeleteButton.Gtk.Container+ContainerChild this.image415 = new Gtk.Image(); this.image415.Name = "image415"; this.image415.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-delete", Gtk.IconSize.Menu, 16); this.DeleteButton.Add(this.image415); this.DeleteButton.Label = null; this.table1.Add(this.DeleteButton); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.DeleteButton])); w9.LeftAttach = ((uint)(6)); w9.RightAttach = ((uint)(7)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.DiedInEntry = new Gtk.Entry(); this.DiedInEntry.CanFocus = true; this.DiedInEntry.Name = "DiedInEntry"; this.DiedInEntry.IsEditable = true; this.DiedInEntry.InvisibleChar = '●'; this.table1.Add(this.DiedInEntry); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.DiedInEntry])); w10.TopAttach = ((uint)(2)); w10.BottomAttach = ((uint)(3)); w10.LeftAttach = ((uint)(4)); w10.RightAttach = ((uint)(7)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.FactView = new Gedcom.UI.GTK.Widgets.FactView(); this.FactView.Events = ((Gdk.EventMask)(256)); this.FactView.Name = "FactView"; this.table1.Add(this.FactView); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.FactView])); w11.TopAttach = ((uint)(4)); w11.BottomAttach = ((uint)(5)); w11.RightAttach = ((uint)(7)); w11.YOptions = ((Gtk.AttachOptions)(7)); // Container child table1.Gtk.Table+TableChild this.hseparator3 = new Gtk.HSeparator(); this.hseparator3.Name = "hseparator3"; this.table1.Add(this.hseparator3); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.hseparator3])); w12.TopAttach = ((uint)(3)); w12.BottomAttach = ((uint)(4)); w12.RightAttach = ((uint)(7)); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.IndiScrapbookButton = new Gtk.Button(); this.IndiScrapbookButton.CanFocus = true; this.IndiScrapbookButton.Name = "IndiScrapbookButton"; // Container child IndiScrapbookButton.Gtk.Container+ContainerChild Gtk.Alignment w13 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w14 = new Gtk.HBox(); w14.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w15 = new Gtk.Image(); w15.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-paste", Gtk.IconSize.Button, 20); w14.Add(w15); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w17 = new Gtk.Label(); w17.LabelProp = "Scrapbook"; w14.Add(w17); w13.Add(w14); this.IndiScrapbookButton.Add(w13); this.table1.Add(this.IndiScrapbookButton); Gtk.Table.TableChild w21 = ((Gtk.Table.TableChild)(this.table1[this.IndiScrapbookButton])); w21.LeftAttach = ((uint)(5)); w21.RightAttach = ((uint)(6)); w21.XOptions = ((Gtk.AttachOptions)(4)); w21.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label10 = new Gtk.Label(); this.label10.Name = "label10"; this.label10.LabelProp = "in:"; this.table1.Add(this.label10); Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.table1[this.label10])); w22.TopAttach = ((uint)(1)); w22.BottomAttach = ((uint)(2)); w22.LeftAttach = ((uint)(3)); w22.RightAttach = ((uint)(4)); w22.XOptions = ((Gtk.AttachOptions)(4)); w22.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label11 = new Gtk.Label(); this.label11.Name = "label11"; this.label11.LabelProp = "in:"; this.table1.Add(this.label11); Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.table1[this.label11])); w23.TopAttach = ((uint)(2)); w23.BottomAttach = ((uint)(3)); w23.LeftAttach = ((uint)(3)); w23.RightAttach = ((uint)(4)); w23.XOptions = ((Gtk.AttachOptions)(4)); w23.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label18 = new Gtk.Label(); this.label18.Name = "label18"; this.label18.Xalign = 0F; this.label18.LabelProp = "Date Born:"; this.table1.Add(this.label18); Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table1[this.label18])); w24.TopAttach = ((uint)(1)); w24.BottomAttach = ((uint)(2)); w24.XOptions = ((Gtk.AttachOptions)(4)); w24.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label19 = new Gtk.Label(); this.label19.Name = "label19"; this.label19.Xalign = 0F; this.label19.LabelProp = "Date Died:"; this.table1.Add(this.label19); Gtk.Table.TableChild w25 = ((Gtk.Table.TableChild)(this.table1[this.label19])); w25.TopAttach = ((uint)(2)); w25.BottomAttach = ((uint)(3)); w25.XOptions = ((Gtk.AttachOptions)(4)); w25.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label9 = new Gtk.Label(); this.label9.Name = "label9"; this.label9.LabelProp = "Sex:"; this.table1.Add(this.label9); Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.table1[this.label9])); w26.LeftAttach = ((uint)(3)); w26.RightAttach = ((uint)(4)); w26.XOptions = ((Gtk.AttachOptions)(4)); w26.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.NameButton = new Gtk.Button(); this.NameButton.CanFocus = true; this.NameButton.Name = "NameButton"; // Container child NameButton.Gtk.Container+ContainerChild this.SpouseNameLabel = new Gtk.Label(); this.SpouseNameLabel.Name = "SpouseNameLabel"; this.SpouseNameLabel.Xalign = 1F; this.SpouseNameLabel.LabelProp = "Name:"; this.NameButton.Add(this.SpouseNameLabel); this.NameButton.Label = null; this.table1.Add(this.NameButton); Gtk.Table.TableChild w28 = ((Gtk.Table.TableChild)(this.table1[this.NameButton])); w28.XOptions = ((Gtk.AttachOptions)(4)); w28.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.NameEntry = new Gtk.Entry(); this.NameEntry.CanFocus = true; this.NameEntry.Name = "NameEntry"; this.NameEntry.IsEditable = true; this.NameEntry.InvisibleChar = '●'; this.table1.Add(this.NameEntry); Gtk.Table.TableChild w29 = ((Gtk.Table.TableChild)(this.table1[this.NameEntry])); w29.LeftAttach = ((uint)(1)); w29.RightAttach = ((uint)(2)); w29.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.image439 = new Gtk.Image(); this.image439.Name = "image439"; this.image439.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-index", Gtk.IconSize.Button, 20); this.NameSourceButton.Add(this.image439); this.NameSourceButton.Label = null; this.table1.Add(this.NameSourceButton); Gtk.Table.TableChild w31 = ((Gtk.Table.TableChild)(this.table1[this.NameSourceButton])); w31.LeftAttach = ((uint)(2)); w31.RightAttach = ((uint)(3)); w31.XOptions = ((Gtk.AttachOptions)(4)); w31.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.SexComboBox = Gtk.ComboBox.NewText(); this.SexComboBox.AppendText("Undetermined"); this.SexComboBox.AppendText("Male"); this.SexComboBox.AppendText("Female"); this.SexComboBox.AppendText("Both"); this.SexComboBox.AppendText("Neuter"); this.SexComboBox.Name = "SexComboBox"; this.SexComboBox.Active = 0; this.table1.Add(this.SexComboBox); Gtk.Table.TableChild w32 = ((Gtk.Table.TableChild)(this.table1[this.SexComboBox])); w32.LeftAttach = ((uint)(4)); w32.RightAttach = ((uint)(5)); w32.XOptions = ((Gtk.AttachOptions)(4)); w32.YOptions = ((Gtk.AttachOptions)(4)); this.Notebook.Add(this.table1); // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = "Facts"; this.Notebook.SetTabLabel(this.table1, this.label2); this.label2.ShowAll(); // Container child Notebook.Gtk.Notebook+NotebookChild this.table3 = new Gtk.Table(((uint)(3)), ((uint)(5)), false); this.table3.Name = "table3"; this.table3.RowSpacing = ((uint)(6)); this.table3.ColumnSpacing = ((uint)(12)); this.table3.BorderWidth = ((uint)(6)); // Container child table3.Gtk.Table+TableChild this.hseparator4 = new Gtk.HSeparator(); this.hseparator4.Name = "hseparator4"; this.table3.Add(this.hseparator4); Gtk.Table.TableChild w34 = ((Gtk.Table.TableChild)(this.table3[this.hseparator4])); w34.TopAttach = ((uint)(1)); w34.BottomAttach = ((uint)(2)); w34.RightAttach = ((uint)(5)); w34.XOptions = ((Gtk.AttachOptions)(4)); w34.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.MarriageView = new Gedcom.UI.GTK.Widgets.MarriageView(); this.MarriageView.Events = ((Gdk.EventMask)(256)); this.MarriageView.Name = "MarriageView"; this.table3.Add(this.MarriageView); Gtk.Table.TableChild w35 = ((Gtk.Table.TableChild)(this.table3[this.MarriageView])); w35.RightAttach = ((uint)(5)); w35.XOptions = ((Gtk.AttachOptions)(4)); w35.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.scrolledwindow8 = new Gtk.ScrolledWindow(); this.scrolledwindow8.CanFocus = true; this.scrolledwindow8.Name = "scrolledwindow8"; this.scrolledwindow8.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow8.Gtk.Container+ContainerChild Gtk.Viewport w36 = new Gtk.Viewport(); w36.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.MarriageTreeView = new Gtk.TreeView(); this.MarriageTreeView.CanFocus = true; this.MarriageTreeView.Name = "MarriageTreeView"; w36.Add(this.MarriageTreeView); this.scrolledwindow8.Add(w36); this.table3.Add(this.scrolledwindow8); Gtk.Table.TableChild w39 = ((Gtk.Table.TableChild)(this.table3[this.scrolledwindow8])); w39.TopAttach = ((uint)(2)); w39.BottomAttach = ((uint)(3)); w39.RightAttach = ((uint)(5)); w39.XOptions = ((Gtk.AttachOptions)(7)); w39.YOptions = ((Gtk.AttachOptions)(7)); this.Notebook.Add(this.table3); Gtk.Notebook.NotebookChild w40 = ((Gtk.Notebook.NotebookChild)(this.Notebook[this.table3])); w40.Position = 1; // Notebook tab this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.LabelProp = "Marriage"; this.Notebook.SetTabLabel(this.table3, this.label6); this.label6.ShowAll(); // Container child Notebook.Gtk.Notebook+NotebookChild this.AddressView = new Gedcom.UI.GTK.Widgets.AddressView(); this.AddressView.Events = ((Gdk.EventMask)(256)); this.AddressView.Name = "AddressView"; this.Notebook.Add(this.AddressView); Gtk.Notebook.NotebookChild w41 = ((Gtk.Notebook.NotebookChild)(this.Notebook[this.AddressView])); w41.Position = 2; // Notebook tab this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = "Addresses"; this.Notebook.SetTabLabel(this.AddressView, this.label3); this.label3.ShowAll(); // Container child Notebook.Gtk.Notebook+NotebookChild this.table6 = new Gtk.Table(((uint)(4)), ((uint)(5)), false); this.table6.Name = "table6"; this.table6.RowSpacing = ((uint)(6)); this.table6.ColumnSpacing = ((uint)(12)); this.table6.BorderWidth = ((uint)(6)); // Container child table6.Gtk.Table+TableChild this.HeightEntry = new Gtk.Entry(); this.HeightEntry.CanFocus = true; this.HeightEntry.Name = "HeightEntry"; this.HeightEntry.IsEditable = true; this.HeightEntry.InvisibleChar = '●'; this.table6.Add(this.HeightEntry); Gtk.Table.TableChild w42 = ((Gtk.Table.TableChild)(this.table6[this.HeightEntry])); w42.LeftAttach = ((uint)(1)); w42.RightAttach = ((uint)(2)); w42.XOptions = ((Gtk.AttachOptions)(4)); w42.YOptions = ((Gtk.AttachOptions)(4)); // Container child table6.Gtk.Table+TableChild this.label30 = new Gtk.Label(); this.label30.Name = "label30"; this.label30.Xalign = 0F; this.label30.LabelProp = "Height:"; this.table6.Add(this.label30); Gtk.Table.TableChild w43 = ((Gtk.Table.TableChild)(this.table6[this.label30])); w43.XOptions = ((Gtk.AttachOptions)(4)); w43.YOptions = ((Gtk.AttachOptions)(4)); // Container child table6.Gtk.Table+TableChild this.label33 = new Gtk.Label(); this.label33.Name = "label33"; this.label33.Xalign = 0F; this.label33.LabelProp = "Weight:"; this.table6.Add(this.label33); Gtk.Table.TableChild w44 = ((Gtk.Table.TableChild)(this.table6[this.label33])); w44.TopAttach = ((uint)(1)); w44.BottomAttach = ((uint)(2)); w44.XOptions = ((Gtk.AttachOptions)(4)); w44.YOptions = ((Gtk.AttachOptions)(4)); // Container child table6.Gtk.Table+TableChild this.label34 = new Gtk.Label(); this.label34.Name = "label34"; this.label34.Xalign = 0F; this.label34.Yalign = 0F; this.label34.LabelProp = "Cause of Death:"; this.table6.Add(this.label34); Gtk.Table.TableChild w45 = ((Gtk.Table.TableChild)(this.table6[this.label34])); w45.TopAttach = ((uint)(2)); w45.BottomAttach = ((uint)(3)); w45.XOptions = ((Gtk.AttachOptions)(4)); w45.YOptions = ((Gtk.AttachOptions)(4)); // Container child table6.Gtk.Table+TableChild this.label35 = new Gtk.Label(); this.label35.Name = "label35"; this.label35.Xalign = 0F; this.label35.Yalign = 0F; this.label35.LabelProp = "Medical Information:"; this.table6.Add(this.label35); Gtk.Table.TableChild w46 = ((Gtk.Table.TableChild)(this.table6[this.label35])); w46.TopAttach = ((uint)(3)); w46.BottomAttach = ((uint)(4)); w46.XOptions = ((Gtk.AttachOptions)(4)); w46.YOptions = ((Gtk.AttachOptions)(4)); // Container child table6.Gtk.Table+TableChild this.scrolledwindow5 = new Gtk.ScrolledWindow(); this.scrolledwindow5.CanFocus = true; this.scrolledwindow5.Name = "scrolledwindow5"; this.scrolledwindow5.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow5.Gtk.Container+ContainerChild this.MedicalInformationTextView = new Gtk.TextView(); this.MedicalInformationTextView.CanFocus = true; this.MedicalInformationTextView.Name = "MedicalInformationTextView"; this.scrolledwindow5.Add(this.MedicalInformationTextView); this.table6.Add(this.scrolledwindow5); Gtk.Table.TableChild w48 = ((Gtk.Table.TableChild)(this.table6[this.scrolledwindow5])); w48.TopAttach = ((uint)(3)); w48.BottomAttach = ((uint)(4)); w48.LeftAttach = ((uint)(1)); w48.RightAttach = ((uint)(5)); // Container child table6.Gtk.Table+TableChild this.scrolledwindow6 = new Gtk.ScrolledWindow(); this.scrolledwindow6.CanFocus = true; this.scrolledwindow6.Name = "scrolledwindow6"; this.scrolledwindow6.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow6.Gtk.Container+ContainerChild this.CauseOfDeathTextView = new Gtk.TextView(); this.CauseOfDeathTextView.CanFocus = true; this.CauseOfDeathTextView.Name = "CauseOfDeathTextView"; this.scrolledwindow6.Add(this.CauseOfDeathTextView); this.table6.Add(this.scrolledwindow6); Gtk.Table.TableChild w50 = ((Gtk.Table.TableChild)(this.table6[this.scrolledwindow6])); w50.TopAttach = ((uint)(2)); w50.BottomAttach = ((uint)(3)); w50.LeftAttach = ((uint)(1)); w50.RightAttach = ((uint)(5)); // Container child table6.Gtk.Table+TableChild this.WeightEntry = new Gtk.Entry(); this.WeightEntry.CanFocus = true; this.WeightEntry.Name = "WeightEntry"; this.WeightEntry.IsEditable = true; this.WeightEntry.InvisibleChar = '●'; this.table6.Add(this.WeightEntry); Gtk.Table.TableChild w51 = ((Gtk.Table.TableChild)(this.table6[this.WeightEntry])); w51.TopAttach = ((uint)(1)); w51.BottomAttach = ((uint)(2)); w51.LeftAttach = ((uint)(1)); w51.RightAttach = ((uint)(2)); w51.XOptions = ((Gtk.AttachOptions)(4)); w51.YOptions = ((Gtk.AttachOptions)(4)); this.Notebook.Add(this.table6); Gtk.Notebook.NotebookChild w52 = ((Gtk.Notebook.NotebookChild)(this.Notebook[this.table6])); w52.Position = 3; // Notebook tab this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = "Medical"; this.Notebook.SetTabLabel(this.table6, this.label4); this.label4.ShowAll(); // Container child Notebook.Gtk.Notebook+NotebookChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.LabelProp = "label5"; this.Notebook.Add(this.label5); Gtk.Notebook.NotebookChild w53 = ((Gtk.Notebook.NotebookChild)(this.Notebook[this.label5])); w53.Position = 4; // Notebook tab this.label40 = new Gtk.Label(); this.label40.Name = "label40"; this.label40.LabelProp = "Lineage"; this.Notebook.SetTabLabel(this.label5, this.label40); this.label40.ShowAll(); // Container child Notebook.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.Notebook.Add(this.NotesView); Gtk.Notebook.NotebookChild w54 = ((Gtk.Notebook.NotebookChild)(this.Notebook[this.NotesView])); w54.Position = 5; // Notebook tab this.label7 = new Gtk.Label(); this.label7.Name = "label7"; this.label7.LabelProp = "Notes"; this.Notebook.SetTabLabel(this.NotesView, this.label7); this.label7.ShowAll(); this.vbox1.Add(this.Notebook); Gtk.Box.BoxChild w55 = ((Gtk.Box.BoxChild)(this.vbox1[this.Notebook])); w55.Position = 0; // Container child vbox1.Gtk.Box+BoxChild this.vbox5 = new Gtk.VBox(); this.vbox5.Name = "vbox5"; // Container child vbox5.Gtk.Box+BoxChild this.SwitchBox = new Gtk.VBox(); this.SwitchBox.Name = "SwitchBox"; this.SwitchBox.Spacing = 6; // Container child SwitchBox.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = "Switch to this individual's:"; this.SwitchBox.Add(this.label1); Gtk.Box.BoxChild w56 = ((Gtk.Box.BoxChild)(this.SwitchBox[this.label1])); w56.Position = 0; w56.Expand = false; w56.Fill = false; // Container child SwitchBox.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Homogeneous = true; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.ParentsCombo = new Gedcom.UI.GTK.Widgets.IndividualListComboBox(); this.ParentsCombo.Name = "ParentsCombo"; this.ParentsCombo.Active = 0; this.ParentsCombo.NoIndividualText = "Parents"; this.hbox3.Add(this.ParentsCombo); Gtk.Box.BoxChild w57 = ((Gtk.Box.BoxChild)(this.hbox3[this.ParentsCombo])); w57.Position = 0; // Container child hbox3.Gtk.Box+BoxChild this.ChildrenCombo = new Gedcom.UI.GTK.Widgets.IndividualListComboBox(); this.ChildrenCombo.Name = "ChildrenCombo"; this.ChildrenCombo.Active = 0; this.ChildrenCombo.NoIndividualText = "Children"; this.hbox3.Add(this.ChildrenCombo); Gtk.Box.BoxChild w58 = ((Gtk.Box.BoxChild)(this.hbox3[this.ChildrenCombo])); w58.Position = 1; // Container child hbox3.Gtk.Box+BoxChild this.SpousesCombo = new Gedcom.UI.GTK.Widgets.IndividualListComboBox(); this.SpousesCombo.Name = "SpousesCombo"; this.SpousesCombo.Active = 0; this.SpousesCombo.NoIndividualText = "Spouses"; this.hbox3.Add(this.SpousesCombo); Gtk.Box.BoxChild w59 = ((Gtk.Box.BoxChild)(this.hbox3[this.SpousesCombo])); w59.Position = 2; // Container child hbox3.Gtk.Box+BoxChild this.SiblingsCombo = new Gedcom.UI.GTK.Widgets.IndividualListComboBox(); this.SiblingsCombo.Name = "SiblingsCombo"; this.SiblingsCombo.Active = 0; this.SiblingsCombo.NoIndividualText = "Siblings"; this.hbox3.Add(this.SiblingsCombo); Gtk.Box.BoxChild w60 = ((Gtk.Box.BoxChild)(this.hbox3[this.SiblingsCombo])); w60.Position = 3; this.SwitchBox.Add(this.hbox3); Gtk.Box.BoxChild w61 = ((Gtk.Box.BoxChild)(this.SwitchBox[this.hbox3])); w61.Position = 1; w61.Expand = false; w61.Fill = false; this.vbox5.Add(this.SwitchBox); Gtk.Box.BoxChild w62 = ((Gtk.Box.BoxChild)(this.vbox5[this.SwitchBox])); w62.Position = 0; w62.Expand = false; w62.Fill = false; this.vbox1.Add(this.vbox5); Gtk.Box.BoxChild w63 = ((Gtk.Box.BoxChild)(this.vbox1[this.vbox5])); w63.Position = 1; w63.Expand = false; w63.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.NameSourceButton.Clicked += new System.EventHandler(this.OnNameSourceButton_Clicked); this.NameButton.Clicked += new System.EventHandler(this.OnNameButton_Clicked); this.IndiScrapbookButton.Clicked += new System.EventHandler(this.OnIndiScrapbookButton_Clicked); this.FactView.MoreInformation += new System.EventHandler<Gedcom.UI.Common.FactArgs>(this.OnFactView_MoreInformation); this.DiedInEntry.Changed += new System.EventHandler(this.Died_Changed); this.DeleteButton.Clicked += new System.EventHandler(this.OnDeleteButton_Clicked); this.DateDiedSourceButton.Clicked += new System.EventHandler(this.OnDateDiedSourceButton_Clicked); this.DateDiedEntry.Changed += new System.EventHandler(this.Died_Changed); this.DateBornSourceButton.Clicked += new System.EventHandler(this.OnDateBornSourceButton_Clicked); this.DateBornEntry.Changed += new System.EventHandler(this.Born_Changed); this.BornInEntry.Changed += new System.EventHandler(this.Born_Changed); this.AddressView.ShowSourceCitation += new System.EventHandler<Gedcom.UI.Common.SourceCitationArgs>(this.OnAddressView_ShowSourceCitation); this.AddressView.ShowScrapBook += new System.EventHandler<Gedcom.UI.Common.ScrapBookArgs>(this.OnAddressView_ShowScrapBook); this.AddressView.MoreFactInformation += new System.EventHandler<Gedcom.UI.Common.FactArgs>(this.OnAddressView_MoreFactInformation); 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); this.ParentsCombo.Changed += new System.EventHandler(this.OnParentsCombo_Changed); this.ChildrenCombo.Changed += new System.EventHandler(this.OnChildrenCombo_Changed); this.SpousesCombo.Changed += new System.EventHandler(this.OnSpousesCombo_Changed); this.SiblingsCombo.Changed += new System.EventHandler(this.OnSiblingsCombo_Changed); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget mperfmon.NewCounter this.Name = "mperfmon.NewCounter"; this.Title = Mono.Unix.Catalog.GetString("Add performance counter"); this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.HasSeparator = false; // Internal child mperfmon.NewCounter.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.table2 = new Gtk.Table(((uint)(2)), ((uint)(2)), false); this.table2.Name = "table2"; this.table2.RowSpacing = ((uint)(6)); this.table2.ColumnSpacing = ((uint)(6)); // Container child table2.Gtk.Table+TableChild this.frame1 = new Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame1.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.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.counters = new Gtk.TreeView(); this.counters.CanFocus = true; this.counters.Name = "counters"; this.counters.HeadersClickable = true; this.GtkScrolledWindow.Add(this.counters); this.GtkAlignment3.Add(this.GtkScrolledWindow); this.frame1.Add(this.GtkAlignment3); this.GtkLabel3 = new Gtk.Label(); this.GtkLabel3.Name = "GtkLabel3"; this.GtkLabel3.LabelProp = Mono.Unix.Catalog.GetString("<b>Counters:</b>"); this.GtkLabel3.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel3; this.table2.Add(this.frame1); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table2[this.frame1])); w5.TopAttach = ((uint)(1)); w5.BottomAttach = ((uint)(2)); // Container child table2.Gtk.Table+TableChild this.frame2 = new Gtk.Frame(); this.frame2.Name = "frame2"; this.frame2.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame2.Gtk.Container+ContainerChild this.GtkAlignment2 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment2.Name = "GtkAlignment2"; this.GtkAlignment2.LeftPadding = ((uint)(12)); // Container child GtkAlignment2.Gtk.Container+ContainerChild this.GtkScrolledWindow1 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild this.instances = new Gtk.TreeView(); this.instances.CanFocus = true; this.instances.Name = "instances"; this.instances.HeadersClickable = true; this.GtkScrolledWindow1.Add(this.instances); this.GtkAlignment2.Add(this.GtkScrolledWindow1); this.frame2.Add(this.GtkAlignment2); this.GtkLabel2 = new Gtk.Label(); this.GtkLabel2.Name = "GtkLabel2"; this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("<b>Instances:</b>"); this.GtkLabel2.UseMarkup = true; this.frame2.LabelWidget = this.GtkLabel2; this.table2.Add(this.frame2); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table2[this.frame2])); w9.TopAttach = ((uint)(1)); w9.BottomAttach = ((uint)(2)); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); // Container child table2.Gtk.Table+TableChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Category"); this.hbox1.Add(this.label1); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1])); w10.Position = 0; w10.Expand = false; w10.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.categories = Gtk.ComboBox.NewText(); this.categories.Name = "categories"; this.categories.Active = 0; this.hbox1.Add(this.categories); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox1[this.categories])); w11.Position = 1; w11.Expand = false; w11.Fill = false; this.table2.Add(this.hbox1); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table2[this.hbox1])); w12.RightAttach = ((uint)(2)); w12.XOptions = ((Gtk.AttachOptions)(0)); w12.YOptions = ((Gtk.AttachOptions)(4)); w1.Add(this.table2); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(w1[this.table2])); w13.Position = 0; w13.Padding = ((uint)(6)); // Internal child mperfmon.NewCounter.ActionArea Gtk.HButtonBox w14 = this.ActionArea; w14.Name = "dialog1_ActionArea"; w14.Spacing = 6; w14.BorderWidth = ((uint)(5)); w14.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 w15 = ((Gtk.ButtonBox.ButtonBoxChild)(w14[this.buttonCancel])); w15.Expand = false; w15.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 w16 = ((Gtk.ButtonBox.ButtonBoxChild)(w14[this.buttonOk])); w16.Position = 1; w16.Expand = false; w16.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 565; this.DefaultHeight = 359; this.Show(); this.categories.Changed += new System.EventHandler(this.OnCategorySelected); this.counters.RowActivated += new Gtk.RowActivatedHandler(this.OnCounterRow); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Gedcom.UI.GTK.Widgets.SourceView Stetic.BinContainer.Attach(this); this.Events = ((Gdk.EventMask)(256)); this.Name = "Gedcom.UI.GTK.Widgets.SourceView"; // Container child Gedcom.UI.GTK.Widgets.SourceView.Gtk.Container+ContainerChild this.Notebook = new Gtk.Notebook(); this.Notebook.CanFocus = true; this.Notebook.Name = "Notebook"; this.Notebook.CurrentPage = 2; // Container child Notebook.Gtk.Notebook+NotebookChild this.table1 = new Gtk.Table(((uint)(6)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(12)); this.table1.BorderWidth = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.FiledByEntry = new Gtk.Entry(); this.FiledByEntry.CanFocus = true; this.FiledByEntry.Name = "FiledByEntry"; this.FiledByEntry.IsEditable = true; this.FiledByEntry.InvisibleChar = '●'; this.table1.Add(this.FiledByEntry); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.FiledByEntry])); w1.TopAttach = ((uint)(2)); w1.BottomAttach = ((uint)(3)); w1.LeftAttach = ((uint)(1)); w1.RightAttach = ((uint)(2)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.ScrapBookButton = new Gtk.Button(); this.ScrapBookButton.CanFocus = true; this.ScrapBookButton.Name = "ScrapBookButton"; // Container child ScrapBookButton.Gtk.Container+ContainerChild Gtk.Alignment w2 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w3 = new Gtk.HBox(); w3.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w4 = new Gtk.Image(); w4.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-paste", Gtk.IconSize.Button, 20); w3.Add(w4); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w6 = new Gtk.Label(); w6.LabelProp = "Scrapbook"; w3.Add(w6); w2.Add(w3); this.ScrapBookButton.Add(w2); this.hbox4.Add(this.ScrapBookButton); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox4[this.ScrapBookButton])); w10.PackType = ((Gtk.PackType)(1)); w10.Position = 1; w10.Expand = false; w10.Fill = false; this.table1.Add(this.hbox4); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.hbox4])); w11.TopAttach = ((uint)(3)); w11.BottomAttach = ((uint)(4)); w11.RightAttach = ((uint)(2)); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label10 = new Gtk.Label(); this.label10.Name = "label10"; this.label10.Xalign = 0F; this.label10.LabelProp = "Publication Facts:"; this.table1.Add(this.label10); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.label10])); w12.TopAttach = ((uint)(4)); w12.BottomAttach = ((uint)(5)); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label18 = new Gtk.Label(); this.label18.Name = "label18"; this.label18.Xalign = 0F; this.label18.LabelProp = "Author:"; this.table1.Add(this.label18); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.label18])); w13.TopAttach = ((uint)(1)); w13.BottomAttach = ((uint)(2)); w13.XOptions = ((Gtk.AttachOptions)(4)); w13.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.Xalign = 0F; this.label4.LabelProp = "Title:"; this.table1.Add(this.label4); Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table1[this.label4])); w14.XOptions = ((Gtk.AttachOptions)(4)); w14.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label8 = new Gtk.Label(); this.label8.Name = "label8"; this.label8.Xalign = 0F; this.label8.LabelProp = "Filed By:"; this.table1.Add(this.label8); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.label8])); w15.TopAttach = ((uint)(2)); w15.BottomAttach = ((uint)(3)); w15.XOptions = ((Gtk.AttachOptions)(4)); w15.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.OriginatorEntry = new Gtk.Entry(); this.OriginatorEntry.CanFocus = true; this.OriginatorEntry.Name = "OriginatorEntry"; this.OriginatorEntry.IsEditable = true; this.OriginatorEntry.InvisibleChar = '●'; this.table1.Add(this.OriginatorEntry); Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.OriginatorEntry])); w16.TopAttach = ((uint)(1)); w16.BottomAttach = ((uint)(2)); w16.LeftAttach = ((uint)(1)); w16.RightAttach = ((uint)(2)); w16.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.scrolledwindow5 = new Gtk.ScrolledWindow(); this.scrolledwindow5.CanFocus = true; this.scrolledwindow5.Name = "scrolledwindow5"; this.scrolledwindow5.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow5.Gtk.Container+ContainerChild this.PublicationFactsTextView = new Gtk.TextView(); this.PublicationFactsTextView.CanFocus = true; this.PublicationFactsTextView.Name = "PublicationFactsTextView"; this.scrolledwindow5.Add(this.PublicationFactsTextView); this.table1.Add(this.scrolledwindow5); Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.scrolledwindow5])); w18.TopAttach = ((uint)(5)); w18.BottomAttach = ((uint)(6)); w18.RightAttach = ((uint)(2)); // Container child table1.Gtk.Table+TableChild this.TitleEntry = new Gtk.Entry(); this.TitleEntry.CanFocus = true; this.TitleEntry.Name = "TitleEntry"; this.TitleEntry.IsEditable = true; this.TitleEntry.InvisibleChar = '●'; this.table1.Add(this.TitleEntry); Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.TitleEntry])); w19.LeftAttach = ((uint)(1)); w19.RightAttach = ((uint)(2)); w19.XOptions = ((Gtk.AttachOptions)(4)); w19.YOptions = ((Gtk.AttachOptions)(4)); this.Notebook.Add(this.table1); // Notebook tab this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.LabelProp = "Details"; this.Notebook.SetTabLabel(this.table1, this.label5); this.label5.ShowAll(); // Container child Notebook.Gtk.Notebook+NotebookChild this.table2 = new Gtk.Table(((uint)(6)), ((uint)(4)), false); this.table2.Name = "table2"; this.table2.RowSpacing = ((uint)(6)); this.table2.ColumnSpacing = ((uint)(12)); this.table2.BorderWidth = ((uint)(6)); // Container child table2.Gtk.Table+TableChild this.DateRecordedEntry = new Gtk.Entry(); this.DateRecordedEntry.CanFocus = true; this.DateRecordedEntry.Name = "DateRecordedEntry"; this.DateRecordedEntry.IsEditable = true; this.DateRecordedEntry.InvisibleChar = '●'; this.table2.Add(this.DateRecordedEntry); Gtk.Table.TableChild w21 = ((Gtk.Table.TableChild)(this.table2[this.DateRecordedEntry])); w21.TopAttach = ((uint)(2)); w21.BottomAttach = ((uint)(3)); w21.LeftAttach = ((uint)(1)); w21.RightAttach = ((uint)(2)); w21.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.scrolledwindow6 = new Gtk.ScrolledWindow(); this.scrolledwindow6.CanFocus = true; this.scrolledwindow6.Name = "scrolledwindow6"; this.scrolledwindow6.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow6.Gtk.Container+ContainerChild Gtk.Viewport w22 = new Gtk.Viewport(); w22.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.EventGroupTreeView = new Gtk.TreeView(); this.EventGroupTreeView.CanFocus = true; this.EventGroupTreeView.Name = "EventGroupTreeView"; w22.Add(this.EventGroupTreeView); this.scrolledwindow6.Add(w22); this.hbox3.Add(this.scrolledwindow6); Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.hbox3[this.scrolledwindow6])); w25.Position = 0; // Container child hbox3.Gtk.Box+BoxChild this.vbuttonbox1 = new Gtk.VButtonBox(); this.vbuttonbox1.Name = "vbuttonbox1"; this.vbuttonbox1.Spacing = 6; this.vbuttonbox1.LayoutStyle = ((Gtk.ButtonBoxStyle)(3)); // Container child vbuttonbox1.Gtk.ButtonBox+ButtonBoxChild this.NewEventGroupButton = new Gtk.Button(); this.NewEventGroupButton.CanFocus = true; this.NewEventGroupButton.Name = "NewEventGroupButton"; this.NewEventGroupButton.UseStock = true; this.NewEventGroupButton.UseUnderline = true; this.NewEventGroupButton.Label = "gtk-new"; this.vbuttonbox1.Add(this.NewEventGroupButton); Gtk.ButtonBox.ButtonBoxChild w26 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.NewEventGroupButton])); w26.Expand = false; w26.Fill = false; this.hbox3.Add(this.vbuttonbox1); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.hbox3[this.vbuttonbox1])); w27.Position = 1; w27.Expand = false; w27.Fill = false; this.table2.Add(this.hbox3); Gtk.Table.TableChild w28 = ((Gtk.Table.TableChild)(this.table2[this.hbox3])); w28.TopAttach = ((uint)(5)); w28.BottomAttach = ((uint)(6)); w28.RightAttach = ((uint)(4)); // Container child table2.Gtk.Table+TableChild this.hseparator1 = new Gtk.HSeparator(); this.hseparator1.Name = "hseparator1"; this.table2.Add(this.hseparator1); Gtk.Table.TableChild w29 = ((Gtk.Table.TableChild)(this.table2[this.hseparator1])); w29.TopAttach = ((uint)(3)); w29.BottomAttach = ((uint)(4)); w29.RightAttach = ((uint)(4)); w29.XOptions = ((Gtk.AttachOptions)(4)); w29.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = "Event Groups:"; this.table2.Add(this.label1); Gtk.Table.TableChild w30 = ((Gtk.Table.TableChild)(this.table2[this.label1])); w30.TopAttach = ((uint)(4)); w30.BottomAttach = ((uint)(5)); w30.XOptions = ((Gtk.AttachOptions)(4)); w30.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label16 = new Gtk.Label(); this.label16.Name = "label16"; this.label16.Xalign = 0F; this.label16.LabelProp = "Date Recorded:"; this.table2.Add(this.label16); Gtk.Table.TableChild w31 = ((Gtk.Table.TableChild)(this.table2[this.label16])); w31.TopAttach = ((uint)(2)); w31.BottomAttach = ((uint)(3)); w31.XOptions = ((Gtk.AttachOptions)(4)); w31.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label17 = new Gtk.Label(); this.label17.Name = "label17"; this.label17.Xalign = 0F; this.label17.LabelProp = "Events in selected group:"; this.table2.Add(this.label17); Gtk.Table.TableChild w32 = ((Gtk.Table.TableChild)(this.table2[this.label17])); w32.RightAttach = ((uint)(4)); w32.XOptions = ((Gtk.AttachOptions)(4)); w32.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = "in"; this.table2.Add(this.label2); Gtk.Table.TableChild w33 = ((Gtk.Table.TableChild)(this.table2[this.label2])); w33.TopAttach = ((uint)(2)); w33.BottomAttach = ((uint)(3)); w33.LeftAttach = ((uint)(2)); w33.RightAttach = ((uint)(3)); w33.XOptions = ((Gtk.AttachOptions)(4)); w33.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.PlaceRecordedEntry = new Gtk.Entry(); this.PlaceRecordedEntry.CanFocus = true; this.PlaceRecordedEntry.Name = "PlaceRecordedEntry"; this.PlaceRecordedEntry.IsEditable = true; this.PlaceRecordedEntry.InvisibleChar = '●'; this.table2.Add(this.PlaceRecordedEntry); Gtk.Table.TableChild w34 = ((Gtk.Table.TableChild)(this.table2[this.PlaceRecordedEntry])); w34.TopAttach = ((uint)(2)); w34.BottomAttach = ((uint)(3)); w34.LeftAttach = ((uint)(3)); w34.RightAttach = ((uint)(4)); w34.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.scrolledwindow9 = new Gtk.ScrolledWindow(); this.scrolledwindow9.CanFocus = true; this.scrolledwindow9.Name = "scrolledwindow9"; this.scrolledwindow9.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow9.Gtk.Container+ContainerChild Gtk.Viewport w35 = new Gtk.Viewport(); w35.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport1.Gtk.Container+ContainerChild this.EventTypeTreeView = new Gtk.TreeView(); this.EventTypeTreeView.CanFocus = true; this.EventTypeTreeView.Name = "EventTypeTreeView"; this.EventTypeTreeView.RulesHint = true; w35.Add(this.EventTypeTreeView); this.scrolledwindow9.Add(w35); this.table2.Add(this.scrolledwindow9); Gtk.Table.TableChild w38 = ((Gtk.Table.TableChild)(this.table2[this.scrolledwindow9])); w38.TopAttach = ((uint)(1)); w38.BottomAttach = ((uint)(2)); w38.RightAttach = ((uint)(4)); w38.XOptions = ((Gtk.AttachOptions)(4)); this.Notebook.Add(this.table2); Gtk.Notebook.NotebookChild w39 = ((Gtk.Notebook.NotebookChild)(this.Notebook[this.table2])); w39.Position = 1; // Notebook tab this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.LabelProp = "Events Recorded"; this.Notebook.SetTabLabel(this.table2, this.label6); this.label6.ShowAll(); // Container child Notebook.Gtk.Notebook+NotebookChild this.table3 = new Gtk.Table(((uint)(2)), ((uint)(2)), false); this.table3.Name = "table3"; this.table3.RowSpacing = ((uint)(6)); this.table3.ColumnSpacing = ((uint)(12)); this.table3.BorderWidth = ((uint)(6)); // Container child table3.Gtk.Table+TableChild this.AgencyTextBox = new Gtk.Entry(); this.AgencyTextBox.CanFocus = true; this.AgencyTextBox.Name = "AgencyTextBox"; this.AgencyTextBox.IsEditable = true; this.AgencyTextBox.InvisibleChar = '●'; this.table3.Add(this.AgencyTextBox); Gtk.Table.TableChild w40 = ((Gtk.Table.TableChild)(this.table3[this.AgencyTextBox])); w40.LeftAttach = ((uint)(1)); w40.RightAttach = ((uint)(2)); w40.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.DataNotesView = new Gedcom.UI.GTK.Widgets.NotesView(); this.DataNotesView.Events = ((Gdk.EventMask)(256)); this.DataNotesView.Name = "DataNotesView"; this.DataNotesView.DataNotes = true; this.DataNotesView.ListOnly = false; this.DataNotesView.NoteOnly = false; this.table3.Add(this.DataNotesView); Gtk.Table.TableChild w41 = ((Gtk.Table.TableChild)(this.table3[this.DataNotesView])); w41.TopAttach = ((uint)(1)); w41.BottomAttach = ((uint)(2)); w41.RightAttach = ((uint)(2)); // Container child table3.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.Xalign = 0F; this.label3.LabelProp = "Agency:"; this.table3.Add(this.label3); Gtk.Table.TableChild w42 = ((Gtk.Table.TableChild)(this.table3[this.label3])); w42.XOptions = ((Gtk.AttachOptions)(4)); w42.YOptions = ((Gtk.AttachOptions)(4)); this.Notebook.Add(this.table3); Gtk.Notebook.NotebookChild w43 = ((Gtk.Notebook.NotebookChild)(this.Notebook[this.table3])); w43.Position = 2; // Notebook tab this.label7 = new Gtk.Label(); this.label7.Name = "label7"; this.label7.LabelProp = "Data Information"; this.Notebook.SetTabLabel(this.table3, this.label7); this.label7.ShowAll(); // Container child Notebook.Gtk.Notebook+NotebookChild this.scrolledwindow2 = new Gtk.ScrolledWindow(); this.scrolledwindow2.CanFocus = true; this.scrolledwindow2.Name = "scrolledwindow2"; this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1)); this.scrolledwindow2.BorderWidth = ((uint)(6)); // Container child scrolledwindow2.Gtk.Container+ContainerChild this.TextTextView = new Gtk.TextView(); this.TextTextView.CanFocus = true; this.TextTextView.Name = "TextTextView"; this.scrolledwindow2.Add(this.TextTextView); this.Notebook.Add(this.scrolledwindow2); Gtk.Notebook.NotebookChild w45 = ((Gtk.Notebook.NotebookChild)(this.Notebook[this.scrolledwindow2])); w45.Position = 3; // Notebook tab this.label15 = new Gtk.Label(); this.label15.Name = "label15"; this.label15.LabelProp = "Text"; this.Notebook.SetTabLabel(this.scrolledwindow2, this.label15); this.label15.ShowAll(); // Container child Notebook.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.Notebook.Add(this.NotesView); Gtk.Notebook.NotebookChild w46 = ((Gtk.Notebook.NotebookChild)(this.Notebook[this.NotesView])); w46.Position = 4; // Notebook tab this.label9 = new Gtk.Label(); this.label9.Name = "label9"; this.label9.LabelProp = "Notes"; this.Notebook.SetTabLabel(this.NotesView, this.label9); this.label9.ShowAll(); // Container child Notebook.Gtk.Notebook+NotebookChild this.table4 = new Gtk.Table(((uint)(4)), ((uint)(4)), false); this.table4.Name = "table4"; this.table4.RowSpacing = ((uint)(6)); this.table4.ColumnSpacing = ((uint)(12)); this.table4.BorderWidth = ((uint)(6)); // Container child table4.Gtk.Table+TableChild this.CallNumberEntry = new Gtk.Entry(); this.CallNumberEntry.CanFocus = true; this.CallNumberEntry.Name = "CallNumberEntry"; this.CallNumberEntry.IsEditable = true; this.CallNumberEntry.InvisibleChar = '●'; this.table4.Add(this.CallNumberEntry); Gtk.Table.TableChild w47 = ((Gtk.Table.TableChild)(this.table4[this.CallNumberEntry])); w47.LeftAttach = ((uint)(1)); w47.RightAttach = ((uint)(2)); w47.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.label12 = new Gtk.Label(); this.label12.Name = "label12"; this.label12.Xalign = 0F; this.label12.LabelProp = "Call Number:"; this.table4.Add(this.label12); Gtk.Table.TableChild w48 = ((Gtk.Table.TableChild)(this.table4[this.label12])); w48.XOptions = ((Gtk.AttachOptions)(4)); w48.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.label13 = new Gtk.Label(); this.label13.Name = "label13"; this.label13.Xalign = 0F; this.label13.LabelProp = "Media Type:"; this.table4.Add(this.label13); Gtk.Table.TableChild w49 = ((Gtk.Table.TableChild)(this.table4[this.label13])); w49.LeftAttach = ((uint)(2)); w49.RightAttach = ((uint)(3)); w49.XOptions = ((Gtk.AttachOptions)(4)); w49.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.label14 = new Gtk.Label(); this.label14.Name = "label14"; this.label14.Xalign = 0F; this.label14.LabelProp = "Notes:"; this.table4.Add(this.label14); Gtk.Table.TableChild w50 = ((Gtk.Table.TableChild)(this.table4[this.label14])); w50.TopAttach = ((uint)(2)); w50.BottomAttach = ((uint)(3)); w50.XOptions = ((Gtk.AttachOptions)(4)); w50.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.MediaTypeCombo = new Gtk.ComboBox(); this.MediaTypeCombo.Name = "MediaTypeCombo"; this.table4.Add(this.MediaTypeCombo); Gtk.Table.TableChild w51 = ((Gtk.Table.TableChild)(this.table4[this.MediaTypeCombo])); w51.LeftAttach = ((uint)(3)); w51.RightAttach = ((uint)(4)); w51.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.RepoNotesView = new Gedcom.UI.GTK.Widgets.NotesView(); this.RepoNotesView.Events = ((Gdk.EventMask)(256)); this.RepoNotesView.Name = "RepoNotesView"; this.RepoNotesView.DataNotes = false; this.RepoNotesView.ListOnly = false; this.RepoNotesView.NoteOnly = false; this.table4.Add(this.RepoNotesView); Gtk.Table.TableChild w52 = ((Gtk.Table.TableChild)(this.table4[this.RepoNotesView])); w52.TopAttach = ((uint)(3)); w52.BottomAttach = ((uint)(4)); w52.RightAttach = ((uint)(4)); w52.XOptions = ((Gtk.AttachOptions)(4)); w52.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.scrolledwindow4 = new Gtk.ScrolledWindow(); this.scrolledwindow4.CanFocus = true; this.scrolledwindow4.Name = "scrolledwindow4"; this.scrolledwindow4.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow4.Gtk.Container+ContainerChild this.CallNumberTreeView = new Gtk.TreeView(); this.CallNumberTreeView.CanFocus = true; this.CallNumberTreeView.Name = "CallNumberTreeView"; this.scrolledwindow4.Add(this.CallNumberTreeView); this.table4.Add(this.scrolledwindow4); Gtk.Table.TableChild w54 = ((Gtk.Table.TableChild)(this.table4[this.scrolledwindow4])); w54.TopAttach = ((uint)(1)); w54.BottomAttach = ((uint)(2)); w54.RightAttach = ((uint)(4)); this.Notebook.Add(this.table4); Gtk.Notebook.NotebookChild w55 = ((Gtk.Notebook.NotebookChild)(this.Notebook[this.table4])); w55.Position = 5; // Notebook tab this.label11 = new Gtk.Label(); this.label11.Name = "label11"; this.label11.LabelProp = "Repositories"; this.Notebook.SetTabLabel(this.table4, this.label11); this.label11.ShowAll(); this.Add(this.Notebook); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.Notebook.SwitchPage += new Gtk.SwitchPageHandler(this.OnNotebook_SwitchPage); this.ScrapBookButton.Clicked += new System.EventHandler(this.OnScrapbookButton_Clicked); this.EventGroupTreeView.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnEventGroupTreeView_ButtonPressEvent); this.NewEventGroupButton.Clicked += new System.EventHandler(this.OnNewEventGroupButton_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 Pinta.ResizeCanvasDialog this.Name = "Pinta.ResizeCanvasDialog"; this.Title = Mono.Unix.Catalog.GetString("Resize Canvas"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; this.DefaultWidth = 300; this.DefaultHeight = 200; // Internal child Pinta.ResizeCanvasDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; this.vbox2.BorderWidth = ((uint)(12)); // Container child vbox2.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.percentageRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("By percentage:")); this.percentageRadio.CanFocus = true; this.percentageRadio.Name = "percentageRadio"; this.percentageRadio.DrawIndicator = true; this.percentageRadio.UseUnderline = true; this.percentageRadio.Group = new GLib.SList(System.IntPtr.Zero); this.hbox1.Add(this.percentageRadio); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.percentageRadio])); w2.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.percentageSpinner = new Gtk.SpinButton(1, 1000, 1); this.percentageSpinner.CanFocus = true; this.percentageSpinner.Name = "percentageSpinner"; this.percentageSpinner.Adjustment.PageIncrement = 10; this.percentageSpinner.ClimbRate = 1; this.percentageSpinner.Numeric = true; this.percentageSpinner.Value = 100; this.hbox1.Add(this.percentageSpinner); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.percentageSpinner])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = "%"; this.hbox1.Add(this.label1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1])); w4.Position = 2; w4.Expand = false; w4.Fill = false; this.vbox2.Add(this.hbox1); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // 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.absoluteRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("By absolute size:")); this.absoluteRadio.CanFocus = true; this.absoluteRadio.Name = "absoluteRadio"; this.absoluteRadio.DrawIndicator = true; this.absoluteRadio.UseUnderline = true; this.absoluteRadio.Group = this.percentageRadio.Group; this.hbox2.Add(this.absoluteRadio); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox2[this.absoluteRadio])); w6.Position = 0; this.vbox2.Add(this.hbox2); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2])); w7.Position = 1; w7.Expand = false; w7.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Width:"); this.hbox3.Add(this.label2); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox3[this.label2])); w8.Position = 0; w8.Expand = false; w8.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.widthSpinner = new Gtk.SpinButton(1, 10000, 1); this.widthSpinner.Sensitive = false; this.widthSpinner.CanFocus = true; this.widthSpinner.Name = "widthSpinner"; this.widthSpinner.Adjustment.PageIncrement = 10; this.widthSpinner.ClimbRate = 1; this.widthSpinner.Numeric = true; this.hbox3.Add(this.widthSpinner); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox3[this.widthSpinner])); w9.Position = 1; w9.Expand = false; w9.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("pixels"); this.hbox3.Add(this.label4); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox3[this.label4])); w10.Position = 2; w10.Expand = false; w10.Fill = false; this.vbox2.Add(this.hbox3); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox3])); w11.Position = 2; w11.Expand = false; w11.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Height:"); this.hbox4.Add(this.label3); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox4[this.label3])); w12.Position = 0; w12.Expand = false; w12.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.heightSpinner = new Gtk.SpinButton(1, 10000, 1); this.heightSpinner.Sensitive = false; this.heightSpinner.CanFocus = true; this.heightSpinner.Name = "heightSpinner"; this.heightSpinner.Adjustment.PageIncrement = 10; this.heightSpinner.ClimbRate = 1; this.heightSpinner.Numeric = true; this.hbox4.Add(this.heightSpinner); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox4[this.heightSpinner])); w13.Position = 1; w13.Expand = false; w13.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.LabelProp = Mono.Unix.Catalog.GetString("pixels"); this.hbox4.Add(this.label5); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox4[this.label5])); w14.Position = 2; w14.Expand = false; w14.Fill = false; this.vbox2.Add(this.hbox4); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox4])); w15.Position = 3; w15.Expand = false; w15.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.aspectCheckbox = new Gtk.CheckButton(); this.aspectCheckbox.Sensitive = false; this.aspectCheckbox.CanFocus = true; this.aspectCheckbox.Name = "aspectCheckbox"; this.aspectCheckbox.Label = Mono.Unix.Catalog.GetString("Maintain aspect ratio"); this.aspectCheckbox.Active = true; this.aspectCheckbox.DrawIndicator = true; this.aspectCheckbox.UseUnderline = true; this.vbox2.Add(this.aspectCheckbox); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox2[this.aspectCheckbox])); w16.Position = 4; w16.Expand = false; w16.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.hbox5 = new Gtk.HBox(); this.hbox5.Name = "hbox5"; this.hbox5.Spacing = 6; // Container child hbox5.Gtk.Box+BoxChild this.alignment1 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.alignment1.Name = "alignment1"; this.hbox5.Add(this.alignment1); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox5[this.alignment1])); w17.Position = 0; // Container child hbox5.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(3)), ((uint)(3)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.CenterButton = new Gtk.Button(); this.CenterButton.WidthRequest = 30; this.CenterButton.HeightRequest = 30; this.CenterButton.CanFocus = true; this.CenterButton.Name = "CenterButton"; this.CenterButton.UseUnderline = true; // Container child CenterButton.Gtk.Container+ContainerChild Gtk.Alignment w18 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w19 = new Gtk.HBox(); w19.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w20 = new Gtk.Image(); w19.Add(w20); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w22 = new Gtk.Label(); w19.Add(w22); w18.Add(w19); this.CenterButton.Add(w18); this.table1.Add(this.CenterButton); Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.table1[this.CenterButton])); w26.TopAttach = ((uint)(1)); w26.BottomAttach = ((uint)(2)); 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.EButton = new Gtk.Button(); this.EButton.WidthRequest = 30; this.EButton.HeightRequest = 30; this.EButton.CanFocus = true; this.EButton.Name = "EButton"; this.EButton.UseUnderline = true; // Container child EButton.Gtk.Container+ContainerChild Gtk.Alignment w27 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w28 = new Gtk.HBox(); w28.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w29 = new Gtk.Image(); w28.Add(w29); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w31 = new Gtk.Label(); w28.Add(w31); w27.Add(w28); this.EButton.Add(w27); this.table1.Add(this.EButton); Gtk.Table.TableChild w35 = ((Gtk.Table.TableChild)(this.table1[this.EButton])); w35.TopAttach = ((uint)(1)); w35.BottomAttach = ((uint)(2)); w35.LeftAttach = ((uint)(2)); w35.RightAttach = ((uint)(3)); w35.XOptions = ((Gtk.AttachOptions)(4)); w35.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.NButton = new Gtk.Button(); this.NButton.WidthRequest = 30; this.NButton.HeightRequest = 30; this.NButton.CanFocus = true; this.NButton.Name = "NButton"; this.NButton.UseUnderline = true; // Container child NButton.Gtk.Container+ContainerChild Gtk.Alignment w36 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w37 = new Gtk.HBox(); w37.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w38 = new Gtk.Image(); w37.Add(w38); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w40 = new Gtk.Label(); w37.Add(w40); w36.Add(w37); this.NButton.Add(w36); this.table1.Add(this.NButton); Gtk.Table.TableChild w44 = ((Gtk.Table.TableChild)(this.table1[this.NButton])); w44.LeftAttach = ((uint)(1)); w44.RightAttach = ((uint)(2)); w44.XOptions = ((Gtk.AttachOptions)(4)); w44.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.NEButton = new Gtk.Button(); this.NEButton.WidthRequest = 30; this.NEButton.HeightRequest = 30; this.NEButton.CanFocus = true; this.NEButton.Name = "NEButton"; this.NEButton.UseUnderline = true; // Container child NEButton.Gtk.Container+ContainerChild Gtk.Alignment w45 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w46 = new Gtk.HBox(); w46.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w47 = new Gtk.Image(); w46.Add(w47); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w49 = new Gtk.Label(); w46.Add(w49); w45.Add(w46); this.NEButton.Add(w45); this.table1.Add(this.NEButton); Gtk.Table.TableChild w53 = ((Gtk.Table.TableChild)(this.table1[this.NEButton])); w53.LeftAttach = ((uint)(2)); w53.RightAttach = ((uint)(3)); w53.XOptions = ((Gtk.AttachOptions)(4)); w53.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.NWButton = new Gtk.Button(); this.NWButton.WidthRequest = 30; this.NWButton.HeightRequest = 30; this.NWButton.CanFocus = true; this.NWButton.Name = "NWButton"; this.NWButton.UseUnderline = true; // Container child NWButton.Gtk.Container+ContainerChild Gtk.Alignment w54 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w55 = new Gtk.HBox(); w55.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w56 = new Gtk.Image(); w55.Add(w56); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w58 = new Gtk.Label(); w55.Add(w58); w54.Add(w55); this.NWButton.Add(w54); this.table1.Add(this.NWButton); Gtk.Table.TableChild w62 = ((Gtk.Table.TableChild)(this.table1[this.NWButton])); w62.XOptions = ((Gtk.AttachOptions)(4)); w62.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.SButton = new Gtk.Button(); this.SButton.WidthRequest = 30; this.SButton.HeightRequest = 30; this.SButton.CanFocus = true; this.SButton.Name = "SButton"; this.SButton.UseUnderline = true; // Container child SButton.Gtk.Container+ContainerChild Gtk.Alignment w63 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w64 = new Gtk.HBox(); w64.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w65 = new Gtk.Image(); w64.Add(w65); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w67 = new Gtk.Label(); w64.Add(w67); w63.Add(w64); this.SButton.Add(w63); this.table1.Add(this.SButton); Gtk.Table.TableChild w71 = ((Gtk.Table.TableChild)(this.table1[this.SButton])); w71.TopAttach = ((uint)(2)); w71.BottomAttach = ((uint)(3)); w71.LeftAttach = ((uint)(1)); w71.RightAttach = ((uint)(2)); w71.XOptions = ((Gtk.AttachOptions)(4)); w71.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.SEButton = new Gtk.Button(); this.SEButton.WidthRequest = 30; this.SEButton.HeightRequest = 30; this.SEButton.CanFocus = true; this.SEButton.Name = "SEButton"; this.SEButton.UseUnderline = true; // Container child SEButton.Gtk.Container+ContainerChild Gtk.Alignment w72 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w73 = new Gtk.HBox(); w73.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w74 = new Gtk.Image(); w73.Add(w74); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w76 = new Gtk.Label(); w73.Add(w76); w72.Add(w73); this.SEButton.Add(w72); this.table1.Add(this.SEButton); Gtk.Table.TableChild w80 = ((Gtk.Table.TableChild)(this.table1[this.SEButton])); w80.TopAttach = ((uint)(2)); w80.BottomAttach = ((uint)(3)); w80.LeftAttach = ((uint)(2)); w80.RightAttach = ((uint)(3)); w80.XOptions = ((Gtk.AttachOptions)(4)); w80.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.SWButton = new Gtk.Button(); this.SWButton.WidthRequest = 30; this.SWButton.HeightRequest = 30; this.SWButton.CanFocus = true; this.SWButton.Name = "SWButton"; this.SWButton.UseUnderline = true; // Container child SWButton.Gtk.Container+ContainerChild Gtk.Alignment w81 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w82 = new Gtk.HBox(); w82.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w83 = new Gtk.Image(); w82.Add(w83); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w85 = new Gtk.Label(); w82.Add(w85); w81.Add(w82); this.SWButton.Add(w81); this.table1.Add(this.SWButton); Gtk.Table.TableChild w89 = ((Gtk.Table.TableChild)(this.table1[this.SWButton])); w89.TopAttach = ((uint)(2)); w89.BottomAttach = ((uint)(3)); w89.XOptions = ((Gtk.AttachOptions)(4)); w89.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.WButton = new Gtk.Button(); this.WButton.WidthRequest = 30; this.WButton.HeightRequest = 30; this.WButton.CanFocus = true; this.WButton.Name = "WButton"; this.WButton.UseUnderline = true; // Container child WButton.Gtk.Container+ContainerChild Gtk.Alignment w90 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w91 = new Gtk.HBox(); w91.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w92 = new Gtk.Image(); w91.Add(w92); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w94 = new Gtk.Label(); w91.Add(w94); w90.Add(w91); this.WButton.Add(w90); this.table1.Add(this.WButton); Gtk.Table.TableChild w98 = ((Gtk.Table.TableChild)(this.table1[this.WButton])); w98.TopAttach = ((uint)(1)); w98.BottomAttach = ((uint)(2)); w98.XOptions = ((Gtk.AttachOptions)(4)); w98.YOptions = ((Gtk.AttachOptions)(4)); this.hbox5.Add(this.table1); Gtk.Box.BoxChild w99 = ((Gtk.Box.BoxChild)(this.hbox5[this.table1])); w99.Position = 1; w99.Expand = false; w99.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.alignment2 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.alignment2.Name = "alignment2"; this.hbox5.Add(this.alignment2); Gtk.Box.BoxChild w100 = ((Gtk.Box.BoxChild)(this.hbox5[this.alignment2])); w100.Position = 2; this.vbox2.Add(this.hbox5); Gtk.Box.BoxChild w101 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox5])); w101.PackType = ((Gtk.PackType)(1)); w101.Position = 5; w101.Expand = false; w101.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.Xalign = 0F; this.label6.LabelProp = Mono.Unix.Catalog.GetString("Anchor:"); this.vbox2.Add(this.label6); Gtk.Box.BoxChild w102 = ((Gtk.Box.BoxChild)(this.vbox2[this.label6])); w102.PackType = ((Gtk.PackType)(1)); w102.Position = 6; w102.Expand = false; w102.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.hseparator1 = new Gtk.HSeparator(); this.hseparator1.Name = "hseparator1"; this.vbox2.Add(this.hseparator1); Gtk.Box.BoxChild w103 = ((Gtk.Box.BoxChild)(this.vbox2[this.hseparator1])); w103.PackType = ((Gtk.PackType)(1)); w103.Position = 7; w103.Expand = false; w103.Fill = false; w1.Add(this.vbox2); Gtk.Box.BoxChild w104 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); w104.Position = 0; w104.Expand = false; w104.Fill = false; // Internal child Pinta.ResizeCanvasDialog.ActionArea Gtk.HButtonBox w105 = this.ActionArea; w105.Name = "dialog1_ActionArea"; w105.Spacing = 10; w105.BorderWidth = ((uint)(5)); w105.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 w106 = ((Gtk.ButtonBox.ButtonBoxChild)(w105[this.buttonCancel])); w106.Expand = false; w106.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 w107 = ((Gtk.ButtonBox.ButtonBoxChild)(w105[this.buttonOk])); w107.Position = 1; w107.Expand = false; w107.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget SimpleDownloader.MainWindow this.Name = "SimpleDownloader.MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Simple Downloader"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child SimpleDownloader.MainWindow.Gtk.Container+ContainerChild this.vbox4 = new Gtk.VBox(); this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 6; // Container child vbox4.Gtk.Box+BoxChild this.table2 = new Gtk.Table(((uint)(2)), ((uint)(2)), false); this.table2.RowSpacing = ((uint)(6)); this.table2.ColumnSpacing = ((uint)(6)); // Container child table2.Gtk.Table+TableChild this.downloadPath = new Gtk.FileChooserButton(Mono.Unix.Catalog.GetString("Datei auswählen"), ((Gtk.FileChooserAction)(0))); this.downloadPath.Name = "downloadPath"; this.table2.Add(this.downloadPath); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table2[this.downloadPath])); w1.TopAttach = ((uint)(1)); w1.BottomAttach = ((uint)(2)); w1.LeftAttach = ((uint)(1)); w1.RightAttach = ((uint)(2)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.downloadUrl = new Gtk.Entry(); this.downloadUrl.CanFocus = true; this.downloadUrl.Name = "downloadUrl"; this.downloadUrl.IsEditable = true; this.downloadUrl.InvisibleChar = '●'; this.table2.Add(this.downloadUrl); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table2[this.downloadUrl])); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.LabelProp = Mono.Unix.Catalog.GetString("Download URL:"); this.table2.Add(this.label5); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table2[this.label5])); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.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("Download Path:"); this.table2.Add(this.label6); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table2[this.label6])); w4.TopAttach = ((uint)(1)); w4.BottomAttach = ((uint)(2)); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); this.vbox4.Add(this.table2); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox4[this.table2])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.alignment1 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.alignment1.Name = "alignment1"; this.hbox3.Add(this.alignment1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox3[this.alignment1])); w6.Position = 0; // Container child hbox3.Gtk.Box+BoxChild this.stopButton = new Gtk.Button(); this.stopButton.CanFocus = true; this.stopButton.Name = "stopButton"; this.stopButton.UseUnderline = true; this.stopButton.Label = Mono.Unix.Catalog.GetString("Stop"); this.hbox3.Add(this.stopButton); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox3[this.stopButton])); w7.Position = 1; w7.Expand = false; w7.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.downloadButton = new Gtk.Button(); this.downloadButton.CanFocus = true; this.downloadButton.Name = "downloadButton"; this.downloadButton.UseUnderline = true; // Container child downloadButton.Gtk.Container+ContainerChild Gtk.Alignment w8 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w9 = new Gtk.HBox(); w9.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w10 = new Gtk.Image(); w10.Pixbuf = Stetic.IconLoader.LoadIcon(this, "down", Gtk.IconSize.Menu, 16); w9.Add(w10); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w12 = new Gtk.Label(); w12.LabelProp = Mono.Unix.Catalog.GetString("Download"); w12.UseUnderline = true; w9.Add(w12); w8.Add(w9); this.downloadButton.Add(w8); this.hbox3.Add(this.downloadButton); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox3[this.downloadButton])); w16.Position = 2; w16.Expand = false; w16.Fill = false; this.vbox4.Add(this.hbox3); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbox3])); w17.Position = 1; w17.Expand = false; w17.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.downloadProgressBar = new Gtk.ProgressBar(); this.downloadProgressBar.Name = "downloadProgressBar"; this.vbox4.Add(this.downloadProgressBar); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox4[this.downloadProgressBar])); w18.Position = 2; w18.Expand = false; w18.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.progressLabel = new Gtk.Label(); this.progressLabel.Name = "progressLabel"; this.progressLabel.LabelProp = Mono.Unix.Catalog.GetString("Waiting for download"); this.vbox4.Add(this.progressLabel); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox4[this.progressLabel])); w19.Position = 3; w19.Expand = false; w19.Fill = false; this.Add(this.vbox4); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 458; this.DefaultHeight = 172; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.stopButton.Clicked += new System.EventHandler(this.OnStopButtonClicked); this.downloadButton.Clicked += new System.EventHandler(this.OnDownloadButtonClicked); }
public static void Build(object obj, string id) { System.Collections.Hashtable bindings = new System.Collections.Hashtable(); if ((id == "administrator.EditCreateUser")) { Gtk.Window cobj = ((Gtk.Window)(obj)); // Widget administrator.EditCreateUser cobj.Title = "EditCreateUser"; cobj.WindowPosition = ((Gtk.WindowPosition)(4)); cobj.Events = ((Gdk.EventMask)(0)); cobj.Name = "administrator.EditCreateUser"; cobj.DefaultWidth = 400; cobj.DefaultHeight = 300; bindings["administrator.EditCreateUser"] = cobj; cobj.Show(); } else { if ((id == "administrator.LoginWindow")) { Gtk.Window cobj = ((Gtk.Window)(obj)); // Widget administrator.LoginWindow cobj.Title = "Boxerp Server Administrator"; cobj.WindowPosition = ((Gtk.WindowPosition)(1)); cobj.Modal = true; cobj.Resizable = false; cobj.AllowGrow = false; cobj.Events = ((Gdk.EventMask)(0)); cobj.Name = "administrator.LoginWindow"; // Container child administrator.LoginWindow.Gtk.Container+ContainerChild Gtk.VBox w1 = new Gtk.VBox(); w1.BorderWidth = ((uint)(5)); w1.Events = ((Gdk.EventMask)(0)); w1.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild Gtk.HBox w2 = new Gtk.HBox(); w2.Events = ((Gdk.EventMask)(0)); w2.Name = "hbox1"; // Container child hbox1.Gtk.Box+BoxChild Gtk.Label w3 = new Gtk.Label(); w3.LabelProp = "Login:"******"label1"; w3.WidthRequest = 150; bindings["label1"] = w3; w2.Add(w3); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w2[w3])); w4.Position = 0; // Container child hbox1.Gtk.Box+BoxChild Gtk.Entry w5 = new Gtk.Entry(); w5.Text = "demo"; w5.IsEditable = true; w5.MaxLength = 100; w5.InvisibleChar = '●'; w5.CanFocus = true; w5.Events = ((Gdk.EventMask)(0)); w5.Name = "entryLogin"; w5.WidthRequest = 200; bindings["entryLogin"] = w5; w2.Add(w5); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w2[w5])); w6.Position = 1; w6.Expand = false; w6.Fill = false; bindings["hbox1"] = w2; w1.Add(w2); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[w2])); w7.Position = 0; w7.Expand = false; w7.Fill = false; // Container child vbox1.Gtk.Box+BoxChild Gtk.HBox w8 = new Gtk.HBox(); w8.Events = ((Gdk.EventMask)(0)); w8.Name = "hbox2"; w8.WidthRequest = 150; // Container child hbox2.Gtk.Box+BoxChild Gtk.Label w9 = new Gtk.Label(); w9.LabelProp = "Password:"******"label2"; bindings["label2"] = w9; w8.Add(w9); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w8[w9])); w10.Position = 0; w10.Fill = false; // Container child hbox2.Gtk.Box+BoxChild Gtk.Entry w11 = new Gtk.Entry(); w11.Text = "pass"; w11.IsEditable = true; w11.Visibility = false; w11.InvisibleChar = '●'; w11.CanFocus = true; w11.Events = ((Gdk.EventMask)(0)); w11.Name = "entryPassword"; w11.WidthRequest = 200; bindings["entryPassword"] = w11; w8.Add(w11); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(w8[w11])); w12.Position = 1; w12.Expand = false; w12.Fill = false; bindings["hbox2"] = w8; w1.Add(w8); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(w1[w8])); w13.Position = 1; // Container child vbox1.Gtk.Box+BoxChild Gtk.HSeparator w14 = new Gtk.HSeparator(); w14.Events = ((Gdk.EventMask)(0)); w14.Name = "hseparator1"; bindings["hseparator1"] = w14; w1.Add(w14); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w1[w14])); w15.Position = 2; w15.Expand = false; w15.Fill = false; // Container child vbox1.Gtk.Box+BoxChild Gtk.HBox w16 = new Gtk.HBox(); w16.Events = ((Gdk.EventMask)(0)); w16.Name = "hbox3"; // Container child hbox3.Gtk.Box+BoxChild Gtk.Button w17 = new Gtk.Button(); w17.CanFocus = true; w17.Events = ((Gdk.EventMask)(0)); w17.Name = "buttonConnect"; // Container child buttonConnect.Gtk.Container+ContainerChild Gtk.Alignment w18 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w18.Events = ((Gdk.EventMask)(0)); w18.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w19 = new Gtk.HBox(); w19.Spacing = 2; w19.Events = ((Gdk.EventMask)(0)); w19.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w20 = new Gtk.Image(); w20.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-connect", 16, 0); w20.Events = ((Gdk.EventMask)(0)); w20.Name = "image15"; bindings["image15"] = w20; w19.Add(w20); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w22 = new Gtk.Label(); w22.LabelProp = "Connect"; w22.Events = ((Gdk.EventMask)(0)); w22.Name = "GtkLabel"; bindings["GtkLabel"] = w22; w19.Add(w22); bindings["GtkHBox"] = w19; w18.Add(w19); bindings["GtkAlignment"] = w18; w17.Add(w18); bindings["buttonConnect"] = w17; w16.Add(w17); Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(w16[w17])); w26.PackType = ((Gtk.PackType)(1)); w26.Position = 0; w26.Expand = false; w26.Fill = false; bindings["hbox3"] = w16; w1.Add(w16); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(w1[w16])); w27.Position = 3; w27.Expand = false; w27.Fill = false; bindings["vbox1"] = w1; cobj.Add(w1); cobj.DefaultWidth = 370; cobj.DefaultHeight = 129; bindings["administrator.LoginWindow"] = cobj; w3.Show(); w5.Show(); w2.Show(); w9.Show(); w11.Show(); w8.Show(); w14.Show(); w20.Show(); w22.Show(); w19.Show(); w18.Show(); w17.Show(); w16.Show(); w1.Show(); cobj.Show(); cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent"))); w5.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnConnect"))); w11.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnConnect"))); w17.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnConnect"))); } else { if ((id == "administrator.MainWindow")) { Gtk.Window cobj = ((Gtk.Window)(obj)); // Widget administrator.MainWindow cobj.Title = "Boxerp Administrator"; Gtk.UIManager w1 = new Gtk.UIManager(); Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); Gtk.Action w3 = new Gtk.Action("File", "File", null, null); w3.ShortLabel = "File"; bindings["File"] = w3; w2.Add(w3, null); Gtk.Action w4 = new Gtk.Action("Exit", "Exit", null, null); w4.ShortLabel = "Exit"; bindings["Exit"] = w4; w2.Add(w4, null); Gtk.Action w5 = new Gtk.Action("Edit", "Edit", null, null); w5.ShortLabel = "Edit"; bindings["Edit"] = w5; w2.Add(w5, null); Gtk.Action w6 = new Gtk.Action("Cut", "Cut", null, null); w6.ShortLabel = "Cut"; bindings["Cut"] = w6; w2.Add(w6, null); Gtk.Action w7 = new Gtk.Action("Copy", "Copy", null, null); w7.ShortLabel = "Copy"; bindings["Copy"] = w7; w2.Add(w7, null); Gtk.Action w8 = new Gtk.Action("Paste", "Paste", null, null); w8.ShortLabel = "Paste"; bindings["Paste"] = w8; w2.Add(w8, null); Gtk.Action w9 = new Gtk.Action("Help", "Help", null, null); w9.ShortLabel = "Help"; bindings["Help"] = w9; w2.Add(w9, null); Gtk.Action w10 = new Gtk.Action("About", "About", null, null); w10.ShortLabel = "About"; bindings["About"] = w10; w2.Add(w10, null); w1.InsertActionGroup(w2, 0); cobj.AddAccelGroup(w1.AccelGroup); cobj.WindowPosition = ((Gtk.WindowPosition)(4)); cobj.DefaultWidth = 800; cobj.DefaultHeight = 600; cobj.Events = ((Gdk.EventMask)(0)); cobj.Name = "administrator.MainWindow"; // Container child administrator.MainWindow.Gtk.Container+ContainerChild Gtk.VBox w11 = new Gtk.VBox(); w11.Events = ((Gdk.EventMask)(0)); w11.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='File'><menuitem action='Exit'/></menu><menu action='Edit'><menuitem action='Cut'/><menuitem action='Copy'/><menuitem action='Paste'/></menu><menu action='Help'><menuitem action='About'/></menu></menubar></ui>"); Gtk.MenuBar w12 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1"))); w12.Events = ((Gdk.EventMask)(0)); w12.Name = "menubar1"; bindings["menubar1"] = w12; w11.Add(w12); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(w11[w12])); w13.Position = 0; w13.Expand = false; w13.Fill = false; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><toolbar name='toolbar1'/></ui>"); Gtk.Toolbar w14 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1"))); w14.ShowArrow = false; w14.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); w14.IconSize = ((Gtk.IconSize)(3)); w14.Events = ((Gdk.EventMask)(0)); w14.Name = "toolbar1"; bindings["toolbar1"] = w14; w11.Add(w14); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w11[w14])); w15.Position = 1; w15.Expand = false; w15.Fill = false; // Container child vbox1.Gtk.Box+BoxChild Gtk.VBox w16 = new Gtk.VBox(); w16.BorderWidth = ((uint)(5)); w16.Events = ((Gdk.EventMask)(0)); w16.Name = "vbox2"; // Container child vbox2.Gtk.Box+BoxChild Gtk.HBox w17 = new Gtk.HBox(); w17.Events = ((Gdk.EventMask)(0)); w17.Name = "hbox1"; // Container child hbox1.Gtk.Box+BoxChild Gtk.Label w18 = new Gtk.Label(); w18.LabelProp = "<b>Enterprise:</b>"; w18.UseMarkup = true; w18.Ypad = 6; w18.Events = ((Gdk.EventMask)(256)); w18.Name = "labelEnterprise"; bindings["labelEnterprise"] = w18; w17.Add(w18); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(w17[w18])); w19.Position = 0; w19.Expand = false; w19.Fill = false; // Container child hbox1.Gtk.Box+BoxChild Gtk.Entry w20 = new Gtk.Entry(); w20.IsEditable = true; w20.InvisibleChar = '●'; w20.CanFocus = true; w20.Events = ((Gdk.EventMask)(0)); w20.Name = "entryEnterprise"; bindings["entryEnterprise"] = w20; w17.Add(w20); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(w17[w20])); w21.Position = 1; w21.Expand = false; w21.Fill = false; // Container child hbox1.Gtk.Box+BoxChild Gtk.Button w22 = new Gtk.Button(); Gtk.Tooltips w23 = new Gtk.Tooltips(); w23.SetTip(w22, "Añadir un Hecho", "Añadir un Hecho"); w22.CanFocus = true; w22.Events = ((Gdk.EventMask)(0)); w22.Name = "buttonFindEnterprise"; w22.HasDefault = true; // Container child buttonFindEnterprise.Gtk.Container+ContainerChild Gtk.Alignment w24 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w24.Events = ((Gdk.EventMask)(0)); w24.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w25 = new Gtk.HBox(); w25.Spacing = 2; w25.Events = ((Gdk.EventMask)(0)); w25.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w26 = new Gtk.Image(); w26.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-find", 16, 0); w26.Events = ((Gdk.EventMask)(0)); w26.Name = "image1"; bindings["image1"] = w26; w25.Add(w26); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w28 = new Gtk.Label(); w28.LabelProp = ""; w28.Events = ((Gdk.EventMask)(0)); w28.Name = "GtkLabel"; bindings["GtkLabel"] = w28; w25.Add(w28); bindings["GtkHBox"] = w25; w24.Add(w25); bindings["GtkAlignment"] = w24; w22.Add(w24); bindings["buttonFindEnterprise"] = w22; w17.Add(w22); Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(w17[w22])); w32.Position = 2; w32.Expand = false; w32.Fill = false; bindings["hbox1"] = w17; w16.Add(w17); Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(w16[w17])); w33.Position = 0; w33.Expand = false; w33.Fill = false; // Container child vbox2.Gtk.Box+BoxChild Gtk.ScrolledWindow w34 = new Gtk.ScrolledWindow(); w34.VscrollbarPolicy = ((Gtk.PolicyType)(1)); w34.HscrollbarPolicy = ((Gtk.PolicyType)(1)); w34.CanFocus = true; w34.Events = ((Gdk.EventMask)(0)); w34.Name = "scrolledwindow1"; // Container child scrolledwindow1.Gtk.Container+ContainerChild Gtk.Viewport w35 = new Gtk.Viewport(); w35.ShadowType = ((Gtk.ShadowType)(0)); w35.Events = ((Gdk.EventMask)(0)); w35.Name = "GtkViewport"; // Container child GtkViewport.Gtk.Container+ContainerChild Boxerp.Client.GtkSharp.Lib.FilteredListView w36 = new Boxerp.Client.GtkSharp.Lib.FilteredListView(); w36.Events = ((Gdk.EventMask)(256)); w36.Name = "ftreeviewEnterprises"; bindings["ftreeviewEnterprises"] = w36; w35.Add(w36); bindings["GtkViewport"] = w35; w34.Add(w35); bindings["scrolledwindow1"] = w34; w16.Add(w34); Gtk.Box.BoxChild w39 = ((Gtk.Box.BoxChild)(w16[w34])); w39.Position = 1; // Container child vbox2.Gtk.Box+BoxChild Gtk.HBox w40 = new Gtk.HBox(); w40.Events = ((Gdk.EventMask)(0)); w40.Name = "hbox14"; // Container child hbox14.Gtk.Box+BoxChild Gtk.Button w41 = new Gtk.Button(); w23.SetTip(w41, "Añadir un Hecho", "Añadir un Hecho"); w41.CanFocus = true; w41.Events = ((Gdk.EventMask)(0)); w41.Name = "buttonNewEnterprise"; w41.HasDefault = true; // Container child buttonNewEnterprise.Gtk.Container+ContainerChild Gtk.Alignment w42 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w42.Events = ((Gdk.EventMask)(0)); w42.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w43 = new Gtk.HBox(); w43.Spacing = 2; w43.Events = ((Gdk.EventMask)(0)); w43.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w44 = new Gtk.Image(); w44.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-new", 16, 0); w44.Events = ((Gdk.EventMask)(0)); w44.Name = "image2"; bindings["image2"] = w44; w43.Add(w44); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w46 = new Gtk.Label(); w46.LabelProp = ""; w46.Events = ((Gdk.EventMask)(0)); w46.Name = "GtkLabel"; bindings["GtkLabel"] = w46; w43.Add(w46); bindings["GtkHBox"] = w43; w42.Add(w43); bindings["GtkAlignment"] = w42; w41.Add(w42); bindings["buttonNewEnterprise"] = w41; w40.Add(w41); Gtk.Box.BoxChild w50 = ((Gtk.Box.BoxChild)(w40[w41])); w50.PackType = ((Gtk.PackType)(1)); w50.Position = 0; w50.Expand = false; w50.Fill = false; // Container child hbox14.Gtk.Box+BoxChild Gtk.Button w51 = new Gtk.Button(); w23.SetTip(w51, "Editar el Hecho", "Editar el Hecho"); w51.CanFocus = true; w51.Events = ((Gdk.EventMask)(0)); w51.Name = "buttonEditEnterprise"; // Container child buttonEditEnterprise.Gtk.Container+ContainerChild Gtk.Alignment w52 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w52.Events = ((Gdk.EventMask)(0)); w52.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w53 = new Gtk.HBox(); w53.Spacing = 2; w53.Events = ((Gdk.EventMask)(0)); w53.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w54 = new Gtk.Image(); w54.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-edit", 16, 0); w54.Events = ((Gdk.EventMask)(0)); w54.Name = "image3"; bindings["image3"] = w54; w53.Add(w54); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w56 = new Gtk.Label(); w56.LabelProp = ""; w56.Events = ((Gdk.EventMask)(0)); w56.Name = "GtkLabel"; bindings["GtkLabel"] = w56; w53.Add(w56); bindings["GtkHBox"] = w53; w52.Add(w53); bindings["GtkAlignment"] = w52; w51.Add(w52); bindings["buttonEditEnterprise"] = w51; w40.Add(w51); Gtk.Box.BoxChild w60 = ((Gtk.Box.BoxChild)(w40[w51])); w60.PackType = ((Gtk.PackType)(1)); w60.Position = 1; w60.Expand = false; w60.Fill = false; // Container child hbox14.Gtk.Box+BoxChild Gtk.Button w61 = new Gtk.Button(); w23.SetTip(w61, "Quitar el Hecho", "Quitar el Hecho"); w61.CanFocus = true; w61.Events = ((Gdk.EventMask)(0)); w61.Name = "buttonDelEnterprise"; // Container child buttonDelEnterprise.Gtk.Container+ContainerChild Gtk.Alignment w62 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w62.Events = ((Gdk.EventMask)(0)); w62.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w63 = new Gtk.HBox(); w63.Spacing = 2; w63.Events = ((Gdk.EventMask)(0)); w63.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w64 = new Gtk.Image(); w64.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-delete", 16, 0); w64.Events = ((Gdk.EventMask)(0)); w64.Name = "image4"; bindings["image4"] = w64; w63.Add(w64); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w66 = new Gtk.Label(); w66.LabelProp = ""; w66.Events = ((Gdk.EventMask)(0)); w66.Name = "GtkLabel"; bindings["GtkLabel"] = w66; w63.Add(w66); bindings["GtkHBox"] = w63; w62.Add(w63); bindings["GtkAlignment"] = w62; w61.Add(w62); bindings["buttonDelEnterprise"] = w61; w40.Add(w61); Gtk.Box.BoxChild w70 = ((Gtk.Box.BoxChild)(w40[w61])); w70.PackType = ((Gtk.PackType)(1)); w70.Position = 2; w70.Expand = false; w70.Fill = false; bindings["hbox14"] = w40; w16.Add(w40); Gtk.Box.BoxChild w71 = ((Gtk.Box.BoxChild)(w16[w40])); w71.Position = 2; w71.Expand = false; w71.Fill = false; bindings["vbox2"] = w16; w11.Add(w16); Gtk.Box.BoxChild w72 = ((Gtk.Box.BoxChild)(w11[w16])); w72.Position = 2; w72.Expand = false; w72.Fill = false; // Container child vbox1.Gtk.Box+BoxChild Gtk.HSeparator w73 = new Gtk.HSeparator(); w73.Events = ((Gdk.EventMask)(0)); w73.Name = "hseparator2"; bindings["hseparator2"] = w73; w11.Add(w73); Gtk.Box.BoxChild w74 = ((Gtk.Box.BoxChild)(w11[w73])); w74.Position = 3; w74.Expand = false; w74.Fill = false; // Container child vbox1.Gtk.Box+BoxChild Gtk.HBox w75 = new Gtk.HBox(); w75.Homogeneous = true; w75.Events = ((Gdk.EventMask)(0)); w75.Name = "hbox2"; // Container child hbox2.Gtk.Box+BoxChild Gtk.VBox w76 = new Gtk.VBox(); w76.BorderWidth = ((uint)(5)); w76.Events = ((Gdk.EventMask)(0)); w76.Name = "vbox3"; // Container child vbox3.Gtk.Box+BoxChild Gtk.HBox w77 = new Gtk.HBox(); w77.Events = ((Gdk.EventMask)(0)); w77.Name = "hbox3"; // Container child hbox3.Gtk.Box+BoxChild Gtk.Label w78 = new Gtk.Label(); w78.LabelProp = "<b>User:</b>"; w78.UseMarkup = true; w78.Ypad = 6; w78.Events = ((Gdk.EventMask)(256)); w78.Name = "labelUser"; bindings["labelUser"] = w78; w77.Add(w78); Gtk.Box.BoxChild w79 = ((Gtk.Box.BoxChild)(w77[w78])); w79.Position = 0; w79.Expand = false; w79.Fill = false; // Container child hbox3.Gtk.Box+BoxChild Gtk.Entry w80 = new Gtk.Entry(); w80.IsEditable = true; w80.InvisibleChar = '●'; w80.CanFocus = true; w80.Events = ((Gdk.EventMask)(0)); w80.Name = "entryUser"; bindings["entryUser"] = w80; w77.Add(w80); Gtk.Box.BoxChild w81 = ((Gtk.Box.BoxChild)(w77[w80])); w81.Position = 1; w81.Expand = false; w81.Fill = false; // Container child hbox3.Gtk.Box+BoxChild Gtk.Button w82 = new Gtk.Button(); w23.SetTip(w82, "Añadir un Hecho", "Añadir un Hecho"); w82.CanFocus = true; w82.Events = ((Gdk.EventMask)(0)); w82.Name = "buttonFindUser"; w82.HasDefault = true; // Container child buttonFindUser.Gtk.Container+ContainerChild Gtk.Alignment w83 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w83.Events = ((Gdk.EventMask)(0)); w83.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w84 = new Gtk.HBox(); w84.Spacing = 2; w84.Events = ((Gdk.EventMask)(0)); w84.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w85 = new Gtk.Image(); w85.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-find", 16, 0); w85.Events = ((Gdk.EventMask)(0)); w85.Name = "image5"; bindings["image5"] = w85; w84.Add(w85); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w87 = new Gtk.Label(); w87.LabelProp = ""; w87.Events = ((Gdk.EventMask)(0)); w87.Name = "GtkLabel"; bindings["GtkLabel"] = w87; w84.Add(w87); bindings["GtkHBox"] = w84; w83.Add(w84); bindings["GtkAlignment"] = w83; w82.Add(w83); bindings["buttonFindUser"] = w82; w77.Add(w82); Gtk.Box.BoxChild w91 = ((Gtk.Box.BoxChild)(w77[w82])); w91.Position = 2; w91.Expand = false; w91.Fill = false; bindings["hbox3"] = w77; w76.Add(w77); Gtk.Box.BoxChild w92 = ((Gtk.Box.BoxChild)(w76[w77])); w92.Position = 0; w92.Expand = false; w92.Fill = false; // Container child vbox3.Gtk.Box+BoxChild Gtk.ScrolledWindow w93 = new Gtk.ScrolledWindow(); w93.VscrollbarPolicy = ((Gtk.PolicyType)(1)); w93.HscrollbarPolicy = ((Gtk.PolicyType)(1)); w93.CanFocus = true; w93.Events = ((Gdk.EventMask)(0)); w93.Name = "scrolledwindow2"; // Container child scrolledwindow2.Gtk.Container+ContainerChild Gtk.Viewport w94 = new Gtk.Viewport(); w94.ShadowType = ((Gtk.ShadowType)(0)); w94.Events = ((Gdk.EventMask)(0)); w94.Name = "GtkViewport1"; // Container child GtkViewport1.Gtk.Container+ContainerChild Boxerp.Client.GtkSharp.Lib.FilteredListView w95 = new Boxerp.Client.GtkSharp.Lib.FilteredListView(); w95.Events = ((Gdk.EventMask)(256)); w95.Name = "ftreeviewUsers"; bindings["ftreeviewUsers"] = w95; w94.Add(w95); bindings["GtkViewport1"] = w94; w93.Add(w94); bindings["scrolledwindow2"] = w93; w76.Add(w93); Gtk.Box.BoxChild w98 = ((Gtk.Box.BoxChild)(w76[w93])); w98.Position = 1; // Container child vbox3.Gtk.Box+BoxChild Gtk.HBox w99 = new Gtk.HBox(); w99.Events = ((Gdk.EventMask)(0)); w99.Name = "hbox15"; // Container child hbox15.Gtk.Box+BoxChild Gtk.Button w100 = new Gtk.Button(); w23.SetTip(w100, "Añadir un Hecho", "Añadir un Hecho"); w100.CanFocus = true; w100.Events = ((Gdk.EventMask)(0)); w100.Name = "buttonNewUser"; w100.HasDefault = true; // Container child buttonNewUser.Gtk.Container+ContainerChild Gtk.Alignment w101 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w101.Events = ((Gdk.EventMask)(0)); w101.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w102 = new Gtk.HBox(); w102.Spacing = 2; w102.Events = ((Gdk.EventMask)(0)); w102.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w103 = new Gtk.Image(); w103.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-new", 16, 0); w103.Events = ((Gdk.EventMask)(0)); w103.Name = "image6"; bindings["image6"] = w103; w102.Add(w103); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w105 = new Gtk.Label(); w105.LabelProp = ""; w105.Events = ((Gdk.EventMask)(0)); w105.Name = "GtkLabel"; bindings["GtkLabel"] = w105; w102.Add(w105); bindings["GtkHBox"] = w102; w101.Add(w102); bindings["GtkAlignment"] = w101; w100.Add(w101); bindings["buttonNewUser"] = w100; w99.Add(w100); Gtk.Box.BoxChild w109 = ((Gtk.Box.BoxChild)(w99[w100])); w109.PackType = ((Gtk.PackType)(1)); w109.Position = 0; w109.Expand = false; w109.Fill = false; // Container child hbox15.Gtk.Box+BoxChild Gtk.Button w110 = new Gtk.Button(); w23.SetTip(w110, "Editar el Hecho", "Editar el Hecho"); w110.CanFocus = true; w110.Events = ((Gdk.EventMask)(0)); w110.Name = "buttonEditUser"; // Container child buttonEditUser.Gtk.Container+ContainerChild Gtk.Alignment w111 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w111.Events = ((Gdk.EventMask)(0)); w111.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w112 = new Gtk.HBox(); w112.Spacing = 2; w112.Events = ((Gdk.EventMask)(0)); w112.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w113 = new Gtk.Image(); w113.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-edit", 16, 0); w113.Events = ((Gdk.EventMask)(0)); w113.Name = "image7"; bindings["image7"] = w113; w112.Add(w113); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w115 = new Gtk.Label(); w115.LabelProp = ""; w115.Events = ((Gdk.EventMask)(0)); w115.Name = "GtkLabel"; bindings["GtkLabel"] = w115; w112.Add(w115); bindings["GtkHBox"] = w112; w111.Add(w112); bindings["GtkAlignment"] = w111; w110.Add(w111); bindings["buttonEditUser"] = w110; w99.Add(w110); Gtk.Box.BoxChild w119 = ((Gtk.Box.BoxChild)(w99[w110])); w119.PackType = ((Gtk.PackType)(1)); w119.Position = 1; w119.Expand = false; w119.Fill = false; // Container child hbox15.Gtk.Box+BoxChild Gtk.Button w120 = new Gtk.Button(); w23.SetTip(w120, "Quitar el Hecho", "Quitar el Hecho"); w120.CanFocus = true; w120.Events = ((Gdk.EventMask)(0)); w120.Name = "buttonDelUser"; // Container child buttonDelUser.Gtk.Container+ContainerChild Gtk.Alignment w121 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w121.Events = ((Gdk.EventMask)(0)); w121.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w122 = new Gtk.HBox(); w122.Spacing = 2; w122.Events = ((Gdk.EventMask)(0)); w122.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w123 = new Gtk.Image(); w123.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-delete", 16, 0); w123.Events = ((Gdk.EventMask)(0)); w123.Name = "image8"; bindings["image8"] = w123; w122.Add(w123); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w125 = new Gtk.Label(); w125.LabelProp = ""; w125.Events = ((Gdk.EventMask)(0)); w125.Name = "GtkLabel"; bindings["GtkLabel"] = w125; w122.Add(w125); bindings["GtkHBox"] = w122; w121.Add(w122); bindings["GtkAlignment"] = w121; w120.Add(w121); bindings["buttonDelUser"] = w120; w99.Add(w120); Gtk.Box.BoxChild w129 = ((Gtk.Box.BoxChild)(w99[w120])); w129.PackType = ((Gtk.PackType)(1)); w129.Position = 2; w129.Expand = false; w129.Fill = false; bindings["hbox15"] = w99; w76.Add(w99); Gtk.Box.BoxChild w130 = ((Gtk.Box.BoxChild)(w76[w99])); w130.Position = 2; w130.Expand = false; w130.Fill = false; bindings["vbox3"] = w76; w75.Add(w76); Gtk.Box.BoxChild w131 = ((Gtk.Box.BoxChild)(w75[w76])); w131.Position = 0; // Container child hbox2.Gtk.Box+BoxChild Gtk.VBox w132 = new Gtk.VBox(); w132.BorderWidth = ((uint)(5)); w132.Events = ((Gdk.EventMask)(0)); w132.Name = "vbox4"; // Container child vbox4.Gtk.Box+BoxChild Gtk.HBox w133 = new Gtk.HBox(); w133.Events = ((Gdk.EventMask)(0)); w133.Name = "hbox4"; // Container child hbox4.Gtk.Box+BoxChild Gtk.Label w134 = new Gtk.Label(); w134.LabelProp = "<b>Group:</b>"; w134.UseMarkup = true; w134.Ypad = 6; w134.Events = ((Gdk.EventMask)(256)); w134.Name = "labelGroup"; bindings["labelGroup"] = w134; w133.Add(w134); Gtk.Box.BoxChild w135 = ((Gtk.Box.BoxChild)(w133[w134])); w135.Position = 0; w135.Expand = false; w135.Fill = false; // Container child hbox4.Gtk.Box+BoxChild Gtk.Entry w136 = new Gtk.Entry(); w136.IsEditable = true; w136.InvisibleChar = '●'; w136.CanFocus = true; w136.Events = ((Gdk.EventMask)(0)); w136.Name = "entryGroup"; bindings["entryGroup"] = w136; w133.Add(w136); Gtk.Box.BoxChild w137 = ((Gtk.Box.BoxChild)(w133[w136])); w137.Position = 1; w137.Expand = false; w137.Fill = false; // Container child hbox4.Gtk.Box+BoxChild Gtk.Button w138 = new Gtk.Button(); w23.SetTip(w138, "Añadir un Hecho", "Añadir un Hecho"); w138.CanFocus = true; w138.Events = ((Gdk.EventMask)(0)); w138.Name = "buttonFindGroup"; w138.HasDefault = true; // Container child buttonFindGroup.Gtk.Container+ContainerChild Gtk.Alignment w139 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w139.Events = ((Gdk.EventMask)(0)); w139.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w140 = new Gtk.HBox(); w140.Spacing = 2; w140.Events = ((Gdk.EventMask)(0)); w140.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w141 = new Gtk.Image(); w141.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-find", 16, 0); w141.Events = ((Gdk.EventMask)(0)); w141.Name = "image9"; bindings["image9"] = w141; w140.Add(w141); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w143 = new Gtk.Label(); w143.LabelProp = ""; w143.Events = ((Gdk.EventMask)(0)); w143.Name = "GtkLabel"; bindings["GtkLabel"] = w143; w140.Add(w143); bindings["GtkHBox"] = w140; w139.Add(w140); bindings["GtkAlignment"] = w139; w138.Add(w139); bindings["buttonFindGroup"] = w138; w133.Add(w138); Gtk.Box.BoxChild w147 = ((Gtk.Box.BoxChild)(w133[w138])); w147.Position = 2; w147.Expand = false; w147.Fill = false; bindings["hbox4"] = w133; w132.Add(w133); Gtk.Box.BoxChild w148 = ((Gtk.Box.BoxChild)(w132[w133])); w148.Position = 0; w148.Expand = false; w148.Fill = false; // Container child vbox4.Gtk.Box+BoxChild Gtk.ScrolledWindow w149 = new Gtk.ScrolledWindow(); w149.VscrollbarPolicy = ((Gtk.PolicyType)(1)); w149.HscrollbarPolicy = ((Gtk.PolicyType)(1)); w149.CanFocus = true; w149.Events = ((Gdk.EventMask)(0)); w149.Name = "scrolledwindow3"; // Container child scrolledwindow3.Gtk.Container+ContainerChild Gtk.Viewport w150 = new Gtk.Viewport(); w150.ShadowType = ((Gtk.ShadowType)(0)); w150.Events = ((Gdk.EventMask)(0)); w150.Name = "GtkViewport2"; // Container child GtkViewport2.Gtk.Container+ContainerChild Boxerp.Client.GtkSharp.Lib.FilteredListView w151 = new Boxerp.Client.GtkSharp.Lib.FilteredListView(); w151.Events = ((Gdk.EventMask)(256)); w151.Name = "ftreeviewGroups"; bindings["ftreeviewGroups"] = w151; w150.Add(w151); bindings["GtkViewport2"] = w150; w149.Add(w150); bindings["scrolledwindow3"] = w149; w132.Add(w149); Gtk.Box.BoxChild w154 = ((Gtk.Box.BoxChild)(w132[w149])); w154.Position = 1; // Container child vbox4.Gtk.Box+BoxChild Gtk.HBox w155 = new Gtk.HBox(); w155.Events = ((Gdk.EventMask)(0)); w155.Name = "hbox16"; // Container child hbox16.Gtk.Box+BoxChild Gtk.Button w156 = new Gtk.Button(); w23.SetTip(w156, "Añadir un Hecho", "Añadir un Hecho"); w156.CanFocus = true; w156.Events = ((Gdk.EventMask)(0)); w156.Name = "buttonNewGroup"; w156.HasDefault = true; // Container child buttonNewGroup.Gtk.Container+ContainerChild Gtk.Alignment w157 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w157.Events = ((Gdk.EventMask)(0)); w157.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w158 = new Gtk.HBox(); w158.Spacing = 2; w158.Events = ((Gdk.EventMask)(0)); w158.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w159 = new Gtk.Image(); w159.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-new", 16, 0); w159.Events = ((Gdk.EventMask)(0)); w159.Name = "image10"; bindings["image10"] = w159; w158.Add(w159); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w161 = new Gtk.Label(); w161.LabelProp = ""; w161.Events = ((Gdk.EventMask)(0)); w161.Name = "GtkLabel"; bindings["GtkLabel"] = w161; w158.Add(w161); bindings["GtkHBox"] = w158; w157.Add(w158); bindings["GtkAlignment"] = w157; w156.Add(w157); bindings["buttonNewGroup"] = w156; w155.Add(w156); Gtk.Box.BoxChild w165 = ((Gtk.Box.BoxChild)(w155[w156])); w165.PackType = ((Gtk.PackType)(1)); w165.Position = 0; w165.Expand = false; w165.Fill = false; // Container child hbox16.Gtk.Box+BoxChild Gtk.Button w166 = new Gtk.Button(); w23.SetTip(w166, "Editar el Hecho", "Editar el Hecho"); w166.CanFocus = true; w166.Events = ((Gdk.EventMask)(0)); w166.Name = "buttonEditGroup"; // Container child buttonEditGroup.Gtk.Container+ContainerChild Gtk.Alignment w167 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w167.Events = ((Gdk.EventMask)(0)); w167.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w168 = new Gtk.HBox(); w168.Spacing = 2; w168.Events = ((Gdk.EventMask)(0)); w168.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w169 = new Gtk.Image(); w169.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-edit", 16, 0); w169.Events = ((Gdk.EventMask)(0)); w169.Name = "image11"; bindings["image11"] = w169; w168.Add(w169); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w171 = new Gtk.Label(); w171.LabelProp = ""; w171.Events = ((Gdk.EventMask)(0)); w171.Name = "GtkLabel"; bindings["GtkLabel"] = w171; w168.Add(w171); bindings["GtkHBox"] = w168; w167.Add(w168); bindings["GtkAlignment"] = w167; w166.Add(w167); bindings["buttonEditGroup"] = w166; w155.Add(w166); Gtk.Box.BoxChild w175 = ((Gtk.Box.BoxChild)(w155[w166])); w175.PackType = ((Gtk.PackType)(1)); w175.Position = 1; w175.Expand = false; w175.Fill = false; // Container child hbox16.Gtk.Box+BoxChild Gtk.Button w176 = new Gtk.Button(); w23.SetTip(w176, "Quitar el Hecho", "Quitar el Hecho"); w176.CanFocus = true; w176.Events = ((Gdk.EventMask)(0)); w176.Name = "buttonDelGroup"; // Container child buttonDelGroup.Gtk.Container+ContainerChild Gtk.Alignment w177 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w177.Events = ((Gdk.EventMask)(0)); w177.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w178 = new Gtk.HBox(); w178.Spacing = 2; w178.Events = ((Gdk.EventMask)(0)); w178.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w179 = new Gtk.Image(); w179.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-delete", 16, 0); w179.Events = ((Gdk.EventMask)(0)); w179.Name = "image12"; bindings["image12"] = w179; w178.Add(w179); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w181 = new Gtk.Label(); w181.LabelProp = ""; w181.Events = ((Gdk.EventMask)(0)); w181.Name = "GtkLabel"; bindings["GtkLabel"] = w181; w178.Add(w181); bindings["GtkHBox"] = w178; w177.Add(w178); bindings["GtkAlignment"] = w177; w176.Add(w177); bindings["buttonDelGroup"] = w176; w155.Add(w176); Gtk.Box.BoxChild w185 = ((Gtk.Box.BoxChild)(w155[w176])); w185.PackType = ((Gtk.PackType)(1)); w185.Position = 2; w185.Expand = false; w185.Fill = false; bindings["hbox16"] = w155; w132.Add(w155); Gtk.Box.BoxChild w186 = ((Gtk.Box.BoxChild)(w132[w155])); w186.Position = 2; w186.Expand = false; w186.Fill = false; bindings["vbox4"] = w132; w75.Add(w132); Gtk.Box.BoxChild w187 = ((Gtk.Box.BoxChild)(w75[w132])); w187.Position = 1; bindings["hbox2"] = w75; w11.Add(w75); Gtk.Box.BoxChild w188 = ((Gtk.Box.BoxChild)(w11[w75])); w188.Position = 4; // Container child vbox1.Gtk.Box+BoxChild Gtk.HSeparator w189 = new Gtk.HSeparator(); w189.Events = ((Gdk.EventMask)(0)); w189.Name = "hseparator1"; bindings["hseparator1"] = w189; w11.Add(w189); Gtk.Box.BoxChild w190 = ((Gtk.Box.BoxChild)(w11[w189])); w190.Position = 6; w190.Expand = false; w190.Fill = false; // Container child vbox1.Gtk.Box+BoxChild Gtk.Statusbar w191 = new Gtk.Statusbar(); w191.Events = ((Gdk.EventMask)(0)); w191.Name = "statusbar1"; bindings["statusbar1"] = w191; w11.Add(w191); Gtk.Box.BoxChild w192 = ((Gtk.Box.BoxChild)(w11[w191])); w192.Position = 7; w192.Expand = false; w192.Fill = false; bindings["vbox1"] = w11; cobj.Add(w11); bindings["administrator.MainWindow"] = cobj; w12.Show(); w14.Show(); w18.Show(); w20.Show(); w26.Show(); w28.Show(); w25.Show(); w24.Show(); w22.Show(); w17.Show(); w36.Show(); w35.Show(); w34.Show(); w44.Show(); w46.Show(); w43.Show(); w42.Show(); w41.Show(); w54.Show(); w56.Show(); w53.Show(); w52.Show(); w51.Show(); w64.Show(); w66.Show(); w63.Show(); w62.Show(); w61.Show(); w40.Show(); w16.Show(); w73.Show(); w78.Show(); w80.Show(); w85.Show(); w87.Show(); w84.Show(); w83.Show(); w82.Show(); w77.Show(); w95.Show(); w94.Show(); w93.Show(); w103.Show(); w105.Show(); w102.Show(); w101.Show(); w100.Show(); w113.Show(); w115.Show(); w112.Show(); w111.Show(); w110.Show(); w123.Show(); w125.Show(); w122.Show(); w121.Show(); w120.Show(); w99.Show(); w76.Show(); w134.Show(); w136.Show(); w141.Show(); w143.Show(); w140.Show(); w139.Show(); w138.Show(); w133.Show(); w151.Show(); w150.Show(); w149.Show(); w159.Show(); w161.Show(); w158.Show(); w157.Show(); w156.Show(); w169.Show(); w171.Show(); w168.Show(); w167.Show(); w166.Show(); w179.Show(); w181.Show(); w178.Show(); w177.Show(); w176.Show(); w155.Show(); w132.Show(); w75.Show(); w189.Show(); w191.Show(); w11.Show(); cobj.Show(); cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent"))); w20.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindEnterprise"))); w22.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindEnterprise"))); w61.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnDelEnterpriseClicked"))); w51.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnEditEnterpriseClicked"))); w41.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnNewEnterpriseClicked"))); w80.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindUser"))); w82.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindUser"))); w120.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnDelUserClicked"))); w110.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnEditUserClicked"))); w100.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnNewUserClicked"))); w136.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindGroup"))); w138.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindGroup"))); w176.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnDelGroupClicked"))); w166.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnEditGroupClicked"))); w156.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnNewGroupClicked"))); } else { if ((id == "administrator.EditUserWindow")) { Gtk.Window cobj = ((Gtk.Window)(obj)); // Widget administrator.EditUserWindow cobj.Title = "User"; cobj.WindowPosition = ((Gtk.WindowPosition)(4)); cobj.Events = ((Gdk.EventMask)(0)); cobj.Name = "administrator.EditUserWindow"; // Container child administrator.EditUserWindow.Gtk.Container+ContainerChild Gtk.VBox w1 = new Gtk.VBox(); w1.Events = ((Gdk.EventMask)(0)); w1.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild Gtk.Notebook w2 = new Gtk.Notebook(); w2.CanFocus = true; w2.Events = ((Gdk.EventMask)(0)); w2.Name = "notebook1"; // Container child notebook1.Gtk.Notebook+NotebookChild Gtk.VBox w3 = new Gtk.VBox(); w3.Events = ((Gdk.EventMask)(0)); w3.Name = "vbox2"; // Container child vbox2.Gtk.Box+BoxChild Gtk.Table w4 = new Gtk.Table(((uint)(5)), ((uint)(2)), false); w4.RowSpacing = ((uint)(1)); w4.ColumnSpacing = ((uint)(5)); w4.BorderWidth = ((uint)(5)); w4.Events = ((Gdk.EventMask)(0)); w4.Name = "table1"; // Container child table1.Gtk.Table+TableChild Gtk.CheckButton w5 = new Gtk.CheckButton(); w5.Label = ""; w5.DrawIndicator = true; w5.CanFocus = true; w5.Events = ((Gdk.EventMask)(0)); w5.Name = "checkActive"; bindings["checkActive"] = w5; w4.Add(w5); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(w4[w5])); w6.BottomAttach = ((uint)(5)); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(2)); w6.TopAttach = ((uint)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.Label w7 = new Gtk.Label(); w7.LabelProp = "Active:"; w7.Events = ((Gdk.EventMask)(0)); w7.Name = "label4"; bindings["label4"] = w7; w4.Add(w7); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(w4[w7])); w8.BottomAttach = ((uint)(5)); w8.TopAttach = ((uint)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); w8.XOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.Entry w9 = new Gtk.Entry(); w9.IsEditable = true; w9.Visibility = false; w9.InvisibleChar = '●'; w9.CanFocus = true; w9.Events = ((Gdk.EventMask)(0)); w9.Name = "entryPassword"; bindings["entryPassword"] = w9; w4.Add(w9); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(w4[w9])); w10.BottomAttach = ((uint)(4)); w10.LeftAttach = ((uint)(1)); w10.RightAttach = ((uint)(2)); w10.TopAttach = ((uint)(3)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.Entry w11 = new Gtk.Entry(); w11.IsEditable = true; w11.InvisibleChar = '●'; w11.CanFocus = true; w11.Events = ((Gdk.EventMask)(0)); w11.Name = "entryEmail"; bindings["entryEmail"] = w11; w4.Add(w11); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(w4[w11])); w12.BottomAttach = ((uint)(3)); w12.LeftAttach = ((uint)(1)); w12.RightAttach = ((uint)(2)); w12.TopAttach = ((uint)(2)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.Entry w13 = new Gtk.Entry(); w13.IsEditable = true; w13.InvisibleChar = '●'; w13.CanFocus = true; w13.Events = ((Gdk.EventMask)(0)); w13.Name = "entryRealName"; bindings["entryRealName"] = w13; w4.Add(w13); Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(w4[w13])); w14.BottomAttach = ((uint)(2)); w14.LeftAttach = ((uint)(1)); w14.RightAttach = ((uint)(2)); w14.TopAttach = ((uint)(1)); w14.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.Label w15 = new Gtk.Label(); w15.LabelProp = "Password:"******"label14"; bindings["label14"] = w15; w4.Add(w15); Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(w4[w15])); w16.BottomAttach = ((uint)(4)); w16.TopAttach = ((uint)(3)); w16.YOptions = ((Gtk.AttachOptions)(4)); w16.XOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.Label w17 = new Gtk.Label(); w17.LabelProp = "Email:"; w17.Events = ((Gdk.EventMask)(0)); w17.Name = "label13"; bindings["label13"] = w17; w4.Add(w17); Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(w4[w17])); w18.BottomAttach = ((uint)(3)); w18.TopAttach = ((uint)(2)); w18.YOptions = ((Gtk.AttachOptions)(4)); w18.XOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.Label w19 = new Gtk.Label(); w19.LabelProp = "Real Name:"; w19.Events = ((Gdk.EventMask)(0)); w19.Name = "label12"; bindings["label12"] = w19; w4.Add(w19); Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(w4[w19])); w20.BottomAttach = ((uint)(2)); w20.TopAttach = ((uint)(1)); w20.YOptions = ((Gtk.AttachOptions)(4)); w20.XOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.Label w21 = new Gtk.Label(); w21.LabelProp = "User Name:"; w21.Events = ((Gdk.EventMask)(0)); w21.Name = "label10"; bindings["label10"] = w21; w4.Add(w21); Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(w4[w21])); w22.YOptions = ((Gtk.AttachOptions)(4)); w22.XOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.Entry w23 = new Gtk.Entry(); w23.IsEditable = true; w23.InvisibleChar = '●'; w23.CanFocus = true; w23.Events = ((Gdk.EventMask)(0)); w23.Name = "entryUserName"; bindings["entryUserName"] = w23; w4.Add(w23); Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(w4[w23])); w24.LeftAttach = ((uint)(1)); w24.RightAttach = ((uint)(2)); w24.YOptions = ((Gtk.AttachOptions)(4)); bindings["table1"] = w4; w3.Add(w4); Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(w3[w4])); w25.Position = 0; w25.Expand = false; w25.Fill = false; // Container child vbox2.Gtk.Box+BoxChild Boxerp.Client.GtkSharp.Lib.DoubleListView w26 = new Boxerp.Client.GtkSharp.Lib.DoubleListView(); w26.Events = ((Gdk.EventMask)(256)); w26.Name = "dtreeview"; bindings["dtreeview"] = w26; w3.Add(w26); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(w3[w26])); w27.Position = 1; bindings["vbox2"] = w3; w2.Add(w3); Gtk.Notebook.NotebookChild w28 = ((Gtk.Notebook.NotebookChild)(w2[w3])); w28.TabExpand = false; // Notebook tab Gtk.Label w29 = new Gtk.Label(); w29.LabelProp = "Properties"; w29.Events = ((Gdk.EventMask)(0)); w29.Name = "label1"; bindings["label1"] = w29; w2.SetTabLabel(w3, w29); // Container child notebook1.Gtk.Notebook+NotebookChild Gtk.VBox w30 = new Gtk.VBox(); w30.Events = ((Gdk.EventMask)(0)); w30.Name = "vbox3"; bindings["vbox3"] = w30; w2.Add(w30); Gtk.Notebook.NotebookChild w31 = ((Gtk.Notebook.NotebookChild)(w2[w30])); w31.Position = 1; w31.TabExpand = false; // Notebook tab Gtk.Label w32 = new Gtk.Label(); w32.LabelProp = "Permissions"; w32.Events = ((Gdk.EventMask)(0)); w32.Name = "label1"; bindings["label1"] = w32; w2.SetTabLabel(w30, w32); bindings["notebook1"] = w2; w1.Add(w2); Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(w1[w2])); w33.Position = 0; w33.Padding = ((uint)(5)); // Container child vbox1.Gtk.Box+BoxChild Gtk.HButtonBox w34 = new Gtk.HButtonBox(); w34.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); w34.Spacing = 2; w34.BorderWidth = ((uint)(5)); w34.Events = ((Gdk.EventMask)(0)); w34.Name = "hbuttonbox1"; // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild Gtk.Button w35 = new Gtk.Button(); w35.CanFocus = true; w35.Events = ((Gdk.EventMask)(0)); w35.Name = "buttonCancel"; // Container child buttonCancel.Gtk.Container+ContainerChild Gtk.Alignment w36 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w36.Events = ((Gdk.EventMask)(0)); w36.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w37 = new Gtk.HBox(); w37.Spacing = 2; w37.Events = ((Gdk.EventMask)(0)); w37.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w38 = new Gtk.Image(); w38.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-cancel", 16, 0); w38.Events = ((Gdk.EventMask)(0)); w38.Name = "image13"; bindings["image13"] = w38; w37.Add(w38); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w40 = new Gtk.Label(); w40.LabelProp = "Cancel"; w40.Events = ((Gdk.EventMask)(0)); w40.Name = "GtkLabel"; bindings["GtkLabel"] = w40; w37.Add(w40); bindings["GtkHBox"] = w37; w36.Add(w37); bindings["GtkAlignment"] = w36; w35.Add(w36); bindings["buttonCancel"] = w35; w34.Add(w35); Gtk.ButtonBox.ButtonBoxChild w44 = ((Gtk.ButtonBox.ButtonBoxChild)(w34[w35])); w44.Expand = false; w44.Fill = false; // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild Gtk.Button w45 = new Gtk.Button(); w45.CanFocus = true; w45.Events = ((Gdk.EventMask)(0)); w45.Name = "buttonOk"; // Container child buttonOk.Gtk.Container+ContainerChild Gtk.Alignment w46 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w46.Events = ((Gdk.EventMask)(0)); w46.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w47 = new Gtk.HBox(); w47.Spacing = 2; w47.Events = ((Gdk.EventMask)(0)); w47.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w48 = new Gtk.Image(); w48.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-ok", 16, 0); w48.Events = ((Gdk.EventMask)(0)); w48.Name = "image14"; bindings["image14"] = w48; w47.Add(w48); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w50 = new Gtk.Label(); w50.LabelProp = "Ok"; w50.Events = ((Gdk.EventMask)(0)); w50.Name = "GtkLabel"; bindings["GtkLabel"] = w50; w47.Add(w50); bindings["GtkHBox"] = w47; w46.Add(w47); bindings["GtkAlignment"] = w46; w45.Add(w46); bindings["buttonOk"] = w45; w34.Add(w45); Gtk.ButtonBox.ButtonBoxChild w54 = ((Gtk.ButtonBox.ButtonBoxChild)(w34[w45])); w54.Position = 1; w54.Expand = false; w54.Fill = false; bindings["hbuttonbox1"] = w34; w1.Add(w34); Gtk.Box.BoxChild w55 = ((Gtk.Box.BoxChild)(w1[w34])); w55.PackType = ((Gtk.PackType)(1)); w55.Position = 1; w55.Expand = false; w55.Fill = false; bindings["vbox1"] = w1; cobj.Add(w1); cobj.DefaultWidth = 400; cobj.DefaultHeight = 273; bindings["administrator.EditUserWindow"] = cobj; w5.Show(); w7.Show(); w9.Show(); w11.Show(); w13.Show(); w15.Show(); w17.Show(); w19.Show(); w21.Show(); w23.Show(); w4.Show(); w26.Show(); w3.Show(); w29.Show(); w30.Show(); w32.Show(); w2.Show(); w38.Show(); w40.Show(); w37.Show(); w36.Show(); w35.Show(); w48.Show(); w50.Show(); w47.Show(); w46.Show(); w45.Show(); w34.Show(); w1.Show(); cobj.Show(); cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnClose"))); w35.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnCancelClicked"))); w45.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnOkClicked"))); } } } } System.Reflection.FieldInfo[] fields = obj.GetType().GetFields(((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic) | System.Reflection.BindingFlags.Instance)); for (int n = 0; (n < fields.Length); n = (n + 1)) { System.Reflection.FieldInfo field = fields[n]; object widget = bindings[field.Name]; if (((widget != null) && field.FieldType.IsInstanceOfType(widget))) { field.SetValue(obj, widget); } } }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget SimpleDownloader.TestDownloadWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null); this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File"); w1.Add(this.FileAction, null); this.quitAction = new Gtk.Action("quitAction", Mono.Unix.Catalog.GetString("Quit"), null, "gtk-quit"); this.quitAction.ShortLabel = Mono.Unix.Catalog.GetString("Quit"); w1.Add(this.quitAction, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "SimpleDownloader.TestDownloadWindow"; this.Title = Mono.Unix.Catalog.GetString("TestDownloadWindow"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child SimpleDownloader.TestDownloadWindow.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='FileAction' action='FileAction'><menuitem name='quitAction' action='quitAction'/></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.hpaned1 = new Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 141; this.hpaned1.BorderWidth = ((uint)(5)); // Container child hpaned1.Gtk.Paned+PanedChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.expander1 = new Gtk.Expander(null); this.expander1.CanFocus = true; this.expander1.Name = "expander1"; this.expander1.Expanded = true; // Container child expander1.Gtk.Container+ContainerChild this.vbuttonbox2 = new Gtk.VButtonBox(); this.vbuttonbox2.Name = "vbuttonbox2"; this.vbuttonbox2.Homogeneous = true; this.vbuttonbox2.Spacing = 5; this.vbuttonbox2.BorderWidth = ((uint)(5)); // Container child vbuttonbox2.Gtk.ButtonBox+ButtonBoxChild this.button1 = new Gtk.Button(); this.button1.CanFocus = true; this.button1.Name = "button1"; this.button1.UseStock = true; this.button1.UseUnderline = true; this.button1.Label = "gtk-add"; this.vbuttonbox2.Add(this.button1); Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox2[this.button1])); w3.Expand = false; w3.Fill = false; // Container child vbuttonbox2.Gtk.ButtonBox+ButtonBoxChild this.button2 = new Gtk.Button(); this.button2.CanFocus = true; this.button2.Name = "button2"; this.button2.UseStock = true; this.button2.UseUnderline = true; this.button2.Label = "gtk-delete"; this.vbuttonbox2.Add(this.button2); Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox2[this.button2])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.expander1.Add(this.vbuttonbox2); this.GtkLabel3 = new Gtk.Label(); this.GtkLabel3.Name = "GtkLabel3"; this.GtkLabel3.LabelProp = Mono.Unix.Catalog.GetString("Download"); this.GtkLabel3.UseUnderline = true; this.expander1.LabelWidget = this.GtkLabel3; this.vbox2.Add(this.expander1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.expander1])); w6.Position = 0; w6.Expand = false; // Container child vbox2.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)); // Container child table1.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.Xalign = 1F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Links:"); this.table1.Add(this.label3); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.label3])); 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 = Mono.Unix.Catalog.GetString("In progress:"); this.table1.Add(this.label4); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.label4])); w8.TopAttach = ((uint)(1)); w8.BottomAttach = ((uint)(2)); 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.LabelProp = Mono.Unix.Catalog.GetString("27"); this.table1.Add(this.label5); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.label5])); 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.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.LabelProp = Mono.Unix.Catalog.GetString("13"); this.table1.Add(this.label6); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.label6])); w10.TopAttach = ((uint)(1)); w10.BottomAttach = ((uint)(2)); w10.LeftAttach = ((uint)(1)); w10.RightAttach = ((uint)(2)); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label7 = new Gtk.Label(); this.label7.Name = "label7"; this.label7.Xalign = 1F; this.label7.LabelProp = Mono.Unix.Catalog.GetString("Done:"); this.table1.Add(this.label7); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.label7])); w11.TopAttach = ((uint)(2)); w11.BottomAttach = ((uint)(3)); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label8 = new Gtk.Label(); this.label8.Name = "label8"; this.label8.LabelProp = Mono.Unix.Catalog.GetString("14"); this.table1.Add(this.label8); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.label8])); w12.TopAttach = ((uint)(2)); w12.BottomAttach = ((uint)(3)); w12.LeftAttach = ((uint)(1)); w12.RightAttach = ((uint)(2)); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); this.vbox2.Add(this.table1); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox2[this.table1])); w13.Position = 1; // Container child vbox2.Gtk.Box+BoxChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Current:"); this.vbox3.Add(this.label1); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox3[this.label1])); w14.Position = 0; w14.Expand = false; w14.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.progressCurrent = new Gtk.ProgressBar(); this.progressCurrent.Name = "progressCurrent"; this.progressCurrent.Text = ""; this.vbox3.Add(this.progressCurrent); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox3[this.progressCurrent])); w15.Position = 1; w15.Expand = false; w15.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 0F; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Overall:"); this.vbox3.Add(this.label2); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox3[this.label2])); w16.Position = 2; w16.Expand = false; w16.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.progressbar2 = new Gtk.ProgressBar(); this.progressbar2.Name = "progressbar2"; this.progressbar2.Text = ""; this.vbox3.Add(this.progressbar2); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox3[this.progressbar2])); w17.Position = 3; w17.Expand = false; w17.Fill = false; this.vbox2.Add(this.vbox3); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox2[this.vbox3])); w18.Position = 2; w18.Expand = false; w18.Fill = false; this.hpaned1.Add(this.vbox2); Gtk.Paned.PanedChild w19 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vbox2])); w19.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild this.scrolledwindow1 = new Gtk.ScrolledWindow(); this.scrolledwindow1.CanFocus = true; this.scrolledwindow1.Name = "scrolledwindow1"; this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow1.Gtk.Container+ContainerChild this.downloadTree = new Gtk.TreeView(); this.downloadTree.CanFocus = true; this.downloadTree.Name = "downloadTree"; this.scrolledwindow1.Add(this.downloadTree); this.hpaned1.Add(this.scrolledwindow1); this.vbox1.Add(this.hpaned1); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1])); w22.Position = 1; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 609; this.DefaultHeight = 413; this.Show(); this.quitAction.Activated += new System.EventHandler(this.OnQuitActionActivated); this.button1.Clicked += new System.EventHandler(this.OnButton1Clicked); this.downloadTree.RowActivated += new Gtk.RowActivatedHandler(this.OnDownloadTreeRowActivated); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Docky.Interface.DockPreferences Stetic.BinContainer.Attach(this); this.Name = "Docky.Interface.DockPreferences"; // Container child Docky.Interface.DockPreferences.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.table3 = new Gtk.Table(((uint)(7)), ((uint)(3)), false); this.table3.Name = "table3"; this.table3.RowSpacing = ((uint)(6)); this.table3.ColumnSpacing = ((uint)(6)); // Container child table3.Gtk.Table+TableChild this.autohide_box = Gtk.ComboBox.NewText(); this.autohide_box.AppendText(Mono.Unix.Catalog.GetString("None")); this.autohide_box.AppendText(Mono.Unix.Catalog.GetString("Autohide")); this.autohide_box.AppendText(Mono.Unix.Catalog.GetString("Intellihide")); this.autohide_box.AppendText(Mono.Unix.Catalog.GetString("Window Dodge")); this.autohide_box.Name = "autohide_box"; this.autohide_box.Active = 3; this.table3.Add(this.autohide_box); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table3[this.autohide_box])); 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.fade_on_hide_check = new Gtk.CheckButton(); this.fade_on_hide_check.TooltipMarkup = "Fade out dock instead of slide off screen"; this.fade_on_hide_check.CanFocus = true; this.fade_on_hide_check.Name = "fade_on_hide_check"; this.fade_on_hide_check.Label = Mono.Unix.Catalog.GetString("_Fade On Hide"); this.fade_on_hide_check.DrawIndicator = true; this.fade_on_hide_check.UseUnderline = true; this.table3.Add(this.fade_on_hide_check); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table3[this.fade_on_hide_check])); w2.LeftAttach = ((uint)(2)); w2.RightAttach = ((uint)(3)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.hide_desc = new Gtk.Label(); this.hide_desc.Name = "hide_desc"; this.hide_desc.Yalign = 0F; this.hide_desc.UseMarkup = true; this.table3.Add(this.hide_desc); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table3[this.hide_desc])); w3.TopAttach = ((uint)(1)); w3.BottomAttach = ((uint)(2)); w3.RightAttach = ((uint)(3)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.icon_scale = new Gtk.HScale(null); this.icon_scale.CanFocus = true; this.icon_scale.Name = "icon_scale"; this.icon_scale.Adjustment.Upper = 100; this.icon_scale.Adjustment.PageIncrement = 10; this.icon_scale.Adjustment.StepIncrement = 1; this.icon_scale.DrawValue = true; this.icon_scale.Digits = 0; this.icon_scale.ValuePos = ((Gtk.PositionType)(0)); this.table3.Add(this.icon_scale); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table3[this.icon_scale])); w4.TopAttach = ((uint)(2)); w4.BottomAttach = ((uint)(3)); w4.LeftAttach = ((uint)(1)); w4.RightAttach = ((uint)(3)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.label1 = new Gtk.Label(); this.label1.CanFocus = true; this.label1.Name = "label1"; this.label1.Xalign = 1F; this.label1.Yalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("_Icon Size:"); this.label1.UseUnderline = true; this.table3.Add(this.label1); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table3[this.label1])); w5.TopAttach = ((uint)(2)); w5.BottomAttach = ((uint)(3)); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.CanFocus = true; this.label3.Name = "label3"; this.label3.Xalign = 1F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("_Hiding:"); this.label3.UseUnderline = true; this.table3.Add(this.label3); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table3[this.label3])); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.panel_mode_button = new Gtk.CheckButton(); this.panel_mode_button.CanFocus = true; this.panel_mode_button.Name = "panel_mode_button"; this.panel_mode_button.Label = Mono.Unix.Catalog.GetString("_Panel Mode"); this.panel_mode_button.DrawIndicator = true; this.panel_mode_button.UseUnderline = true; this.table3.Add(this.panel_mode_button); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table3[this.panel_mode_button])); w7.TopAttach = ((uint)(4)); w7.BottomAttach = ((uint)(5)); w7.RightAttach = ((uint)(3)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.threedee_check = new Gtk.CheckButton(); this.threedee_check.CanFocus = true; this.threedee_check.Name = "threedee_check"; this.threedee_check.Label = Mono.Unix.Catalog.GetString("3D Back_ground"); this.threedee_check.DrawIndicator = true; this.threedee_check.UseUnderline = true; this.table3.Add(this.threedee_check); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table3[this.threedee_check])); w8.TopAttach = ((uint)(5)); w8.BottomAttach = ((uint)(6)); w8.RightAttach = ((uint)(3)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.window_manager_check = new Gtk.CheckButton(); this.window_manager_check.CanFocus = true; this.window_manager_check.Name = "window_manager_check"; this.window_manager_check.Label = Mono.Unix.Catalog.GetString("_Manage Windows Without Launcher"); this.window_manager_check.DrawIndicator = true; this.window_manager_check.UseUnderline = true; this.window_manager_check.Xalign = 0F; this.table3.Add(this.window_manager_check); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table3[this.window_manager_check])); w9.TopAttach = ((uint)(6)); w9.BottomAttach = ((uint)(7)); w9.RightAttach = ((uint)(3)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.zoom_checkbutton = new Gtk.CheckButton(); this.zoom_checkbutton.CanFocus = true; this.zoom_checkbutton.Name = "zoom_checkbutton"; this.zoom_checkbutton.Label = Mono.Unix.Catalog.GetString("_Zoom:"); this.zoom_checkbutton.DrawIndicator = true; this.zoom_checkbutton.UseUnderline = true; this.zoom_checkbutton.Xalign = 1F; this.table3.Add(this.zoom_checkbutton); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table3[this.zoom_checkbutton])); w10.TopAttach = ((uint)(3)); w10.BottomAttach = ((uint)(4)); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.zoom_scale = new Gtk.HScale(null); this.zoom_scale.CanFocus = true; this.zoom_scale.Name = "zoom_scale"; this.zoom_scale.UpdatePolicy = ((Gtk.UpdateType)(1)); this.zoom_scale.Adjustment.Upper = 100; this.zoom_scale.Adjustment.PageIncrement = 10; this.zoom_scale.Adjustment.StepIncrement = 0.01; this.zoom_scale.Adjustment.Value = 20; this.zoom_scale.DrawValue = true; this.zoom_scale.Digits = 2; this.zoom_scale.ValuePos = ((Gtk.PositionType)(0)); this.table3.Add(this.zoom_scale); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table3[this.zoom_scale])); w11.TopAttach = ((uint)(3)); w11.BottomAttach = ((uint)(4)); w11.LeftAttach = ((uint)(1)); w11.RightAttach = ((uint)(3)); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); this.vbox1.Add(this.table3); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.table3])); w12.Position = 0; w12.Expand = false; w12.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.label1.MnemonicWidget = this.icon_scale; this.label3.MnemonicWidget = this.autohide_box; this.Hide(); this.window_manager_check.Toggled += new System.EventHandler(this.OnWindowManagerCheckToggled); this.threedee_check.Toggled += new System.EventHandler(this.OnThreedeeCheckToggled); this.panel_mode_button.Toggled += new System.EventHandler(this.OnPanelModeButtonToggled); }
protected override Gtk.Widget CreateWidget(WindowContext context) { uint rows = 0; uint columns = 0; uint wrow = 0; uint wcolumn = 0; uint startrow = 0; uint startcolumn = 0; bool rowmode = GetAttribute<bool>("rowmode", true); rowmode = !GetAttribute<bool>("colmode", !rowmode); List<WidgetTableInfo> wlist = new List<WidgetTableInfo>(Childs.Count); foreach(IWidgetBuilder b in Childs) { WidgetTableInfo w = new WidgetTableInfo(); w.Widget = b.Build(context); startcolumn = b.GetAttribute<uint>("col", startcolumn); startrow = b.GetAttribute<uint>("row", startrow); wcolumn = b.GetAttribute<uint>("col", wcolumn); wrow = b.GetAttribute<uint>("row", wrow); if(b.GetAttribute<bool>("newcol", false)) { wrow = startrow; wcolumn = ++startcolumn; } else if(b.GetAttribute<bool>("newrow", false)) { wcolumn = startcolumn; wrow = ++startrow; } w.Left = wcolumn; w.Right = wcolumn + b.GetAttribute<uint>("colspan", 1u); w.Top = wrow; w.Bottom = wrow + b.GetAttribute<uint>("rowspan", 1u); if(!b.GetAttribute<bool>("xnoexpand", false)) w.XOptions |= Gtk.AttachOptions.Expand; if(!b.GetAttribute<bool>("xnofill", false)) w.XOptions |= Gtk.AttachOptions.Fill; if(b.GetAttribute<bool>("xshrink", false)) w.XOptions |= Gtk.AttachOptions.Shrink; if(!b.GetAttribute<bool>("ynoexpand", false)) w.YOptions |= Gtk.AttachOptions.Expand; if(!b.GetAttribute<bool>("ynofill", false)) w.YOptions |= Gtk.AttachOptions.Fill; if(b.GetAttribute<bool>("yshrink", false)) w.YOptions |= Gtk.AttachOptions.Shrink; w.XPadding = b.GetAttribute<uint>("xpadding", 0u); w.YPadding = b.GetAttribute<uint>("ypadding", 0u); wlist.Add(w); if(rows < w.Bottom) rows = (uint)w.Bottom; if(columns < w.Right) columns = (uint)w.Right; if(rowmode) wcolumn++; else wrow++; } Gtk.Table table = new Gtk.Table(rows, columns, GetAttribute<bool>("homogeneous", false)); List<Gtk.Widget> focuschain = new List<Gtk.Widget>(wlist.Count); foreach(WidgetTableInfo w in wlist) { table.Attach(w.Widget, w.Left, w.Right, w.Top, w.Bottom, w.XOptions, w.YOptions, w.XPadding, w.YPadding); if(w.Widget.CanFocus) focuschain.Add(w.Widget); } table.FocusChain = focuschain.ToArray(); return table; }
//TODO: dropdown menus for picking string substitutions. also substitutions for port, ip public DebuggerOptionsDialog() : base( "Launch Soft Debugger", MonoDevelop.Ide.MessageService.RootWindow, Gtk.DialogFlags.DestroyWithParent | Gtk.DialogFlags.Modal) { properties = PropertyService.Get("MonoDevelop.Debugger.Soft.CustomSoftDebugger", new Properties()); AddActionWidget(new Gtk.Button(Gtk.Stock.Cancel), Gtk.ResponseType.Cancel); AddActionWidget(listenButton, listenResponse); AddActionWidget(connectButton, connectResponse); var table = new Gtk.Table(5, 2, false); table.BorderWidth = 6; VBox.PackStart(table, true, true, 0); table.Attach(new Gtk.Label("Command:") { Xalign = 0 }, 0, 1, 0, 1); table.Attach(new Gtk.Label("Arguments:") { Xalign = 0 }, 0, 1, 1, 2); table.Attach(new Gtk.Label("IP:") { Xalign = 0 }, 0, 1, 2, 3); table.Attach(new Gtk.Label("Port:") { Xalign = 0 }, 0, 1, 3, 4); table.Attach(new Gtk.Label("Output:") { Xalign = 0 }, 0, 1, 4, 5); table.Attach(commandEntry, 1, 2, 0, 1); table.Attach(argsEntry, 1, 2, 1, 2); table.Attach(ipEntry, 1, 2, 2, 3); table.Attach(portEntry, 1, 2, 3, 4); table.Attach(consolePortEntry, 1, 2, 4, 5); argsEntry.WidthRequest = 500; commandEntry.PathChanged += delegate { try { //check it parses MonoDevelop.Core.StringParserService.Parse(commandEntry.Path); command = commandEntry.Path; } catch { command = null; } CheckValid(); }; argsEntry.Changed += delegate { try { //check it parses MonoDevelop.Core.StringParserService.Parse(argsEntry.Text); args = argsEntry.Text; } catch { args = null; } CheckValid(); }; ipEntry.Changed += delegate { if (string.IsNullOrEmpty(ipEntry.Text)) { ip = IPAddress.Loopback; } else if (!IPAddress.TryParse(ipEntry.Text, out ip)) { ip = null; } CheckValid(); }; portEntry.Changed += delegate { port = ParsePort(portEntry.Text); CheckValid(); }; consolePortEntry.Changed += delegate { consolePort = ParsePort(consolePortEntry.Text); CheckValid(); }; command = properties.Get("Command", ""); args = properties.Get("Arguments", ""); if (!IPAddress.TryParse(properties.Get("IpAddress", "127.0.0.1"), out ip) || ip == null) { ip = IPAddress.Loopback; } string portStr = properties.Get <string> ("Port"); port = ParsePort(portStr) ?? 10000; string consolePortStr = properties.Get <string> ("ConsolePort"); consolePort = ParsePort(consolePortStr); commandEntry.Path = command; argsEntry.Text = args; ipEntry.Text = ip.ToString(); portEntry.Text = PortToString(port) ?? ""; consolePortEntry.Text = PortToString(consolePort) ?? ""; CheckValid(); VBox.ShowAll(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MonoDevelop.RubyBinding.GeneralOptionsPanel Stetic.BinContainer.Attach(this); this.CanFocus = true; this.Name = "MonoDevelop.RubyBinding.GeneralOptionsPanel"; // Container child MonoDevelop.RubyBinding.GeneralOptionsPanel.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // 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.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Startup File"); this.label2.Justify = ((Gtk.Justification)(1)); this.hbox3.Add(this.label2); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox3[this.label2])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.projectFilesCB = Gtk.ComboBox.NewText(); this.projectFilesCB.Name = "projectFilesCB"; this.hbox3.Add(this.projectFilesCB); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox3[this.projectFilesCB])); w2.Position = 1; w2.Expand = false; w2.Fill = false; this.vbox1.Add(this.hbox3); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox3])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.table2 = new Gtk.Table(((uint)(2)), ((uint)(3)), false); this.table2.Name = "table2"; this.table2.RowSpacing = ((uint)(10)); this.table2.ColumnSpacing = ((uint)(10)); this.table2.BorderWidth = ((uint)(3)); // Container child table2.Gtk.Table+TableChild this.addLoadpathButton = new Gtk.Button(); this.addLoadpathButton.Sensitive = false; this.addLoadpathButton.CanFocus = true; this.addLoadpathButton.Name = "addLoadpathButton"; this.addLoadpathButton.UseStock = true; this.addLoadpathButton.UseUnderline = true; this.addLoadpathButton.Label = "gtk-add"; this.table2.Add(this.addLoadpathButton); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table2[this.addLoadpathButton])); w4.LeftAttach = ((uint)(2)); w4.RightAttach = ((uint)(3)); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.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("Load Path:"); this.table2.Add(this.label8); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table2[this.label8])); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.loadpathAddEntry = new Gtk.Entry(); this.loadpathAddEntry.CanFocus = true; this.loadpathAddEntry.Name = "loadpathAddEntry"; this.loadpathAddEntry.IsEditable = true; this.loadpathAddEntry.InvisibleChar = '*'; this.table2.Add(this.loadpathAddEntry); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table2[this.loadpathAddEntry])); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(2)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.scrolledwindow1 = new Gtk.ScrolledWindow(); this.scrolledwindow1.CanFocus = true; this.scrolledwindow1.Name = "scrolledwindow1"; this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow1.Gtk.Container+ContainerChild this.loadpathTreeView = new Gtk.TreeView(); this.loadpathTreeView.CanFocus = true; this.loadpathTreeView.Name = "loadpathTreeView"; this.scrolledwindow1.Add(this.loadpathTreeView); this.table2.Add(this.scrolledwindow1); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table2[this.scrolledwindow1])); w8.TopAttach = ((uint)(1)); w8.BottomAttach = ((uint)(2)); w8.LeftAttach = ((uint)(1)); w8.RightAttach = ((uint)(2)); // Container child table2.Gtk.Table+TableChild this.vbox4 = new Gtk.VBox(); this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 6; // Container child vbox4.Gtk.Box+BoxChild this.browseButton = new Gtk.Button(); this.browseButton.CanFocus = true; this.browseButton.Name = "browseButton"; this.browseButton.UseStock = true; this.browseButton.UseUnderline = true; this.browseButton.Label = "gtk-open"; this.vbox4.Add(this.browseButton); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox4[this.browseButton])); w9.Position = 0; w9.Expand = false; w9.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.removeLoadpathButton = new Gtk.Button(); this.removeLoadpathButton.Sensitive = false; this.removeLoadpathButton.CanFocus = true; this.removeLoadpathButton.Name = "removeLoadpathButton"; this.removeLoadpathButton.UseStock = true; this.removeLoadpathButton.UseUnderline = true; this.removeLoadpathButton.Label = "gtk-remove"; this.vbox4.Add(this.removeLoadpathButton); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox4[this.removeLoadpathButton])); w10.Position = 1; w10.Expand = false; w10.Fill = false; this.table2.Add(this.vbox4); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table2[this.vbox4])); w11.TopAttach = ((uint)(1)); w11.BottomAttach = ((uint)(2)); w11.LeftAttach = ((uint)(2)); w11.RightAttach = ((uint)(3)); w11.XOptions = ((Gtk.AttachOptions)(4)); this.vbox1.Add(this.table2); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.table2])); w12.Position = 1; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.browseButton.Clicked += new System.EventHandler(this.browseButtonClicked); this.removeLoadpathButton.Clicked += new System.EventHandler(this.removeLoadpathButtonClicked); this.loadpathTreeView.CursorChanged += new System.EventHandler(this.loadpathTreeViewCursorChanged); this.loadpathAddEntry.Changed += new System.EventHandler(this.loadpathAddEntryChanged); this.addLoadpathButton.Clicked += new System.EventHandler(this.loadpathAddButtonClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Mono.Upnp.GtkClient.ServiceAnnouncementInfo Stetic.BinContainer.Attach(this); this.Name = "Mono.Upnp.GtkClient.ServiceAnnouncementInfo"; // Container child Mono.Upnp.GtkClient.ServiceAnnouncementInfo.Gtk.Container+ContainerChild this.table1 = new Gtk.Table(((uint)(3)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(10)); this.table1.ColumnSpacing = ((uint)(10)); this.table1.BorderWidth = ((uint)(10)); // Container child table1.Gtk.Table+TableChild this.deviceUdn = new Gtk.Label(); this.deviceUdn.Name = "deviceUdn"; this.deviceUdn.Xalign = 0F; this.deviceUdn.LabelProp = "deviceUdn"; this.deviceUdn.Selectable = true; this.table1.Add(this.deviceUdn); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.deviceUdn])); w1.TopAttach = ((uint)(1)); w1.BottomAttach = ((uint)(2)); w1.LeftAttach = ((uint)(1)); w1.RightAttach = ((uint)(2)); w1.XOptions = ((Gtk.AttachOptions)(4)); w1.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 = Mono.Unix.Catalog.GetString("<b>Service Type</b>"); this.label1.UseMarkup = true; this.table1.Add(this.label1); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.label1])); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.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 = Mono.Unix.Catalog.GetString("<b>Device UDN</b>"); this.label2.UseMarkup = true; this.table1.Add(this.label2); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.label2])); w3.TopAttach = ((uint)(1)); w3.BottomAttach = ((uint)(2)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.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.Yalign = 0F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("<b>Locations</b>"); this.label3.UseMarkup = true; this.table1.Add(this.label3); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.label3])); w4.TopAttach = ((uint)(2)); w4.BottomAttach = ((uint)(3)); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.locationBox = new Gtk.VBox(); this.locationBox.Name = "locationBox"; this.locationBox.Spacing = 6; this.table1.Add(this.locationBox); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.locationBox])); w5.TopAttach = ((uint)(2)); w5.BottomAttach = ((uint)(3)); w5.LeftAttach = ((uint)(1)); w5.RightAttach = ((uint)(2)); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.serviceType = new Gtk.Label(); this.serviceType.Name = "serviceType"; this.serviceType.Xalign = 0F; this.serviceType.LabelProp = "serviceType"; this.serviceType.Selectable = true; this.table1.Add(this.serviceType); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.serviceType])); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(2)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); this.Add(this.table1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.GPXWidget Stetic.BinContainer.Attach(this); this.Name = "ocmgtk.GPXWidget"; // Container child ocmgtk.GPXWidget.Gtk.Container+ContainerChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; this.vbox3.BorderWidth = ((uint)(6)); // Container child vbox3.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(2)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.limitCheck = new Gtk.CheckButton(); this.limitCheck.CanFocus = true; this.limitCheck.Name = "limitCheck"; this.limitCheck.Label = Mono.Unix.Catalog.GetString("Limit Number of Caches"); this.limitCheck.DrawIndicator = true; this.limitCheck.UseUnderline = true; this.table1.Add(this.limitCheck); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.limitCheck])); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.limitEntry = new Gtk.Entry(); this.limitEntry.Sensitive = false; this.limitEntry.CanFocus = true; this.limitEntry.Name = "limitEntry"; this.limitEntry.Text = "1000"; this.limitEntry.IsEditable = true; this.limitEntry.InvisibleChar = '•'; this.table1.Add(this.limitEntry); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.limitEntry])); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.logLimitCheck = new Gtk.CheckButton(); this.logLimitCheck.CanFocus = true; this.logLimitCheck.Name = "logLimitCheck"; this.logLimitCheck.Label = Mono.Unix.Catalog.GetString("Limit Number of Logs"); this.logLimitCheck.Active = true; this.logLimitCheck.DrawIndicator = true; this.logLimitCheck.UseUnderline = true; this.table1.Add(this.logLimitCheck); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.logLimitCheck])); w3.TopAttach = ((uint)(1)); w3.BottomAttach = ((uint)(2)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.logLimitEntry = new Gtk.Entry(); this.logLimitEntry.CanFocus = true; this.logLimitEntry.Name = "logLimitEntry"; this.logLimitEntry.Text = Mono.Unix.Catalog.GetString("5"); this.logLimitEntry.IsEditable = true; this.logLimitEntry.InvisibleChar = '•'; this.table1.Add(this.logLimitEntry); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.logLimitEntry])); w4.TopAttach = ((uint)(1)); w4.BottomAttach = ((uint)(2)); w4.LeftAttach = ((uint)(1)); w4.RightAttach = ((uint)(2)); w4.YOptions = ((Gtk.AttachOptions)(4)); this.vbox3.Add(this.table1); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.table1])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.table2 = new Gtk.Table(((uint)(4)), ((uint)(3)), false); this.table2.Name = "table2"; this.table2.RowSpacing = ((uint)(6)); this.table2.ColumnSpacing = ((uint)(6)); // Container child table2.Gtk.Table+TableChild this.attrCheck = new Gtk.CheckButton(); this.attrCheck.CanFocus = true; this.attrCheck.Name = "attrCheck"; this.attrCheck.Label = Mono.Unix.Catalog.GetString("Include Attributes in Description"); this.attrCheck.Active = true; this.attrCheck.DrawIndicator = true; this.attrCheck.UseUnderline = true; this.table2.Add(this.attrCheck); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table2[this.attrCheck])); w6.RightAttach = ((uint)(2)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.autoNameRado = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Auto name on internal drive")); this.autoNameRado.CanFocus = true; this.autoNameRado.Name = "autoNameRado"; this.autoNameRado.Active = true; this.autoNameRado.DrawIndicator = true; this.autoNameRado.UseUnderline = true; this.autoNameRado.Group = new GLib.SList(System.IntPtr.Zero); this.table2.Add(this.autoNameRado); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table2[this.autoNameRado])); w7.TopAttach = ((uint)(1)); w7.BottomAttach = ((uint)(2)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.fieldBrowseButton = new Gtk.Button(); this.fieldBrowseButton.CanFocus = true; this.fieldBrowseButton.Name = "fieldBrowseButton"; // Container child fieldBrowseButton.Gtk.Container+ContainerChild this.image21 = new Gtk.Image(); this.image21.Name = "image21"; this.image21.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-open", Gtk.IconSize.Button, 20); this.fieldBrowseButton.Add(this.image21); this.fieldBrowseButton.Label = null; this.table2.Add(this.fieldBrowseButton); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table2[this.fieldBrowseButton])); w9.TopAttach = ((uint)(3)); w9.BottomAttach = ((uint)(4)); w9.LeftAttach = ((uint)(2)); w9.RightAttach = ((uint)(3)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.fieldNotesEntry = new Gtk.Entry(); this.fieldNotesEntry.CanFocus = true; this.fieldNotesEntry.Name = "fieldNotesEntry"; this.fieldNotesEntry.Text = "/media/GARMIN/Garmin/geocache_visits.txt"; this.fieldNotesEntry.IsEditable = true; this.fieldNotesEntry.InvisibleChar = '•'; this.table2.Add(this.fieldNotesEntry); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table2[this.fieldNotesEntry])); w10.TopAttach = ((uint)(3)); w10.BottomAttach = ((uint)(4)); w10.LeftAttach = ((uint)(1)); w10.RightAttach = ((uint)(2)); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.fileButton2 = new Gtk.Button(); this.fileButton2.CanFocus = true; this.fileButton2.Name = "fileButton2"; // Container child fileButton2.Gtk.Container+ContainerChild this.image5 = new Gtk.Image(); this.image5.Name = "image5"; this.image5.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-open", Gtk.IconSize.Menu, 16); this.fileButton2.Add(this.image5); this.fileButton2.Label = null; this.table2.Add(this.fileButton2); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table2[this.fileButton2])); w12.TopAttach = ((uint)(2)); w12.BottomAttach = ((uint)(3)); w12.LeftAttach = ((uint)(2)); w12.RightAttach = ((uint)(3)); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.fileEntry = new Gtk.Entry(); this.fileEntry.CanFocus = true; this.fileEntry.Name = "fileEntry"; this.fileEntry.Text = "/media/GARMIN/Garmin/GPX/geocaches.gpx"; this.fileEntry.IsEditable = true; this.fileEntry.InvisibleChar = '•'; this.table2.Add(this.fileEntry); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table2[this.fileEntry])); w13.TopAttach = ((uint)(2)); w13.BottomAttach = ((uint)(3)); w13.LeftAttach = ((uint)(1)); w13.RightAttach = ((uint)(2)); w13.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Field Notes File:"); this.table2.Add(this.label1); Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table2[this.label1])); w14.TopAttach = ((uint)(3)); w14.BottomAttach = ((uint)(4)); w14.XOptions = ((Gtk.AttachOptions)(4)); w14.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.useFileRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Use specified file:")); this.useFileRadio.CanFocus = true; this.useFileRadio.Name = "useFileRadio"; this.useFileRadio.DrawIndicator = true; this.useFileRadio.UseUnderline = true; this.useFileRadio.Group = this.autoNameRado.Group; this.table2.Add(this.useFileRadio); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table2[this.useFileRadio])); w15.TopAttach = ((uint)(2)); w15.BottomAttach = ((uint)(3)); w15.XOptions = ((Gtk.AttachOptions)(4)); w15.YOptions = ((Gtk.AttachOptions)(4)); this.vbox3.Add(this.table2); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox3[this.table2])); w16.Position = 1; w16.Expand = false; w16.Fill = false; this.Add(this.vbox3); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); this.logLimitCheck.Toggled += new System.EventHandler(this.OnLogLimitToggle); this.limitCheck.Toggled += new System.EventHandler(this.OnLimitToggle); this.fileButton2.Clicked += new System.EventHandler(this.OnFileClick); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.OCMQueryPage3 Stetic.BinContainer.Attach(this); this.Name = "ocmgtk.OCMQueryPage3"; // Container child ocmgtk.OCMQueryPage3.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.frame6 = new Gtk.Frame(); this.frame6.Name = "frame6"; this.frame6.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame6.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.table3 = new Gtk.Table(((uint)(3)), ((uint)(3)), false); this.table3.Name = "table3"; this.table3.RowSpacing = ((uint)(6)); this.table3.ColumnSpacing = ((uint)(6)); // Container child table3.Gtk.Table+TableChild this.hiddenCheck = new Gtk.CheckButton(); this.hiddenCheck.CanFocus = true; this.hiddenCheck.Name = "hiddenCheck"; this.hiddenCheck.Label = Mono.Unix.Catalog.GetString("Hidden:"); this.hiddenCheck.DrawIndicator = true; this.hiddenCheck.UseUnderline = true; this.table3.Add(this.hiddenCheck); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table3[this.hiddenCheck])); w1.TopAttach = ((uint)(2)); w1.BottomAttach = ((uint)(3)); w1.XOptions = ((Gtk.AttachOptions)(4)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.hiddenCombo = Gtk.ComboBox.NewText(); this.hiddenCombo.AppendText(Mono.Unix.Catalog.GetString("On or before")); this.hiddenCombo.AppendText(Mono.Unix.Catalog.GetString("On or after")); this.hiddenCombo.Sensitive = false; this.hiddenCombo.Name = "hiddenCombo"; this.hiddenCombo.Active = 0; this.table3.Add(this.hiddenCombo); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table3[this.hiddenCombo])); w2.TopAttach = ((uint)(2)); w2.BottomAttach = ((uint)(3)); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.hiddenDateEntry = new ocmgtk.DateWidget(); this.hiddenDateEntry.Sensitive = false; this.hiddenDateEntry.Events = ((Gdk.EventMask)(256)); this.hiddenDateEntry.Name = "hiddenDateEntry"; this.hiddenDateEntry.IncludeTime = false; this.hiddenDateEntry.Date = new System.DateTime(0); this.table3.Add(this.hiddenDateEntry); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table3[this.hiddenDateEntry])); w3.TopAttach = ((uint)(2)); w3.BottomAttach = ((uint)(3)); w3.LeftAttach = ((uint)(2)); w3.RightAttach = ((uint)(3)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.placedAnyRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Placed by anyone")); this.placedAnyRadio.CanFocus = true; this.placedAnyRadio.Name = "placedAnyRadio"; this.placedAnyRadio.Active = true; this.placedAnyRadio.DrawIndicator = true; this.placedAnyRadio.UseUnderline = true; this.placedAnyRadio.Group = new GLib.SList(System.IntPtr.Zero); this.table3.Add(this.placedAnyRadio); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table3[this.placedAnyRadio])); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.placedByRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Placed by:")); this.placedByRadio.CanFocus = true; this.placedByRadio.Name = "placedByRadio"; this.placedByRadio.DrawIndicator = true; this.placedByRadio.UseUnderline = true; this.placedByRadio.Group = this.placedAnyRadio.Group; this.table3.Add(this.placedByRadio); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table3[this.placedByRadio])); w5.TopAttach = ((uint)(1)); w5.BottomAttach = ((uint)(2)); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.placedEntry = new Gtk.Entry(); this.placedEntry.Sensitive = false; this.placedEntry.CanFocus = true; this.placedEntry.Name = "placedEntry"; this.placedEntry.IsEditable = true; this.placedEntry.InvisibleChar = '•'; this.table3.Add(this.placedEntry); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table3[this.placedEntry])); w6.TopAttach = ((uint)(1)); w6.BottomAttach = ((uint)(2)); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(3)); w6.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment3.Add(this.table3); this.frame6.Add(this.GtkAlignment3); this.GtkLabel14 = new Gtk.Label(); this.GtkLabel14.Name = "GtkLabel14"; this.GtkLabel14.LabelProp = Mono.Unix.Catalog.GetString("<b>Cache Placement</b>"); this.GtkLabel14.UseMarkup = true; this.frame6.LabelWidget = this.GtkLabel14; this.vbox2.Add(this.frame6); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame6])); w9.Position = 0; w9.Expand = false; w9.Fill = false; // Container child vbox2.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)); // Container child GtkAlignment.Gtk.Container+ContainerChild this.table1 = new Gtk.Table(((uint)(4)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.countryCheck = new Gtk.CheckButton(); this.countryCheck.CanFocus = true; this.countryCheck.Name = "countryCheck"; this.countryCheck.Label = Mono.Unix.Catalog.GetString("Country:"); this.countryCheck.DrawIndicator = true; this.countryCheck.UseUnderline = true; this.table1.Add(this.countryCheck); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.countryCheck])); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.countryEntry = new Gtk.Entry(); this.countryEntry.Sensitive = false; this.countryEntry.CanFocus = true; this.countryEntry.Name = "countryEntry"; this.countryEntry.IsEditable = true; this.countryEntry.InvisibleChar = '•'; this.table1.Add(this.countryEntry); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.countryEntry])); w11.LeftAttach = ((uint)(1)); w11.RightAttach = ((uint)(2)); w11.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.distCheck = new Gtk.CheckButton(); this.distCheck.CanFocus = true; this.distCheck.Name = "distCheck"; this.distCheck.Label = Mono.Unix.Catalog.GetString("Distance is:"); this.distCheck.DrawIndicator = true; this.distCheck.UseUnderline = true; this.table1.Add(this.distCheck); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.distCheck])); w12.TopAttach = ((uint)(2)); w12.BottomAttach = ((uint)(3)); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.distFrame = new Gtk.Frame(); this.distFrame.Sensitive = false; this.distFrame.Name = "distFrame"; this.distFrame.ShadowType = ((Gtk.ShadowType)(1)); // Container child distFrame.Gtk.Container+ContainerChild this.GtkAlignment1 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment1.Name = "GtkAlignment1"; this.GtkAlignment1.LeftPadding = ((uint)(12)); // Container child GtkAlignment1.Gtk.Container+ContainerChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; this.vbox3.BorderWidth = ((uint)(6)); // Container child vbox3.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.distCombo = Gtk.ComboBox.NewText(); this.distCombo.AppendText(Mono.Unix.Catalog.GetString("Less than")); this.distCombo.AppendText(Mono.Unix.Catalog.GetString("Greater than")); this.distCombo.AppendText(Mono.Unix.Catalog.GetString("Equal to")); this.distCombo.Name = "distCombo"; this.distCombo.Active = 0; this.hbox2.Add(this.distCombo); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox2[this.distCombo])); w13.Position = 0; w13.Expand = false; w13.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.distEntry = new Gtk.Entry(); this.distEntry.CanFocus = true; this.distEntry.Name = "distEntry"; this.distEntry.IsEditable = true; this.distEntry.InvisibleChar = '•'; this.hbox2.Add(this.distEntry); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox2[this.distEntry])); w14.Position = 1; // Container child hbox2.Gtk.Box+BoxChild this.distMeasureLabel = new Gtk.Label(); this.distMeasureLabel.Name = "distMeasureLabel"; this.distMeasureLabel.LabelProp = Mono.Unix.Catalog.GetString("km"); this.hbox2.Add(this.distMeasureLabel); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox2[this.distMeasureLabel])); w15.Position = 2; w15.Expand = false; this.vbox3.Add(this.hbox2); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox2])); w16.Position = 0; w16.Expand = false; w16.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.radiobutton1 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("From current centre point")); this.radiobutton1.CanFocus = true; this.radiobutton1.Name = "radiobutton1"; this.radiobutton1.Active = true; this.radiobutton1.DrawIndicator = true; this.radiobutton1.UseUnderline = true; this.radiobutton1.Group = new GLib.SList(System.IntPtr.Zero); this.vbox3.Add(this.radiobutton1); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox3[this.radiobutton1])); w17.Position = 1; w17.Expand = false; w17.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.locRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("From location:")); this.locRadio.CanFocus = true; this.locRadio.Name = "locRadio"; this.locRadio.DrawIndicator = true; this.locRadio.UseUnderline = true; this.locRadio.Group = this.radiobutton1.Group; this.hbox3.Add(this.locRadio); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox3[this.locRadio])); w18.Position = 0; w18.Expand = false; // Container child hbox3.Gtk.Box+BoxChild this.locationCombo = Gtk.ComboBox.NewText(); this.locationCombo.Sensitive = false; this.locationCombo.Name = "locationCombo"; this.hbox3.Add(this.locationCombo); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.hbox3[this.locationCombo])); w19.Position = 1; w19.Expand = false; w19.Fill = false; this.vbox3.Add(this.hbox3); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3])); w20.Position = 2; w20.Expand = false; w20.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.posRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("From position:")); this.posRadio.CanFocus = true; this.posRadio.Name = "posRadio"; this.posRadio.DrawIndicator = true; this.posRadio.UseUnderline = true; this.posRadio.Group = this.radiobutton1.Group; this.hbox4.Add(this.posRadio); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox4[this.posRadio])); w21.Position = 0; // Container child hbox4.Gtk.Box+BoxChild this.posLocation = new ocmgtk.LocationWidget(); this.posLocation.Sensitive = false; this.posLocation.Events = ((Gdk.EventMask)(256)); this.posLocation.Name = "posLocation"; this.posLocation.Latitude = 0; this.posLocation.Longitude = 0; this.hbox4.Add(this.posLocation); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox4[this.posLocation])); w22.Position = 1; w22.Expand = false; w22.Fill = false; this.vbox3.Add(this.hbox4); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox4])); w23.Position = 3; w23.Expand = false; w23.Fill = false; this.GtkAlignment1.Add(this.vbox3); this.distFrame.Add(this.GtkAlignment1); this.table1.Add(this.distFrame); Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.table1[this.distFrame])); w26.TopAttach = ((uint)(3)); w26.BottomAttach = ((uint)(4)); w26.RightAttach = ((uint)(2)); w26.XOptions = ((Gtk.AttachOptions)(4)); w26.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.stateCheck = new Gtk.CheckButton(); this.stateCheck.CanFocus = true; this.stateCheck.Name = "stateCheck"; this.stateCheck.Label = Mono.Unix.Catalog.GetString("State or province:"); this.stateCheck.DrawIndicator = true; this.stateCheck.UseUnderline = true; this.table1.Add(this.stateCheck); Gtk.Table.TableChild w27 = ((Gtk.Table.TableChild)(this.table1[this.stateCheck])); w27.TopAttach = ((uint)(1)); w27.BottomAttach = ((uint)(2)); w27.XOptions = ((Gtk.AttachOptions)(4)); w27.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.stateEntry = new Gtk.Entry(); this.stateEntry.Sensitive = false; this.stateEntry.CanFocus = true; this.stateEntry.Name = "stateEntry"; this.stateEntry.IsEditable = true; this.stateEntry.InvisibleChar = '•'; this.table1.Add(this.stateEntry); Gtk.Table.TableChild w28 = ((Gtk.Table.TableChild)(this.table1[this.stateEntry])); w28.TopAttach = ((uint)(1)); w28.BottomAttach = ((uint)(2)); w28.LeftAttach = ((uint)(1)); w28.RightAttach = ((uint)(2)); w28.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment.Add(this.table1); this.frame1.Add(this.GtkAlignment); this.GtkLabel8 = new Gtk.Label(); this.GtkLabel8.Name = "GtkLabel8"; this.GtkLabel8.LabelProp = Mono.Unix.Catalog.GetString("<b>Cache Location</b>"); this.GtkLabel8.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel8; this.vbox2.Add(this.frame1); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame1])); w31.Position = 1; w31.Expand = false; w31.Fill = false; this.Add(this.vbox2); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); this.placedByRadio.Toggled += new System.EventHandler(this.OnPlacedByToggle); this.hiddenCheck.Toggled += new System.EventHandler(this.OnHiddenToggle); this.stateCheck.Toggled += new System.EventHandler(this.OnStateCheckToggle); this.locRadio.Toggled += new System.EventHandler(this.OnLocationToggle); this.posRadio.Toggled += new System.EventHandler(this.OnPositionToggle); this.distCheck.Toggled += new System.EventHandler(this.OnDistanceToggle); this.countryCheck.Toggled += new System.EventHandler(this.OnCountryToggle); }