protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget meticulus.controls.gtk.default_viewer Stetic.BinContainer w1 = global::Stetic.BinContainer.Attach (this); this.UIManager = new global::Gtk.UIManager (); global::Gtk.ActionGroup w2 = new global::Gtk.ActionGroup ("Default"); this.saveAsAction = new global::Gtk.Action ("saveAsAction", null, null, "gtk-save-as"); w2.Add (this.saveAsAction, null); this.executeAction = new global::Gtk.Action ("executeAction", null, global::Mono.Unix.Catalog.GetString ("xdg-open"), "gtk-execute"); w2.Add (this.executeAction, null); this.fullscreenAction = new global::Gtk.Action ("fullscreenAction", null, null, "gtk-fullscreen"); w2.Add (this.fullscreenAction, null); this.UIManager.InsertActionGroup (w2, 0); this.Name = "meticulus.controls.gtk.default_viewer"; // Container child meticulus.controls.gtk.default_viewer.Gtk.Container+ContainerChild this.vbox2 = new global::Gtk.VBox (); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.toolbar1 = new global::meticulus.controls.gtk.toolbar (); this.toolbar1.HeightRequest = 50; this.toolbar1.Events = ((global::Gdk.EventMask)(256)); this.toolbar1.Name = "toolbar1"; this.toolbar1.small = 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; this.Add (this.vbox2); if ((this.Child != null)) { this.Child.ShowAll (); } w1.SetUiManager (UIManager); this.Hide (); this.saveAsAction.Activated += new global::System.EventHandler (this.OnSaveAsActionActivated); this.executeAction.Activated += new global::System.EventHandler (this.OnOpenActionActivated); this.fullscreenAction.Activated += new global::System.EventHandler (this.OnFullscreenActionActivated); }
protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget tacticalProxy this.UIManager = new global::Gtk.UIManager (); global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup ("Default"); this.mediaPlayAction = new global::Gtk.Action ("mediaPlayAction", null, null, "gtk-media-play"); w1.Add (this.mediaPlayAction, null); this.Action = new global::Gtk.Action ("Action", null, null, null); w1.Add (this.Action, null); 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.connectAction = new global::Gtk.Action ("connectAction", global::Mono.Unix.Catalog.GetString ("Start Listening"), global::Mono.Unix.Catalog.GetString ("Start Listening"), "gtk-connect"); this.connectAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Start Listening"); w1.Add (this.connectAction, null); this.disconnectAction = new global::Gtk.Action ("disconnectAction", global::Mono.Unix.Catalog.GetString ("Stop Listening"), null, "gtk-disconnect"); this.disconnectAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Stop Listening"); w1.Add (this.disconnectAction, null); this.mediaPlayAction1 = new global::Gtk.Action ("mediaPlayAction1", global::Mono.Unix.Catalog.GetString ("Start Capture"), null, "gtk-media-play"); this.mediaPlayAction1.ShortLabel = global::Mono.Unix.Catalog.GetString ("Start Capture"); w1.Add (this.mediaPlayAction1, null); this.stopAction = new global::Gtk.Action ("stopAction", global::Mono.Unix.Catalog.GetString ("Stop Capture"), null, "gtk-stop"); this.stopAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Stop Capture"); w1.Add (this.stopAction, null); this.EditAction = new global::Gtk.Action ("EditAction", global::Mono.Unix.Catalog.GetString ("Edit"), null, null); this.EditAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("&Edit"); w1.Add (this.EditAction, null); this.preferencesAction = new global::Gtk.Action ("preferencesAction", global::Mono.Unix.Catalog.GetString ("Preferences"), null, "gtk-preferences"); this.preferencesAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Preferences"); w1.Add (this.preferencesAction, null); this.ViewAction = new global::Gtk.Action ("ViewAction", global::Mono.Unix.Catalog.GetString ("View"), null, null); this.ViewAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("View"); w1.Add (this.ViewAction, null); this.findAction = new global::Gtk.Action ("findAction", global::Mono.Unix.Catalog.GetString ("Create Filter"), null, "gtk-find"); this.findAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Create Filter"); w1.Add (this.findAction, null); this.mediaPlayAction2 = new global::Gtk.ToggleAction ("mediaPlayAction2", global::Mono.Unix.Catalog.GetString ("Toggle Listening"), global::Mono.Unix.Catalog.GetString ("Toggle Listening"), "gtk-media-play"); this.mediaPlayAction2.ShortLabel = global::Mono.Unix.Catalog.GetString ("Toggle Listening"); w1.Add (this.mediaPlayAction2, null); this.mediaRecordAction = new global::Gtk.ToggleAction ("mediaRecordAction", global::Mono.Unix.Catalog.GetString ("Toggle Capture"), global::Mono.Unix.Catalog.GetString ("Toggle Capture"), "gtk-media-record"); this.mediaRecordAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Toggle Capture"); w1.Add (this.mediaRecordAction, null); this.UIManager.InsertActionGroup (w1, 0); this.AddAccelGroup (this.UIManager.AccelGroup); this.Name = "tacticalProxy"; this.Title = global::Mono.Unix.Catalog.GetString ("tProxy"); this.Icon = global::Gdk.Pixbuf.LoadFromResource ("meticulus.controls.gtk.images.tacticalProxy.png"); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); this.AllowShrink = true; this.DefaultWidth = 800; this.DefaultHeight = 600; // Container child tacticalProxy.Gtk.Container+ContainerChild this.vbox1 = new global::Gtk.VBox (); this.vbox1.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString ("<ui><menubar name='menubar1'><menu name='FileAction' action='FileAction'><menuitem name='connectAction' action='connectAction'/><menuitem name='disconnectAction' action='disconnectAction'/><menuitem name='mediaPlayAction1' action='mediaPlayAction1'/><menuitem name='stopAction' action='stopAction'/></menu><menu name='EditAction' action='EditAction'><menuitem name='preferencesAction' action='preferencesAction'/></menu><menu name='ViewAction' action='ViewAction'><menuitem name='findAction' action='findAction'/></menu></menubar></ui>"); this.menubar1 = ((global::Gtk.MenuBar)(this.UIManager.GetWidget ("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox1.Add (this.menubar1); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.menubar1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.toolbar3 = new global::meticulus.controls.gtk.toolbar (); this.toolbar3.HeightRequest = 50; this.toolbar3.Events = ((global::Gdk.EventMask)(256)); this.toolbar3.Name = "toolbar3"; this.toolbar3.small = false; this.vbox1.Add (this.toolbar3); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.toolbar3])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.proxy_transaction_nodeview1 = new global::meticulus.controls.gtk.proxy_transaction_nodeview (); this.proxy_transaction_nodeview1.Events = ((global::Gdk.EventMask)(256)); this.proxy_transaction_nodeview1.Name = "proxy_transaction_nodeview1"; this.proxy_transaction_nodeview1.scroll_lock = false; this.proxy_transaction_nodeview1.capture = false; this.vbox1.Add (this.proxy_transaction_nodeview1); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.proxy_transaction_nodeview1])); w4.Position = 2; // Container child vbox1.Gtk.Box+BoxChild this.statusbar1 = new global::Gtk.Statusbar (); this.statusbar1.Name = "statusbar1"; this.statusbar1.Spacing = 6; this.vbox1.Add (this.statusbar1); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.statusbar1])); w5.Position = 3; w5.Expand = false; w5.Fill = false; this.Add (this.vbox1); if ((this.Child != null)) { this.Child.ShowAll (); } this.Show (); this.DeleteEvent += new global::Gtk.DeleteEventHandler (this.OnDeleteEvent); this.connectAction.Activated += new global::System.EventHandler (this.OnConnectActionActivated); this.disconnectAction.Activated += new global::System.EventHandler (this.OnDisconnectActionActivated); this.mediaPlayAction1.Activated += new global::System.EventHandler (this.OnMediaPlayAction1Activated); this.stopAction.Activated += new global::System.EventHandler (this.OnStopActionActivated); this.preferencesAction.Activated += new global::System.EventHandler (this.OnPropertiesActionActivated); this.findAction.Activated += new global::System.EventHandler (this.OnFindActionActivated); this.mediaPlayAction2.Activated += new global::System.EventHandler (this.OnMediaPlayAction2Activated); this.mediaRecordAction.Activated += new global::System.EventHandler (this.OnMediaRecordActionActivated); }