private void InternalChanged(Gtk.RadioAction current) { ChangedNativeDelegate unmanaged = class_abi.BaseOverride <ChangedNativeDelegate>(this.LookupGType(), "changed"); if (unmanaged == null) { return; } unmanaged(this.Handle, current == null ? IntPtr.Zero : current.Handle); }
private void InternalChanged(Gtk.RadioAction current) { ChangedNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("changed")); unmanaged = (ChangedNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ChangedNativeDelegate)); } if (unmanaged == null) { return; } unmanaged(this.Handle, current == null ? IntPtr.Zero : current.Handle); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); this.StatusAction = new Gtk.Action("StatusAction", Mono.Unix.Catalog.GetString("Status"), null, null); this.StatusAction.ShortLabel = Mono.Unix.Catalog.GetString("Status"); w1.Add(this.StatusAction, null); this.BusyAction = new Gtk.RadioAction("BusyAction", Mono.Unix.Catalog.GetString("Busy"), null, "gtk-dialog-error", 0); this.BusyAction.Group = new GLib.SList(System.IntPtr.Zero); this.BusyAction.Sensitive = false; this.BusyAction.ShortLabel = Mono.Unix.Catalog.GetString("Busy"); w1.Add(this.BusyAction, null); this.AwayAction = new Gtk.RadioAction("AwayAction", Mono.Unix.Catalog.GetString("Away"), null, "gtk-redo", 0); this.AwayAction.Group = this.BusyAction.Group; this.AwayAction.ShortLabel = Mono.Unix.Catalog.GetString("Away"); w1.Add(this.AwayAction, null); this.GroundSitAction = new Gtk.RadioAction("GroundSitAction", Mono.Unix.Catalog.GetString("Ground Sit"), null, null, 0); this.GroundSitAction.Group = new GLib.SList(System.IntPtr.Zero); this.GroundSitAction.ShortLabel = Mono.Unix.Catalog.GetString("Ground Sit"); w1.Add(this.GroundSitAction, null); this.CrouchAction = new Gtk.RadioAction("CrouchAction", Mono.Unix.Catalog.GetString("Crouch"), null, null, 0); this.CrouchAction.Group = this.GroundSitAction.Group; this.CrouchAction.ShortLabel = Mono.Unix.Catalog.GetString("Crouch"); w1.Add(this.CrouchAction, null); this.FlyAction = new Gtk.RadioAction("FlyAction", Mono.Unix.Catalog.GetString("Fly"), null, null, 0); this.FlyAction.Group = this.GroundSitAction.Group; this.FlyAction.ShortLabel = Mono.Unix.Catalog.GetString("Fly"); w1.Add(this.FlyAction, null); this.AvaiableAction = new Gtk.RadioAction("AvaiableAction", Mono.Unix.Catalog.GetString("Avaiable"), null, "gtk-yes", 0); this.AvaiableAction.Group = this.BusyAction.Group; this.AvaiableAction.ShortLabel = Mono.Unix.Catalog.GetString("Avaiable"); w1.Add(this.AvaiableAction, null); this.StandingAction = new Gtk.RadioAction("StandingAction", Mono.Unix.Catalog.GetString("Standing"), null, null, 0); this.StandingAction.Group = this.GroundSitAction.Group; this.StandingAction.ShortLabel = Mono.Unix.Catalog.GetString("Standing"); w1.Add(this.StandingAction, null); this.SittingAction = new Gtk.RadioAction("SittingAction", Mono.Unix.Catalog.GetString("Sitting"), null, null, 0); this.SittingAction.Group = this.GroundSitAction.Group; this.SittingAction.Sensitive = false; this.SittingAction.ShortLabel = Mono.Unix.Catalog.GetString("Sitting"); w1.Add(this.SittingAction, null); this.ToolsAction = new Gtk.Action("ToolsAction", Mono.Unix.Catalog.GetString("Tools"), null, "gtk-execute"); this.ToolsAction.ShortLabel = Mono.Unix.Catalog.GetString("Tools"); w1.Add(this.ToolsAction, null); this.ParcelAction = new Gtk.ToggleAction("ParcelAction", Mono.Unix.Catalog.GetString("Parcel"), null, null); this.ParcelAction.ShortLabel = Mono.Unix.Catalog.GetString("Parcel"); w1.Add(this.ParcelAction, null); this.ObjectsAction = new Gtk.ToggleAction("ObjectsAction", Mono.Unix.Catalog.GetString("Objects"), null, null); this.ObjectsAction.ShortLabel = Mono.Unix.Catalog.GetString("Objects"); w1.Add(this.ObjectsAction, null); this.InventoryAction = new Gtk.ToggleAction("InventoryAction", Mono.Unix.Catalog.GetString("Inventory"), null, null); this.InventoryAction.ShortLabel = Mono.Unix.Catalog.GetString("Inventory"); w1.Add(this.InventoryAction, null); this.LocationAction = new Gtk.ToggleAction("LocationAction", Mono.Unix.Catalog.GetString("Location"), null, null); this.LocationAction.ShortLabel = Mono.Unix.Catalog.GetString("Location"); w1.Add(this.LocationAction, null); this.GroupsAction = new Gtk.ToggleAction("GroupsAction", Mono.Unix.Catalog.GetString("Groups"), null, "Groups"); this.GroupsAction.ShortLabel = Mono.Unix.Catalog.GetString("Groups"); w1.Add(this.GroupsAction, null); this.SearchAction = new Gtk.ToggleAction("SearchAction", Mono.Unix.Catalog.GetString("Search"), null, null); this.SearchAction.ShortLabel = Mono.Unix.Catalog.GetString("Search"); w1.Add(this.SearchAction, null); this.SettingsAction = new Gtk.Action("SettingsAction", Mono.Unix.Catalog.GetString("Settings"), null, null); this.SettingsAction.ShortLabel = Mono.Unix.Catalog.GetString("Settings"); w1.Add(this.SettingsAction, null); this.PreferencesAction = new Gtk.Action("PreferencesAction", Mono.Unix.Catalog.GetString("Preferences"), null, "gtk-properties"); this.PreferencesAction.ShortLabel = Mono.Unix.Catalog.GetString("Preferences"); w1.Add(this.PreferencesAction, null); this.VIewAction = new Gtk.Action("VIewAction", Mono.Unix.Catalog.GetString("VIew"), null, null); this.VIewAction.ShortLabel = Mono.Unix.Catalog.GetString("VIew"); w1.Add(this.VIewAction, null); this.BrowserAction = new Gtk.Action("BrowserAction", Mono.Unix.Catalog.GetString("Browser"), null, null); this.BrowserAction.ShortLabel = Mono.Unix.Catalog.GetString("Browser"); w1.Add(this.BrowserAction, null); this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, "gtk-help"); this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help"); w1.Add(this.HelpAction, null); this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("About"), null, "gtk-about"); this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("About"); w1.Add(this.AboutAction, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.WidthRequest = 800; this.HeightRequest = 600; this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("MainWindow"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.AllowShrink = true; // Container child MainWindow.Gtk.Container+ContainerChild this.vbox6 = new Gtk.VBox(); this.vbox6.Name = "vbox6"; this.vbox6.Spacing = 6; // Container child vbox6.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='StatusAction' action='StatusAction'><menuitem name='AvaiableAction' action='AvaiableAction'/><menuitem name='BusyAction' action='BusyAction'/><menuitem name='AwayAction' action='AwayAction'/><separator/><menuitem name='StandingAction' action='StandingAction'/><menuitem name='GroundSitAction' action='GroundSitAction'/><menuitem name='CrouchAction' action='CrouchAction'/><menuitem name='FlyAction' action='FlyAction'/><menuitem name='SittingAction' action='SittingAction'/></menu><menu name='ToolsAction' action='ToolsAction'><menuitem name='ParcelAction' action='ParcelAction'/><menuitem name='ObjectsAction' action='ObjectsAction'/><menuitem name='InventoryAction' action='InventoryAction'/><menuitem name='LocationAction' action='LocationAction'/><menuitem name='GroupsAction' action='GroupsAction'/><menuitem name='SearchAction' action='SearchAction'/></menu><menu name='SettingsAction' action='SettingsAction'><menuitem name='PreferencesAction' action='PreferencesAction'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='AboutAction' action='AboutAction'/></menu></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox6.Add(this.menubar1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox6[this.menubar1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.notebook = new Gtk.Notebook(); this.notebook.CanFocus = true; this.notebook.Name = "notebook"; this.notebook.CurrentPage = 0; this.notebook.Scrollable = true; // Container child notebook.Gtk.Notebook+NotebookChild this.logincontrol5 = new omvviewerlight.LoginControl(); this.logincontrol5.Events = ((Gdk.EventMask)(256)); this.logincontrol5.Name = "logincontrol5"; this.notebook.Add(this.logincontrol5); // Notebook tab this.label8 = new Gtk.Label(); this.label8.Name = "label8"; this.label8.LabelProp = Mono.Unix.Catalog.GetString("Login"); this.notebook.SetTabLabel(this.logincontrol5, this.label8); this.label8.ShowAll(); this.vbox6.Add(this.notebook); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox6[this.notebook])); w4.Position = 1; // Container child vbox6.Gtk.Box+BoxChild this.statusbar1 = new Gtk.Statusbar(); this.statusbar1.HeightRequest = 20; this.statusbar1.Name = "statusbar1"; this.statusbar1.Spacing = 6; this.vbox6.Add(this.statusbar1); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox6[this.statusbar1])); w5.Position = 2; w5.Expand = false; w5.Fill = false; this.Add(this.vbox6); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 812; this.DefaultHeight = 629; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.BusyAction.Activated += new System.EventHandler(this.OnBusyActionActivated); this.AwayAction.Activated += new System.EventHandler(this.OnAwayActionActivated); this.GroundSitAction.Activated += new System.EventHandler(this.OnGroundSitActionActivated); this.CrouchAction.Activated += new System.EventHandler(this.OnCrouchActionActivated); this.FlyAction.Activated += new System.EventHandler(this.OnFlyActionActivated); this.AvaiableAction.Activated += new System.EventHandler(this.OnAvaiableActionActivated); this.StandingAction.Activated += new System.EventHandler(this.OnStandingActionActivated); this.ParcelAction.Toggled += new System.EventHandler(this.OnParcelActionToggled); this.ObjectsAction.Toggled += new System.EventHandler(this.OnObjectsActionToggled); this.InventoryAction.Toggled += new System.EventHandler(this.OnInventoryActionToggled); this.LocationAction.Toggled += new System.EventHandler(this.OnLocationActionToggled); this.GroupsAction.Toggled += new System.EventHandler(this.OnGroupsActionToggled); this.SearchAction.Toggled += new System.EventHandler(this.OnSearchActionToggled); this.PreferencesAction.Activated += new System.EventHandler(this.OnPreferencesActionActivated); this.BrowserAction.Activated += new System.EventHandler(this.OnBrowserActionActivated); this.AboutAction.Activated += new System.EventHandler(this.OnAboutActionActivated); }
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.jumpToAction = new Gtk.Action("jumpToAction", Mono.Unix.Catalog.GetString("Restart"), null, "gtk-jump-to"); this.jumpToAction.ShortLabel = Mono.Unix.Catalog.GetString("Restart"); w1.Add(this.jumpToAction, 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, "none"); this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("About..."); w1.Add(this.HelpAction, null); this.saveAction = new Gtk.Action("saveAction", Mono.Unix.Catalog.GetString("Take snapshot"), null, "gtk-save"); this.saveAction.ShortLabel = Mono.Unix.Catalog.GetString("Take snapshot"); w1.Add(this.saveAction, null); this.helpAction = new Gtk.Action("helpAction", Mono.Unix.Catalog.GetString("About..."), null, "gtk-help"); this.helpAction.ShortLabel = Mono.Unix.Catalog.GetString("About..."); w1.Add(this.helpAction, null); this.OptionsAction = new Gtk.Action("OptionsAction", Mono.Unix.Catalog.GetString("Options"), null, null); this.OptionsAction.ShortLabel = Mono.Unix.Catalog.GetString("Options"); w1.Add(this.OptionsAction, null); this.GraphicsAction = new Gtk.Action("GraphicsAction", Mono.Unix.Catalog.GetString("Graphics"), null, null); this.GraphicsAction.ShortLabel = Mono.Unix.Catalog.GetString("Graphics"); w1.Add(this.GraphicsAction, null); this.AnimationDelayAction = new Gtk.Action("AnimationDelayAction", Mono.Unix.Catalog.GetString("Animation Delay"), null, null); this.AnimationDelayAction.ShortLabel = Mono.Unix.Catalog.GetString("Animation Delay"); w1.Add(this.AnimationDelayAction, null); this.mediaPlayAction = new Gtk.Action("mediaPlayAction", Mono.Unix.Catalog.GetString("Frame Delay"), null, "gtk-media-play"); this.mediaPlayAction.ShortLabel = Mono.Unix.Catalog.GetString("Frame Delay"); w1.Add(this.mediaPlayAction, null); this.d500MsAction = new Gtk.RadioAction("d500MsAction", Mono.Unix.Catalog.GetString("500 ms"), null, null, 0); this.d500MsAction.Group = new GLib.SList(System.IntPtr.Zero); this.d500MsAction.ShortLabel = Mono.Unix.Catalog.GetString("500 ms"); w1.Add(this.d500MsAction, null); this.d1000MsAction = new Gtk.RadioAction("d1000MsAction", Mono.Unix.Catalog.GetString("1000 ms"), null, null, 0); this.d1000MsAction.Group = this.d500MsAction.Group; this.d1000MsAction.ShortLabel = Mono.Unix.Catalog.GetString("1000 ms"); w1.Add(this.d1000MsAction, null); this.d250MsAction = new Gtk.RadioAction("d250MsAction", Mono.Unix.Catalog.GetString("250 ms"), null, null, 0); this.d250MsAction.Group = this.d500MsAction.Group; this.d250MsAction.ShortLabel = Mono.Unix.Catalog.GetString("250 ms"); w1.Add(this.d250MsAction, null); this.d100MsAction = new Gtk.RadioAction("d100MsAction", Mono.Unix.Catalog.GetString("100 ms"), null, null, 0); this.d100MsAction.Group = this.d500MsAction.Group; this.d100MsAction.ShortLabel = Mono.Unix.Catalog.GetString("100 ms"); w1.Add(this.d100MsAction, null); this.DrawGridAction = new Gtk.ToggleAction("DrawGridAction", Mono.Unix.Catalog.GetString("Draw Grid"), null, null); this.DrawGridAction.ShortLabel = Mono.Unix.Catalog.GetString("Draw Grid"); w1.Add(this.DrawGridAction, null); this.ANSIOnlyAction = new Gtk.ToggleAction("ANSIOnlyAction", Mono.Unix.Catalog.GetString("ANSI Only"), null, null); this.ANSIOnlyAction.Active = true; this.ANSIOnlyAction.ShortLabel = Mono.Unix.Catalog.GetString("ANSI Only"); w1.Add(this.ANSIOnlyAction, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("GVisHuff - Adaptive Huffman Animator"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.MainLayout = new Gtk.VBox(); this.MainLayout.Name = "MainLayout"; this.MainLayout.Spacing = 6; // Container child MainLayout.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><menubar name='MainMenu'><menu name='FileAction' action='FileAction'><menuitem name='jumpToAction' action='jumpToAction'/><menuitem name='saveAction' action='saveAction'/><separator/><menuitem name='quitAction' action='quitAction'/></menu><menu name='OptionsAction' action='OptionsAction'><menu name='mediaPlayAction' action='mediaPlayAction'><menuitem name='d100MsAction' action='d100MsAction'/><menuitem name='d250MsAction' action='d250MsAction'/><menuitem name='d500MsAction' action='d500MsAction'/><menuitem name='d1000MsAction' action='d1000MsAction'/></menu><menuitem name='DrawGridAction' action='DrawGridAction'/><menuitem name='ANSIOnlyAction' action='ANSIOnlyAction'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='helpAction' action='helpAction'/></menu></menubar></ui>"); this.MainMenu = ((Gtk.MenuBar)(this.UIManager.GetWidget("/MainMenu"))); this.MainMenu.Name = "MainMenu"; this.MainLayout.Add(this.MainMenu); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.MainLayout[this.MainMenu])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child MainLayout.Gtk.Box+BoxChild this.SenderHBox = new Gtk.HBox(); this.SenderHBox.Name = "SenderHBox"; this.SenderHBox.Homogeneous = true; this.SenderHBox.Spacing = 6; // Container child SenderHBox.Gtk.Box+BoxChild this.SenderVBox = new Gtk.VBox(); this.SenderVBox.Name = "SenderVBox"; this.SenderVBox.Spacing = 6; // Container child SenderVBox.Gtk.Box+BoxChild this.MsgEncHBox = new Gtk.HBox(); this.MsgEncHBox.Name = "MsgEncHBox"; this.MsgEncHBox.Spacing = 6; // Container child MsgEncHBox.Gtk.Box+BoxChild this.SenderEntry = new Gtk.Entry(); this.SenderEntry.CanFocus = true; this.SenderEntry.Name = "SenderEntry"; this.SenderEntry.IsEditable = false; this.SenderEntry.InvisibleChar = '●'; this.MsgEncHBox.Add(this.SenderEntry); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.MsgEncHBox[this.SenderEntry])); w3.Position = 0; // Container child MsgEncHBox.Gtk.Box+BoxChild this.SendButton = new Gtk.Button(); this.SendButton.CanFocus = true; this.SendButton.Name = "SendButton"; this.SendButton.UseUnderline = true; // Container child SendButton.Gtk.Container+ContainerChild Gtk.Alignment w4 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w5 = new Gtk.HBox(); w5.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w6 = new Gtk.Image(); w6.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-play", Gtk.IconSize.Menu, 16); w5.Add(w6); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w8 = new Gtk.Label(); w8.LabelProp = Mono.Unix.Catalog.GetString("Send Message"); w8.UseUnderline = true; w5.Add(w8); w4.Add(w5); this.SendButton.Add(w4); this.MsgEncHBox.Add(this.SendButton); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.MsgEncHBox[this.SendButton])); w12.Position = 1; w12.Expand = false; w12.Fill = false; this.SenderVBox.Add(this.MsgEncHBox); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.SenderVBox[this.MsgEncHBox])); w13.Position = 0; w13.Expand = false; w13.Fill = false; // Container child SenderVBox.Gtk.Box+BoxChild this.SenderScrWnd = new Gtk.ScrolledWindow(); this.SenderScrWnd.CanFocus = true; this.SenderScrWnd.Name = "SenderScrWnd"; this.SenderScrWnd.ShadowType = ((Gtk.ShadowType)(1)); // Container child SenderScrWnd.Gtk.Container+ContainerChild Gtk.Viewport w14 = new Gtk.Viewport(); w14.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.SenderTreeDrawer = new Gtk.DrawingArea(); this.SenderTreeDrawer.Name = "SenderTreeDrawer"; w14.Add(this.SenderTreeDrawer); this.SenderScrWnd.Add(w14); this.SenderVBox.Add(this.SenderScrWnd); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.SenderVBox[this.SenderScrWnd])); w17.Position = 1; this.SenderHBox.Add(this.SenderVBox); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.SenderHBox[this.SenderVBox])); w18.Position = 0; // Container child SenderHBox.Gtk.Box+BoxChild this.ReceiverVBox = new Gtk.VBox(); this.ReceiverVBox.Name = "ReceiverVBox"; this.ReceiverVBox.Spacing = 6; // Container child ReceiverVBox.Gtk.Box+BoxChild this.DecHBox = new Gtk.HBox(); this.DecHBox.Name = "DecHBox"; this.DecHBox.Spacing = 6; // Container child DecHBox.Gtk.Box+BoxChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Decoded message:"); this.DecHBox.Add(this.label3); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.DecHBox[this.label3])); w19.Position = 0; w19.Expand = false; w19.Fill = false; // Container child DecHBox.Gtk.Box+BoxChild this.DecEntry = new Gtk.Entry(); this.DecEntry.CanFocus = true; this.DecEntry.Name = "DecEntry"; this.DecEntry.IsEditable = false; this.DecEntry.InvisibleChar = '●'; this.DecHBox.Add(this.DecEntry); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.DecHBox[this.DecEntry])); w20.Position = 1; this.ReceiverVBox.Add(this.DecHBox); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.ReceiverVBox[this.DecHBox])); w21.Position = 0; w21.Expand = false; w21.Fill = false; // Container child ReceiverVBox.Gtk.Box+BoxChild this.ReceiverScrWnd = new Gtk.ScrolledWindow(); this.ReceiverScrWnd.CanFocus = true; this.ReceiverScrWnd.Name = "ReceiverScrWnd"; this.ReceiverScrWnd.ShadowType = ((Gtk.ShadowType)(1)); // Container child ReceiverScrWnd.Gtk.Container+ContainerChild Gtk.Viewport w22 = new Gtk.Viewport(); w22.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport1.Gtk.Container+ContainerChild this.ReceiverTreeDrawer = new Gtk.DrawingArea(); this.ReceiverTreeDrawer.Name = "ReceiverTreeDrawer"; w22.Add(this.ReceiverTreeDrawer); this.ReceiverScrWnd.Add(w22); this.ReceiverVBox.Add(this.ReceiverScrWnd); Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.ReceiverVBox[this.ReceiverScrWnd])); w25.Position = 1; this.SenderHBox.Add(this.ReceiverVBox); Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.SenderHBox[this.ReceiverVBox])); w26.Position = 1; this.MainLayout.Add(this.SenderHBox); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.MainLayout[this.SenderHBox])); w27.Position = 1; // Container child MainLayout.Gtk.Box+BoxChild this.BinHBox = new Gtk.HBox(); this.BinHBox.Name = "BinHBox"; this.BinHBox.Spacing = 6; // Container child BinHBox.Gtk.Box+BoxChild this.BinLabel = new Gtk.Label(); this.BinLabel.Name = "BinLabel"; this.BinLabel.LabelProp = Mono.Unix.Catalog.GetString("Data transferred"); this.BinHBox.Add(this.BinLabel); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.BinHBox[this.BinLabel])); w28.Position = 0; w28.Expand = false; w28.Fill = false; // Container child BinHBox.Gtk.Box+BoxChild this.BinEntry = new Gtk.Entry(); this.BinEntry.CanFocus = true; this.BinEntry.Name = "BinEntry"; this.BinEntry.IsEditable = false; this.BinEntry.InvisibleChar = '●'; this.BinHBox.Add(this.BinEntry); Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.BinHBox[this.BinEntry])); w29.Position = 1; this.MainLayout.Add(this.BinHBox); Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.MainLayout[this.BinHBox])); w30.Position = 2; w30.Expand = false; w30.Fill = false; // Container child MainLayout.Gtk.Box+BoxChild this.HotkeyHintLabel = new Gtk.Label(); this.HotkeyHintLabel.Name = "HotkeyHintLabel"; this.HotkeyHintLabel.LabelProp = Mono.Unix.Catalog.GetString("<Ctl-S> to capture the screen, <Ctl-Q> to quit"); this.MainLayout.Add(this.HotkeyHintLabel); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.MainLayout[this.HotkeyHintLabel])); w31.PackType = ((Gtk.PackType)(1)); w31.Position = 3; w31.Expand = false; w31.Fill = false; this.Add(this.MainLayout); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 697; this.DefaultHeight = 538; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.jumpToAction.Activated += new System.EventHandler(this.OnRedoActionActivated); this.quitAction.Activated += new System.EventHandler(this.OnQuitActionActivated); this.saveAction.Activated += new System.EventHandler(this.OnSaveAsActionActivated); this.helpAction.Activated += new System.EventHandler(this.OnAboutActionActivated); this.d500MsAction.Activated += new System.EventHandler(this.On500MsActionActivated); this.d1000MsAction.Activated += new System.EventHandler(this.On1000MsActionActivated); this.d250MsAction.Activated += new System.EventHandler(this.On250MsActionActivated); this.d100MsAction.Activated += new System.EventHandler(this.On100MsActionActivated); this.DrawGridAction.Toggled += new System.EventHandler(this.OnDrawGridActionToggled); this.ANSIOnlyAction.Toggled += new System.EventHandler(this.OnANSIOnlyActionToggled); this.SenderEntry.KeyReleaseEvent += new Gtk.KeyReleaseEventHandler(this.OnSenderEntryKeyReleaseEvent); this.SendButton.Clicked += new System.EventHandler(this.OnSendButtonClicked); this.SenderTreeDrawer.ExposeEvent += new Gtk.ExposeEventHandler(this.OnSenderTreeDrawerExposeEvent); this.ReceiverTreeDrawer.ExposeEvent += new Gtk.ExposeEventHandler(this.OnReceiverTreeDrawerExposeEvent); }
public void JoinGroup(Gtk.RadioAction group_source) { gtk_radio_action_join_group(Handle, group_source == null ? IntPtr.Zero : group_source.Handle); }
protected virtual void OnChanged(Gtk.RadioAction current) { InternalChanged(current); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget LunarEclipse.View.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.OpenAction = new Gtk.Action("OpenAction", Mono.Unix.Catalog.GetString("_Abrir"), null, "gtk-open"); this.OpenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Abrir"); w1.Add(this.OpenAction, null); this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("_Nuevo"), null, "gtk-new"); this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("_Nuevo"); w1.Add(this.NewAction, null); this.SaveAction = new Gtk.Action("SaveAction", Mono.Unix.Catalog.GetString("_Guardar"), null, "gtk-save"); this.SaveAction.ShortLabel = Mono.Unix.Catalog.GetString("_Guardar"); w1.Add(this.SaveAction, null); this.SaveAsAction = new Gtk.Action("SaveAsAction", Mono.Unix.Catalog.GetString("Guardar _como"), null, "gtk-save-as"); this.SaveAsAction.ShortLabel = Mono.Unix.Catalog.GetString("Guardar _como"); w1.Add(this.SaveAsAction, null); this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Salir"), null, "gtk-quit"); this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Salir"); w1.Add(this.QuitAction, null); this.EditAction = new Gtk.Action("EditAction", Mono.Unix.Catalog.GetString("_Edit"), null, null); this.EditAction.ShortLabel = Mono.Unix.Catalog.GetString("_Edit"); w1.Add(this.EditAction, null); this.ToolsAction = new Gtk.Action("ToolsAction", Mono.Unix.Catalog.GetString("_Tools"), null, null); this.ToolsAction.ShortLabel = Mono.Unix.Catalog.GetString("_Tools"); w1.Add(this.ToolsAction, 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.UndoAction = new Gtk.Action("UndoAction", Mono.Unix.Catalog.GetString("_Deshacer"), null, "gtk-undo"); this.UndoAction.Sensitive = false; this.UndoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Deshacer"); w1.Add(this.UndoAction, "<Control>z"); this.RedoAction = new Gtk.Action("RedoAction", Mono.Unix.Catalog.GetString("_Rehacer"), null, "gtk-redo"); this.RedoAction.Sensitive = false; this.RedoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Rehacer"); w1.Add(this.RedoAction, "<Control>y"); this.CutAction = new Gtk.Action("CutAction", Mono.Unix.Catalog.GetString("Cor_tar"), null, "gtk-cut"); this.CutAction.ShortLabel = Mono.Unix.Catalog.GetString("Cor_tar"); w1.Add(this.CutAction, null); this.CopiarAction = new Gtk.Action("CopiarAction", Mono.Unix.Catalog.GetString("_Copiar"), null, "gtk-copy"); this.CopiarAction.ShortLabel = Mono.Unix.Catalog.GetString("_Copiar"); w1.Add(this.CopiarAction, null); this.PasteAction = new Gtk.Action("PasteAction", Mono.Unix.Catalog.GetString("_Pegar"), null, "gtk-paste"); this.PasteAction.ShortLabel = Mono.Unix.Catalog.GetString("_Pegar"); w1.Add(this.PasteAction, null); this.DeleteAction = new Gtk.Action("DeleteAction", Mono.Unix.Catalog.GetString("_Borrar"), null, "gtk-delete"); this.DeleteAction.ShortLabel = Mono.Unix.Catalog.GetString("_Borrar"); w1.Add(this.DeleteAction, "<Mod2>Delete"); this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("Acerca _de"), null, "gtk-about"); this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("Acerca _de"); w1.Add(this.AboutAction, null); this.SelectionToolAction = new Gtk.RadioAction("SelectionToolAction", Mono.Unix.Catalog.GetString("_Selection Tool"), null, "selection-tool", 0); this.SelectionToolAction.Group = new GLib.SList(System.IntPtr.Zero); this.SelectionToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Selection Tool"); w1.Add(this.SelectionToolAction, null); this.RectangleToolAction = new Gtk.RadioAction("RectangleToolAction", Mono.Unix.Catalog.GetString("_Rectangle Tool"), null, "rectangle-tool", 0); this.RectangleToolAction.Group = this.SelectionToolAction.Group; this.RectangleToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Rectangle Tool"); w1.Add(this.RectangleToolAction, null); this.SquareToolAction = new Gtk.RadioAction("SquareToolAction", Mono.Unix.Catalog.GetString("S_quare Tool"), null, "square-tool", 0); this.SquareToolAction.Group = this.RectangleToolAction.Group; this.SquareToolAction.ShortLabel = Mono.Unix.Catalog.GetString("S_quare Tool"); w1.Add(this.SquareToolAction, null); this.EllipseToolAction = new Gtk.RadioAction("EllipseToolAction", Mono.Unix.Catalog.GetString("_Ellipse Tool"), null, "ellipse-tool", 0); this.EllipseToolAction.Group = this.RectangleToolAction.Group; this.EllipseToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Ellipse Tool"); w1.Add(this.EllipseToolAction, null); this.CircleToolAction = new Gtk.RadioAction("CircleToolAction", Mono.Unix.Catalog.GetString("_Circle Tool"), null, "circle-tool", 0); this.CircleToolAction.Group = this.EllipseToolAction.Group; this.CircleToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Circle Tool"); w1.Add(this.CircleToolAction, null); this.PathToolAction = new Gtk.RadioAction("PathToolAction", Mono.Unix.Catalog.GetString("_Path Tool"), null, "path-tool", 0); this.PathToolAction.Group = this.CircleToolAction.Group; this.PathToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Path Tool"); w1.Add(this.PathToolAction, null); this.TextToolAction = new Gtk.RadioAction("TextToolAction", Mono.Unix.Catalog.GetString("_Text Tool"), null, "text-tool", 0); this.TextToolAction.Group = this.CircleToolAction.Group; this.TextToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Text Tool"); w1.Add(this.TextToolAction, null); this.ImageToolAction = new Gtk.RadioAction("ImageToolAction", Mono.Unix.Catalog.GetString("Image Tool"), null, "image-tool", 0); this.ImageToolAction.Group = this.CircleToolAction.Group; this.ImageToolAction.ShortLabel = Mono.Unix.Catalog.GetString("Image Tool"); w1.Add(this.ImageToolAction, null); this.AnimationAction = new Gtk.Action("AnimationAction", Mono.Unix.Catalog.GetString("_Animation"), null, null); this.AnimationAction.ShortLabel = Mono.Unix.Catalog.GetString("_Animation"); w1.Add(this.AnimationAction, null); this.RecordAction = new Gtk.Action("RecordAction", Mono.Unix.Catalog.GetString("_Grabar"), null, "gtk-media-record"); this.RecordAction.ShortLabel = Mono.Unix.Catalog.GetString("_Grabar"); w1.Add(this.RecordAction, null); this.ReproducirAction = new Gtk.Action("ReproducirAction", Mono.Unix.Catalog.GetString("_Reproducir"), null, "gtk-media-play"); this.ReproducirAction.ShortLabel = Mono.Unix.Catalog.GetString("_Reproducir"); w1.Add(this.ReproducirAction, null); this.StopAction = new Gtk.Action("StopAction", Mono.Unix.Catalog.GetString("_Detener"), null, "gtk-media-stop"); this.StopAction.ShortLabel = Mono.Unix.Catalog.GetString("_Detener"); w1.Add(this.StopAction, null); this.LineToolAction = new Gtk.RadioAction("LineToolAction", Mono.Unix.Catalog.GetString("_Line Tool"), null, "line-tool", 0); this.LineToolAction.Group = this.CircleToolAction.Group; this.LineToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Line Tool"); w1.Add(this.LineToolAction, null); this.DrawingAction = new Gtk.Action("DrawingAction", Mono.Unix.Catalog.GetString("Drawing"), null, null); this.DrawingAction.ShortLabel = Mono.Unix.Catalog.GetString("Drawing"); w1.Add(this.DrawingAction, null); this.CleanAction = new Gtk.Action("CleanAction", Mono.Unix.Catalog.GetString("_Limpiar"), null, "gtk-clear"); this.CleanAction.ShortLabel = Mono.Unix.Catalog.GetString("_Limpiar"); w1.Add(this.CleanAction, null); this.PolylineToolAction = new Gtk.RadioAction("PolylineToolAction", Mono.Unix.Catalog.GetString("Polyline Tool"), null, "polyline-tool", 0); this.PolylineToolAction.Group = this.CircleToolAction.Group; this.PolylineToolAction.ShortLabel = Mono.Unix.Catalog.GetString("Polyline Tool"); w1.Add(this.PolylineToolAction, null); this.PenToolAction = new Gtk.RadioAction("PenToolAction", Mono.Unix.Catalog.GetString("P_en Tool"), null, "pen-tool", 0); this.PenToolAction.Group = this.CircleToolAction.Group; this.PenToolAction.ShortLabel = Mono.Unix.Catalog.GetString("P_en Tool"); w1.Add(this.PenToolAction, null); this.debug1 = new Gtk.Action("debug1", null, Mono.Unix.Catalog.GetString("Debug"), "gtk-dialog-warning"); w1.Add(this.debug1, null); this.FiguresAction = new Gtk.Action("FiguresAction", Mono.Unix.Catalog.GetString("Fi_gures"), null, null); this.FiguresAction.ShortLabel = Mono.Unix.Catalog.GetString("Fi_gure"); w1.Add(this.FiguresAction, null); this.OrderAction = new Gtk.Action("OrderAction", Mono.Unix.Catalog.GetString("Order"), null, null); this.OrderAction.ShortLabel = Mono.Unix.Catalog.GetString("Order"); w1.Add(this.OrderAction, null); this.AlignAction = new Gtk.Action("AlignAction", Mono.Unix.Catalog.GetString("_Align"), null, null); this.AlignAction.ShortLabel = Mono.Unix.Catalog.GetString("_Align"); w1.Add(this.AlignAction, null); this.BringToFrontAction = new Gtk.Action("BringToFrontAction", Mono.Unix.Catalog.GetString("Bring to _Front"), null, "gtk-goto-top"); this.BringToFrontAction.Sensitive = false; this.BringToFrontAction.ShortLabel = Mono.Unix.Catalog.GetString("Bring to _Front"); w1.Add(this.BringToFrontAction, null); this.SendToBackAction = new Gtk.Action("SendToBackAction", Mono.Unix.Catalog.GetString("Send to _Back"), null, "gtk-goto-bottom"); this.SendToBackAction.Sensitive = false; this.SendToBackAction.ShortLabel = Mono.Unix.Catalog.GetString("Send to _Back"); w1.Add(this.SendToBackAction, null); this.BringForwardsAction = new Gtk.Action("BringForwardsAction", Mono.Unix.Catalog.GetString("Bring Forwards"), null, "gtk-go-up"); this.BringForwardsAction.Sensitive = false; this.BringForwardsAction.ShortLabel = Mono.Unix.Catalog.GetString("Send Forwards"); w1.Add(this.BringForwardsAction, null); this.SendBackwarsAction = new Gtk.Action("SendBackwarsAction", Mono.Unix.Catalog.GetString("Send Backwars"), null, "gtk-go-down"); this.SendBackwarsAction.Sensitive = false; this.SendBackwarsAction.ShortLabel = Mono.Unix.Catalog.GetString("Bring Backwars"); w1.Add(this.SendBackwarsAction, null); this.LeftAction = new Gtk.Action("LeftAction", Mono.Unix.Catalog.GetString("Left"), null, null); this.LeftAction.ShortLabel = Mono.Unix.Catalog.GetString("Left"); w1.Add(this.LeftAction, null); this.HorizontalCenterAction = new Gtk.Action("HorizontalCenterAction", Mono.Unix.Catalog.GetString("Horizontal Center"), null, null); this.HorizontalCenterAction.ShortLabel = Mono.Unix.Catalog.GetString("Center"); w1.Add(this.HorizontalCenterAction, null); this.RightAction = new Gtk.Action("RightAction", Mono.Unix.Catalog.GetString("Right"), null, null); this.RightAction.ShortLabel = Mono.Unix.Catalog.GetString("Right"); w1.Add(this.RightAction, null); this.TopAction = new Gtk.Action("TopAction", Mono.Unix.Catalog.GetString("Top"), null, null); this.TopAction.ShortLabel = Mono.Unix.Catalog.GetString("Top"); w1.Add(this.TopAction, null); this.VerticalCenterAction = new Gtk.Action("VerticalCenterAction", Mono.Unix.Catalog.GetString("Vertical Center"), null, null); this.VerticalCenterAction.ShortLabel = Mono.Unix.Catalog.GetString("Middle"); w1.Add(this.VerticalCenterAction, null); this.BottomAction = new Gtk.Action("BottomAction", Mono.Unix.Catalog.GetString("Bottom"), null, null); this.BottomAction.ShortLabel = Mono.Unix.Catalog.GetString("Bottom"); w1.Add(this.BottomAction, null); this.debug2 = new Gtk.Action("debug2", null, Mono.Unix.Catalog.GetString("Debug2"), "gtk-dialog-error"); w1.Add(this.debug2, null); this.CloneAction = new Gtk.Action("CloneAction", Mono.Unix.Catalog.GetString("Cl_one"), null, null); this.CloneAction.ShortLabel = Mono.Unix.Catalog.GetString("Clone"); w1.Add(this.CloneAction, null); this.SelectAllAction = new Gtk.Action("SelectAllAction", Mono.Unix.Catalog.GetString("_Select All"), null, null); this.SelectAllAction.ShortLabel = Mono.Unix.Catalog.GetString("Select All"); w1.Add(this.SelectAllAction, "<Control><Mod2>a"); this.ClearSelectionAction = new Gtk.Action("ClearSelectionAction", Mono.Unix.Catalog.GetString("Clear S_election"), null, null); this.ClearSelectionAction.ShortLabel = Mono.Unix.Catalog.GetString("Clear S_election"); w1.Add(this.ClearSelectionAction, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "LunarEclipse.View.MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Lunar Eclipse"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.DefaultWidth = 800; // Container child LunarEclipse.View.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='FileAction' action='FileAction'><menuitem name='NewAction' action='NewAction'/><menuitem name='OpenAction' action='OpenAction'/><separator/><menuitem name='SaveAction' action='SaveAction'/><menuitem name='SaveAsAction' action='SaveAsAction'/><separator/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='EditAction' action='EditAction'><menuitem name='UndoAction' action='UndoAction'/><menuitem name='RedoAction' action='RedoAction'/><separator/><menuitem name='CutAction' action='CutAction'/><menuitem name='CopiarAction' action='CopiarAction'/><menuitem name='PasteAction' action='PasteAction'/><menuitem name='CloneAction' action='CloneAction'/><menuitem name='DeleteAction' action='DeleteAction'/><separator/><menuitem name='SelectAllAction' action='SelectAllAction'/><menuitem name='ClearSelectionAction' action='ClearSelectionAction'/></menu><menu name='DrawingAction' action='DrawingAction'><menuitem name='CleanAction' action='CleanAction'/></menu><menu name='FiguresAction' action='FiguresAction'><menu name='OrderAction' action='OrderAction'><menuitem name='BringToFrontAction' action='BringToFrontAction'/><menuitem name='BringForwardsAction' action='BringForwardsAction'/><menuitem name='SendToBackAction' action='SendToBackAction'/><menuitem name='SendBackwarsAction' action='SendBackwarsAction'/></menu><menu name='AlignAction' action='AlignAction'><menuitem name='LeftAction' action='LeftAction'/><menuitem name='HorizontalCenterAction' action='HorizontalCenterAction'/><menuitem name='RightAction' action='RightAction'/><separator/><menuitem name='TopAction' action='TopAction'/><menuitem name='VerticalCenterAction' action='VerticalCenterAction'/><menuitem name='BottomAction' action='BottomAction'/></menu></menu><menu name='ToolsAction' action='ToolsAction'><menuitem name='SelectionToolAction' action='SelectionToolAction'/><menuitem name='RectangleToolAction' action='RectangleToolAction'/><menuitem name='SquareToolAction' action='SquareToolAction'/><menuitem name='EllipseToolAction' action='EllipseToolAction'/><menuitem name='CircleToolAction' action='CircleToolAction'/><menuitem name='LineToolAction' action='LineToolAction'/><menuitem name='PolylineToolAction' action='PolylineToolAction'/><menuitem name='PenToolAction' action='PenToolAction'/><menuitem name='PathToolAction' action='PathToolAction'/><menuitem name='TextToolAction' action='TextToolAction'/><menuitem name='ImageToolAction' action='ImageToolAction'/></menu><menu name='AnimationAction' action='AnimationAction'><menuitem name='StopAction' action='StopAction'/><menuitem name='ReproducirAction' action='ReproducirAction'/><menuitem name='RecordAction' action='RecordAction'/></menu><menu name='HelpAction' action='HelpAction'><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='NewAction' action='NewAction'/><toolitem name='OpenAction' action='OpenAction'/><toolitem name='SaveAction' action='SaveAction'/><separator/><toolitem name='UndoAction' action='UndoAction'/><toolitem name='RedoAction' action='RedoAction'/><separator/><toolitem name='CutAction' action='CutAction'/><toolitem name='CopiarAction' action='CopiarAction'/><toolitem name='PasteAction' action='PasteAction'/></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.notebook = new Gtk.Notebook(); this.notebook.CanFocus = true; this.notebook.Name = "notebook"; this.notebook.CurrentPage = 0; this.notebook.TabPos = ((Gtk.PositionType)(3)); // Container child notebook.Gtk.Notebook+NotebookChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><toolbar name='toolbar2'><toolitem name='SelectionToolAction' action='SelectionToolAction'/><toolitem name='SquareToolAction' action='SquareToolAction'/><toolitem name='RectangleToolAction' action='RectangleToolAction'/><toolitem name='CircleToolAction' action='CircleToolAction'/><toolitem name='EllipseToolAction' action='EllipseToolAction'/><toolitem name='LineToolAction' action='LineToolAction'/><toolitem name='PolylineToolAction' action='PolylineToolAction'/><toolitem name='PathToolAction' action='PathToolAction'/><toolitem name='PenToolAction' action='PenToolAction'/><toolitem name='TextToolAction' action='TextToolAction'/><separator/><toolitem name='CleanAction' action='CleanAction'/><toolitem name='debug1' action='debug1'/><toolitem name='debug2' action='debug2'/></toolbar></ui>"); this.toolbar2 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar2"))); this.toolbar2.Name = "toolbar2"; this.toolbar2.Orientation = ((Gtk.Orientation)(1)); this.toolbar2.ShowArrow = false; this.toolbar2.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.hbox2.Add(this.toolbar2); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox2[this.toolbar2])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.hpaned1 = new Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 842; // Container child hpaned1.Gtk.Paned+PanedChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.scrolledwindow1 = new Gtk.ScrolledWindow(); this.scrolledwindow1.CanFocus = true; this.scrolledwindow1.Name = "scrolledwindow1"; this.scrolledwindow1.VscrollbarPolicy = ((Gtk.PolicyType)(0)); this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(0)); // Container child scrolledwindow1.Gtk.Container+ContainerChild Gtk.Viewport w5 = new Gtk.Viewport(); w5.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.moonlightwidget = new LunarEclipse.View.MoonlightWidget(); this.moonlightwidget.Events = ((Gdk.EventMask)(256)); this.moonlightwidget.Name = "moonlightwidget"; this.moonlightwidget.Height = 800; this.moonlightwidget.Width = 800; w5.Add(this.moonlightwidget); this.scrolledwindow1.Add(w5); this.vbox3.Add(this.scrolledwindow1); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox3[this.scrolledwindow1])); w8.Position = 0; // 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.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Zoom:"); this.hbox3.Add(this.label3); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox3[this.label3])); w9.Position = 0; w9.Expand = false; w9.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.zoomScale = new Gtk.HScale(null); this.zoomScale.CanFocus = true; this.zoomScale.Name = "zoomScale"; this.zoomScale.Adjustment.Upper = 500; this.zoomScale.Adjustment.PageIncrement = 10; this.zoomScale.Adjustment.StepIncrement = 1; this.zoomScale.Adjustment.Value = 100; this.zoomScale.DrawValue = true; this.zoomScale.Digits = 0; this.zoomScale.ValuePos = ((Gtk.PositionType)(2)); this.hbox3.Add(this.zoomScale); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox3[this.zoomScale])); w10.Position = 1; this.vbox3.Add(this.hbox3); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3])); w11.Position = 1; w11.Expand = false; w11.Fill = false; this.hpaned1.Add(this.vbox3); Gtk.Paned.PanedChild w12 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vbox3])); w12.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild this.propertypanel = new LunarEclipse.View.PropertyPanel(); this.propertypanel.Events = ((Gdk.EventMask)(256)); this.propertypanel.Name = "propertypanel"; this.hpaned1.Add(this.propertypanel); Gtk.Paned.PanedChild w13 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.propertypanel])); w13.Resize = false; this.vbox2.Add(this.hpaned1); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox2[this.hpaned1])); w14.Position = 0; this.hbox2.Add(this.vbox2); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox2])); w15.Position = 1; this.notebook.Add(this.hbox2); // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Design"); this.notebook.SetTabLabel(this.hbox2, this.label2); this.label2.ShowAll(); // Container child notebook.Gtk.Notebook+NotebookChild this.scrolledwindow2 = new Gtk.ScrolledWindow(); this.scrolledwindow2.CanFocus = true; this.scrolledwindow2.Name = "scrolledwindow2"; // Container child scrolledwindow2.Gtk.Container+ContainerChild Gtk.Viewport w17 = new Gtk.Viewport(); w17.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport2.Gtk.Container+ContainerChild this.xaml_textview = new Gtk.TextView(); this.xaml_textview.CanFocus = true; this.xaml_textview.Name = "xaml_textview"; w17.Add(this.xaml_textview); this.scrolledwindow2.Add(w17); this.notebook.Add(this.scrolledwindow2); Gtk.Notebook.NotebookChild w20 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.scrolledwindow2])); w20.Position = 1; // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Xaml Code"); this.notebook.SetTabLabel(this.scrolledwindow2, this.label1); this.label1.ShowAll(); this.vbox1.Add(this.notebook); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook])); w21.Position = 2; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultHeight = 729; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.OpenAction.Activated += new System.EventHandler(this.OnOpenActionActivated); this.SaveAction.Activated += new System.EventHandler(this.OnSaveActionActivated); this.UndoAction.Activated += new System.EventHandler(this.OnUndoActionActivated); this.RedoAction.Activated += new System.EventHandler(this.OnRedoActionActivated); this.CutAction.Activated += new System.EventHandler(this.OnCutActionActivated); this.CopiarAction.Activated += new System.EventHandler(this.OnCopyActionActivated); this.PasteAction.Activated += new System.EventHandler(this.OnPasteActionActivated); this.DeleteAction.Activated += new System.EventHandler(this.OnDeleteActionActivated); this.AboutAction.Activated += new System.EventHandler(this.OnAboutActionActivated); this.SelectionToolAction.Activated += new System.EventHandler(this.OnSelectionToolActionActivated); this.RectangleToolAction.Activated += new System.EventHandler(this.OnRectangleToolActionActivated); this.SquareToolAction.Activated += new System.EventHandler(this.OnSquareToolActionActivated); this.EllipseToolAction.Activated += new System.EventHandler(this.OnEllipseToolActionActivated); this.CircleToolAction.Activated += new System.EventHandler(this.OnCircleToolActionActivated); this.PathToolAction.Activated += new System.EventHandler(this.OnPathToolActionActivated); this.TextToolAction.Activated += new System.EventHandler(this.OnTextToolActionActivated); this.ImageToolAction.Activated += new System.EventHandler(this.OnImageToolActionActivated); this.LineToolAction.Activated += new System.EventHandler(this.OnLineToolActionActivated); this.CleanAction.Activated += new System.EventHandler(this.OnLimpiarActionActivated); this.PolylineToolAction.Activated += new System.EventHandler(this.OnPolylineToolActionActivated); this.PenToolAction.Activated += new System.EventHandler(this.OnPenToolActionActivated); this.debug1.Activated += new System.EventHandler(this.OnDebug1Activated); this.BringToFrontAction.Activated += new System.EventHandler(this.OnBringToFrontActionActivated); this.SendToBackAction.Activated += new System.EventHandler(this.OnSendToBackActionActivated); this.BringForwardsAction.Activated += new System.EventHandler(this.OnBringForwardsActionActivated); this.SendBackwarsAction.Activated += new System.EventHandler(this.OnSendBackwarsActionActivated); this.LeftAction.Activated += new System.EventHandler(this.OnLeftActionActivated); this.HorizontalCenterAction.Activated += new System.EventHandler(this.OnHorizontalCenterActionActivated); this.RightAction.Activated += new System.EventHandler(this.OnRightActionActivated); this.TopAction.Activated += new System.EventHandler(this.OnTopActionActivated); this.VerticalCenterAction.Activated += new System.EventHandler(this.OnVerticalCenterActionActivated); this.BottomAction.Activated += new System.EventHandler(this.OnBottomActionActivated); this.debug2.Activated += new System.EventHandler(this.OnDebug2Activated); this.CloneAction.Activated += new System.EventHandler(this.OnCloneActionActivated); this.SelectAllAction.Activated += new System.EventHandler(this.OnSelectAllActionActivated); this.ClearSelectionAction.Activated += new System.EventHandler(this.OnClearSelectionActionActivated); this.notebook.SwitchPage += new Gtk.SwitchPageHandler(this.OnNotebookSwitchPage); this.zoomScale.ValueChanged += new System.EventHandler(this.OnZoomScaleValueChanged); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MonoTwitts.Ui.MainWindow Gtk.UIManager w1 = new Gtk.UIManager(); Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); this.MenuAction = new Gtk.Action("MenuAction", Mono.Unix.Catalog.GetString("Menu"), null, null); this.MenuAction.ShortLabel = Mono.Unix.Catalog.GetString("Menu"); w2.Add(this.MenuAction, "<Control>m"); this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, null); this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help"); w2.Add(this.HelpAction, "<Control>h"); this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("About"), null, "gtk-about"); this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("About"); w2.Add(this.AboutAction, null); this.FriendsAction = new Gtk.RadioAction("FriendsAction", Mono.Unix.Catalog.GetString("Friends"), null, null, 0); this.FriendsAction.Group = new GLib.SList(System.IntPtr.Zero); this.FriendsAction.ShortLabel = Mono.Unix.Catalog.GetString("Friends"); w2.Add(this.FriendsAction, null); this.PublicAction = new Gtk.RadioAction("PublicAction", Mono.Unix.Catalog.GetString("Public"), null, null, 0); this.PublicAction.Group = this.FriendsAction.Group; this.PublicAction.ShortLabel = Mono.Unix.Catalog.GetString("Public"); w2.Add(this.PublicAction, null); this.DirectAction = new Gtk.RadioAction("DirectAction", Mono.Unix.Catalog.GetString("Direct"), null, null, 0); this.DirectAction.Group = this.PublicAction.Group; this.DirectAction.ShortLabel = Mono.Unix.Catalog.GetString("Direct"); w2.Add(this.DirectAction, null); this.ResponsesAction = new Gtk.RadioAction("ResponsesAction", Mono.Unix.Catalog.GetString("@ Responses"), null, null, 0); this.ResponsesAction.Group = this.PublicAction.Group; this.ResponsesAction.ShortLabel = Mono.Unix.Catalog.GetString("@ Responses"); w2.Add(this.ResponsesAction, null); this.PreferencesAction = new Gtk.Action("PreferencesAction", Mono.Unix.Catalog.GetString("Preferences"), null, "gtk-preferences"); this.PreferencesAction.ShortLabel = Mono.Unix.Catalog.GetString("Preferences"); w2.Add(this.PreferencesAction, null); this.RefreshAction = new Gtk.Action("RefreshAction", Mono.Unix.Catalog.GetString("Refresh"), null, "gtk-refresh"); this.RefreshAction.ShortLabel = Mono.Unix.Catalog.GetString("Refresh"); w2.Add(this.RefreshAction, null); this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("Quit"), null, "gtk-quit"); this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("Quit"); w2.Add(this.QuitAction, null); w1.InsertActionGroup(w2, 0); this.AddAccelGroup(w1.AccelGroup); this.Name = "MonoTwitts.Ui.MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Mono Twitt"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child MonoTwitts.Ui.MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><menubar name='menubar'><menu action='MenuAction'><menuitem action='RefreshAction'/><separator/><menuitem action='FriendsAction'/><menuitem action='PublicAction'/><menuitem action='DirectAction'/><menuitem action='ResponsesAction'/><separator/><menuitem action='PreferencesAction'/><separator/><menuitem action='QuitAction'/></menu><menu action='HelpAction'><menuitem action='AboutAction'/></menu></menubar></ui>"); this.menubar = ((Gtk.MenuBar)(w1.GetWidget("/menubar"))); this.menubar.Name = "menubar"; this.vbox1.Add(this.menubar); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.scrolledwindow = new Gtk.ScrolledWindow(); this.scrolledwindow.CanFocus = true; this.scrolledwindow.Name = "scrolledwindow"; this.scrolledwindow.ShadowType = ((Gtk.ShadowType)(4)); this.scrolledwindow.BorderWidth = ((uint)(5)); this.vbox1.Add(this.scrolledwindow); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.scrolledwindow])); w4.Position = 1; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 413; this.DefaultHeight = 455; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.AboutAction.Activated += new System.EventHandler(this.OnAboutActionActivated); this.RefreshAction.Activated += new System.EventHandler(this.OnRefreshActionActivated); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); this.entity = new Gtk.Action("entity", null, null, "entity.png"); w1.Add(this.entity, null); this.relation = new Gtk.Action("relation", null, null, "relation.png"); w1.Add(this.relation, null); this.yes = new Gtk.Action("yes", null, null, null); w1.Add(this.yes, null); this.help = new Gtk.Action("help", null, null, "attribute_handle.png"); w1.Add(this.help, null); this.@new = new Gtk.Action("new", null, null, null); w1.Add(this.@new, null); this.new1 = new Gtk.RadioAction("new1", null, null, "gtk-new", 0); this.new1.Group = new GLib.SList(System.IntPtr.Zero); w1.Add(this.new1, null); this.help1 = new Gtk.RadioAction("help1", null, null, "gtk-help", 0); this.help1.Group = this.new1.Group; w1.Add(this.help1, null); this.File = new Gtk.Action("File", Mono.Unix.Catalog.GetString("_File"), null, null); this.File.ShortLabel = Mono.Unix.Catalog.GetString("_File"); w1.Add(this.File, null); this.quit = new Gtk.Action("quit", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit"); this.quit.ShortLabel = Mono.Unix.Catalog.GetString("_Quit"); w1.Add(this.quit, null); this.commands = new Gtk.Action("commands", Mono.Unix.Catalog.GetString("_Commands"), null, null); this.commands.ShortLabel = Mono.Unix.Catalog.GetString("_Commands"); w1.Add(this.commands, null); this.undo = new Gtk.Action("undo", null, null, "gtk-undo"); w1.Add(this.undo, null); this.redo = new Gtk.Action("redo", null, null, "gtk-redo"); w1.Add(this.redo, null); this.Commands = new Gtk.Action("Commands", Mono.Unix.Catalog.GetString("_Commands"), null, null); this.Commands.ShortLabel = Mono.Unix.Catalog.GetString("_Commands"); w1.Add(this.Commands, null); this.Font = new Gtk.Action("Font", Mono.Unix.Catalog.GetString("_Font"), null, null); this.Font.ShortLabel = Mono.Unix.Catalog.GetString("_Font"); w1.Add(this.Font, null); this.Decrease = new Gtk.Action("Decrease", Mono.Unix.Catalog.GetString("_Size"), null, null); this.Decrease.ShortLabel = Mono.Unix.Catalog.GetString("_Size"); w1.Add(this.Decrease, null); this.Change = new Gtk.Action("Change", Mono.Unix.Catalog.GetString("_Family"), null, null); this.Change.ShortLabel = Mono.Unix.Catalog.GetString("_Family"); w1.Add(this.Change, null); this.SetColor = new Gtk.Action("SetColor", Mono.Unix.Catalog.GetString("_Color"), null, null); this.SetColor.ShortLabel = Mono.Unix.Catalog.GetString("_Color"); w1.Add(this.SetColor, null); this.SendToBack = new Gtk.Action("SendToBack", Mono.Unix.Catalog.GetString("_Send to back"), null, null); this.SendToBack.ShortLabel = Mono.Unix.Catalog.GetString("_Send to back"); w1.Add(this.SendToBack, null); this.BringToFront = new Gtk.Action("BringToFront", Mono.Unix.Catalog.GetString("_Bring to front"), null, null); this.BringToFront.ShortLabel = Mono.Unix.Catalog.GetString("_Bring to front"); w1.Add(this.BringToFront, null); this.SelectAll1 = new Gtk.Action("SelectAll1", Mono.Unix.Catalog.GetString("Select _all"), null, null); this.SelectAll1.ShortLabel = Mono.Unix.Catalog.GetString("Select _all"); w1.Add(this.SelectAll1, null); this.Color = new Gtk.Action("Color", Mono.Unix.Catalog.GetString("Col_or"), null, null); this.Color.ShortLabel = Mono.Unix.Catalog.GetString("Col_or"); w1.Add(this.Color, null); this.LineColor = new Gtk.Action("LineColor", Mono.Unix.Catalog.GetString("_Line"), null, null); this.LineColor.ShortLabel = Mono.Unix.Catalog.GetString("_Line"); w1.Add(this.LineColor, null); this.FillColor = new Gtk.Action("FillColor", Mono.Unix.Catalog.GetString("F_ill"), null, null); this.FillColor.ShortLabel = Mono.Unix.Catalog.GetString("F_ill"); w1.Add(this.FillColor, null); this.cut = new Gtk.Action("cut", null, null, "gtk-cut"); w1.Add(this.cut, null); this.copy = new Gtk.Action("copy", null, null, "gtk-copy"); w1.Add(this.copy, null); this.paste = new Gtk.Action("paste", null, null, "gtk-paste"); w1.Add(this.paste, null); this.delete = new Gtk.Action("delete", null, null, "gtk-delete"); w1.Add(this.delete, null); this.new2 = new Gtk.Action("new2", null, null, "gtk-new"); w1.Add(this.new2, 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='File' action='File'><menuitem name='quit' action='quit'/></menu><menu name='Commands' action='Commands'><menu name='Font' action='Font'><menuitem name='Decrease' action='Decrease'/><menuitem name='Change' action='Change'/><menuitem name='SetColor' action='SetColor'/></menu><separator/><menuitem name='SendToBack' action='SendToBack'/><menuitem name='BringToFront' action='BringToFront'/><menuitem name='SelectAll1' action='SelectAll1'/><separator/><menu name='Color' action='Color'><menuitem name='LineColor' action='LineColor'/><menuitem name='FillColor' action='FillColor'/></menu></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='entity' action='entity'/><toolitem name='relation' action='relation'/><toolitem name='help' action='help'/><separator/><toolitem name='undo' action='undo'/><toolitem name='redo' action='redo'/><separator/><toolitem name='cut' action='cut'/><toolitem name='copy' action='copy'/><toolitem name='paste' action='paste'/><toolitem name='delete' action='delete'/><toolitem name='new2' action='new2'/></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.toolbar1.IconSize = ((Gtk.IconSize)(3)); 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._scrolledwindow = new Gtk.ScrolledWindow(); this._scrolledwindow.CanFocus = true; this._scrolledwindow.Name = "_scrolledwindow"; this._scrolledwindow.VscrollbarPolicy = ((Gtk.PolicyType)(0)); this._scrolledwindow.HscrollbarPolicy = ((Gtk.PolicyType)(0)); this._scrolledwindow.ShadowType = ((Gtk.ShadowType)(1)); this.vbox1.Add(this._scrolledwindow); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this._scrolledwindow])); w4.Position = 2; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 499; this.DefaultHeight = 381; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.entity.Activated += new System.EventHandler(this.OnEntityActivated); this.relation.Activated += new System.EventHandler(this.OnRelationActivated); this.yes.Activated += new System.EventHandler(this.OnRelationActivated); this.help.Activated += new System.EventHandler(this.OnAttributeActivated); this.quit.Activated += new System.EventHandler(this.OnQuitActivated); this.undo.Activated += new System.EventHandler(this.OnUndoActivated); this.redo.Activated += new System.EventHandler(this.OnRedoActivated); this.Decrease.Activated += new System.EventHandler(this.OnCommandFontSize); this.Change.Activated += new System.EventHandler(this.OnCommandFontFamily); this.SetColor.Activated += new System.EventHandler(this.OnCommandFontColor); this.SendToBack.Activated += new System.EventHandler(this.OnCommandSendToBack); this.BringToFront.Activated += new System.EventHandler(this.OnCommandBringToFront); this.SelectAll1.Activated += new System.EventHandler(this.OnCommandSelectAll); this.LineColor.Activated += new System.EventHandler(this.OnColorLine); this.FillColor.Activated += new System.EventHandler(this.OnColorFill); this.cut.Activated += new System.EventHandler(this.OnCutActivated); this.copy.Activated += new System.EventHandler(this.OnCopyActivated); this.paste.Activated += new System.EventHandler(this.OnPasteActivated); this.delete.Activated += new System.EventHandler(this.OnDeleteActivated); this.new2.Activated += new System.EventHandler(this.OnDuplicateActivated); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.OCMMainWindow 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.EditAction = new Gtk.Action("EditAction", Mono.Unix.Catalog.GetString("_Edit"), null, null); this.EditAction.ShortLabel = Mono.Unix.Catalog.GetString("_Edit"); w1.Add(this.EditAction, null); this.ViewAction = new Gtk.Action("ViewAction", Mono.Unix.Catalog.GetString("_View"), null, null); this.ViewAction.ShortLabel = Mono.Unix.Catalog.GetString("_View"); w1.Add(this.ViewAction, null); this.FilterAction = new Gtk.Action("FilterAction", Mono.Unix.Catalog.GetString("F_ilter"), null, null); this.FilterAction.ShortLabel = Mono.Unix.Catalog.GetString("F_ilter"); w1.Add(this.FilterAction, null); this.GoAction = new Gtk.Action("GoAction", Mono.Unix.Catalog.GetString("_Go"), null, null); this.GoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Go"); w1.Add(this.GoAction, null); this.BookmarksAction = new Gtk.Action("BookmarksAction", Mono.Unix.Catalog.GetString("_Bookmarks"), null, null); this.BookmarksAction.ShortLabel = Mono.Unix.Catalog.GetString("_Bookmarks"); w1.Add(this.BookmarksAction, null); this.CacheAction = new Gtk.Action("CacheAction", Mono.Unix.Catalog.GetString("_Cache"), null, null); this.CacheAction.ShortLabel = Mono.Unix.Catalog.GetString("_Cache"); w1.Add(this.CacheAction, null); this.WebAction = new Gtk.Action("WebAction", Mono.Unix.Catalog.GetString("_Web"), null, null); this.WebAction.ShortLabel = Mono.Unix.Catalog.GetString("_Web"); w1.Add(this.WebAction, null); this.GPSAction = new Gtk.Action("GPSAction", Mono.Unix.Catalog.GetString("G_PS"), null, null); this.GPSAction.ShortLabel = Mono.Unix.Catalog.GetString("G_PS"); w1.Add(this.GPSAction, null); this.ToolsAction = new Gtk.Action("ToolsAction", Mono.Unix.Catalog.GetString("_Tools"), null, null); this.ToolsAction.ShortLabel = Mono.Unix.Catalog.GetString("_Tools"); w1.Add(this.ToolsAction, 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.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.openAction = new Gtk.Action("openAction", Mono.Unix.Catalog.GetString("_Open Database..."), null, "gtk-open"); this.openAction.ShortLabel = Mono.Unix.Catalog.GetString("_Open Database..."); w1.Add(this.openAction, null); this.CompactDatabaseAction = new Gtk.Action("CompactDatabaseAction", Mono.Unix.Catalog.GetString("_Compact Database"), null, null); this.CompactDatabaseAction.ShortLabel = Mono.Unix.Catalog.GetString("_Compact Database"); w1.Add(this.CompactDatabaseAction, 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.NewDatabaseAction = new Gtk.Action("NewDatabaseAction", Mono.Unix.Catalog.GetString("_New Database..."), null, null); this.NewDatabaseAction.ShortLabel = Mono.Unix.Catalog.GetString("_New Database..."); w1.Add(this.NewDatabaseAction, "<Control><Mod2>n"); this.NewCacheAction = new Gtk.Action("NewCacheAction", Mono.Unix.Catalog.GetString("New _Cache..."), null, null); this.NewCacheAction.ShortLabel = Mono.Unix.Catalog.GetString("New _Cache..."); w1.Add(this.NewCacheAction, null); this.ShowNearbyCachesAction = new Gtk.ToggleAction("ShowNearbyCachesAction", Mono.Unix.Catalog.GetString("_Show Nearby Caches"), null, null); this.ShowNearbyCachesAction.Active = true; this.ShowNearbyCachesAction.ShortLabel = Mono.Unix.Catalog.GetString("_Show Nearby Caches"); w1.Add(this.ShowNearbyCachesAction, null); this.ChildWaypointsAction = new Gtk.Action("ChildWaypointsAction", Mono.Unix.Catalog.GetString("_Child Waypoints"), null, null); this.ChildWaypointsAction.ShortLabel = Mono.Unix.Catalog.GetString("_Child Waypoints"); w1.Add(this.ChildWaypointsAction, null); this.FieldNotesAction = new Gtk.Action("FieldNotesAction", Mono.Unix.Catalog.GetString("_Field Notes..."), null, null); this.FieldNotesAction.ShortLabel = Mono.Unix.Catalog.GetString("_Field Notes..."); w1.Add(this.FieldNotesAction, null); this.SelectedCacheOnlyAction = new Gtk.RadioAction("SelectedCacheOnlyAction", Mono.Unix.Catalog.GetString("Selected Cache Only"), null, null, 0); this.SelectedCacheOnlyAction.Group = new GLib.SList(System.IntPtr.Zero); this.SelectedCacheOnlyAction.ShortLabel = Mono.Unix.Catalog.GetString("Selected Cache Only"); w1.Add(this.SelectedCacheOnlyAction, null); this.AllWaypointsAction = new Gtk.RadioAction("AllWaypointsAction", Mono.Unix.Catalog.GetString("All Waypoints"), null, null, 0); this.AllWaypointsAction.Group = this.SelectedCacheOnlyAction.Group; this.AllWaypointsAction.ShortLabel = Mono.Unix.Catalog.GetString("All Waypoints"); w1.Add(this.AllWaypointsAction, null); this.printAction = new Gtk.Action("printAction", Mono.Unix.Catalog.GetString("_Print"), null, "gtk-print"); this.printAction.ShortLabel = Mono.Unix.Catalog.GetString("_Print"); w1.Add(this.printAction, "<Control><Mod2>p"); this.LocationsAction = new Gtk.Action("LocationsAction", Mono.Unix.Catalog.GetString("_Locations"), null, null); this.LocationsAction.ShortLabel = Mono.Unix.Catalog.GetString("_Locations"); w1.Add(this.LocationsAction, null); this.AddLocationAction = new Gtk.Action("AddLocationAction", Mono.Unix.Catalog.GetString("_Add Location..."), null, null); this.AddLocationAction.ShortLabel = Mono.Unix.Catalog.GetString("_Add Location..."); w1.Add(this.AddLocationAction, null); this.DeleteLocationAction = new Gtk.Action("DeleteLocationAction", Mono.Unix.Catalog.GetString("_Delete Location..."), null, null); this.DeleteLocationAction.ShortLabel = Mono.Unix.Catalog.GetString("_Manage Locations..."); w1.Add(this.DeleteLocationAction, null); this.PanToCentreAction = new Gtk.Action("PanToCentreAction", Mono.Unix.Catalog.GetString("_Pan to Centre"), null, null); this.PanToCentreAction.ShortLabel = Mono.Unix.Catalog.GetString("_Pan Map to Centre"); w1.Add(this.PanToCentreAction, "<Shift><Alt><Mod2>Home"); this.PanToSelectedCacheAction = new Gtk.Action("PanToSelectedCacheAction", Mono.Unix.Catalog.GetString("Pan to _Selected Cache"), null, null); this.PanToSelectedCacheAction.ShortLabel = Mono.Unix.Catalog.GetString("Pan Map to _Selected Cache"); w1.Add(this.PanToSelectedCacheAction, null); this.ZoomToSelectedCacheAction = new Gtk.Action("ZoomToSelectedCacheAction", Mono.Unix.Catalog.GetString("_Zoom to Selected Cache"), null, null); this.ZoomToSelectedCacheAction.ShortLabel = Mono.Unix.Catalog.GetString("_Zoom Map to Selected Cache"); w1.Add(this.ZoomToSelectedCacheAction, null); this.AdvancedFiltersAction = new Gtk.Action("AdvancedFiltersAction", Mono.Unix.Catalog.GetString("_Advanced Filters..."), null, null); this.AdvancedFiltersAction.ShortLabel = Mono.Unix.Catalog.GetString("_Advanced Filters..."); w1.Add(this.AdvancedFiltersAction, "<Control><Mod2>f"); this.CombinationFilterAction = new Gtk.Action("CombinationFilterAction", Mono.Unix.Catalog.GetString("C_ombination Filter..."), null, null); this.CombinationFilterAction.ShortLabel = Mono.Unix.Catalog.GetString("C_ombination Filter..."); w1.Add(this.CombinationFilterAction, "<Control><Alt><Mod2>c"); this.ClearAdvancedFiltersAction = new Gtk.Action("ClearAdvancedFiltersAction", Mono.Unix.Catalog.GetString("_Clear Advanced Filters..."), null, null); this.ClearAdvancedFiltersAction.Sensitive = false; this.ClearAdvancedFiltersAction.ShortLabel = Mono.Unix.Catalog.GetString("_Clear Advanced Filters..."); w1.Add(this.ClearAdvancedFiltersAction, null); this.ClearComboFilterAction = new Gtk.Action("ClearComboFilterAction", Mono.Unix.Catalog.GetString("C_lear Combo Filter"), null, null); this.ClearComboFilterAction.Sensitive = false; this.ClearComboFilterAction.ShortLabel = Mono.Unix.Catalog.GetString("C_lear Combo Filter"); w1.Add(this.ClearComboFilterAction, null); this.ClearAllFiltersAction = new Gtk.Action("ClearAllFiltersAction", Mono.Unix.Catalog.GetString("Clear _All Filters"), null, null); this.ClearAllFiltersAction.Sensitive = false; this.ClearAllFiltersAction.ShortLabel = Mono.Unix.Catalog.GetString("Clear _All Filters"); w1.Add(this.ClearAllFiltersAction, null); this.QuickFilterAction = new Gtk.Action("QuickFilterAction", Mono.Unix.Catalog.GetString("_Quick Filter"), null, null); this.QuickFilterAction.ShortLabel = Mono.Unix.Catalog.GetString("_Quick Filter"); w1.Add(this.QuickFilterAction, null); this.OCMWikiAction = new Gtk.Action("OCMWikiAction", Mono.Unix.Catalog.GetString("_OCM Wiki..."), null, null); this.OCMWikiAction.ShortLabel = Mono.Unix.Catalog.GetString("_OCM Wiki..."); w1.Add(this.OCMWikiAction, null); this.OCMForumsAction = new Gtk.Action("OCMForumsAction", Mono.Unix.Catalog.GetString("OCM _Forums..."), null, null); this.OCMForumsAction.ShortLabel = Mono.Unix.Catalog.GetString("OCM _Forums..."); w1.Add(this.OCMForumsAction, 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.ChangeHistoryAction = new Gtk.Action("ChangeHistoryAction", Mono.Unix.Catalog.GetString("_Change History..."), null, null); this.ChangeHistoryAction.ShortLabel = Mono.Unix.Catalog.GetString("_Change History..."); w1.Add(this.ChangeHistoryAction, null); this.CheckForUpdatesAction = new Gtk.Action("CheckForUpdatesAction", Mono.Unix.Catalog.GetString("Check For _Updates..."), null, null); this.CheckForUpdatesAction.ShortLabel = Mono.Unix.Catalog.GetString("Check For _Updates..."); w1.Add(this.CheckForUpdatesAction, null); this.OCMHomePageAction = new Gtk.Action("OCMHomePageAction", Mono.Unix.Catalog.GetString("_OCM Home Page..."), null, null); this.OCMHomePageAction.ShortLabel = Mono.Unix.Catalog.GetString("_OCM Home Page..."); w1.Add(this.OCMHomePageAction, null); this.GeocachingComAction = new Gtk.Action("GeocachingComAction", Mono.Unix.Catalog.GetString("_Geocaching.com"), null, null); this.GeocachingComAction.ShortLabel = Mono.Unix.Catalog.GetString("_Geocaching.com"); w1.Add(this.GeocachingComAction, null); this.TerracachingComAction = new Gtk.Action("TerracachingComAction", Mono.Unix.Catalog.GetString("_Terracaching.com"), null, null); this.TerracachingComAction.ShortLabel = Mono.Unix.Catalog.GetString("_Terracaching.com"); w1.Add(this.TerracachingComAction, null); this.OpencachingAction = new Gtk.Action("OpencachingAction", Mono.Unix.Catalog.GetString("O_pencaching"), null, null); this.OpencachingAction.ShortLabel = Mono.Unix.Catalog.GetString("O_pencaching"); w1.Add(this.OpencachingAction, null); this.GPSBabelHomePageAction = new Gtk.Action("GPSBabelHomePageAction", Mono.Unix.Catalog.GetString("G_PSBabel Home Page..."), null, null); this.GPSBabelHomePageAction.ShortLabel = Mono.Unix.Catalog.GetString("G_PSBabel Home Page..."); w1.Add(this.GPSBabelHomePageAction, null); this.GPSDHomePageAction = new Gtk.Action("GPSDHomePageAction", Mono.Unix.Catalog.GetString("GPS_D Home Page..."), null, null); this.GPSDHomePageAction.ShortLabel = Mono.Unix.Catalog.GetString("GPS_D Home Page..."); w1.Add(this.GPSDHomePageAction, null); this.HomePageAction = new Gtk.Action("HomePageAction", Mono.Unix.Catalog.GetString("_Home Page..."), null, null); this.HomePageAction.ShortLabel = Mono.Unix.Catalog.GetString("_Home Page..."); w1.Add(this.HomePageAction, null); this.ViewMyProfileAction = new Gtk.Action("ViewMyProfileAction", Mono.Unix.Catalog.GetString("_View My Profile..."), null, null); this.ViewMyProfileAction.ShortLabel = Mono.Unix.Catalog.GetString("_View My Profile..."); w1.Add(this.ViewMyProfileAction, null); this.MyAccountDetailsAction = new Gtk.Action("MyAccountDetailsAction", Mono.Unix.Catalog.GetString("_My Account Details..."), null, null); this.MyAccountDetailsAction.ShortLabel = Mono.Unix.Catalog.GetString("_My Account Details..."); w1.Add(this.MyAccountDetailsAction, null); this.CreatePocketQueriesAction = new Gtk.Action("CreatePocketQueriesAction", Mono.Unix.Catalog.GetString("_Create Pocket Queries..."), null, null); this.CreatePocketQueriesAction.ShortLabel = Mono.Unix.Catalog.GetString("_Create Pocket Queries..."); w1.Add(this.CreatePocketQueriesAction, null); this.StatisticsAction = new Gtk.Action("StatisticsAction", Mono.Unix.Catalog.GetString("_Statistics..."), null, null); this.StatisticsAction.ShortLabel = Mono.Unix.Catalog.GetString("_Statistics..."); w1.Add(this.StatisticsAction, null); this.FindACacheAction = new Gtk.Action("FindACacheAction", Mono.Unix.Catalog.GetString("_Find a Cache..."), null, null); this.FindACacheAction.ShortLabel = Mono.Unix.Catalog.GetString("_Find a Cache..."); w1.Add(this.FindACacheAction, null); this.TCHomePageAction = new Gtk.Action("TCHomePageAction", Mono.Unix.Catalog.GetString("_Home Page..."), null, null); this.TCHomePageAction.ShortLabel = Mono.Unix.Catalog.GetString("_Home Page..."); w1.Add(this.TCHomePageAction, null); this.ToDoListAction = new Gtk.Action("ToDoListAction", Mono.Unix.Catalog.GetString("To _Do List"), null, null); this.ToDoListAction.ShortLabel = Mono.Unix.Catalog.GetString("To _Do List"); w1.Add(this.ToDoListAction, null); this.TraditionalAction = new Gtk.Action("TraditionalAction", Mono.Unix.Catalog.GetString("_Traditional..."), null, null); this.TraditionalAction.ShortLabel = Mono.Unix.Catalog.GetString("_Traditional..."); w1.Add(this.TraditionalAction, null); this.LocationlessAction = new Gtk.Action("LocationlessAction", Mono.Unix.Catalog.GetString("_Locationless..."), null, null); this.LocationlessAction.ShortLabel = Mono.Unix.Catalog.GetString("_Locationless..."); w1.Add(this.LocationlessAction, null); this.ListOfCountrySitesAction = new Gtk.Action("ListOfCountrySitesAction", Mono.Unix.Catalog.GetString("_List Of Country Sites"), null, null); this.ListOfCountrySitesAction.ShortLabel = Mono.Unix.Catalog.GetString("_List Of Country Sites"); w1.Add(this.ListOfCountrySitesAction, null); this.NavicacheComAction = new Gtk.Action("NavicacheComAction", Mono.Unix.Catalog.GetString("_Navicache.com"), null, null); this.NavicacheComAction.ShortLabel = Mono.Unix.Catalog.GetString("_Navicache.com"); w1.Add(this.NavicacheComAction, null); this.NVHomePageAction = new Gtk.Action("NVHomePageAction", Mono.Unix.Catalog.GetString("_Home Page..."), null, null); this.NVHomePageAction.ShortLabel = Mono.Unix.Catalog.GetString("_Home Page..."); w1.Add(this.NVHomePageAction, null); this.MyNavicacheAction = new Gtk.Action("MyNavicacheAction", Mono.Unix.Catalog.GetString("_My Navicache..."), null, null); this.MyNavicacheAction.ShortLabel = Mono.Unix.Catalog.GetString("_My Navicache..."); w1.Add(this.MyNavicacheAction, null); this.MarkAction = new Gtk.Action("MarkAction", Mono.Unix.Catalog.GetString("_Mark"), null, null); this.MarkAction.ShortLabel = Mono.Unix.Catalog.GetString("_Mark"); w1.Add(this.MarkAction, null); this.AddChildWaypointAction = new Gtk.Action("AddChildWaypointAction", Mono.Unix.Catalog.GetString("Add Child _Waypoint..."), null, null); this.AddChildWaypointAction.ShortLabel = Mono.Unix.Catalog.GetString("Add Child _Waypoint..."); w1.Add(this.AddChildWaypointAction, "<Control><Mod2>w"); this.CorrectedCoordinatesAction = new Gtk.Action("CorrectedCoordinatesAction", Mono.Unix.Catalog.GetString("_Corrected Coordinates..."), null, null); this.CorrectedCoordinatesAction.ShortLabel = Mono.Unix.Catalog.GetString("_Corrected Coordinates..."); w1.Add(this.CorrectedCoordinatesAction, "<Control><Mod2>r"); this.ViewOnlineAction = new Gtk.Action("ViewOnlineAction", Mono.Unix.Catalog.GetString("_View Online..."), null, null); this.ViewOnlineAction.ShortLabel = Mono.Unix.Catalog.GetString("_View Online..."); w1.Add(this.ViewOnlineAction, null); this.SetSelectedCacheAsCentreAction = new Gtk.Action("SetSelectedCacheAsCentreAction", Mono.Unix.Catalog.GetString("_Set Selected Cache As Centre"), null, null); this.SetSelectedCacheAsCentreAction.ShortLabel = Mono.Unix.Catalog.GetString("_Set Selected Cache As Centre"); w1.Add(this.SetSelectedCacheAsCentreAction, null); this.ModifyCacheAction = new Gtk.Action("ModifyCacheAction", Mono.Unix.Catalog.GetString("M_odify Cache"), null, null); this.ModifyCacheAction.ShortLabel = Mono.Unix.Catalog.GetString("M_odify Cache"); w1.Add(this.ModifyCacheAction, "<Control><Mod2>m"); this.MarkFoundAction = new Gtk.Action("MarkFoundAction", Mono.Unix.Catalog.GetString("Mark _Found"), null, null); this.MarkFoundAction.ShortLabel = Mono.Unix.Catalog.GetString("Mark _Found"); w1.Add(this.MarkFoundAction, null); this.MarkFirstToFindAction = new Gtk.Action("MarkFirstToFindAction", Mono.Unix.Catalog.GetString("Mark F_irst To Find"), null, null); this.MarkFirstToFindAction.ShortLabel = Mono.Unix.Catalog.GetString("Mark F_irst To Find"); w1.Add(this.MarkFirstToFindAction, null); this.MarkDidNotFindAction = new Gtk.Action("MarkDidNotFindAction", Mono.Unix.Catalog.GetString("Mark Did _Not Find"), null, null); this.MarkDidNotFindAction.ShortLabel = Mono.Unix.Catalog.GetString("Mark Did _Not Find"); w1.Add(this.MarkDidNotFindAction, null); this.MarkUnfoundAction = new Gtk.Action("MarkUnfoundAction", Mono.Unix.Catalog.GetString("Mark _Unfound"), null, null); this.MarkUnfoundAction.ShortLabel = Mono.Unix.Catalog.GetString("Mark _Unfound"); w1.Add(this.MarkUnfoundAction, null); this.MarkDisabledAction = new Gtk.Action("MarkDisabledAction", Mono.Unix.Catalog.GetString("Mark _Disabled"), null, null); this.MarkDisabledAction.ShortLabel = Mono.Unix.Catalog.GetString("Mark _Disabled"); w1.Add(this.MarkDisabledAction, null); this.MarkArchivedAction = new Gtk.Action("MarkArchivedAction", Mono.Unix.Catalog.GetString("Mark _Archived"), null, null); this.MarkArchivedAction.ShortLabel = Mono.Unix.Catalog.GetString("Mark _Archived"); w1.Add(this.MarkArchivedAction, null); this.MarkAvailableAction = new Gtk.Action("MarkAvailableAction", Mono.Unix.Catalog.GetString("Mark A_vailable"), null, null); this.MarkAvailableAction.ShortLabel = Mono.Unix.Catalog.GetString("Mark A_vailable"); w1.Add(this.MarkAvailableAction, null); this.BookmarkListAction = new Gtk.Action("BookmarkListAction", Mono.Unix.Catalog.GetString("Bookmark _List"), null, null); this.BookmarkListAction.ShortLabel = Mono.Unix.Catalog.GetString("Bookmark _List"); w1.Add(this.BookmarkListAction, null); this.AddAllUnfilteredCachesToAction = new Gtk.Action("AddAllUnfilteredCachesToAction", Mono.Unix.Catalog.GetString("_Add All Unfiltered Caches to"), null, null); this.AddAllUnfilteredCachesToAction.ShortLabel = Mono.Unix.Catalog.GetString("_Add All Unfiltered Caches to"); w1.Add(this.AddAllUnfilteredCachesToAction, null); this.AddSelectedCacheToAction = new Gtk.Action("AddSelectedCacheToAction", Mono.Unix.Catalog.GetString("Add _Selected Cache to"), null, null); this.AddSelectedCacheToAction.Sensitive = false; this.AddSelectedCacheToAction.ShortLabel = Mono.Unix.Catalog.GetString("Add _Selected Cache to"); w1.Add(this.AddSelectedCacheToAction, null); this.RemoveSelectedCacheFromBookmarkListAction = new Gtk.Action("RemoveSelectedCacheFromBookmarkListAction", Mono.Unix.Catalog.GetString("_Remove Selected Cache from Bookmark List"), null, null); this.RemoveSelectedCacheFromBookmarkListAction.Sensitive = false; this.RemoveSelectedCacheFromBookmarkListAction.ShortLabel = Mono.Unix.Catalog.GetString("_Remove Selected Cache from Bookmark List"); w1.Add(this.RemoveSelectedCacheFromBookmarkListAction, null); this.CreateBookmarkListAction = new Gtk.Action("CreateBookmarkListAction", Mono.Unix.Catalog.GetString("_Create Bookmark List..."), null, null); this.CreateBookmarkListAction.ShortLabel = Mono.Unix.Catalog.GetString("_Create Bookmark List"); w1.Add(this.CreateBookmarkListAction, null); this.DeleteBookmarkListAction = new Gtk.Action("DeleteBookmarkListAction", Mono.Unix.Catalog.GetString("_Delete Bookmark List..."), null, null); this.DeleteBookmarkListAction.ShortLabel = Mono.Unix.Catalog.GetString("_Manage Bookmark Lists..."); w1.Add(this.DeleteBookmarkListAction, null); this.ZoomToCentreAction = new Gtk.Action("ZoomToCentreAction", Mono.Unix.Catalog.GetString("Zoom to _Centre"), null, null); this.ZoomToCentreAction.ShortLabel = Mono.Unix.Catalog.GetString("Zoom to _Centre"); w1.Add(this.ZoomToCentreAction, "<Alt><Mod2>Home"); this.ImportGPXLocZipAction = new Gtk.Action("ImportGPXLocZipAction", Mono.Unix.Catalog.GetString("_Import GPX/Loc/Zip..."), null, null); this.ImportGPXLocZipAction.ShortLabel = Mono.Unix.Catalog.GetString("_Import GPX/Loc/Zip..."); w1.Add(this.ImportGPXLocZipAction, null); this.ImportDirectoryAction = new Gtk.Action("ImportDirectoryAction", Mono.Unix.Catalog.GetString("_Import Directory..."), null, null); this.ImportDirectoryAction.ShortLabel = Mono.Unix.Catalog.GetString("_Import Directory..."); w1.Add(this.ImportDirectoryAction, null); this.SaveCurrentViewAsQuickFilterAction = new Gtk.Action("SaveCurrentViewAsQuickFilterAction", Mono.Unix.Catalog.GetString("_Save Current View as QuickFilter..."), null, null); this.SaveCurrentViewAsQuickFilterAction.ShortLabel = Mono.Unix.Catalog.GetString("_Save Current View as QuickFilter..."); w1.Add(this.SaveCurrentViewAsQuickFilterAction, null); this.DeleteQuickFilterAction = new Gtk.Action("DeleteQuickFilterAction", Mono.Unix.Catalog.GetString("_Delete Quick Filter..."), null, null); this.DeleteQuickFilterAction.ShortLabel = Mono.Unix.Catalog.GetString("_Delete Quick Filter..."); w1.Add(this.DeleteQuickFilterAction, null); this.ExportAction = new Gtk.Action("ExportAction", Mono.Unix.Catalog.GetString("_Export"), null, null); this.ExportAction.ShortLabel = Mono.Unix.Catalog.GetString("_Export"); w1.Add(this.ExportAction, null); this.ExportGPXAction = new Gtk.Action("ExportGPXAction", Mono.Unix.Catalog.GetString("_Export GPX..."), null, null); this.ExportGPXAction.ShortLabel = Mono.Unix.Catalog.GetString("_Export GPX..."); w1.Add(this.ExportGPXAction, "<Control><Mod2>s"); this.ExportFindsGPXAction = new Gtk.Action("ExportFindsGPXAction", Mono.Unix.Catalog.GetString("Export _Finds GPX..."), null, null); this.ExportFindsGPXAction.ShortLabel = Mono.Unix.Catalog.GetString("Export _Finds GPX..."); w1.Add(this.ExportFindsGPXAction, null); this.ExportGarminPOIFileAction = new Gtk.Action("ExportGarminPOIFileAction", Mono.Unix.Catalog.GetString("Export _Garmin POI File..."), null, null); this.ExportGarminPOIFileAction.ShortLabel = Mono.Unix.Catalog.GetString("Export _Garmin POI File..."); w1.Add(this.ExportGarminPOIFileAction, null); this.CopyToAction = new Gtk.Action("CopyToAction", Mono.Unix.Catalog.GetString("_Copy To..."), null, null); this.CopyToAction.ShortLabel = Mono.Unix.Catalog.GetString("_Copy To..."); w1.Add(this.CopyToAction, null); this.MoveToAction = new Gtk.Action("MoveToAction", Mono.Unix.Catalog.GetString("_Move To..."), null, null); this.MoveToAction.ShortLabel = Mono.Unix.Catalog.GetString("_Move To..."); w1.Add(this.MoveToAction, null); this.DeleteAction = new Gtk.Action("DeleteAction", Mono.Unix.Catalog.GetString("_Delete..."), null, null); this.DeleteAction.ShortLabel = Mono.Unix.Catalog.GetString("_Delete..."); w1.Add(this.DeleteAction, null); this.DeleteAllAction = new Gtk.Action("DeleteAllAction", Mono.Unix.Catalog.GetString("Delete _All..."), null, null); this.DeleteAllAction.ShortLabel = Mono.Unix.Catalog.GetString("Delete _All..."); w1.Add(this.DeleteAllAction, null); this.DeselectAction = new Gtk.Action("DeselectAction", Mono.Unix.Catalog.GetString("De_select"), null, null); this.DeselectAction.ShortLabel = Mono.Unix.Catalog.GetString("De_select"); w1.Add(this.DeselectAction, null); this.PreferencesAction = new Gtk.Action("PreferencesAction", Mono.Unix.Catalog.GetString("_Preferences..."), null, null); this.PreferencesAction.ShortLabel = Mono.Unix.Catalog.GetString("_Preferences..."); w1.Add(this.PreferencesAction, null); this.TransferCachesToLastUsedAction = new Gtk.Action("TransferCachesToLastUsedAction", Mono.Unix.Catalog.GetString("Transfer _Caches to Last Used..."), null, null); this.TransferCachesToLastUsedAction.Sensitive = false; this.TransferCachesToLastUsedAction.ShortLabel = Mono.Unix.Catalog.GetString("Transfer _Caches to Last Used..."); w1.Add(this.TransferCachesToLastUsedAction, "<Control><Mod2>t"); this.ReceiveFieldNotesFromLastUsedAction = new Gtk.Action("ReceiveFieldNotesFromLastUsedAction", Mono.Unix.Catalog.GetString("Receive _Field Notes from Last Used..."), null, null); this.ReceiveFieldNotesFromLastUsedAction.Sensitive = false; this.ReceiveFieldNotesFromLastUsedAction.ShortLabel = Mono.Unix.Catalog.GetString("Receive _Field Notes from Last Used..."); w1.Add(this.ReceiveFieldNotesFromLastUsedAction, "<Control><Alt><Mod2>r"); this.TransferCachesAction = new Gtk.Action("TransferCachesAction", Mono.Unix.Catalog.GetString("_Transfer Caches..."), null, null); this.TransferCachesAction.ShortLabel = Mono.Unix.Catalog.GetString("_Transfer Caches..."); w1.Add(this.TransferCachesAction, null); this.ReceiveFieldNotesAction = new Gtk.Action("ReceiveFieldNotesAction", Mono.Unix.Catalog.GetString("_Receive Field Notes..."), null, null); this.ReceiveFieldNotesAction.ShortLabel = Mono.Unix.Catalog.GetString("_Receive Field Notes..."); w1.Add(this.ReceiveFieldNotesAction, null); this.AddGPSProfileAction = new Gtk.Action("AddGPSProfileAction", Mono.Unix.Catalog.GetString("_Add GPS Profile..."), null, null); this.AddGPSProfileAction.ShortLabel = Mono.Unix.Catalog.GetString("_Add GPS Profile..."); w1.Add(this.AddGPSProfileAction, null); this.EditGPSProfileAction = new Gtk.Action("EditGPSProfileAction", Mono.Unix.Catalog.GetString("_Edit GPS Profile..."), null, null); this.EditGPSProfileAction.ShortLabel = Mono.Unix.Catalog.GetString("_Edit GPS Profile..."); w1.Add(this.EditGPSProfileAction, null); this.DeleteGPSProfileAction = new Gtk.Action("DeleteGPSProfileAction", Mono.Unix.Catalog.GetString("_Delete GPS Profile..."), null, null); this.DeleteGPSProfileAction.ShortLabel = Mono.Unix.Catalog.GetString("_Delete GPS Profile..."); w1.Add(this.DeleteGPSProfileAction, null); this.ViewAllInQLandkarteGTAction = new Gtk.Action("ViewAllInQLandkarteGTAction", Mono.Unix.Catalog.GetString("_View All in QLandkarte GT..."), null, null); this.ViewAllInQLandkarteGTAction.ShortLabel = Mono.Unix.Catalog.GetString("_View All in QLandkarte GT..."); w1.Add(this.ViewAllInQLandkarteGTAction, null); this.ViewSelectedCacheInQLandkarteGTAction = new Gtk.Action("ViewSelectedCacheInQLandkarteGTAction", Mono.Unix.Catalog.GetString("View _Selected Cache in QLandkarte GT..."), null, null); this.ViewSelectedCacheInQLandkarteGTAction.ShortLabel = Mono.Unix.Catalog.GetString("View _Selected Cache in QLandkarte GT..."); w1.Add(this.ViewSelectedCacheInQLandkarteGTAction, null); this.ExternalToolsAction = new Gtk.Action("ExternalToolsAction", Mono.Unix.Catalog.GetString("_External Tools"), null, null); this.ExternalToolsAction.ShortLabel = Mono.Unix.Catalog.GetString("_External Tools"); w1.Add(this.ExternalToolsAction, null); this.ConfigureExternalToolsAction = new Gtk.Action("ConfigureExternalToolsAction", Mono.Unix.Catalog.GetString("_Configure External Tools"), null, null); this.ConfigureExternalToolsAction.ShortLabel = Mono.Unix.Catalog.GetString("_Configure External Tools"); w1.Add(this.ConfigureExternalToolsAction, null); this.LogFindAction = new Gtk.Action("LogFindAction", Mono.Unix.Catalog.GetString("_Log Find..."), null, null); this.LogFindAction.ShortLabel = Mono.Unix.Catalog.GetString("_Log Find..."); w1.Add(this.LogFindAction, null); this.LogToFieldNotesFileAction = new Gtk.ToggleAction("LogToFieldNotesFileAction", Mono.Unix.Catalog.GetString("Log to _Field Notes File"), null, null); this.LogToFieldNotesFileAction.ShortLabel = Mono.Unix.Catalog.GetString("Log to _Field Notes File"); w1.Add(this.LogToFieldNotesFileAction, null); this.FullScreenAction = new Gtk.ToggleAction("FullScreenAction", Mono.Unix.Catalog.GetString("Full _Screen"), null, null); this.FullScreenAction.ShortLabel = Mono.Unix.Catalog.GetString("Full _Screen"); w1.Add(this.FullScreenAction, "<Mod2>F11"); this.GrabImagesAction = new Gtk.Action("GrabImagesAction", Mono.Unix.Catalog.GetString("_Grab Images..."), null, null); this.GrabImagesAction.ShortLabel = Mono.Unix.Catalog.GetString("_Grab Images..."); w1.Add(this.GrabImagesAction, null); this.MapPopupsAction = new Gtk.ToggleAction("MapPopupsAction", Mono.Unix.Catalog.GetString("_Map Popups"), null, null); this.MapPopupsAction.Active = true; this.MapPopupsAction.ShortLabel = Mono.Unix.Catalog.GetString("_Map Popups"); w1.Add(this.MapPopupsAction, null); this.DatabaseCleanupAssistantAction = new Gtk.Action("DatabaseCleanupAssistantAction", Mono.Unix.Catalog.GetString("Database Cleanup Assistant..."), null, null); this.DatabaseCleanupAssistantAction.ShortLabel = Mono.Unix.Catalog.GetString("Database Cleanup Assistant..."); w1.Add(this.DatabaseCleanupAssistantAction, null); this.ReduceNumberOfLogsAction = new Gtk.Action("ReduceNumberOfLogsAction", Mono.Unix.Catalog.GetString("_Reduce Number of Logs..."), null, null); this.ReduceNumberOfLogsAction.ShortLabel = Mono.Unix.Catalog.GetString("_Reduce Number of Logs..."); w1.Add(this.ReduceNumberOfLogsAction, null); this.GrabAllImagesAction = new Gtk.Action("GrabAllImagesAction", Mono.Unix.Catalog.GetString("Grab All Images..."), null, null); this.GrabAllImagesAction.ShortLabel = Mono.Unix.Catalog.GetString("Grab All Images..."); w1.Add(this.GrabAllImagesAction, null); this.GrabImagesAction1 = new Gtk.Action("GrabImagesAction1", Mono.Unix.Catalog.GetString("Grab Images..."), null, null); this.GrabImagesAction1.ShortLabel = Mono.Unix.Catalog.GetString("Grab Images..."); w1.Add(this.GrabImagesAction1, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "ocmgtk.OCMMainWindow"; this.Title = Mono.Unix.Catalog.GetString("OCM"); this.Icon = Gdk.Pixbuf.LoadFromResource("ocmgtk.icons.scalable.OCMLogoSmall.svg"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child ocmgtk.OCMMainWindow.Gtk.Container+ContainerChild this.mainWindowContents = new Gtk.VBox(); this.mainWindowContents.Name = "mainWindowContents"; this.mainWindowContents.Spacing = 6; // Container child mainWindowContents.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><menubar name='mainMenuBar'><menu name='FileAction' action='FileAction'><menu name='NewAction' action='NewAction'><menuitem name='NewDatabaseAction' action='NewDatabaseAction'/><menuitem name='NewCacheAction' action='NewCacheAction'/></menu><menuitem name='openAction' action='openAction'/><menuitem name='CompactDatabaseAction' action='CompactDatabaseAction'/><separator/><menuitem name='ImportGPXLocZipAction' action='ImportGPXLocZipAction'/><menuitem name='ImportDirectoryAction' action='ImportDirectoryAction'/><separator/><menu name='ExportAction' action='ExportAction'><menuitem name='ExportGPXAction' action='ExportGPXAction'/><menuitem name='ExportFindsGPXAction' action='ExportFindsGPXAction'/><menuitem name='ExportGarminPOIFileAction' action='ExportGarminPOIFileAction'/></menu><separator/><menuitem name='printAction' action='printAction'/><separator/><menuitem name='quitAction' action='quitAction'/></menu><menu name='EditAction' action='EditAction'><menuitem name='CopyToAction' action='CopyToAction'/><menuitem name='MoveToAction' action='MoveToAction'/><separator/><menuitem name='DeleteAction' action='DeleteAction'/><menuitem name='DeleteAllAction' action='DeleteAllAction'/><separator/><menuitem name='GrabImagesAction1' action='GrabImagesAction1'/><menuitem name='GrabAllImagesAction' action='GrabAllImagesAction'/><separator/><menuitem name='DeselectAction' action='DeselectAction'/><separator/><menuitem name='PreferencesAction' action='PreferencesAction'/></menu><menu name='ViewAction' action='ViewAction'><menuitem name='ShowNearbyCachesAction' action='ShowNearbyCachesAction'/><menu name='ChildWaypointsAction' action='ChildWaypointsAction'><menuitem name='SelectedCacheOnlyAction' action='SelectedCacheOnlyAction'/><menuitem name='AllWaypointsAction' action='AllWaypointsAction'/></menu><menuitem name='MapPopupsAction' action='MapPopupsAction'/><separator/><menuitem name='FieldNotesAction' action='FieldNotesAction'/><menuitem name='FullScreenAction' action='FullScreenAction'/></menu><menu name='FilterAction' action='FilterAction'><menuitem name='QuickFilterAction' action='QuickFilterAction'/><menuitem name='AdvancedFiltersAction' action='AdvancedFiltersAction'/><menuitem name='CombinationFilterAction' action='CombinationFilterAction'/><separator/><menuitem name='ClearAdvancedFiltersAction' action='ClearAdvancedFiltersAction'/><menuitem name='ClearComboFilterAction' action='ClearComboFilterAction'/><menuitem name='ClearAllFiltersAction' action='ClearAllFiltersAction'/><separator/><menuitem name='SaveCurrentViewAsQuickFilterAction' action='SaveCurrentViewAsQuickFilterAction'/><menuitem name='DeleteQuickFilterAction' action='DeleteQuickFilterAction'/></menu><menu name='GoAction' action='GoAction'><menu name='LocationsAction' action='LocationsAction'/><menuitem name='AddLocationAction' action='AddLocationAction'/><menuitem name='DeleteLocationAction' action='DeleteLocationAction'/><separator/><menuitem name='PanToCentreAction' action='PanToCentreAction'/><menuitem name='PanToSelectedCacheAction' action='PanToSelectedCacheAction'/><menuitem name='ZoomToCentreAction' action='ZoomToCentreAction'/><menuitem name='ZoomToSelectedCacheAction' action='ZoomToSelectedCacheAction'/></menu><menu name='BookmarksAction' action='BookmarksAction'><menu name='BookmarkListAction' action='BookmarkListAction'/><menu name='AddAllUnfilteredCachesToAction' action='AddAllUnfilteredCachesToAction'/><menuitem name='AddSelectedCacheToAction' action='AddSelectedCacheToAction'/><menuitem name='RemoveSelectedCacheFromBookmarkListAction' action='RemoveSelectedCacheFromBookmarkListAction'/><separator/><menuitem name='CreateBookmarkListAction' action='CreateBookmarkListAction'/><menuitem name='DeleteBookmarkListAction' action='DeleteBookmarkListAction'/></menu><menu name='CacheAction' action='CacheAction'><menuitem name='LogFindAction' action='LogFindAction'/><menuitem name='LogToFieldNotesFileAction' action='LogToFieldNotesFileAction'/><separator/><menu name='MarkAction' action='MarkAction'><menuitem name='MarkFoundAction' action='MarkFoundAction'/><menuitem name='MarkFirstToFindAction' action='MarkFirstToFindAction'/><menuitem name='MarkDidNotFindAction' action='MarkDidNotFindAction'/><menuitem name='MarkUnfoundAction' action='MarkUnfoundAction'/><menuitem name='MarkDisabledAction' action='MarkDisabledAction'/><menuitem name='MarkArchivedAction' action='MarkArchivedAction'/><menuitem name='MarkAvailableAction' action='MarkAvailableAction'/></menu><menuitem name='AddChildWaypointAction' action='AddChildWaypointAction'/><menuitem name='CorrectedCoordinatesAction' action='CorrectedCoordinatesAction'/><separator/><menuitem name='ViewOnlineAction' action='ViewOnlineAction'/><separator/><menuitem name='SetSelectedCacheAsCentreAction' action='SetSelectedCacheAsCentreAction'/><menuitem name='ModifyCacheAction' action='ModifyCacheAction'/><menuitem name='ReduceNumberOfLogsAction' action='ReduceNumberOfLogsAction'/></menu><menu name='WebAction' action='WebAction'><menuitem name='OCMHomePageAction' action='OCMHomePageAction'/><separator/><menu name='GeocachingComAction' action='GeocachingComAction'><menuitem name='HomePageAction' action='HomePageAction'/><menuitem name='ViewMyProfileAction' action='ViewMyProfileAction'/><menuitem name='MyAccountDetailsAction' action='MyAccountDetailsAction'/><menuitem name='CreatePocketQueriesAction' action='CreatePocketQueriesAction'/><menuitem name='StatisticsAction' action='StatisticsAction'/><separator/><menuitem name='FindACacheAction' action='FindACacheAction'/></menu><menu name='TerracachingComAction' action='TerracachingComAction'><menuitem name='TCHomePageAction' action='TCHomePageAction'/><menu name='ToDoListAction' action='ToDoListAction'><menuitem name='TraditionalAction' action='TraditionalAction'/><menuitem name='LocationlessAction' action='LocationlessAction'/></menu></menu><menu name='NavicacheComAction' action='NavicacheComAction'><menuitem name='NVHomePageAction' action='NVHomePageAction'/><menuitem name='MyNavicacheAction' action='MyNavicacheAction'/></menu><menu name='OpencachingAction' action='OpencachingAction'><menuitem name='ListOfCountrySitesAction' action='ListOfCountrySitesAction'/></menu><menuitem name='GPSBabelHomePageAction' action='GPSBabelHomePageAction'/><menuitem name='GPSDHomePageAction' action='GPSDHomePageAction'/></menu><menu name='GPSAction' action='GPSAction'><menuitem name='TransferCachesToLastUsedAction' action='TransferCachesToLastUsedAction'/><menuitem name='ReceiveFieldNotesFromLastUsedAction' action='ReceiveFieldNotesFromLastUsedAction'/><separator/><menu name='TransferCachesAction' action='TransferCachesAction'/><menu name='ReceiveFieldNotesAction' action='ReceiveFieldNotesAction'/><separator/><menuitem name='AddGPSProfileAction' action='AddGPSProfileAction'/><menu name='EditGPSProfileAction' action='EditGPSProfileAction'/><menuitem name='DeleteGPSProfileAction' action='DeleteGPSProfileAction'/></menu><menu name='ToolsAction' action='ToolsAction'><menuitem name='ViewAllInQLandkarteGTAction' action='ViewAllInQLandkarteGTAction'/><menuitem name='ViewSelectedCacheInQLandkarteGTAction' action='ViewSelectedCacheInQLandkarteGTAction'/><separator/><menu name='ExternalToolsAction' action='ExternalToolsAction'/><menuitem name='ConfigureExternalToolsAction' action='ConfigureExternalToolsAction'/><separator/><menuitem name='DatabaseCleanupAssistantAction' action='DatabaseCleanupAssistantAction'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='OCMWikiAction' action='OCMWikiAction'/><menuitem name='OCMForumsAction' action='OCMForumsAction'/><separator/><menuitem name='AboutAction' action='AboutAction'/><menuitem name='ChangeHistoryAction' action='ChangeHistoryAction'/><menuitem name='CheckForUpdatesAction' action='CheckForUpdatesAction'/></menu></menubar></ui>"); this.mainMenuBar = ((Gtk.MenuBar)(this.UIManager.GetWidget("/mainMenuBar"))); this.mainMenuBar.Name = "mainMenuBar"; this.mainWindowContents.Add(this.mainMenuBar); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.mainWindowContents[this.mainMenuBar])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child mainWindowContents.Gtk.Box+BoxChild this.mainHPane = new Gtk.HPaned(); this.mainHPane.CanFocus = true; this.mainHPane.Name = "mainHPane"; this.mainHPane.Position = 300; // Container child mainHPane.Gtk.Paned+PanedChild this.cacheList = new ocmgtk.CacheListWidget(); this.cacheList.Events = ((Gdk.EventMask)(256)); this.cacheList.Name = "cacheList"; this.cacheList.DisabledOrArchived = 0; this.cacheList.MineCount = 0; this.cacheList.VisibleCount = 0; this.cacheList.FoundCount = 0; this.mainHPane.Add(this.cacheList); Gtk.Paned.PanedChild w3 = ((Gtk.Paned.PanedChild)(this.mainHPane[this.cacheList])); w3.Resize = false; // Container child mainHPane.Gtk.Paned+PanedChild this.mainVPane = new Gtk.VPaned(); this.mainVPane.CanFocus = true; this.mainVPane.Name = "mainVPane"; this.mainVPane.Position = 385; // Container child mainVPane.Gtk.Paned+PanedChild this.ocmCacheInfo = new ocmgtk.CacheInfoWidget(); this.ocmCacheInfo.Events = ((Gdk.EventMask)(256)); this.ocmCacheInfo.Name = "ocmCacheInfo"; this.mainVPane.Add(this.ocmCacheInfo); Gtk.Paned.PanedChild w4 = ((Gtk.Paned.PanedChild)(this.mainVPane[this.ocmCacheInfo])); w4.Resize = false; // Container child mainVPane.Gtk.Paned+PanedChild this.mapVBOX = new Gtk.VBox(); this.mapVBOX.Name = "mapVBOX"; // Container child mapVBOX.Gtk.Box+BoxChild this.hbox14 = new Gtk.HBox(); this.hbox14.Name = "hbox14"; // Container child hbox14.Gtk.Box+BoxChild this.spacerLabel = new Gtk.Label(); this.spacerLabel.Name = "spacerLabel"; this.hbox14.Add(this.spacerLabel); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox14[this.spacerLabel])); w5.Position = 0; // Container child hbox14.Gtk.Box+BoxChild this.minButton = new Gtk.Button(); this.minButton.CanFocus = true; this.minButton.Name = "minButton"; this.minButton.FocusOnClick = false; this.minButton.Relief = ((Gtk.ReliefStyle)(2)); // Container child minButton.Gtk.Container+ContainerChild this.image250 = new Gtk.Image(); this.image250.Name = "image250"; this.image250.Pixbuf = Gdk.Pixbuf.LoadFromResource("ocmgtk.icons.scalable.minicon.svg"); this.minButton.Add(this.image250); this.minButton.Label = null; this.hbox14.Add(this.minButton); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox14[this.minButton])); w7.Position = 1; w7.Expand = false; w7.Fill = false; // Container child hbox14.Gtk.Box+BoxChild this.mapDownButton = new Gtk.Button(); this.mapDownButton.CanFocus = true; this.mapDownButton.Name = "mapDownButton"; this.mapDownButton.Relief = ((Gtk.ReliefStyle)(2)); // Container child mapDownButton.Gtk.Container+ContainerChild this.image38 = new Gtk.Image(); this.image38.Name = "image38"; this.image38.Pixbuf = Gdk.Pixbuf.LoadFromResource("ocmgtk.icons.scalable.down_icon.svg"); this.mapDownButton.Add(this.image38); this.mapDownButton.Label = null; this.hbox14.Add(this.mapDownButton); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox14[this.mapDownButton])); w9.Position = 2; w9.Expand = false; w9.Fill = false; // Container child hbox14.Gtk.Box+BoxChild this.restoreButton = new Gtk.Button(); this.restoreButton.CanFocus = true; this.restoreButton.Name = "restoreButton"; this.restoreButton.Relief = ((Gtk.ReliefStyle)(2)); // Container child restoreButton.Gtk.Container+ContainerChild this.image31 = new Gtk.Image(); this.image31.Name = "image31"; this.image31.Pixbuf = Gdk.Pixbuf.LoadFromResource("ocmgtk.icons.scalable.restore.svg"); this.restoreButton.Add(this.image31); this.restoreButton.Label = null; this.hbox14.Add(this.restoreButton); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox14[this.restoreButton])); w11.Position = 3; w11.Expand = false; w11.Fill = false; // Container child hbox14.Gtk.Box+BoxChild this.mapUpButton = new Gtk.Button(); this.mapUpButton.CanFocus = true; this.mapUpButton.Name = "mapUpButton"; this.mapUpButton.FocusOnClick = false; this.mapUpButton.Relief = ((Gtk.ReliefStyle)(2)); // Container child mapUpButton.Gtk.Container+ContainerChild this.image37 = new Gtk.Image(); this.image37.Name = "image37"; this.image37.Pixbuf = Gdk.Pixbuf.LoadFromResource("ocmgtk.icons.scalable.up_icon.svg"); this.mapUpButton.Add(this.image37); this.mapUpButton.Label = null; this.hbox14.Add(this.mapUpButton); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox14[this.mapUpButton])); w13.Position = 4; w13.Expand = false; w13.Fill = false; this.mapVBOX.Add(this.hbox14); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.mapVBOX[this.hbox14])); w14.Position = 1; w14.Expand = false; w14.Fill = false; // Container child mapVBOX.Gtk.Box+BoxChild this.ocmMapWidget = new ocmgtk.MapWidget(); this.ocmMapWidget.Events = ((Gdk.EventMask)(256)); this.ocmMapWidget.Name = "ocmMapWidget"; this.ocmMapWidget.ShowNearby = false; this.ocmMapWidget.ShowAllChildren = false; this.mapVBOX.Add(this.ocmMapWidget); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.mapVBOX[this.ocmMapWidget])); w15.Position = 2; this.mainVPane.Add(this.mapVBOX); this.mainHPane.Add(this.mainVPane); this.mainWindowContents.Add(this.mainHPane); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.mainWindowContents[this.mainHPane])); w18.Position = 1; // Container child mainWindowContents.Gtk.Box+BoxChild this.mainStatusBar = new Gtk.Statusbar(); this.mainStatusBar.Name = "mainStatusBar"; this.mainStatusBar.Spacing = 6; // Container child mainStatusBar.Gtk.Box+BoxChild this.LocationLabel = new Gtk.Label(); this.LocationLabel.Name = "LocationLabel"; this.LocationLabel.Xalign = 1F; this.LocationLabel.LabelProp = "<location>"; this.mainStatusBar.Add(this.LocationLabel); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.mainStatusBar[this.LocationLabel])); w19.Position = 1; w19.Expand = false; w19.Fill = false; // Container child mainStatusBar.Gtk.Box+BoxChild this.statusProgressBar = new Gtk.ProgressBar(); this.statusProgressBar.WidthRequest = 150; this.statusProgressBar.HeightRequest = 5; this.statusProgressBar.Name = "statusProgressBar"; this.mainStatusBar.Add(this.statusProgressBar); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.mainStatusBar[this.statusProgressBar])); w20.PackType = ((Gtk.PackType)(1)); w20.Position = 2; w20.Expand = false; this.mainWindowContents.Add(this.mainStatusBar); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.mainWindowContents[this.mainStatusBar])); w21.Position = 2; w21.Expand = false; w21.Fill = false; this.Add(this.mainWindowContents); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 1061; this.DefaultHeight = 574; this.statusProgressBar.Hide(); this.Hide(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteWindow); this.SizeAllocated += new Gtk.SizeAllocatedHandler(this.OnResizeWindow); this.openAction.Activated += new System.EventHandler(this.OnOpenDatabase); this.CompactDatabaseAction.Activated += new System.EventHandler(this.OnCompactDatabase); this.quitAction.Activated += new System.EventHandler(this.OnQuit); this.NewDatabaseAction.Activated += new System.EventHandler(this.OnNewDatabase); this.NewCacheAction.Activated += new System.EventHandler(this.OnNewCache); this.ShowNearbyCachesAction.Toggled += new System.EventHandler(this.OnToggleShowNearby); this.FieldNotesAction.Activated += new System.EventHandler(this.OnViewFieldNotes); this.SelectedCacheOnlyAction.Toggled += new System.EventHandler(this.OnToggleSelectedCache); this.printAction.Activated += new System.EventHandler(this.OnPrintCache); this.AddLocationAction.Activated += new System.EventHandler(this.OnAddLocation); this.DeleteLocationAction.Activated += new System.EventHandler(this.OnDeleteLocation); this.PanToCentreAction.Activated += new System.EventHandler(this.OnPanToCentre); this.PanToSelectedCacheAction.Activated += new System.EventHandler(this.OnPanToSelected); this.ZoomToSelectedCacheAction.Activated += new System.EventHandler(this.OnZoomToSelected); this.AdvancedFiltersAction.Activated += new System.EventHandler(this.OnAdvancedFiltersClick); this.CombinationFilterAction.Activated += new System.EventHandler(this.OnCombinationClick); this.ClearAdvancedFiltersAction.Activated += new System.EventHandler(this.OnClearAdvanced); this.ClearComboFilterAction.Activated += new System.EventHandler(this.OnClearCombo); this.ClearAllFiltersAction.Activated += new System.EventHandler(this.OnClearAll); this.OCMWikiAction.Activated += new System.EventHandler(this.OnWikiClick); this.OCMForumsAction.Activated += new System.EventHandler(this.OnForumsClick); this.AboutAction.Activated += new System.EventHandler(this.OnAboutClick); this.ChangeHistoryAction.Activated += new System.EventHandler(this.OnChangeHistoryClick); this.CheckForUpdatesAction.Activated += new System.EventHandler(this.OnCheckUpdatesClick); this.OCMHomePageAction.Activated += new System.EventHandler(this.OnOCMHomeClick); this.GPSBabelHomePageAction.Activated += new System.EventHandler(this.OnGPSBabelClick); this.GPSDHomePageAction.Activated += new System.EventHandler(this.OnGPSDClick); this.HomePageAction.Activated += new System.EventHandler(this.OnGCHomeClick); this.ViewMyProfileAction.Activated += new System.EventHandler(this.OnGCProfileClick); this.MyAccountDetailsAction.Activated += new System.EventHandler(this.OnGCAccountClick); this.CreatePocketQueriesAction.Activated += new System.EventHandler(this.OnGCPocketQueryClick); this.StatisticsAction.Activated += new System.EventHandler(this.OnGCStatsClick); this.FindACacheAction.Activated += new System.EventHandler(this.OnGCFindClick); this.TCHomePageAction.Activated += new System.EventHandler(this.OnTCHomePageClick); this.TraditionalAction.Activated += new System.EventHandler(this.OnTCTraditionalClick); this.LocationlessAction.Activated += new System.EventHandler(this.OnTCLocationlessClick); this.ListOfCountrySitesAction.Activated += new System.EventHandler(this.OnOCCountryList); this.NVHomePageAction.Activated += new System.EventHandler(this.OnNaviHome); this.MyNavicacheAction.Activated += new System.EventHandler(this.OnMyNavi); this.AddChildWaypointAction.Activated += new System.EventHandler(this.OnAddChildWaypoint); this.CorrectedCoordinatesAction.Activated += new System.EventHandler(this.OnAddCorrectedCoordinate); this.ViewOnlineAction.Activated += new System.EventHandler(this.OnViewOnlineClick); this.SetSelectedCacheAsCentreAction.Activated += new System.EventHandler(this.OnSetSelectedAsCentreClick); this.ModifyCacheAction.Activated += new System.EventHandler(this.OnModifyCache); this.MarkFoundAction.Activated += new System.EventHandler(this.OnMarkFound); this.MarkFirstToFindAction.Activated += new System.EventHandler(this.OnMarkFTF); this.MarkDidNotFindAction.Activated += new System.EventHandler(this.OnMarkDNF); this.MarkUnfoundAction.Activated += new System.EventHandler(this.OnMarkUnfound); this.MarkDisabledAction.Activated += new System.EventHandler(this.OnMarkDisabled); this.MarkArchivedAction.Activated += new System.EventHandler(this.OnMarkArchived); this.MarkAvailableAction.Activated += new System.EventHandler(this.OnMarkAvailable); this.RemoveSelectedCacheFromBookmarkListAction.Activated += new System.EventHandler(this.OnRemoveFromList); this.CreateBookmarkListAction.Activated += new System.EventHandler(this.OnCreateBookmarkList); this.DeleteBookmarkListAction.Activated += new System.EventHandler(this.OnDeleteBookmarkList); this.ZoomToCentreAction.Activated += new System.EventHandler(this.OnZoomToCentre); this.ImportGPXLocZipAction.Activated += new System.EventHandler(this.OnImportGPX); this.ImportDirectoryAction.Activated += new System.EventHandler(this.OnImportDirectory); this.SaveCurrentViewAsQuickFilterAction.Activated += new System.EventHandler(this.OnSaveQuickFilter); this.DeleteQuickFilterAction.Activated += new System.EventHandler(this.OnDeleteQuickFilter); this.ExportGPXAction.Activated += new System.EventHandler(this.OnExportGPX); this.ExportFindsGPXAction.Activated += new System.EventHandler(this.OnMyFindsClick); this.ExportGarminPOIFileAction.Activated += new System.EventHandler(this.OnExportPOI); this.CopyToAction.Activated += new System.EventHandler(this.OnCopy); this.MoveToAction.Activated += new System.EventHandler(this.OnMove); this.DeleteAction.Activated += new System.EventHandler(this.OnDelete); this.DeleteAllAction.Activated += new System.EventHandler(this.OnDeleteAll); this.DeselectAction.Activated += new System.EventHandler(this.OnDeselect); this.PreferencesAction.Activated += new System.EventHandler(this.OnPreferences); this.TransferCachesToLastUsedAction.Activated += new System.EventHandler(this.OnTransferLast); this.ReceiveFieldNotesFromLastUsedAction.Activated += new System.EventHandler(this.OnReceiveLast); this.AddGPSProfileAction.Activated += new System.EventHandler(this.OnAddProfile); this.DeleteGPSProfileAction.Activated += new System.EventHandler(this.OnDeleteProfile); this.ViewAllInQLandkarteGTAction.Activated += new System.EventHandler(this.OnViewInQLGT); this.ViewSelectedCacheInQLandkarteGTAction.Activated += new System.EventHandler(this.OnViewSelectedInQLGT); this.ConfigureExternalToolsAction.Activated += new System.EventHandler(this.OnConfigure); this.LogFindAction.Activated += new System.EventHandler(this.OnLogFind); this.LogToFieldNotesFileAction.Activated += new System.EventHandler(this.OnLogToFile); this.FullScreenAction.Toggled += new System.EventHandler(this.OnFullToggle); this.GrabImagesAction.Activated += new System.EventHandler(this.OnGrabImages); this.MapPopupsAction.Toggled += new System.EventHandler(this.OnMapPopupToggle); this.DatabaseCleanupAssistantAction.Activated += new System.EventHandler(this.OnCleanup); this.ReduceNumberOfLogsAction.Activated += new System.EventHandler(this.OnReduceLogs); this.GrabAllImagesAction.Activated += new System.EventHandler(this.OnGrabAllImages); this.GrabImagesAction1.Activated += new System.EventHandler(this.OnGrabImages); this.minButton.Clicked += new System.EventHandler(this.OnMinClick); this.mapDownButton.Clicked += new System.EventHandler(this.OnDownClick); this.restoreButton.Clicked += new System.EventHandler(this.OnRestoreClick); this.mapUpButton.Clicked += new System.EventHandler(this.OnUpClick); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); this.XFileAction = new Gtk.Action("XFileAction", Mono.Unix.Catalog.GetString("XFile"), null, null); this.XFileAction.ShortLabel = Mono.Unix.Catalog.GetString("File"); w1.Add(this.XFileAction, null); this.GimmeHelpAction = new Gtk.Action("GimmeHelpAction", Mono.Unix.Catalog.GetString("GimmeHelp"), null, null); this.GimmeHelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help"); w1.Add(this.GimmeHelpAction, null); this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("About"), null, null); this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("About"); w1.Add(this.AboutAction, null); this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("Quit"), null, null); this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("Quit"); w1.Add(this.QuitAction, null); this.SomeEditMenuAction = new Gtk.Action("SomeEditMenuAction", Mono.Unix.Catalog.GetString("SomeEditMenu"), null, null); this.SomeEditMenuAction.ShortLabel = Mono.Unix.Catalog.GetString("SomeEditMenu"); w1.Add(this.SomeEditMenuAction, null); this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("New"), null, null); this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("New"); w1.Add(this.NewAction, null); this.Action1 = new Gtk.Action("Action1", null, null, null); w1.Add(this.Action1, null); this.indexAction = new Gtk.Action("indexAction", null, Mono.Unix.Catalog.GetString("tooltipText"), "gtk-index"); w1.Add(this.indexAction, null); this.cdromAction = new Gtk.Action("cdromAction", null, null, "gtk-cdrom"); w1.Add(this.cdromAction, null); this.RadioInToolBarTest1Action = new Gtk.RadioAction("RadioInToolBarTest1Action", Mono.Unix.Catalog.GetString("RadioInToolBarTest1"), null, null, 0); this.RadioInToolBarTest1Action.Group = new GLib.SList(System.IntPtr.Zero); this.RadioInToolBarTest1Action.ShortLabel = Mono.Unix.Catalog.GetString("RadioInToolBarTest1"); w1.Add(this.RadioInToolBarTest1Action, null); this.RadioInToolBarTest2Action = new Gtk.RadioAction("RadioInToolBarTest2Action", Mono.Unix.Catalog.GetString("RadioInToolBarTest2"), null, null, 0); this.RadioInToolBarTest2Action.Group = this.RadioInToolBarTest1Action.Group; this.RadioInToolBarTest2Action.ShortLabel = Mono.Unix.Catalog.GetString("RadioInToolBarTest2"); w1.Add(this.RadioInToolBarTest2Action, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("MainWindow"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='XFileAction' action='XFileAction'><menuitem name='NewAction' action='NewAction'/><separator/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='SomeEditMenuAction' action='SomeEditMenuAction'/><menu name='GimmeHelpAction' action='GimmeHelpAction'><menuitem name='AboutAction' action='AboutAction'/></menu></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox1.Add(this.menubar1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='indexAction' action='indexAction'/><toolitem name='RadioInToolBarTest1Action' action='RadioInToolBarTest1Action'/><toolitem name='RadioInToolBarTest2Action' action='RadioInToolBarTest2Action'/></toolbar></ui>"); this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1"))); this.toolbar1.Name = "toolbar1"; this.toolbar1.ShowArrow = false; this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.vbox1.Add(this.toolbar1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.notebook1 = new Gtk.Notebook(); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 0; // Container child notebook1.Gtk.Notebook+NotebookChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.treeview2 = new Gtk.TreeView(); this.treeview2.CanFocus = true; this.treeview2.Name = "treeview2"; this.GtkScrolledWindow.Add(this.treeview2); this.hbox1.Add(this.GtkScrolledWindow); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow])); w5.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(5)), ((uint)(3)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.btnTest1 = new Gtk.Button(); this.btnTest1.CanFocus = true; this.btnTest1.Name = "btnTest1"; this.btnTest1.UseUnderline = true; this.btnTest1.Label = Mono.Unix.Catalog.GetString("hey ya"); this.table1.Add(this.btnTest1); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.btnTest1])); w6.LeftAttach = ((uint)(2)); w6.RightAttach = ((uint)(3)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.btnWithImg = new Gtk.Button(); this.btnWithImg.CanFocus = true; this.btnWithImg.Name = "btnWithImg"; this.btnWithImg.UseUnderline = true; this.btnWithImg.Label = Mono.Unix.Catalog.GetString("IMG"); this.table1.Add(this.btnWithImg); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.btnWithImg])); w7.TopAttach = ((uint)(3)); w7.BottomAttach = ((uint)(4)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.cbeTest = Gtk.ComboBoxEntry.NewText(); this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("First element")); this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("Second element")); this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("Third element")); this.cbeTest.Name = "cbeTest"; this.table1.Add(this.cbeTest); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.cbeTest])); w8.TopAttach = ((uint)(1)); w8.BottomAttach = ((uint)(2)); w8.LeftAttach = ((uint)(2)); w8.RightAttach = ((uint)(3)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.cbxTest = Gtk.ComboBox.NewText(); this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("FirstItem")); this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("SecondItem")); this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("LastItem")); this.cbxTest.Name = "cbxTest"; this.table1.Add(this.cbxTest); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.cbxTest])); w9.TopAttach = ((uint)(1)); w9.BottomAttach = ((uint)(2)); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.checkbutton1 = new Gtk.CheckButton(); this.checkbutton1.CanFocus = true; this.checkbutton1.Name = "checkbutton1"; this.checkbutton1.Label = Mono.Unix.Catalog.GetString("checkbutton1"); this.checkbutton1.DrawIndicator = true; this.checkbutton1.UseUnderline = true; this.table1.Add(this.checkbutton1); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.checkbutton1])); w10.TopAttach = ((uint)(2)); w10.BottomAttach = ((uint)(3)); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.chkTest = new Gtk.CheckButton(); this.chkTest.CanFocus = true; this.chkTest.Name = "chkTest"; this.chkTest.Label = Mono.Unix.Catalog.GetString("checkbutton1"); this.chkTest.DrawIndicator = true; this.chkTest.UseUnderline = true; this.table1.Add(this.chkTest); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.chkTest])); w11.TopAttach = ((uint)(1)); w11.BottomAttach = ((uint)(2)); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.lblTest1 = new Gtk.Label(); this.lblTest1.Name = "lblTest1"; this.lblTest1.LabelProp = Mono.Unix.Catalog.GetString("This is a test message\nin a label"); this.table1.Add(this.lblTest1); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.lblTest1])); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.maskedEntry = new Gtk.Entry(); this.maskedEntry.CanFocus = true; this.maskedEntry.Name = "maskedEntry"; this.maskedEntry.IsEditable = true; this.maskedEntry.InvisibleChar = '●'; this.table1.Add(this.maskedEntry); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.maskedEntry])); w13.TopAttach = ((uint)(4)); w13.BottomAttach = ((uint)(5)); w13.LeftAttach = ((uint)(2)); w13.RightAttach = ((uint)(3)); w13.XOptions = ((Gtk.AttachOptions)(4)); w13.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.radiobutton1 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("radiobutton1")); this.radiobutton1.CanFocus = true; this.radiobutton1.Name = "radiobutton1"; this.radiobutton1.DrawIndicator = true; this.radiobutton1.UseUnderline = true; this.radiobutton1.Group = new GLib.SList(System.IntPtr.Zero); this.table1.Add(this.radiobutton1); Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table1[this.radiobutton1])); w14.TopAttach = ((uint)(3)); w14.BottomAttach = ((uint)(4)); w14.LeftAttach = ((uint)(1)); w14.RightAttach = ((uint)(2)); w14.XOptions = ((Gtk.AttachOptions)(4)); w14.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.radiobutton2 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("radiobutton2")); this.radiobutton2.CanFocus = true; this.radiobutton2.Name = "radiobutton2"; this.radiobutton2.DrawIndicator = true; this.radiobutton2.UseUnderline = true; this.radiobutton2.Group = this.radiobutton1.Group; this.table1.Add(this.radiobutton2); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.radiobutton2])); w15.TopAttach = ((uint)(3)); w15.BottomAttach = ((uint)(4)); w15.LeftAttach = ((uint)(2)); w15.RightAttach = ((uint)(3)); w15.XOptions = ((Gtk.AttachOptions)(4)); w15.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.radTest1 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("rad Opt 0")); this.radTest1.CanFocus = true; this.radTest1.Name = "radTest1"; this.radTest1.DrawIndicator = true; this.radTest1.UseUnderline = true; this.radTest1.Group = new GLib.SList(System.IntPtr.Zero); this.table1.Add(this.radTest1); Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.radTest1])); w16.TopAttach = ((uint)(2)); w16.BottomAttach = ((uint)(3)); w16.LeftAttach = ((uint)(1)); w16.RightAttach = ((uint)(2)); w16.XOptions = ((Gtk.AttachOptions)(4)); w16.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.radTest2 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("rad Opt 1")); this.radTest2.CanFocus = true; this.radTest2.Name = "radTest2"; this.radTest2.DrawIndicator = true; this.radTest2.UseUnderline = true; this.radTest2.Group = this.radTest1.Group; this.table1.Add(this.radTest2); Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table1[this.radTest2])); w17.TopAttach = ((uint)(2)); w17.BottomAttach = ((uint)(3)); w17.LeftAttach = ((uint)(2)); w17.RightAttach = ((uint)(3)); w17.XOptions = ((Gtk.AttachOptions)(4)); w17.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.spinbuttonTest1 = new Gtk.SpinButton(0, 100, 1); this.spinbuttonTest1.CanFocus = true; this.spinbuttonTest1.Name = "spinbuttonTest1"; this.spinbuttonTest1.Adjustment.PageIncrement = 10; this.spinbuttonTest1.ClimbRate = 1; this.spinbuttonTest1.Numeric = true; this.table1.Add(this.spinbuttonTest1); Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.spinbuttonTest1])); w18.TopAttach = ((uint)(4)); w18.BottomAttach = ((uint)(5)); w18.XOptions = ((Gtk.AttachOptions)(4)); w18.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.txtEntry = new Gtk.Entry(); this.txtEntry.CanFocus = true; this.txtEntry.Name = "txtEntry"; this.txtEntry.Text = Mono.Unix.Catalog.GetString("test text"); this.txtEntry.IsEditable = true; this.txtEntry.InvisibleChar = '●'; this.table1.Add(this.txtEntry); Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.txtEntry])); w19.LeftAttach = ((uint)(1)); w19.RightAttach = ((uint)(2)); w19.XOptions = ((Gtk.AttachOptions)(4)); w19.YOptions = ((Gtk.AttachOptions)(4)); this.hbox1.Add(this.table1); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox1[this.table1])); w20.Position = 1; w20.Expand = false; w20.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.vscrollbar1 = new Gtk.VScrollbar(null); this.vscrollbar1.Name = "vscrollbar1"; this.vscrollbar1.Adjustment.Upper = 100; this.vscrollbar1.Adjustment.PageIncrement = 10; this.vscrollbar1.Adjustment.PageSize = 10; this.vscrollbar1.Adjustment.StepIncrement = 1; this.hbox1.Add(this.vscrollbar1); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox1[this.vscrollbar1])); w21.Position = 2; w21.Expand = false; w21.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.imgTest1 = new Gtk.Image(); this.imgTest1.Name = "imgTest1"; this.hbox1.Add(this.imgTest1); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox1[this.imgTest1])); w22.Position = 3; w22.Expand = false; w22.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.imgTest2 = new Gtk.Image(); this.imgTest2.Name = "imgTest2"; this.hbox1.Add(this.imgTest2); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox1[this.imgTest2])); w23.Position = 5; w23.Expand = false; w23.Fill = false; this.notebook1.Add(this.hbox1); // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("page1"); this.notebook1.SetTabLabel(this.hbox1, this.label1); this.label1.ShowAll(); // Container child notebook1.Gtk.Notebook+NotebookChild this.calendar1 = new Gtk.Calendar(); this.calendar1.CanFocus = true; this.calendar1.Name = "calendar1"; this.calendar1.DisplayOptions = ((Gtk.CalendarDisplayOptions)(3)); this.notebook1.Add(this.calendar1); Gtk.Notebook.NotebookChild w25 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.calendar1])); w25.Position = 1; // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("page2"); this.notebook1.SetTabLabel(this.calendar1, this.label2); this.label2.ShowAll(); this.vbox1.Add(this.notebook1); Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook1])); w26.Position = 2; w26.Expand = false; w26.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.progressbar1 = new Gtk.ProgressBar(); this.progressbar1.Name = "progressbar1"; this.vbox1.Add(this.progressbar1); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox1[this.progressbar1])); w27.Position = 3; w27.Expand = false; w27.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hscrollbar1 = new Gtk.HScrollbar(null); this.hscrollbar1.Name = "hscrollbar1"; this.hscrollbar1.Adjustment.Upper = 100; this.hscrollbar1.Adjustment.PageIncrement = 10; this.hscrollbar1.Adjustment.PageSize = 10; this.hscrollbar1.Adjustment.StepIncrement = 1; this.hscrollbar1.Adjustment.Value = 9.28317766722556; this.vbox1.Add(this.hscrollbar1); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox1[this.hscrollbar1])); w28.Position = 4; w28.Expand = false; w28.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.hpaned1 = new Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 19; // Container child hpaned1.Gtk.Paned+PanedChild this.vscale1 = new Gtk.VScale(null); this.vscale1.CanFocus = true; this.vscale1.Name = "vscale1"; this.vscale1.Adjustment.Upper = 100; this.vscale1.Adjustment.PageIncrement = 10; this.vscale1.Adjustment.StepIncrement = 1; this.vscale1.DrawValue = true; this.vscale1.Digits = 0; this.vscale1.ValuePos = ((Gtk.PositionType)(2)); this.hpaned1.Add(this.vscale1); Gtk.Paned.PanedChild w29 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vscale1])); w29.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild this.GtkScrolledWindow2 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow2.Name = "GtkScrolledWindow2"; this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild this.nodeview1 = new Gtk.NodeView(); this.nodeview1.CanFocus = true; this.nodeview1.Name = "nodeview1"; this.GtkScrolledWindow2.Add(this.nodeview1); this.hpaned1.Add(this.GtkScrolledWindow2); this.hbox2.Add(this.hpaned1); Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.hbox2[this.hpaned1])); w32.Position = 0; // Container child hbox2.Gtk.Box+BoxChild this.GtkScrolledWindow1 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild this.txtViewTest = new Gtk.TextView(); this.txtViewTest.CanFocus = true; this.txtViewTest.Name = "txtViewTest"; this.GtkScrolledWindow1.Add(this.txtViewTest); this.hbox2.Add(this.GtkScrolledWindow1); Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.hbox2[this.GtkScrolledWindow1])); w34.Position = 1; // Container child hbox2.Gtk.Box+BoxChild this.frame1 = new Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame1.Gtk.Container+ContainerChild this.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(12)); this.frame1.Add(this.GtkAlignment); this.GtkLabel13 = new Gtk.Label(); this.GtkLabel13.Name = "GtkLabel13"; this.GtkLabel13.LabelProp = Mono.Unix.Catalog.GetString("<b>frame1</b>"); this.GtkLabel13.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel13; this.hbox2.Add(this.frame1); Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.hbox2[this.frame1])); w36.Position = 2; w36.Expand = false; w36.Fill = false; this.vbox1.Add(this.hbox2); Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2])); w37.Position = 5; // Container child vbox1.Gtk.Box+BoxChild this.statusbar1 = new Gtk.Statusbar(); this.statusbar1.Name = "statusbar1"; this.statusbar1.Spacing = 6; this.vbox1.Add(this.statusbar1); Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1])); w38.Position = 7; w38.Expand = false; w38.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 757; this.DefaultHeight = 516; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("ToolsGroup"); this.Tools = new Gtk.Action("Tools", Mono.Unix.Catalog.GetString("_Tools"), null, null); this.Tools.ShortLabel = Mono.Unix.Catalog.GetString("_Tools"); w1.Add(this.Tools, null); this.FindDuplicates = new Gtk.Action("FindDuplicates", Mono.Unix.Catalog.GetString("Find Duplicates"), null, null); this.FindDuplicates.ShortLabel = Mono.Unix.Catalog.GetString("Find Duplicates"); w1.Add(this.FindDuplicates, null); this.UIManager.InsertActionGroup(w1, 0); Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); this.File = new Gtk.Action("File", Mono.Unix.Catalog.GetString("_File"), null, null); this.File.ShortLabel = "File"; w2.Add(this.File, null); this.New = new Gtk.Action("New", Mono.Unix.Catalog.GetString("New"), null, "gtk-new"); this.New.ShortLabel = "New"; w2.Add(this.New, null); this.NewDatabase = new Gtk.Action("NewDatabase", Mono.Unix.Catalog.GetString("New Database"), null, "gtk-new"); this.NewDatabase.ShortLabel = Mono.Unix.Catalog.GetString("New Database"); w2.Add(this.NewDatabase, null); this.NewIndividual = new Gtk.Action("NewIndividual", Mono.Unix.Catalog.GetString("New Individual"), null, null); this.NewIndividual.ShortLabel = Mono.Unix.Catalog.GetString("New Individual"); w2.Add(this.NewIndividual, null); this.NewSource = new Gtk.Action("NewSource", Mono.Unix.Catalog.GetString("New Source"), null, null); this.NewSource.ShortLabel = Mono.Unix.Catalog.GetString("New Source"); w2.Add(this.NewSource, null); this.NewRepository = new Gtk.Action("NewRepository", Mono.Unix.Catalog.GetString("New Repository"), null, null); this.NewRepository.ShortLabel = Mono.Unix.Catalog.GetString("New Repository"); w2.Add(this.NewRepository, null); this.NewMedia = new Gtk.Action("NewMedia", Mono.Unix.Catalog.GetString("New Media"), null, null); this.NewMedia.ShortLabel = Mono.Unix.Catalog.GetString("New Media"); w2.Add(this.NewMedia, null); this.Open = new Gtk.Action("Open", Mono.Unix.Catalog.GetString("_Open"), null, "gtk-open"); this.Open.ShortLabel = "_Open"; w2.Add(this.Open, null); this.Merge = new Gtk.Action("Merge", Mono.Unix.Catalog.GetString("Merge"), null, "gtk-convert"); this.Merge.ShortLabel = Mono.Unix.Catalog.GetString("Merge"); w2.Add(this.Merge, null); this.Save = new Gtk.Action("Save", Mono.Unix.Catalog.GetString("_Save"), null, "gtk-save"); this.Save.ShortLabel = "_Save"; w2.Add(this.Save, null); this.SaveAs = new Gtk.Action("SaveAs", Mono.Unix.Catalog.GetString("Save _As"), null, "gtk-save-as"); this.SaveAs.ShortLabel = "Save _As"; w2.Add(this.SaveAs, null); this.Quit = new Gtk.Action("Quit", Mono.Unix.Catalog.GetString("Quit"), null, "gtk-quit"); this.Quit.ShortLabel = "Quit"; w2.Add(this.Quit, "<Control>q"); this.Edit = new Gtk.Action("Edit", Mono.Unix.Catalog.GetString("_Edit"), null, null); this.Edit.ShortLabel = "_Edit"; w2.Add(this.Edit, null); this.Help = new Gtk.Action("Help", Mono.Unix.Catalog.GetString("_Help"), null, null); this.Help.ShortLabel = "_Help"; w2.Add(this.Help, null); this.About = new Gtk.Action("About", Mono.Unix.Catalog.GetString("About"), null, "gtk-about"); this.About.ShortLabel = "About"; w2.Add(this.About, null); this.Undo = new Gtk.Action("Undo", Mono.Unix.Catalog.GetString("_Undo"), null, "gtk-undo"); this.Undo.ShortLabel = Mono.Unix.Catalog.GetString("_Undo"); w2.Add(this.Undo, null); this.Redo = new Gtk.Action("Redo", Mono.Unix.Catalog.GetString("_Redo"), null, "gtk-redo"); this.Redo.ShortLabel = Mono.Unix.Catalog.GetString("_Redo"); w2.Add(this.Redo, null); this.Cut = new Gtk.Action("Cut", Mono.Unix.Catalog.GetString("Cu_t"), null, "gtk-cut"); this.Cut.ShortLabel = Mono.Unix.Catalog.GetString("Cu_t"); w2.Add(this.Cut, null); this.Copy = new Gtk.Action("Copy", Mono.Unix.Catalog.GetString("_Copy"), null, "gtk-copy"); this.Copy.ShortLabel = Mono.Unix.Catalog.GetString("_Copy"); w2.Add(this.Copy, null); this.Paste = new Gtk.Action("Paste", Mono.Unix.Catalog.GetString("_Paste"), null, "gtk-paste"); this.Paste.ShortLabel = Mono.Unix.Catalog.GetString("_Paste"); w2.Add(this.Paste, null); this.Delete = new Gtk.Action("Delete", Mono.Unix.Catalog.GetString("_Delete"), null, "gtk-delete"); this.Delete.ShortLabel = Mono.Unix.Catalog.GetString("_Delete"); w2.Add(this.Delete, null); this.Preferences = new Gtk.Action("Preferences", Mono.Unix.Catalog.GetString("_Preferences"), null, "gtk-preferences"); this.Preferences.ShortLabel = Mono.Unix.Catalog.GetString("_Preferences"); w2.Add(this.Preferences, null); this.NewNote = new Gtk.Action("NewNote", Mono.Unix.Catalog.GetString("New Note"), null, null); this.NewNote.ShortLabel = Mono.Unix.Catalog.GetString("New Note"); w2.Add(this.NewNote, null); this.PropertiesAction = new Gtk.Action("PropertiesAction", Mono.Unix.Catalog.GetString("_Properties"), null, "gtk-properties"); this.PropertiesAction.ShortLabel = Mono.Unix.Catalog.GetString("_Properties"); w2.Add(this.PropertiesAction, null); this.UIManager.InsertActionGroup(w2, 1); Gtk.ActionGroup w3 = new Gtk.ActionGroup("Reports"); this.Reports = new Gtk.Action("Reports", Mono.Unix.Catalog.GetString("_Reports"), null, null); this.Reports.ShortLabel = Mono.Unix.Catalog.GetString("_Reports"); w3.Add(this.Reports, null); this.Individual = new Gtk.Action("Individual", Mono.Unix.Catalog.GetString("Individual"), null, null); this.Individual.ShortLabel = Mono.Unix.Catalog.GetString("Individual"); w3.Add(this.Individual, null); this.IndividualReportWebPage = new Gtk.Action("IndividualReportWebPage", Mono.Unix.Catalog.GetString("Web Page"), null, null); this.IndividualReportWebPage.ShortLabel = Mono.Unix.Catalog.GetString("Web Page"); w3.Add(this.IndividualReportWebPage, null); this.Descendants = new Gtk.Action("Descendants", Mono.Unix.Catalog.GetString("Descendants"), null, null); this.Descendants.ShortLabel = Mono.Unix.Catalog.GetString("Descendants"); w3.Add(this.Descendants, null); this.DescendantsReportWebPage = new Gtk.Action("DescendantsReportWebPage", Mono.Unix.Catalog.GetString("Web Page"), null, null); this.DescendantsReportWebPage.ShortLabel = Mono.Unix.Catalog.GetString("Web Page"); w3.Add(this.DescendantsReportWebPage, null); this.Family = new Gtk.Action("Family", Mono.Unix.Catalog.GetString("Family"), null, null); this.Family.ShortLabel = Mono.Unix.Catalog.GetString("Family"); w3.Add(this.Family, null); this.FamilyGroupSheetReportWebPage = new Gtk.Action("FamilyGroupSheetReportWebPage", Mono.Unix.Catalog.GetString("Web Page"), null, null); this.FamilyGroupSheetReportWebPage.ShortLabel = Mono.Unix.Catalog.GetString("Web Page"); w3.Add(this.FamilyGroupSheetReportWebPage, null); this.UIManager.InsertActionGroup(w3, 2); Gtk.ActionGroup w4 = new Gtk.ActionGroup("ViewGroup"); this.View = new Gtk.Action("View", Mono.Unix.Catalog.GetString("_View"), null, null); this.View.ShortLabel = "_View"; w4.Add(this.View, null); this.SummaryViewAction = new Gtk.RadioAction("SummaryViewAction", Mono.Unix.Catalog.GetString("Summary View"), null, null, 0); this.SummaryViewAction.Group = new GLib.SList(System.IntPtr.Zero); this.SummaryViewAction.ShortLabel = "Summary"; w4.Add(this.SummaryViewAction, null); this.FamilyViewAction = new Gtk.RadioAction("FamilyViewAction", Mono.Unix.Catalog.GetString("Family View"), null, null, 1); this.FamilyViewAction.Group = this.SummaryViewAction.Group; this.FamilyViewAction.ShortLabel = "Family View"; w4.Add(this.FamilyViewAction, null); this.IndividualViewAction = new Gtk.RadioAction("IndividualViewAction", Mono.Unix.Catalog.GetString("Individual View"), null, null, 2); this.IndividualViewAction.Group = this.SummaryViewAction.Group; this.IndividualViewAction.ShortLabel = "Individual View"; w4.Add(this.IndividualViewAction, null); this.SourceViewAction = new Gtk.RadioAction("SourceViewAction", Mono.Unix.Catalog.GetString("Source View"), null, null, 3); this.SourceViewAction.Group = this.SummaryViewAction.Group; this.SourceViewAction.ShortLabel = "Source View"; w4.Add(this.SourceViewAction, null); this.MultimediaViewAction = new Gtk.RadioAction("MultimediaViewAction", Mono.Unix.Catalog.GetString("Multimedia View"), null, null, 4); this.MultimediaViewAction.Group = this.SummaryViewAction.Group; this.MultimediaViewAction.ShortLabel = "Multimedia View"; w4.Add(this.MultimediaViewAction, null); this.RepositoryViewAction = new Gtk.RadioAction("RepositoryViewAction", Mono.Unix.Catalog.GetString("Repository View"), null, null, 5); this.RepositoryViewAction.Group = this.SummaryViewAction.Group; this.RepositoryViewAction.ShortLabel = "Repository View"; w4.Add(this.RepositoryViewAction, null); this.PedigreeViewAction = new Gtk.RadioAction("PedigreeViewAction", Mono.Unix.Catalog.GetString("Pedigree View"), null, null, 6); this.PedigreeViewAction.Group = this.SummaryViewAction.Group; this.PedigreeViewAction.ShortLabel = "Pedigree View"; w4.Add(this.PedigreeViewAction, null); this.ListOfMediaItems = new Gtk.Action("ListOfMediaItems", Mono.Unix.Catalog.GetString("List Of Media Items"), null, "gtk-index"); this.ListOfMediaItems.ShortLabel = Mono.Unix.Catalog.GetString("List Of Media Items"); w4.Add(this.ListOfMediaItems, null); this.ListOfIndividuals = new Gtk.Action("ListOfIndividuals", Mono.Unix.Catalog.GetString("List Of Individuals"), null, "gtk-index"); this.ListOfIndividuals.ShortLabel = "List Of Individuals"; w4.Add(this.ListOfIndividuals, null); this.Go = new Gtk.Action("Go", Mono.Unix.Catalog.GetString("_Go"), null, null); this.Go.ShortLabel = "Go"; w4.Add(this.Go, null); this.HusbandSParents = new Gtk.Action("HusbandSParents", Mono.Unix.Catalog.GetString("Husband's Parents"), null, "gtk-go-up"); this.HusbandSParents.ShortLabel = "Husband's Parents"; w4.Add(this.HusbandSParents, null); this.WifeSParents = new Gtk.Action("WifeSParents", Mono.Unix.Catalog.GetString("Wife's Parents"), null, "gtk-go-up"); this.WifeSParents.ShortLabel = "Wife's Parents"; w4.Add(this.WifeSParents, null); this.ListOfSources = new Gtk.Action("ListOfSources", Mono.Unix.Catalog.GetString("List Of Sources"), null, "gtk-index"); this.ListOfSources.ShortLabel = "List Of Sources"; w4.Add(this.ListOfSources, null); this.ListOfRepositories = new Gtk.Action("ListOfRepositories", Mono.Unix.Catalog.GetString("List Of Repositories"), null, "gtk-index"); this.ListOfRepositories.ShortLabel = "List Of Repositories"; w4.Add(this.ListOfRepositories, null); this.ListOfNotesAction = new Gtk.Action("ListOfNotesAction", Mono.Unix.Catalog.GetString("List Of Notes"), null, "gtk-index"); this.ListOfNotesAction.ShortLabel = Mono.Unix.Catalog.GetString("List Of Notes"); w4.Add(this.ListOfNotesAction, null); this.NoteViewAction = new Gtk.RadioAction("NoteViewAction", Mono.Unix.Catalog.GetString("Note View"), null, null, 7); this.NoteViewAction.Group = this.SummaryViewAction.Group; this.NoteViewAction.ShortLabel = Mono.Unix.Catalog.GetString("Note View"); w4.Add(this.NoteViewAction, null); this.UIManager.InsertActionGroup(w4, 3); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Gedcom.NET GTK UI"); // Container child MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='File' action='File'><menu name='New' action='New'><menuitem name='NewDatabase' action='NewDatabase'/><menuitem name='NewIndividual' action='NewIndividual'/><menuitem name='NewMedia' action='NewMedia'/><menuitem name='NewRepository' action='NewRepository'/><menuitem name='NewSource' action='NewSource'/><menuitem name='NewNote' action='NewNote'/></menu><menuitem name='Open' action='Open'/><menuitem name='Merge' action='Merge'/><separator/><menuitem name='Save' action='Save'/><menuitem name='SaveAs' action='SaveAs'/><separator/><menuitem name='PropertiesAction' action='PropertiesAction'/><separator/><menuitem name='Quit' action='Quit'/></menu><menu name='Edit' action='Edit'><menuitem name='Undo' action='Undo'/><menuitem name='Redo' action='Redo'/><separator/><menuitem name='Cut' action='Cut'/><menuitem name='Copy' action='Copy'/><menuitem name='Paste' action='Paste'/><menuitem name='Delete' action='Delete'/><separator/><menuitem name='Preferences' action='Preferences'/></menu><menu name='View' action='View'><menuitem name='ListOfIndividuals' action='ListOfIndividuals'/><menuitem name='ListOfMediaItems' action='ListOfMediaItems'/><menuitem name='ListOfNotesAction' action='ListOfNotesAction'/><menuitem name='ListOfRepositories' action='ListOfRepositories'/><menuitem name='ListOfSources' action='ListOfSources'/><separator/><menuitem name='SummaryViewAction' action='SummaryViewAction'/><menuitem name='FamilyViewAction' action='FamilyViewAction'/><menuitem name='IndividualViewAction' action='IndividualViewAction'/><menuitem name='SourceViewAction' action='SourceViewAction'/><menuitem name='MultimediaViewAction' action='MultimediaViewAction'/><menuitem name='RepositoryViewAction' action='RepositoryViewAction'/><menuitem name='PedigreeViewAction' action='PedigreeViewAction'/><menuitem name='NoteViewAction' action='NoteViewAction'/></menu><menu name='Go' action='Go'><menuitem name='HusbandSParents' action='HusbandSParents'/><menuitem name='WifeSParents' action='WifeSParents'/></menu><menu name='Reports' action='Reports'><menu name='Individual' action='Individual'><menuitem name='IndividualReportWebPage' action='IndividualReportWebPage'/></menu><menu name='Descendants' action='Descendants'><menuitem name='DescendantsReportWebPage' action='DescendantsReportWebPage'/></menu><menu name='Family' action='Family'><menuitem name='FamilyGroupSheetReportWebPage' action='FamilyGroupSheetReportWebPage'/></menu></menu><menu name='Tools' action='Tools'><menuitem name='FindDuplicates' action='FindDuplicates'/></menu><menu name='Help' action='Help'><menuitem name='About' action='About'/></menu></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox1.Add(this.menubar1); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='Save' action='Save'/><separator/><toolitem name='HusbandSParents' action='HusbandSParents'/><toolitem name='WifeSParents' action='WifeSParents'/><separator/><toolitem name='ListOfIndividuals' action='ListOfIndividuals'/><toolitem name='ListOfMediaItems' action='ListOfMediaItems'/><toolitem name='ListOfNotesAction' action='ListOfNotesAction'/><toolitem name='ListOfSources' action='ListOfSources'/><toolitem name='ListOfRepositories' action='ListOfRepositories'/></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 w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1])); w6.Position = 1; w6.Expand = false; w6.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.ViewNotebook = new Gtk.Notebook(); this.ViewNotebook.CanFocus = true; this.ViewNotebook.Name = "ViewNotebook"; this.ViewNotebook.CurrentPage = 0; // Container child ViewNotebook.Gtk.Notebook+NotebookChild this.SummaryViewView = new Gedcom.UI.GTK.Widgets.SummaryView(); this.SummaryViewView.Events = ((Gdk.EventMask)(256)); this.SummaryViewView.Name = "SummaryViewView"; this.ViewNotebook.Add(this.SummaryViewView); // Notebook tab this.label41 = new Gtk.Label(); this.label41.Name = "label41"; this.label41.LabelProp = "Summary View"; this.ViewNotebook.SetTabLabel(this.SummaryViewView, this.label41); this.label41.ShowAll(); // Container child ViewNotebook.Gtk.Notebook+NotebookChild this.FamilyViewView = new Gedcom.UI.GTK.Widgets.FamilyView(); this.FamilyViewView.Events = ((Gdk.EventMask)(256)); this.FamilyViewView.Name = "FamilyViewView"; this.ViewNotebook.Add(this.FamilyViewView); Gtk.Notebook.NotebookChild w8 = ((Gtk.Notebook.NotebookChild)(this.ViewNotebook[this.FamilyViewView])); w8.Position = 1; // Notebook tab this.label23 = new Gtk.Label(); this.label23.Name = "label23"; this.label23.LabelProp = "Family View"; this.ViewNotebook.SetTabLabel(this.FamilyViewView, this.label23); this.label23.ShowAll(); // Container child ViewNotebook.Gtk.Notebook+NotebookChild this.IndividualViewView = new Gedcom.UI.GTK.Widgets.IndividualView(); this.IndividualViewView.Events = ((Gdk.EventMask)(256)); this.IndividualViewView.Name = "IndividualViewView"; this.ViewNotebook.Add(this.IndividualViewView); Gtk.Notebook.NotebookChild w9 = ((Gtk.Notebook.NotebookChild)(this.ViewNotebook[this.IndividualViewView])); w9.Position = 2; // Notebook tab this.label64 = new Gtk.Label(); this.label64.Name = "label64"; this.label64.LabelProp = "Individual View"; this.ViewNotebook.SetTabLabel(this.IndividualViewView, this.label64); this.label64.ShowAll(); // Container child ViewNotebook.Gtk.Notebook+NotebookChild this.SourceViewView = new Gedcom.UI.GTK.Widgets.SourceView(); this.SourceViewView.Events = ((Gdk.EventMask)(256)); this.SourceViewView.Name = "SourceViewView"; this.ViewNotebook.Add(this.SourceViewView); Gtk.Notebook.NotebookChild w10 = ((Gtk.Notebook.NotebookChild)(this.ViewNotebook[this.SourceViewView])); w10.Position = 3; // Notebook tab this.label73 = new Gtk.Label(); this.label73.Name = "label73"; this.label73.LabelProp = "Source View"; this.ViewNotebook.SetTabLabel(this.SourceViewView, this.label73); this.label73.ShowAll(); // Container child ViewNotebook.Gtk.Notebook+NotebookChild this.MultimediaViewView = new Gedcom.UI.GTK.Widgets.ScrapBookView(); this.MultimediaViewView.Events = ((Gdk.EventMask)(256)); this.MultimediaViewView.Name = "MultimediaViewView"; this.MultimediaViewView.ShowRecordList = false; this.MultimediaViewView.ShowFileList = false; this.ViewNotebook.Add(this.MultimediaViewView); Gtk.Notebook.NotebookChild w11 = ((Gtk.Notebook.NotebookChild)(this.ViewNotebook[this.MultimediaViewView])); w11.Position = 4; // Notebook tab this.label76 = new Gtk.Label(); this.label76.Name = "label76"; this.label76.LabelProp = "Multimedia View"; this.ViewNotebook.SetTabLabel(this.MultimediaViewView, this.label76); this.label76.ShowAll(); // Container child ViewNotebook.Gtk.Notebook+NotebookChild this.RepositoryViewView = new Gedcom.UI.GTK.Widgets.RepositoryView(); this.RepositoryViewView.Events = ((Gdk.EventMask)(256)); this.RepositoryViewView.Name = "RepositoryViewView"; this.ViewNotebook.Add(this.RepositoryViewView); Gtk.Notebook.NotebookChild w12 = ((Gtk.Notebook.NotebookChild)(this.ViewNotebook[this.RepositoryViewView])); w12.Position = 5; // Notebook tab this.label89 = new Gtk.Label(); this.label89.Name = "label89"; this.label89.LabelProp = "Repository View"; this.ViewNotebook.SetTabLabel(this.RepositoryViewView, this.label89); this.label89.ShowAll(); // Container child ViewNotebook.Gtk.Notebook+NotebookChild this.PedigreeViewView = new Gedcom.UI.GTK.Widgets.PedigreeView(); this.PedigreeViewView.Events = ((Gdk.EventMask)(256)); this.PedigreeViewView.Name = "PedigreeViewView"; this.ViewNotebook.Add(this.PedigreeViewView); Gtk.Notebook.NotebookChild w13 = ((Gtk.Notebook.NotebookChild)(this.ViewNotebook[this.PedigreeViewView])); w13.Position = 6; // Notebook tab this.label90 = new Gtk.Label(); this.label90.Name = "label90"; this.label90.LabelProp = Mono.Unix.Catalog.GetString("Pedigree View"); this.ViewNotebook.SetTabLabel(this.PedigreeViewView, this.label90); this.label90.ShowAll(); // Container child ViewNotebook.Gtk.Notebook+NotebookChild this.NotesViewView = new Gedcom.UI.GTK.Widgets.NotesView(); this.NotesViewView.Events = ((Gdk.EventMask)(256)); this.NotesViewView.Name = "NotesViewView"; this.NotesViewView.DataNotes = false; this.NotesViewView.ListOnly = false; this.NotesViewView.NoteOnly = true; this.ViewNotebook.Add(this.NotesViewView); Gtk.Notebook.NotebookChild w14 = ((Gtk.Notebook.NotebookChild)(this.ViewNotebook[this.NotesViewView])); w14.Position = 7; // Notebook tab this.label91 = new Gtk.Label(); this.label91.Name = "label91"; this.label91.LabelProp = "Notes View"; this.ViewNotebook.SetTabLabel(this.NotesViewView, this.label91); this.label91.ShowAll(); // Container child ViewNotebook.Gtk.Notebook+NotebookChild this.DuplicateViewView = new Gedcom.UI.GTK.Widgets.DuplicateView(); this.DuplicateViewView.Events = ((Gdk.EventMask)(256)); this.DuplicateViewView.Name = "DuplicateViewView"; this.DuplicateViewView.Threshold = 80F; this.ViewNotebook.Add(this.DuplicateViewView); Gtk.Notebook.NotebookChild w15 = ((Gtk.Notebook.NotebookChild)(this.ViewNotebook[this.DuplicateViewView])); w15.Position = 8; // Notebook tab this.label100 = new Gtk.Label(); this.label100.Name = "label100"; this.label100.LabelProp = Mono.Unix.Catalog.GetString("Duplicates View"); this.ViewNotebook.SetTabLabel(this.DuplicateViewView, this.label100); this.label100.ShowAll(); this.vbox1.Add(this.ViewNotebook); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox1[this.ViewNotebook])); w16.Position = 2; // Container child vbox1.Gtk.Box+BoxChild this.StatusBar = new Gtk.Statusbar(); this.StatusBar.Name = "StatusBar"; this.StatusBar.Spacing = 2; // Container child StatusBar.Gtk.Box+BoxChild this.ProgressBar = new Gtk.ProgressBar(); this.ProgressBar.Name = "ProgressBar"; this.StatusBar.Add(this.ProgressBar); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.StatusBar[this.ProgressBar])); w17.PackType = ((Gtk.PackType)(1)); w17.Position = 1; w17.Expand = false; this.vbox1.Add(this.StatusBar); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox1[this.StatusBar])); w18.Position = 3; w18.Expand = false; w18.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 880; this.DefaultHeight = 637; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.FindDuplicates.Activated += new System.EventHandler(this.OnFindDuplicates_Activated); this.NewDatabase.Activated += new System.EventHandler(this.OnNewDatabase_Activated); this.NewIndividual.Activated += new System.EventHandler(this.OnNewIndividual_Activated); this.NewSource.Activated += new System.EventHandler(this.OnNewSource_Activated); this.NewRepository.Activated += new System.EventHandler(this.OnNewRepository_Activated); this.NewMedia.Activated += new System.EventHandler(this.OnNewMedia_Activated); this.Open.Activated += new System.EventHandler(this.OnOpen_Activated); this.Merge.Activated += new System.EventHandler(this.OnMerge_Activated); this.Save.Activated += new System.EventHandler(this.OnSave_Activated); this.SaveAs.Activated += new System.EventHandler(this.OnSaveAs_Activated); this.Quit.Activated += new System.EventHandler(this.OnQuit); this.About.Activated += new System.EventHandler(this.OnAbout); this.Preferences.Activated += new System.EventHandler(this.OnPreferences_Activated); this.NewNote.Activated += new System.EventHandler(this.OnNewNote_Activated); this.PropertiesAction.Activated += new System.EventHandler(this.OnPropertiesAction_Activated); this.IndividualReportWebPage.Activated += new System.EventHandler(this.OnIndividualReportWebPage_Activated); this.DescendantsReportWebPage.Activated += new System.EventHandler(this.OnDecendantsReportWebPage_Activated); this.FamilyGroupSheetReportWebPage.Activated += new System.EventHandler(this.OnFamilyGroupSheetReportWebPage_Activated); this.FamilyViewAction.Changed += new Gtk.ChangedHandler(this.OnFamilyViewActionChanged); this.ListOfMediaItems.Activated += new System.EventHandler(this.OnListMediaItems_Activated); this.ListOfIndividuals.Activated += new System.EventHandler(this.OnListIndividuals_Activated); this.HusbandSParents.Activated += new System.EventHandler(this.OnHusbandsParents_Activated); this.WifeSParents.Activated += new System.EventHandler(this.OnWifesParents_Activated); this.ListOfSources.Activated += new System.EventHandler(this.OnListSources_Activated); this.ListOfRepositories.Activated += new System.EventHandler(this.OnListRepositories_Activated); this.ListOfNotesAction.Activated += new System.EventHandler(this.OnListOfNotesAction_Activated); this.ViewNotebook.SwitchPage += new Gtk.SwitchPageHandler(this.OnSwitchPage); }