protected virtual void Build() { global::Stetic.Gui.Initialize(this); // Widget vocab.MainWindow this.UIManager = new global::Gtk.UIManager(); global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup("Default"); this.FileAction = new global::Gtk.Action("FileAction", global::Mono.Unix.Catalog.GetString("_File"), null, null); this.FileAction.ShortLabel = global::Mono.Unix.Catalog.GetString("File"); w1.Add(this.FileAction, null); this.HelpAction = new global::Gtk.Action("HelpAction", global::Mono.Unix.Catalog.GetString("Help"), null, null); this.HelpAction.ShortLabel = global::Mono.Unix.Catalog.GetString("Help"); w1.Add(this.HelpAction, null); this.aboutAction1 = new global::Gtk.Action("aboutAction1", global::Mono.Unix.Catalog.GetString("_About"), null, "gtk-about"); this.aboutAction1.ShortLabel = global::Mono.Unix.Catalog.GetString("_About"); w1.Add(this.aboutAction1, null); this.quitAction = new global::Gtk.Action("quitAction", global::Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit"); this.quitAction.ShortLabel = global::Mono.Unix.Catalog.GetString("_Quit"); w1.Add(this.quitAction, null); this.saveAction = new global::Gtk.Action("saveAction", global::Mono.Unix.Catalog.GetString("_Save"), null, "gtk-save"); this.saveAction.ShortLabel = global::Mono.Unix.Catalog.GetString("_Save"); w1.Add(this.saveAction, null); this.importAction = new global::Gtk.Action("importAction", global::Mono.Unix.Catalog.GetString("_Import"), null, "gtk-open"); this.importAction.ShortLabel = global::Mono.Unix.Catalog.GetString("_Import"); w1.Add(this.importAction, null); this.openAction = new global::Gtk.Action("openAction", global::Mono.Unix.Catalog.GetString("_Import"), null, "gtk-open"); this.openAction.ShortLabel = global::Mono.Unix.Catalog.GetString("_Import"); w1.Add(this.openAction, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "vocab.MainWindow"; this.Title = global::Mono.Unix.Catalog.GetString("Vocab"); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); // Container child vocab.MainWindow.Gtk.Container+ContainerChild this.vbox1 = new global::Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><menubar name='menubar3'><menu name='FileAction' action='FileAction'><menuitem name='importAction' action='importAction'/><menuitem name='saveAction' action='saveAction'/><menuitem name='quitAction' action='quitAction'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='aboutAction1' action='aboutAction1'/></menu></menubar></ui>"); this.menubar3 = ((global::Gtk.MenuBar)(this.UIManager.GetWidget("/menubar3"))); this.menubar3.Name = "menubar3"; this.vbox1.Add(this.menubar3); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.menubar3])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.placeholderwidget1 = new global::vocab.PlaceHolderWidget(); this.placeholderwidget1.Events = ((global::Gdk.EventMask)(256)); this.placeholderwidget1.Name = "placeholderwidget1"; this.vbox1.Add(this.placeholderwidget1); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.placeholderwidget1])); w3.Position = 1; // Container child vbox1.Gtk.Box+BoxChild this.statusbar1 = new global::Gtk.Statusbar(); this.statusbar1.Name = "statusbar1"; this.statusbar1.Spacing = 6; // Container child statusbar1.Gtk.Box+BoxChild this.label3 = new global::Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = global::Mono.Unix.Catalog.GetString("label3"); this.statusbar1.Add(this.label3); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.statusbar1[this.label3])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.vbox1.Add(this.statusbar1); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.statusbar1])); w5.PackType = ((global::Gtk.PackType)(1)); w5.Position = 2; w5.Expand = false; w5.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 609; this.DefaultHeight = 560; this.Show(); this.DeleteEvent += new global::Gtk.DeleteEventHandler(this.OnDeleteEvent); this.aboutAction1.Activated += new global::System.EventHandler(this.OnAboutAction1Activated); this.quitAction.Activated += new global::System.EventHandler(this.OnQuitAction1Activated); this.saveAction.Activated += new global::System.EventHandler(this.OnSaveActionActivated); this.importAction.Activated += new global::System.EventHandler(this.OnImportActionActivated); }
protected virtual void Build() { global::Stetic.Gui.Initialize (this); // Widget vocab.SimpleAssessmentWidget Stetic.BinContainer w1 = global::Stetic.BinContainer.Attach (this); this.UIManager = new global::Gtk.UIManager (); global::Gtk.ActionGroup w2 = new global::Gtk.ActionGroup ("Default"); this.closeAction = new global::Gtk.Action ("closeAction", null, null, "gtk-close"); w2.Add (this.closeAction, null); this.UIManager.InsertActionGroup (w2, 0); this.Name = "vocab.SimpleAssessmentWidget"; // Container child vocab.SimpleAssessmentWidget.Gtk.Container+ContainerChild this.vbox2 = new global::Gtk.VBox (); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.UIManager.AddUiFromString ("<ui><toolbar name='toolbar1'><toolitem name='closeAction' action='closeAction'/></toolbar></ui>"); this.toolbar1 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar1"))); this.toolbar1.Name = "toolbar1"; this.toolbar1.ShowArrow = false; this.vbox2.Add (this.toolbar1); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.toolbar1])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.hpaned1 = new global::Gtk.HPaned (); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 126; // Container child hpaned1.Gtk.Paned+PanedChild this.label1 = new global::Gtk.Label (); this.label1.Name = "label1"; this.label1.LabelProp = global::Mono.Unix.Catalog.GetString ("label1"); this.hpaned1.Add (this.label1); global::Gtk.Paned.PanedChild w4 = ((global::Gtk.Paned.PanedChild)(this.hpaned1[this.label1])); w4.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild this.vbox3 = new global::Gtk.VBox (); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.placeholderwidget2 = new global::vocab.PlaceHolderWidget (); this.placeholderwidget2.Events = ((global::Gdk.EventMask)(256)); this.placeholderwidget2.Name = "placeholderwidget2"; this.vbox3.Add (this.placeholderwidget2); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.placeholderwidget2])); w5.Position = 0; // Container child vbox3.Gtk.Box+BoxChild this.vbuttonbox1 = new global::Gtk.VButtonBox (); this.vbuttonbox1.Name = "vbuttonbox1"; this.vbuttonbox1.Homogeneous = true; this.vbuttonbox1.BorderWidth = ((uint)(18)); this.vbox3.Add (this.vbuttonbox1); global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.vbuttonbox1])); w6.Position = 1; // Container child vbox3.Gtk.Box+BoxChild this.placeholderwidget1 = new global::vocab.PlaceHolderWidget (); this.placeholderwidget1.Events = ((global::Gdk.EventMask)(256)); this.placeholderwidget1.Name = "placeholderwidget1"; this.vbox3.Add (this.placeholderwidget1); global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.placeholderwidget1])); w7.Position = 2; w7.Padding = ((uint)(16)); this.hpaned1.Add (this.vbox3); this.vbox2.Add (this.hpaned1); global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.hpaned1])); w9.Position = 1; this.Add (this.vbox2); if ((this.Child != null)) { this.Child.ShowAll (); } w1.SetUiManager (UIManager); this.Hide (); this.closeAction.Activated += new global::System.EventHandler (this.OnCloseActionActivated); }
protected virtual void Build() { global::Stetic.Gui.Initialize(this); // Widget vocab.SimpleAssessmentWidget Stetic.BinContainer w1 = global::Stetic.BinContainer.Attach(this); this.UIManager = new global::Gtk.UIManager(); global::Gtk.ActionGroup w2 = new global::Gtk.ActionGroup("Default"); this.closeAction = new global::Gtk.Action("closeAction", null, null, "gtk-close"); w2.Add(this.closeAction, null); this.UIManager.InsertActionGroup(w2, 0); this.Name = "vocab.SimpleAssessmentWidget"; // Container child vocab.SimpleAssessmentWidget.Gtk.Container+ContainerChild this.vbox2 = new global::Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='closeAction' action='closeAction'/></toolbar></ui>"); this.toolbar1 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1"))); this.toolbar1.Name = "toolbar1"; this.toolbar1.ShowArrow = false; this.vbox2.Add(this.toolbar1); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.toolbar1])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.hpaned1 = new global::Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 126; // Container child hpaned1.Gtk.Paned+PanedChild this.label1 = new global::Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = global::Mono.Unix.Catalog.GetString("label1"); this.hpaned1.Add(this.label1); global::Gtk.Paned.PanedChild w4 = ((global::Gtk.Paned.PanedChild)(this.hpaned1[this.label1])); w4.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild this.vbox3 = new global::Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.placeholderwidget2 = new global::vocab.PlaceHolderWidget(); this.placeholderwidget2.Events = ((global::Gdk.EventMask)(256)); this.placeholderwidget2.Name = "placeholderwidget2"; this.vbox3.Add(this.placeholderwidget2); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.placeholderwidget2])); w5.Position = 0; // Container child vbox3.Gtk.Box+BoxChild this.vbuttonbox1 = new global::Gtk.VButtonBox(); this.vbuttonbox1.Name = "vbuttonbox1"; this.vbuttonbox1.Homogeneous = true; this.vbuttonbox1.BorderWidth = ((uint)(18)); this.vbox3.Add(this.vbuttonbox1); global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.vbuttonbox1])); w6.Position = 1; // Container child vbox3.Gtk.Box+BoxChild this.placeholderwidget1 = new global::vocab.PlaceHolderWidget(); this.placeholderwidget1.Events = ((global::Gdk.EventMask)(256)); this.placeholderwidget1.Name = "placeholderwidget1"; this.vbox3.Add(this.placeholderwidget1); global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.placeholderwidget1])); w7.Position = 2; w7.Padding = ((uint)(16)); this.hpaned1.Add(this.vbox3); this.vbox2.Add(this.hpaned1); global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.hpaned1])); w9.Position = 1; this.Add(this.vbox2); if ((this.Child != null)) { this.Child.ShowAll(); } w1.SetUiManager(UIManager); this.Hide(); this.closeAction.Activated += new global::System.EventHandler(this.OnCloseActionActivated); }
protected virtual void Build() { global::Stetic.Gui.Initialize (this); // Widget vocab.MainWindow this.UIManager = new global::Gtk.UIManager (); global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup ("Default"); this.FileAction = new global::Gtk.Action ("FileAction", global::Mono.Unix.Catalog.GetString ("_File"), null, null); this.FileAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("File"); w1.Add (this.FileAction, null); this.HelpAction = new global::Gtk.Action ("HelpAction", global::Mono.Unix.Catalog.GetString ("Help"), null, null); this.HelpAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Help"); w1.Add (this.HelpAction, null); this.aboutAction1 = new global::Gtk.Action ("aboutAction1", global::Mono.Unix.Catalog.GetString ("_About"), null, "gtk-about"); this.aboutAction1.ShortLabel = global::Mono.Unix.Catalog.GetString ("_About"); w1.Add (this.aboutAction1, null); this.quitAction = new global::Gtk.Action ("quitAction", global::Mono.Unix.Catalog.GetString ("_Quit"), null, "gtk-quit"); this.quitAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("_Quit"); w1.Add (this.quitAction, null); this.saveAction = new global::Gtk.Action ("saveAction", global::Mono.Unix.Catalog.GetString ("_Save"), null, "gtk-save"); this.saveAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("_Save"); w1.Add (this.saveAction, null); this.importAction = new global::Gtk.Action ("importAction", global::Mono.Unix.Catalog.GetString ("_Import"), null, "gtk-open"); this.importAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("_Import"); w1.Add (this.importAction, null); this.openAction = new global::Gtk.Action ("openAction", global::Mono.Unix.Catalog.GetString ("_Import"), null, "gtk-open"); this.openAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("_Import"); w1.Add (this.openAction, null); this.UIManager.InsertActionGroup (w1, 0); this.AddAccelGroup (this.UIManager.AccelGroup); this.Name = "vocab.MainWindow"; this.Title = global::Mono.Unix.Catalog.GetString ("Vocab"); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); // Container child vocab.MainWindow.Gtk.Container+ContainerChild this.vbox1 = new global::Gtk.VBox (); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString ("<ui><menubar name='menubar3'><menu name='FileAction' action='FileAction'><menuitem name='importAction' action='importAction'/><menuitem name='saveAction' action='saveAction'/><menuitem name='quitAction' action='quitAction'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='aboutAction1' action='aboutAction1'/></menu></menubar></ui>"); this.menubar3 = ((global::Gtk.MenuBar)(this.UIManager.GetWidget ("/menubar3"))); this.menubar3.Name = "menubar3"; this.vbox1.Add (this.menubar3); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.menubar3])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.placeholderwidget1 = new global::vocab.PlaceHolderWidget (); this.placeholderwidget1.Events = ((global::Gdk.EventMask)(256)); this.placeholderwidget1.Name = "placeholderwidget1"; this.vbox1.Add (this.placeholderwidget1); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.placeholderwidget1])); w3.Position = 1; // Container child vbox1.Gtk.Box+BoxChild this.statusbar1 = new global::Gtk.Statusbar (); this.statusbar1.Name = "statusbar1"; this.statusbar1.Spacing = 6; // Container child statusbar1.Gtk.Box+BoxChild this.label3 = new global::Gtk.Label (); this.label3.Name = "label3"; this.label3.LabelProp = global::Mono.Unix.Catalog.GetString ("label3"); this.statusbar1.Add (this.label3); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.statusbar1[this.label3])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.vbox1.Add (this.statusbar1); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.statusbar1])); w5.PackType = ((global::Gtk.PackType)(1)); w5.Position = 2; w5.Expand = false; w5.Fill = false; this.Add (this.vbox1); if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 609; this.DefaultHeight = 560; this.Show (); this.DeleteEvent += new global::Gtk.DeleteEventHandler (this.OnDeleteEvent); this.aboutAction1.Activated += new global::System.EventHandler (this.OnAboutAction1Activated); this.quitAction.Activated += new global::System.EventHandler (this.OnQuitAction1Activated); this.saveAction.Activated += new global::System.EventHandler (this.OnSaveActionActivated); this.importAction.Activated += new global::System.EventHandler (this.OnImportActionActivated); }