private Gtk.NodeStore InitGridAndCreateStore() { Gtk.NodeStore store = new Gtk.NodeStore(typeof(RepairRow)); Gtk.NodeView myNodeView = new Gtk.NodeView(store); myNodeView.AppendColumn("Owner", new Gtk.CellRendererText(), "text", 0); myNodeView.AppendColumn("Vehicle type", new Gtk.CellRendererText(), "text", 1); myNodeView.AppendColumn("Registration", new Gtk.CellRendererText(), "text", 2); myNodeView.AppendColumn("WorkDescription", new Gtk.CellRendererText(), "text", 3); myNodeView.AppendColumn("ReceivedDate", new Gtk.CellRendererText(), "text", 4); myNodeView.ButtonPressEvent += OnTreeViewButtonPressEvent; myNodeView.ShowAll(); Add(myNodeView); return(store); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Mono.Profiler.HeapSnapshotExplorer Stetic.BinContainer.Attach(this); this.Name = "Mono.Profiler.HeapSnapshotExplorer"; // Container child Mono.Profiler.HeapSnapshotExplorer.Gtk.Container+ContainerChild this.hpaned1 = new Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 124; // Container child hpaned1.Gtk.Paned+PanedChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.Tree = new Gtk.TreeView(); this.Tree.CanFocus = true; this.Tree.Name = "Tree"; this.GtkScrolledWindow.Add(this.Tree); this.hpaned1.Add(this.GtkScrolledWindow); Gtk.Paned.PanedChild w2 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.GtkScrolledWindow])); w2.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild this.GtkScrolledWindow1 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild this.PerClassStatistics = new Gtk.NodeView(); this.PerClassStatistics.CanFocus = true; this.PerClassStatistics.Name = "PerClassStatistics"; this.GtkScrolledWindow1.Add(this.PerClassStatistics); this.hpaned1.Add(this.GtkScrolledWindow1); this.Add(this.hpaned1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.Tree.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnTreeButtonPress); this.PerClassStatistics.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnListButtonPress); }
private void BuildTable() { Gtk.NodeStore store = new Gtk.NodeStore(typeof(ContactTreeNode)); // https://bugzilla.xamarin.com/show_bug.cgi?id=51688 foreach (var user in _account.Contacts) { store.AddNode(new ContactTreeNode(user)); } chatsView = new Gtk.NodeView(store); chatsView.AppendColumn("First name", new Gtk.CellRendererText(), "text", 0); chatsView.AppendColumn("Last name", new Gtk.CellRendererText(), "text", 1); chatsView.AppendColumn("Country", new Gtk.CellRendererText(), "text", 2); chatsView.NodeStore = store; chatsView.NodeSelection.Changed += OnSelectionChanged; hbox2.Add(chatsView); var box = (Gtk.Box.BoxChild)hbox2[chatsView]; box.Position = 1; hbox2.ShowAll(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget RequestTracker.RTPrefs Stetic.BinContainer.Attach(this); this.Name = "RequestTracker.RTPrefs"; // Container child RequestTracker.RTPrefs.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Use the list below to add/configure your Request Tracker sites.\n\n<i>The ticket number will be inserted into the URL at the place specified by the string: {0}</i>"); this.label1.UseMarkup = true; this.label1.Wrap = true; this.label1.Justify = ((Gtk.Justification)(2)); this.vbox1.Add(this.label1); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.label1])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.RTTree = new Gtk.NodeView(); this.RTTree.CanFocus = true; this.RTTree.Name = "RTTree"; this.GtkScrolledWindow.Add(this.RTTree); this.hbox1.Add(this.GtkScrolledWindow); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow])); w3.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.vbuttonbox1 = new Gtk.VButtonBox(); this.vbuttonbox1.Name = "vbuttonbox1"; this.vbuttonbox1.LayoutStyle = ((Gtk.ButtonBoxStyle)(3)); // Container child vbuttonbox1.Gtk.ButtonBox+ButtonBoxChild this.add_btn = new Gtk.Button(); this.add_btn.CanFocus = true; this.add_btn.Name = "add_btn"; this.add_btn.UseStock = true; this.add_btn.UseUnderline = true; this.add_btn.Label = "gtk-add"; this.vbuttonbox1.Add(this.add_btn); Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.add_btn])); w4.Expand = false; w4.Fill = false; // Container child vbuttonbox1.Gtk.ButtonBox+ButtonBoxChild this.remove_btn = new Gtk.Button(); this.remove_btn.CanFocus = true; this.remove_btn.Name = "remove_btn"; this.remove_btn.UseStock = true; this.remove_btn.UseUnderline = true; this.remove_btn.Label = "gtk-remove"; this.vbuttonbox1.Add(this.remove_btn); Gtk.ButtonBox.ButtonBoxChild w5 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.remove_btn])); w5.Position = 1; w5.Expand = false; w5.Fill = false; this.hbox1.Add(this.vbuttonbox1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbuttonbox1])); w6.Position = 1; w6.Expand = false; w6.Fill = false; this.vbox1.Add(this.hbox1); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); w7.Position = 1; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); this.add_btn.Clicked += new System.EventHandler(this.OnAddBtnClicked); this.remove_btn.Clicked += new System.EventHandler(this.OnRemoveBtnClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Mono.Profiler.LoadedClassChooser this.Name = "Mono.Profiler.LoadedClassChooser"; this.Title = Mono.Unix.Catalog.GetString("Choose item"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; // Internal child Mono.Profiler.LoadedClassChooser.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.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.ClassList = new Gtk.NodeView(); this.ClassList.CanFocus = true; this.ClassList.Name = "ClassList"; this.ClassList.Reorderable = true; this.ClassList.SearchColumn = 0; this.GtkScrolledWindow.Add(this.ClassList); w1.Add(this.GtkScrolledWindow); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[this.GtkScrolledWindow])); w3.Position = 0; // Internal child Mono.Profiler.LoadedClassChooser.ActionArea Gtk.HButtonBox w4 = this.ActionArea; w4.Name = "dialog1_ActionArea"; w4.Spacing = 6; w4.BorderWidth = ((uint)(5)); w4.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 w5 = ((Gtk.ButtonBox.ButtonBoxChild)(w4[this.buttonCancel])); w5.Expand = false; w5.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 w6 = ((Gtk.ButtonBox.ButtonBoxChild)(w4[this.buttonOk])); w6.Position = 1; w6.Expand = false; w6.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 300; this.Show(); this.Response += new Gtk.ResponseHandler(this.OnOK); this.Close += new System.EventHandler(this.OnCancel); }
protected Gtk.Widget SetupOverviewPage() { var box = new Gtk.VBox(); var btnBox = new Gtk.HBox(); box.PackStart(btnBox, false, true, 2); addNoteBtn = new Gtk.Button() { Label = "Add note", HeightRequest = 25, }; addNoteBtn.Clicked += OnAddNoteBtnClicked; btnBox.PackStart(addNoteBtn, true, true, 0); saveNoteBtn = new Gtk.Button() { Label = "Save note", HeightRequest = 25, }; saveNoteBtn.Clicked += OnSaveNoteBtnClicked; btnBox.PackStart(saveNoteBtn, true, true, 0); rmNoteBtn = new Gtk.Button() { Label = "Remove note", HeightRequest = 25, }; rmNoteBtn.Clicked += OnRmNoteBtnClicked; btnBox.PackStart(rmNoteBtn, true, true, 0); listView = new Gtk.NodeView(noteStore); listView.AppendColumn("Title", new Gtk.CellRendererText(), "text", 0); listView.AppendColumn("Created", new Gtk.CellRendererText(), "text", 1); listView.HeadersVisible = true; listView.NodeSelection.Changed += OnListViewNodeSelectionChanged; var listViewScrollable = new Gtk.ScrolledWindow(); listViewScrollable.Add(listView); box.PackStart(listViewScrollable, true, true, 2); var separator = new Gtk.HSeparator(); box.PackStart(separator, false, false, 2); noteView = new Gtk.TextView(); var noteViewScrollable = new Gtk.ScrolledWindow(); noteViewScrollable.Add(noteView); box.PackStart(noteViewScrollable, true, true, 2); return box; }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Embroidr.UI.MainWindow Gtk.UIManager w1 = new Gtk.UIManager(); Gtk.ActionGroup w2 = 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"); w2.Add(this.FileAction, null); this.findAction = new Gtk.Action("findAction", null, null, "gtk-find"); w2.Add(this.findAction, null); this.FindAction = new Gtk.Action("FindAction", Mono.Unix.Catalog.GetString("Find"), null, null); this.FindAction.ShortLabel = Mono.Unix.Catalog.GetString("Find"); w2.Add(this.FindAction, null); w1.InsertActionGroup(w2, 0); this.AddAccelGroup(w1.AccelGroup); this.Name = "Embroidr.UI.MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Embroidr"); this.Icon = Stetic.IconLoader.LoadIcon(this, "stock_insert_special_character", Gtk.IconSize.Menu, 16); this.WindowPosition = ((Gtk.WindowPosition)(2)); // Container child Embroidr.UI.MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><menubar name='menubar2'><menu action='FileAction'><menuitem action='FindAction'/></menu></menubar></ui>"); this.menubar2 = ((Gtk.MenuBar)(w1.GetWidget("/menubar2"))); this.menubar2.Name = "menubar2"; this.vbox1.Add(this.menubar2); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar2])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><toolbar name='toolbar3'><toolitem action='findAction'/></toolbar></ui>"); this.toolbar3 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar3"))); this.toolbar3.Name = "toolbar3"; this.toolbar3.ShowArrow = false; this.toolbar3.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.vbox1.Add(this.toolbar3); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar3])); w4.Position = 1; w4.Expand = false; w4.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hpaned2 = new Gtk.HPaned(); this.hpaned2.CanFocus = true; this.hpaned2.Name = "hpaned2"; this.hpaned2.Position = 160; // Container child hpaned2.Gtk.Paned+PanedChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // 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.treeview1 = new Gtk.TreeView(); this.treeview1.CanFocus = true; this.treeview1.Name = "treeview1"; this.treeview1.HeadersClickable = true; this.GtkScrolledWindow1.Add(this.treeview1); this.vbox2.Add(this.GtkScrolledWindow1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow1])); w6.Position = 0; this.hpaned2.Add(this.vbox2); Gtk.Paned.PanedChild w7 = ((Gtk.Paned.PanedChild)(this.hpaned2[this.vbox2])); w7.Resize = false; // Container child hpaned2.Gtk.Paned+PanedChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.nodeview1 = new Gtk.NodeView(); this.nodeview1.CanFocus = true; this.nodeview1.Name = "nodeview1"; this.nodeview1.HeadersClickable = true; this.GtkScrolledWindow.Add(this.nodeview1); this.hpaned2.Add(this.GtkScrolledWindow); this.vbox1.Add(this.hpaned2); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned2])); w10.Position = 2; // Container child vbox1.Gtk.Box+BoxChild this.statusbar1 = new Gtk.Statusbar(); this.statusbar1.Name = "statusbar1"; this.statusbar1.Spacing = 6; this.vbox1.Add(this.statusbar1); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1])); w11.Position = 3; w11.Expand = false; w11.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 699; this.DefaultHeight = 638; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.findAction.Activated += new System.EventHandler(this.OnFindActionActivated); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget HGDGTK.MainWindow this.Name = "HGDGTK.MainWindow"; this.Title = Mono.Unix.Catalog.GetString("MainWindow"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child HGDGTK.MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 5; this.vbox1.BorderWidth = ((uint)(5)); // 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.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Now Playing:"); this.hbox1.Add(this.label1); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.hbox1.Add(this.label2); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.label2])); w2.Position = 1; // Container child hbox1.Gtk.Box+BoxChild this.button1 = new Gtk.Button(); this.button1.CanFocus = true; this.button1.Name = "button1"; this.button1.UseUnderline = true; this.button1.FocusOnClick = false; this.button1.Label = Mono.Unix.Catalog.GetString("Crap Song!"); this.hbox1.Add(this.button1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.button1])); w3.Position = 2; w3.Expand = false; w3.Fill = false; this.vbox1.Add(this.hbox1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hseparator1 = new Gtk.HSeparator(); this.hseparator1.Name = "hseparator1"; this.vbox1.Add(this.hseparator1); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.hseparator1])); w5.Position = 1; w5.Expand = false; w5.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hpaned1 = new Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 495; // Container child hpaned1.Gtk.Paned+PanedChild this.filepane = new Gtk.FileChooserWidget(((Gtk.FileChooserAction)(0))); this.filepane.Name = "filepane"; this.filepane.LocalOnly = false; this.filepane.SelectMultiple = true; this.filepane.DoOverwriteConfirmation = true; this.hpaned1.Add(this.filepane); Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.filepane])); w6.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild this.GtkScrolledWindow2 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow2.Name = "GtkScrolledWindow2"; this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild this.playlist = new Gtk.NodeView(); this.playlist.CanFocus = true; this.playlist.Name = "playlist"; this.GtkScrolledWindow2.Add(this.playlist); this.hpaned1.Add(this.GtkScrolledWindow2); this.vbox1.Add(this.hpaned1); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1])); w9.Position = 2; // Container child vbox1.Gtk.Box+BoxChild this.statusbar1 = new Gtk.Statusbar(); this.statusbar1.Name = "statusbar1"; this.statusbar1.Spacing = 6; this.vbox1.Add(this.statusbar1); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1])); w10.PackType = ((Gtk.PackType)(1)); w10.Position = 3; w10.Expand = false; w10.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 816; this.DefaultHeight = 643; this.Show(); this.playlist.DragEnd += new Gtk.DragEndHandler(this.OnNodeview1DragEnd); this.playlist.DragDrop += new Gtk.DragDropHandler(this.OnNodeview1DragDrop); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget JetonAdmin.UserScreen Stetic.BinContainer.Attach(this); this.Name = "JetonAdmin.UserScreen"; // Container child JetonAdmin.UserScreen.Gtk.Container+ContainerChild this.hpaned1 = new Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 221; // 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.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 0F; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Benutzer:"); this.vbox2.Add(this.label2); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.label2])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child vbox2.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.cardListView = new Gtk.NodeView(); this.cardListView.CanFocus = true; this.cardListView.Name = "cardListView"; this.GtkScrolledWindow.Add(this.cardListView); this.vbox2.Add(this.GtkScrolledWindow); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow])); w3.Position = 1; // Container child vbox2.Gtk.Box+BoxChild this.hbuttonbox1 = new Gtk.HButtonBox(); this.hbuttonbox1.Homogeneous = true; // Container child hbuttonbox1.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.hbuttonbox1.Add(this.button1); Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.button1])); w4.Expand = false; w4.Fill = false; // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild this.cardDeleteBtn = new Gtk.Button(); this.cardDeleteBtn.CanFocus = true; this.cardDeleteBtn.Name = "cardDeleteBtn"; this.cardDeleteBtn.UseStock = true; this.cardDeleteBtn.UseUnderline = true; this.cardDeleteBtn.Label = "gtk-remove"; this.hbuttonbox1.Add(this.cardDeleteBtn); Gtk.ButtonBox.ButtonBoxChild w5 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.cardDeleteBtn])); w5.Position = 1; w5.Expand = false; w5.Fill = false; this.vbox2.Add(this.hbuttonbox1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbuttonbox1])); w6.Position = 2; w6.Expand = false; w6.Fill = false; w6.Padding = ((uint)(5)); this.hpaned1.Add(this.vbox2); Gtk.Paned.PanedChild w7 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vbox2])); w7.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild this.vbox6 = new Gtk.VBox(); this.vbox6.Name = "vbox6"; this.vbox6.Spacing = 6; // Container child vbox6.Gtk.Box+BoxChild this.label12 = new Gtk.Label(); this.label12.Name = "label12"; this.label12.LabelProp = Mono.Unix.Catalog.GetString("Details zur gewählten Karte:"); this.vbox6.Add(this.label12); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox6[this.label12])); w8.Position = 0; w8.Expand = false; w8.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(6)), ((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.cardCreditEntry = new Gtk.Entry(); this.cardCreditEntry.CanFocus = true; this.cardCreditEntry.Name = "cardCreditEntry"; this.cardCreditEntry.IsEditable = true; this.cardCreditEntry.InvisibleChar = '●'; this.table1.Add(this.cardCreditEntry); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.cardCreditEntry])); w9.TopAttach = ((uint)(3)); w9.BottomAttach = ((uint)(4)); 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.cardEscrowEntry = new Gtk.Entry(); this.cardEscrowEntry.CanFocus = true; this.cardEscrowEntry.Name = "cardEscrowEntry"; this.cardEscrowEntry.IsEditable = true; this.cardEscrowEntry.InvisibleChar = '●'; this.table1.Add(this.cardEscrowEntry); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.cardEscrowEntry])); w10.TopAttach = ((uint)(4)); w10.BottomAttach = ((uint)(5)); 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.cardIdEntry = new Gtk.Entry(); this.cardIdEntry.CanFocus = true; this.cardIdEntry.Name = "cardIdEntry"; this.cardIdEntry.IsEditable = false; this.cardIdEntry.InvisibleChar = '●'; this.table1.Add(this.cardIdEntry); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.cardIdEntry])); 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.cardNameEntry = new Gtk.Entry(); this.cardNameEntry.CanFocus = true; this.cardNameEntry.Name = "cardNameEntry"; this.cardNameEntry.IsEditable = true; this.cardNameEntry.InvisibleChar = '●'; this.table1.Add(this.cardNameEntry); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.cardNameEntry])); w12.TopAttach = ((uint)(1)); w12.BottomAttach = ((uint)(2)); w12.LeftAttach = ((uint)(1)); w12.RightAttach = ((uint)(2)); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.GtkScrolledWindow1 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild this.nodeview3 = new Gtk.NodeView(); this.nodeview3.CanFocus = true; this.nodeview3.Name = "nodeview3"; this.GtkScrolledWindow1.Add(this.nodeview3); this.table1.Add(this.GtkScrolledWindow1); Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow1])); w14.TopAttach = ((uint)(5)); w14.BottomAttach = ((uint)(6)); w14.LeftAttach = ((uint)(1)); w14.RightAttach = ((uint)(2)); // Container child table1.Gtk.Table+TableChild this.label10 = new Gtk.Label(); this.label10.Name = "label10"; this.label10.LabelProp = Mono.Unix.Catalog.GetString("Treuhand-Konto:"); this.table1.Add(this.label10); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.label10])); w15.TopAttach = ((uint)(4)); w15.BottomAttach = ((uint)(5)); w15.XOptions = ((Gtk.AttachOptions)(4)); w15.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label11 = new Gtk.Label(); this.label11.Name = "label11"; this.label11.LabelProp = Mono.Unix.Catalog.GetString("Transaktionen:"); this.table1.Add(this.label11); Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.label11])); w16.TopAttach = ((uint)(5)); w16.BottomAttach = ((uint)(6)); w16.XOptions = ((Gtk.AttachOptions)(4)); w16.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("Karten ID:"); this.table1.Add(this.label3); Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table1[this.label3])); w17.XOptions = ((Gtk.AttachOptions)(4)); w17.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("Screen Name:"); this.table1.Add(this.label4); Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.label4])); w18.TopAttach = ((uint)(1)); w18.BottomAttach = ((uint)(2)); w18.XOptions = ((Gtk.AttachOptions)(4)); w18.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("Rollen:"); this.table1.Add(this.label6); Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.label6])); w19.TopAttach = ((uint)(2)); w19.BottomAttach = ((uint)(3)); w19.XOptions = ((Gtk.AttachOptions)(4)); w19.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label9 = new Gtk.Label(); this.label9.Name = "label9"; this.label9.LabelProp = Mono.Unix.Catalog.GetString("Guthaben:"); this.table1.Add(this.label9); Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(this.table1[this.label9])); w20.TopAttach = ((uint)(3)); w20.BottomAttach = ((uint)(4)); w20.XOptions = ((Gtk.AttachOptions)(4)); w20.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.cardPermLaborant = new Gtk.CheckButton(); this.cardPermLaborant.CanFocus = true; this.cardPermLaborant.Name = "cardPermLaborant"; this.cardPermLaborant.Label = Mono.Unix.Catalog.GetString("Laborant"); this.cardPermLaborant.DrawIndicator = true; this.cardPermLaborant.UseUnderline = true; this.vbox3.Add(this.cardPermLaborant); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox3[this.cardPermLaborant])); w21.Position = 0; w21.Expand = false; w21.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.cardRoleDoor = new Gtk.CheckButton(); this.cardRoleDoor.Sensitive = false; this.cardRoleDoor.CanFocus = true; this.cardRoleDoor.Name = "cardRoleDoor"; this.cardRoleDoor.Label = Mono.Unix.Catalog.GetString("Türöffner"); this.cardRoleDoor.DrawIndicator = true; this.cardRoleDoor.UseUnderline = true; this.vbox3.Add(this.cardRoleDoor); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox3[this.cardRoleDoor])); w22.Position = 1; w22.Expand = false; w22.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.cardPermEscrow = new Gtk.CheckButton(); this.cardPermEscrow.CanFocus = true; this.cardPermEscrow.Name = "cardPermEscrow"; this.cardPermEscrow.Label = Mono.Unix.Catalog.GetString("Treuhänder"); this.cardPermEscrow.DrawIndicator = true; this.cardPermEscrow.UseUnderline = true; this.vbox3.Add(this.cardPermEscrow); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox3[this.cardPermEscrow])); w23.Position = 2; w23.Expand = false; w23.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.cardPermCreator = new Gtk.CheckButton(); this.cardPermCreator.CanFocus = true; this.cardPermCreator.Name = "cardPermCreator"; this.cardPermCreator.Label = Mono.Unix.Catalog.GetString("(Karten-) Erzeuger"); this.cardPermCreator.DrawIndicator = true; this.cardPermCreator.UseUnderline = true; this.vbox3.Add(this.cardPermCreator); Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.vbox3[this.cardPermCreator])); w24.Position = 3; w24.Expand = false; w24.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.cardPermGod = new Gtk.CheckButton(); this.cardPermGod.CanFocus = true; this.cardPermGod.Name = "cardPermGod"; this.cardPermGod.Label = Mono.Unix.Catalog.GetString("Gott"); this.cardPermGod.Active = true; this.cardPermGod.DrawIndicator = true; this.cardPermGod.UseUnderline = true; this.vbox3.Add(this.cardPermGod); Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox3[this.cardPermGod])); w25.PackType = ((Gtk.PackType)(1)); w25.Position = 4; w25.Expand = false; w25.Fill = false; this.table1.Add(this.vbox3); Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.table1[this.vbox3])); w26.TopAttach = ((uint)(2)); w26.BottomAttach = ((uint)(3)); w26.LeftAttach = ((uint)(1)); w26.RightAttach = ((uint)(2)); w26.XOptions = ((Gtk.AttachOptions)(4)); w26.YOptions = ((Gtk.AttachOptions)(4)); this.vbox6.Add(this.table1); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox6[this.table1])); w27.Position = 1; // Container child vbox6.Gtk.Box+BoxChild this.hbuttonbox2 = new Gtk.HButtonBox(); this.hbuttonbox2.Name = "hbuttonbox2"; this.hbuttonbox2.BorderWidth = ((uint)(6)); this.vbox6.Add(this.hbuttonbox2); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbuttonbox2])); w28.Position = 2; w28.Expand = false; w28.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.hbuttonbox3 = new Gtk.HButtonBox(); this.hbuttonbox3.Name = "hbuttonbox3"; this.vbox6.Add(this.hbuttonbox3); Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbuttonbox3])); w29.Position = 3; w29.Expand = false; w29.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.hbuttonbox4 = new Gtk.HButtonBox(); this.hbuttonbox4.Name = "hbuttonbox4"; this.vbox6.Add(this.hbuttonbox4); Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbuttonbox4])); w30.Position = 4; w30.Expand = false; w30.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.hbuttonbox5 = new Gtk.HButtonBox(); this.hbuttonbox5.Name = "hbuttonbox5"; this.vbox6.Add(this.hbuttonbox5); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbuttonbox5])); w31.Position = 5; w31.Expand = false; w31.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.hbuttonbox6 = new Gtk.HButtonBox(); this.hbuttonbox6.Name = "hbuttonbox6"; this.vbox6.Add(this.hbuttonbox6); Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbuttonbox6])); w32.Position = 6; w32.Expand = false; w32.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.hbuttonbox7 = new Gtk.HButtonBox(); this.hbuttonbox7.Name = "hbuttonbox7"; this.hbuttonbox7.Spacing = 20; this.hbuttonbox7.BorderWidth = ((uint)(10)); this.hbuttonbox7.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child hbuttonbox7.Gtk.ButtonBox+ButtonBoxChild this.writeToCardBtn = new Gtk.Button(); this.writeToCardBtn.CanFocus = true; this.writeToCardBtn.Name = "writeToCardBtn"; this.writeToCardBtn.UseUnderline = true; // Container child writeToCardBtn.Gtk.Container+ContainerChild Gtk.Alignment w33 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w34 = new Gtk.HBox(); w34.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w35 = new Gtk.Image(); w35.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-save", Gtk.IconSize.Menu, 16); w34.Add(w35); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w37 = new Gtk.Label(); w37.LabelProp = Mono.Unix.Catalog.GetString("Auf Karte schreiben"); w37.UseUnderline = true; w34.Add(w37); w33.Add(w34); this.writeToCardBtn.Add(w33); this.hbuttonbox7.Add(this.writeToCardBtn); Gtk.ButtonBox.ButtonBoxChild w41 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox7[this.writeToCardBtn])); w41.Expand = false; w41.Fill = false; // Container child hbuttonbox7.Gtk.ButtonBox+ButtonBoxChild this.undoBtn = new Gtk.Button(); this.undoBtn.CanFocus = true; this.undoBtn.Name = "undoBtn"; this.undoBtn.UseStock = true; this.undoBtn.UseUnderline = true; this.undoBtn.Label = "gtk-undo"; this.hbuttonbox7.Add(this.undoBtn); Gtk.ButtonBox.ButtonBoxChild w42 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox7[this.undoBtn])); w42.Position = 1; w42.Expand = false; w42.Fill = false; // Container child hbuttonbox7.Gtk.ButtonBox+ButtonBoxChild this.saveBtn = new Gtk.Button(); this.saveBtn.CanFocus = true; this.saveBtn.Name = "saveBtn"; this.saveBtn.UseStock = true; this.saveBtn.UseUnderline = true; this.saveBtn.Label = "gtk-save"; this.hbuttonbox7.Add(this.saveBtn); Gtk.ButtonBox.ButtonBoxChild w43 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox7[this.saveBtn])); w43.Position = 2; w43.Expand = false; w43.Fill = false; this.vbox6.Add(this.hbuttonbox7); Gtk.Box.BoxChild w44 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbuttonbox7])); w44.Position = 7; w44.Expand = false; w44.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.hbuttonbox8 = new Gtk.HButtonBox(); this.hbuttonbox8.Name = "hbuttonbox8"; this.vbox6.Add(this.hbuttonbox8); Gtk.Box.BoxChild w45 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbuttonbox8])); w45.Position = 8; w45.Expand = false; w45.Fill = false; this.hpaned1.Add(this.vbox6); this.Add(this.hpaned1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.button1.Clicked += new System.EventHandler(this.OnCardAdd); this.cardDeleteBtn.Clicked += new System.EventHandler(this.OnCardDelete); this.cardPermLaborant.Clicked += new System.EventHandler(this.OnRoleBtnClicked); this.cardRoleDoor.Clicked += new System.EventHandler(this.OnRoleBtnClicked); this.cardPermEscrow.Clicked += new System.EventHandler(this.OnRoleBtnClicked); this.cardPermCreator.Clicked += new System.EventHandler(this.OnRoleBtnClicked); this.cardPermGod.Clicked += new System.EventHandler(this.OnRoleBtnClicked); this.cardNameEntry.Changed += new System.EventHandler(this.OnChanged); this.cardEscrowEntry.Changed += new System.EventHandler(this.OnChanged); this.cardCreditEntry.Changed += new System.EventHandler(this.OnChanged); this.undoBtn.Clicked += new System.EventHandler(this.OnUndoClicked); this.saveBtn.Clicked += new System.EventHandler(this.OnSaveClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Embroidr.UI.MainWindow Gtk.UIManager w1 = new Gtk.UIManager(); Gtk.ActionGroup w2 = 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"); w2.Add(this.FileAction, null); this.findAction = new Gtk.Action("findAction", null, null, "gtk-find"); w2.Add(this.findAction, null); this.FindAction = new Gtk.Action("FindAction", Mono.Unix.Catalog.GetString("Find"), null, null); this.FindAction.ShortLabel = Mono.Unix.Catalog.GetString("Find"); w2.Add(this.FindAction, null); this.saveAction = new Gtk.Action("saveAction", null, null, "gtk-save"); w2.Add(this.saveAction, null); w1.InsertActionGroup(w2, 0); this.AddAccelGroup(w1.AccelGroup); this.Name = "Embroidr.UI.MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Embroidr"); this.Icon = Stetic.IconLoader.LoadIcon(this, "stock_insert_special_character", Gtk.IconSize.Menu, 16); this.WindowPosition = ((Gtk.WindowPosition)(2)); // Container child Embroidr.UI.MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><menubar name='menubar2'><menu action='FileAction'><menuitem action='FindAction'/></menu></menubar></ui>"); this.menubar2 = ((Gtk.MenuBar)(w1.GetWidget("/menubar2"))); this.menubar2.Name = "menubar2"; this.vbox1.Add(this.menubar2); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar2])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><toolbar name='toolbar3'><toolitem action='findAction'/><toolitem action='saveAction'/></toolbar></ui>"); this.toolbar3 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar3"))); this.toolbar3.Name = "toolbar3"; this.toolbar3.ShowArrow = false; this.toolbar3.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.vbox1.Add(this.toolbar3); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar3])); w4.Position = 1; w4.Expand = false; w4.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hpaned2 = new Gtk.HPaned(); this.hpaned2.CanFocus = true; this.hpaned2.Name = "hpaned2"; this.hpaned2.Position = 160; // Container child hpaned2.Gtk.Paned+PanedChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // 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.pesTree = new Gtk.TreeView(); this.pesTree.CanFocus = true; this.pesTree.Name = "pesTree"; this.pesTree.HeadersClickable = true; this.GtkScrolledWindow1.Add(this.pesTree); this.vbox2.Add(this.GtkScrolledWindow1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow1])); w6.Position = 0; this.hpaned2.Add(this.vbox2); Gtk.Paned.PanedChild w7 = ((Gtk.Paned.PanedChild)(this.hpaned2[this.vbox2])); w7.Resize = false; // Container child hpaned2.Gtk.Paned+PanedChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.pesView = new Gtk.NodeView(); this.pesView.CanFocus = true; this.pesView.Name = "pesView"; this.pesView.HeadersClickable = true; this.GtkScrolledWindow.Add(this.pesView); this.hpaned2.Add(this.GtkScrolledWindow); this.vbox1.Add(this.hpaned2); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned2])); w10.Position = 2; // Container child vbox1.Gtk.Box+BoxChild this.pixbufSize = new Gtk.HScale(null); this.pixbufSize.CanFocus = true; this.pixbufSize.Name = "pixbufSize"; this.pixbufSize.Adjustment.Lower = 16; this.pixbufSize.Adjustment.Upper = 255; this.pixbufSize.Adjustment.PageIncrement = 10; this.pixbufSize.Adjustment.StepIncrement = 1; this.pixbufSize.Adjustment.Value = 90; this.pixbufSize.DrawValue = true; this.pixbufSize.Digits = 0; this.pixbufSize.ValuePos = ((Gtk.PositionType)(2)); this.vbox1.Add(this.pixbufSize); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox1[this.pixbufSize])); w11.Position = 3; w11.Expand = false; w11.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.statusbar1 = new Gtk.Statusbar(); this.statusbar1.Name = "statusbar1"; this.statusbar1.Spacing = 6; this.vbox1.Add(this.statusbar1); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1])); w12.Position = 4; w12.Expand = false; w12.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 699; this.DefaultHeight = 638; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.findAction.Activated += new System.EventHandler(this.OnFindActionActivated); this.saveAction.Activated += new System.EventHandler(this.OnSaveActionActivated); this.pixbufSize.ValueChanged += new System.EventHandler(this.OnPixbufSizeValueChanged); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget UI Name = "UI"; Title = Mono.Unix.Catalog.GetString("vCardLib UI 1.4"); Icon = new Gdk.Pixbuf(System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "./vcard.jpg")); WindowPosition = ((Gtk.WindowPosition)(4)); Gravity = ((Gdk.Gravity)(5)); // Container child UI.Gtk.Container+ContainerChild vbox1 = new Gtk.VBox(); vbox1.Name = "vbox1"; vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild hbox1 = new Gtk.HBox(); hbox1.Name = "hbox1"; hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild label2 = new Gtk.Label(); label2.Name = "label2"; label2.LabelProp = Mono.Unix.Catalog.GetString("File Path:"); hbox1.Add(label2); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(hbox1[label2])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child hbox1.Gtk.Box+BoxChild ofd_select_vcard = new Gtk.FileChooserButton(Mono.Unix.Catalog.GetString("Select a File"), ((Gtk.FileChooserAction)(0))); ofd_select_vcard.Name = "ofd_select_vcard"; hbox1.Add(ofd_select_vcard); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(hbox1[ofd_select_vcard])); w2.PackType = ((Gtk.PackType)(1)); w2.Position = 1; vbox1.Add(hbox1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(vbox1[hbox1])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild hbox2 = new Gtk.HBox(); hbox2.Name = "hbox2"; hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild label4 = new Gtk.Label(); label4.Name = "label4"; label4.LabelProp = Mono.Unix.Catalog.GetString("Search:"); hbox2.Add(label4); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(hbox2[label4])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child hbox2.Gtk.Box+BoxChild txt_search = new Gtk.TextView(); txt_search.CanFocus = true; txt_search.Name = "txt_search"; txt_search.AcceptsTab = false; hbox2.Add(txt_search); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(hbox2[txt_search])); w5.Position = 1; vbox1.Add(hbox2); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(vbox1[hbox2])); w6.Position = 1; w6.Expand = false; w6.Fill = false; // Container child vbox1.Gtk.Box+BoxChild GtkScrolledWindow = new Gtk.ScrolledWindow(); GtkScrolledWindow.Name = "GtkScrolledWindow"; GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild dgv_contacts = new Gtk.NodeView(); dgv_contacts.CanFocus = true; dgv_contacts.Name = "dgv_contacts"; GtkScrolledWindow.Add(dgv_contacts); vbox1.Add(GtkScrolledWindow); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(vbox1[GtkScrolledWindow])); w8.Position = 2; Add(vbox1); if ((Child != null)) { Child.ShowAll(); } DefaultWidth = 666; DefaultHeight = 432; Show(); DeleteEvent += OnDeleteEvent; ofd_select_vcard.SelectionChanged += OnOfdSelectVcardSelectionChanged; }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); this.XFileAction = new Gtk.Action("XFileAction", Mono.Unix.Catalog.GetString("XFile"), null, null); this.XFileAction.ShortLabel = Mono.Unix.Catalog.GetString("File"); w1.Add(this.XFileAction, null); this.GimmeHelpAction = new Gtk.Action("GimmeHelpAction", Mono.Unix.Catalog.GetString("GimmeHelp"), null, null); this.GimmeHelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help"); w1.Add(this.GimmeHelpAction, null); this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("About"), null, null); this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("About"); w1.Add(this.AboutAction, null); this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("Quit"), null, null); this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("Quit"); w1.Add(this.QuitAction, null); this.SomeEditMenuAction = new Gtk.Action("SomeEditMenuAction", Mono.Unix.Catalog.GetString("SomeEditMenu"), null, null); this.SomeEditMenuAction.ShortLabel = Mono.Unix.Catalog.GetString("SomeEditMenu"); w1.Add(this.SomeEditMenuAction, null); this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("New"), null, null); this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("New"); w1.Add(this.NewAction, null); this.Action1 = new Gtk.Action("Action1", null, null, null); w1.Add(this.Action1, null); this.indexAction = new Gtk.Action("indexAction", null, Mono.Unix.Catalog.GetString("tooltipText"), "gtk-index"); w1.Add(this.indexAction, null); this.cdromAction = new Gtk.Action("cdromAction", null, null, "gtk-cdrom"); w1.Add(this.cdromAction, null); this.RadioInToolBarTest1Action = new Gtk.RadioAction("RadioInToolBarTest1Action", Mono.Unix.Catalog.GetString("RadioInToolBarTest1"), null, null, 0); this.RadioInToolBarTest1Action.Group = new GLib.SList(System.IntPtr.Zero); this.RadioInToolBarTest1Action.ShortLabel = Mono.Unix.Catalog.GetString("RadioInToolBarTest1"); w1.Add(this.RadioInToolBarTest1Action, null); this.RadioInToolBarTest2Action = new Gtk.RadioAction("RadioInToolBarTest2Action", Mono.Unix.Catalog.GetString("RadioInToolBarTest2"), null, null, 0); this.RadioInToolBarTest2Action.Group = this.RadioInToolBarTest1Action.Group; this.RadioInToolBarTest2Action.ShortLabel = Mono.Unix.Catalog.GetString("RadioInToolBarTest2"); w1.Add(this.RadioInToolBarTest2Action, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("MainWindow"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='XFileAction' action='XFileAction'><menuitem name='NewAction' action='NewAction'/><separator/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='SomeEditMenuAction' action='SomeEditMenuAction'/><menu name='GimmeHelpAction' action='GimmeHelpAction'><menuitem name='AboutAction' action='AboutAction'/></menu></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox1.Add(this.menubar1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='indexAction' action='indexAction'/><toolitem name='RadioInToolBarTest1Action' action='RadioInToolBarTest1Action'/><toolitem name='RadioInToolBarTest2Action' action='RadioInToolBarTest2Action'/></toolbar></ui>"); this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1"))); this.toolbar1.Name = "toolbar1"; this.toolbar1.ShowArrow = false; this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.vbox1.Add(this.toolbar1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.notebook1 = new Gtk.Notebook(); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 0; // Container child notebook1.Gtk.Notebook+NotebookChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.treeview2 = new Gtk.TreeView(); this.treeview2.CanFocus = true; this.treeview2.Name = "treeview2"; this.GtkScrolledWindow.Add(this.treeview2); this.hbox1.Add(this.GtkScrolledWindow); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow])); w5.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(5)), ((uint)(3)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.btnTest1 = new Gtk.Button(); this.btnTest1.CanFocus = true; this.btnTest1.Name = "btnTest1"; this.btnTest1.UseUnderline = true; this.btnTest1.Label = Mono.Unix.Catalog.GetString("hey ya"); this.table1.Add(this.btnTest1); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.btnTest1])); w6.LeftAttach = ((uint)(2)); w6.RightAttach = ((uint)(3)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.btnWithImg = new Gtk.Button(); this.btnWithImg.CanFocus = true; this.btnWithImg.Name = "btnWithImg"; this.btnWithImg.UseUnderline = true; this.btnWithImg.Label = Mono.Unix.Catalog.GetString("IMG"); this.table1.Add(this.btnWithImg); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.btnWithImg])); w7.TopAttach = ((uint)(3)); w7.BottomAttach = ((uint)(4)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.cbeTest = Gtk.ComboBoxEntry.NewText(); this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("First element")); this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("Second element")); this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("Third element")); this.cbeTest.Name = "cbeTest"; this.table1.Add(this.cbeTest); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.cbeTest])); w8.TopAttach = ((uint)(1)); w8.BottomAttach = ((uint)(2)); w8.LeftAttach = ((uint)(2)); w8.RightAttach = ((uint)(3)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.cbxTest = Gtk.ComboBox.NewText(); this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("FirstItem")); this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("SecondItem")); this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("LastItem")); this.cbxTest.Name = "cbxTest"; this.table1.Add(this.cbxTest); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.cbxTest])); w9.TopAttach = ((uint)(1)); w9.BottomAttach = ((uint)(2)); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.checkbutton1 = new Gtk.CheckButton(); this.checkbutton1.CanFocus = true; this.checkbutton1.Name = "checkbutton1"; this.checkbutton1.Label = Mono.Unix.Catalog.GetString("checkbutton1"); this.checkbutton1.DrawIndicator = true; this.checkbutton1.UseUnderline = true; this.table1.Add(this.checkbutton1); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.checkbutton1])); w10.TopAttach = ((uint)(2)); w10.BottomAttach = ((uint)(3)); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.chkTest = new Gtk.CheckButton(); this.chkTest.CanFocus = true; this.chkTest.Name = "chkTest"; this.chkTest.Label = Mono.Unix.Catalog.GetString("checkbutton1"); this.chkTest.DrawIndicator = true; this.chkTest.UseUnderline = true; this.table1.Add(this.chkTest); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.chkTest])); w11.TopAttach = ((uint)(1)); w11.BottomAttach = ((uint)(2)); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.lblTest1 = new Gtk.Label(); this.lblTest1.Name = "lblTest1"; this.lblTest1.LabelProp = Mono.Unix.Catalog.GetString("This is a test message\nin a label"); this.table1.Add(this.lblTest1); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.lblTest1])); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.maskedEntry = new Gtk.Entry(); this.maskedEntry.CanFocus = true; this.maskedEntry.Name = "maskedEntry"; this.maskedEntry.IsEditable = true; this.maskedEntry.InvisibleChar = '●'; this.table1.Add(this.maskedEntry); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.maskedEntry])); w13.TopAttach = ((uint)(4)); w13.BottomAttach = ((uint)(5)); w13.LeftAttach = ((uint)(2)); w13.RightAttach = ((uint)(3)); w13.XOptions = ((Gtk.AttachOptions)(4)); w13.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.radiobutton1 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("radiobutton1")); this.radiobutton1.CanFocus = true; this.radiobutton1.Name = "radiobutton1"; this.radiobutton1.DrawIndicator = true; this.radiobutton1.UseUnderline = true; this.radiobutton1.Group = new GLib.SList(System.IntPtr.Zero); this.table1.Add(this.radiobutton1); Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table1[this.radiobutton1])); w14.TopAttach = ((uint)(3)); w14.BottomAttach = ((uint)(4)); w14.LeftAttach = ((uint)(1)); w14.RightAttach = ((uint)(2)); w14.XOptions = ((Gtk.AttachOptions)(4)); w14.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.radiobutton2 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("radiobutton2")); this.radiobutton2.CanFocus = true; this.radiobutton2.Name = "radiobutton2"; this.radiobutton2.DrawIndicator = true; this.radiobutton2.UseUnderline = true; this.radiobutton2.Group = this.radiobutton1.Group; this.table1.Add(this.radiobutton2); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.radiobutton2])); w15.TopAttach = ((uint)(3)); w15.BottomAttach = ((uint)(4)); w15.LeftAttach = ((uint)(2)); w15.RightAttach = ((uint)(3)); w15.XOptions = ((Gtk.AttachOptions)(4)); w15.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.radTest1 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("rad Opt 0")); this.radTest1.CanFocus = true; this.radTest1.Name = "radTest1"; this.radTest1.DrawIndicator = true; this.radTest1.UseUnderline = true; this.radTest1.Group = new GLib.SList(System.IntPtr.Zero); this.table1.Add(this.radTest1); Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.radTest1])); w16.TopAttach = ((uint)(2)); w16.BottomAttach = ((uint)(3)); w16.LeftAttach = ((uint)(1)); w16.RightAttach = ((uint)(2)); w16.XOptions = ((Gtk.AttachOptions)(4)); w16.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.radTest2 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("rad Opt 1")); this.radTest2.CanFocus = true; this.radTest2.Name = "radTest2"; this.radTest2.DrawIndicator = true; this.radTest2.UseUnderline = true; this.radTest2.Group = this.radTest1.Group; this.table1.Add(this.radTest2); Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table1[this.radTest2])); w17.TopAttach = ((uint)(2)); w17.BottomAttach = ((uint)(3)); w17.LeftAttach = ((uint)(2)); w17.RightAttach = ((uint)(3)); w17.XOptions = ((Gtk.AttachOptions)(4)); w17.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.spinbuttonTest1 = new Gtk.SpinButton(0, 100, 1); this.spinbuttonTest1.CanFocus = true; this.spinbuttonTest1.Name = "spinbuttonTest1"; this.spinbuttonTest1.Adjustment.PageIncrement = 10; this.spinbuttonTest1.ClimbRate = 1; this.spinbuttonTest1.Numeric = true; this.table1.Add(this.spinbuttonTest1); Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.spinbuttonTest1])); w18.TopAttach = ((uint)(4)); w18.BottomAttach = ((uint)(5)); w18.XOptions = ((Gtk.AttachOptions)(4)); w18.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.txtEntry = new Gtk.Entry(); this.txtEntry.CanFocus = true; this.txtEntry.Name = "txtEntry"; this.txtEntry.Text = Mono.Unix.Catalog.GetString("test text"); this.txtEntry.IsEditable = true; this.txtEntry.InvisibleChar = '●'; this.table1.Add(this.txtEntry); Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.txtEntry])); w19.LeftAttach = ((uint)(1)); w19.RightAttach = ((uint)(2)); w19.XOptions = ((Gtk.AttachOptions)(4)); w19.YOptions = ((Gtk.AttachOptions)(4)); this.hbox1.Add(this.table1); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox1[this.table1])); w20.Position = 1; w20.Expand = false; w20.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.vscrollbar1 = new Gtk.VScrollbar(null); this.vscrollbar1.Name = "vscrollbar1"; this.vscrollbar1.Adjustment.Upper = 100; this.vscrollbar1.Adjustment.PageIncrement = 10; this.vscrollbar1.Adjustment.PageSize = 10; this.vscrollbar1.Adjustment.StepIncrement = 1; this.hbox1.Add(this.vscrollbar1); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox1[this.vscrollbar1])); w21.Position = 2; w21.Expand = false; w21.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.imgTest1 = new Gtk.Image(); this.imgTest1.Name = "imgTest1"; this.hbox1.Add(this.imgTest1); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox1[this.imgTest1])); w22.Position = 3; w22.Expand = false; w22.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.imgTest2 = new Gtk.Image(); this.imgTest2.Name = "imgTest2"; this.hbox1.Add(this.imgTest2); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox1[this.imgTest2])); w23.Position = 5; w23.Expand = false; w23.Fill = false; this.notebook1.Add(this.hbox1); // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("page1"); this.notebook1.SetTabLabel(this.hbox1, this.label1); this.label1.ShowAll(); // Container child notebook1.Gtk.Notebook+NotebookChild this.calendar1 = new Gtk.Calendar(); this.calendar1.CanFocus = true; this.calendar1.Name = "calendar1"; this.calendar1.DisplayOptions = ((Gtk.CalendarDisplayOptions)(3)); this.notebook1.Add(this.calendar1); Gtk.Notebook.NotebookChild w25 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.calendar1])); w25.Position = 1; // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("page2"); this.notebook1.SetTabLabel(this.calendar1, this.label2); this.label2.ShowAll(); this.vbox1.Add(this.notebook1); Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook1])); w26.Position = 2; w26.Expand = false; w26.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.progressbar1 = new Gtk.ProgressBar(); this.progressbar1.Name = "progressbar1"; this.vbox1.Add(this.progressbar1); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox1[this.progressbar1])); w27.Position = 3; w27.Expand = false; w27.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hscrollbar1 = new Gtk.HScrollbar(null); this.hscrollbar1.Name = "hscrollbar1"; this.hscrollbar1.Adjustment.Upper = 100; this.hscrollbar1.Adjustment.PageIncrement = 10; this.hscrollbar1.Adjustment.PageSize = 10; this.hscrollbar1.Adjustment.StepIncrement = 1; this.hscrollbar1.Adjustment.Value = 9.28317766722556; this.vbox1.Add(this.hscrollbar1); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox1[this.hscrollbar1])); w28.Position = 4; w28.Expand = false; w28.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.hpaned1 = new Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 19; // Container child hpaned1.Gtk.Paned+PanedChild this.vscale1 = new Gtk.VScale(null); this.vscale1.CanFocus = true; this.vscale1.Name = "vscale1"; this.vscale1.Adjustment.Upper = 100; this.vscale1.Adjustment.PageIncrement = 10; this.vscale1.Adjustment.StepIncrement = 1; this.vscale1.DrawValue = true; this.vscale1.Digits = 0; this.vscale1.ValuePos = ((Gtk.PositionType)(2)); this.hpaned1.Add(this.vscale1); Gtk.Paned.PanedChild w29 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vscale1])); w29.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild this.GtkScrolledWindow2 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow2.Name = "GtkScrolledWindow2"; this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild this.nodeview1 = new Gtk.NodeView(); this.nodeview1.CanFocus = true; this.nodeview1.Name = "nodeview1"; this.GtkScrolledWindow2.Add(this.nodeview1); this.hpaned1.Add(this.GtkScrolledWindow2); this.hbox2.Add(this.hpaned1); Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.hbox2[this.hpaned1])); w32.Position = 0; // Container child hbox2.Gtk.Box+BoxChild this.GtkScrolledWindow1 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild this.txtViewTest = new Gtk.TextView(); this.txtViewTest.CanFocus = true; this.txtViewTest.Name = "txtViewTest"; this.GtkScrolledWindow1.Add(this.txtViewTest); this.hbox2.Add(this.GtkScrolledWindow1); Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.hbox2[this.GtkScrolledWindow1])); w34.Position = 1; // Container child hbox2.Gtk.Box+BoxChild this.frame1 = new Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame1.Gtk.Container+ContainerChild this.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(12)); this.frame1.Add(this.GtkAlignment); this.GtkLabel13 = new Gtk.Label(); this.GtkLabel13.Name = "GtkLabel13"; this.GtkLabel13.LabelProp = Mono.Unix.Catalog.GetString("<b>frame1</b>"); this.GtkLabel13.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel13; this.hbox2.Add(this.frame1); Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.hbox2[this.frame1])); w36.Position = 2; w36.Expand = false; w36.Fill = false; this.vbox1.Add(this.hbox2); Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2])); w37.Position = 5; // Container child vbox1.Gtk.Box+BoxChild this.statusbar1 = new Gtk.Statusbar(); this.statusbar1.Name = "statusbar1"; this.statusbar1.Spacing = 6; this.vbox1.Add(this.statusbar1); Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1])); w38.Position = 7; w38.Expand = false; w38.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 757; this.DefaultHeight = 516; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); }