public ViewActions() { Gtk.IconFactory fact = new Gtk.IconFactory (); fact.Add ("Menu.View.ActualSize.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.View.ActualSize.png"))); fact.Add ("Menu.View.Grid.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.View.Grid.png"))); fact.Add ("Menu.View.Rulers.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.View.Rulers.png"))); fact.Add ("Menu.View.ZoomIn.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.View.ZoomIn.png"))); fact.Add ("Menu.View.ZoomOut.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.View.ZoomOut.png"))); fact.Add ("Menu.View.ZoomToSelection.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.View.ZoomToSelection.png"))); fact.Add ("Menu.View.ZoomToWindow.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.View.ZoomToWindow.png"))); fact.AddDefault (); ZoomIn = new Gtk.Action ("ZoomIn", Mono.Unix.Catalog.GetString ("Zoom In"), null, "Menu.View.ZoomIn.png"); ZoomOut = new Gtk.Action ("ZoomOut", Mono.Unix.Catalog.GetString ("Zoom Out"), null, "Menu.View.ZoomOut.png"); ZoomToWindow = new Gtk.Action ("ZoomToWindow", Mono.Unix.Catalog.GetString ("Zoom to Window"), null, "Menu.View.ZoomToWindow.png"); ZoomToSelection = new Gtk.Action ("ZoomToSelection", Mono.Unix.Catalog.GetString ("Zoom to Selection"), null, "Menu.View.ZoomToSelection.png"); ActualSize = new Gtk.Action ("ActualSize", Mono.Unix.Catalog.GetString ("Actual Size"), null, "Menu.View.ActualSize.png"); PixelGrid = new Gtk.ToggleAction ("PixelGrid", Mono.Unix.Catalog.GetString ("Pixel Grid"), null, "Menu.View.Grid.png"); Rulers = new Gtk.ToggleAction ("Rulers", Mono.Unix.Catalog.GetString ("Rulers"), null, "Menu.View.Rulers.png"); Pixels = new Gtk.Action ("Pixels", Mono.Unix.Catalog.GetString ("Pixels"), null, null); Inches = new Gtk.Action ("Inches", Mono.Unix.Catalog.GetString ("Inches"), null, null); Centimeters = new Gtk.Action ("Centimeters", Mono.Unix.Catalog.GetString ("Centimeters"), null, null); Fullscreen = new Gtk.Action ("Fullscreen", Catalog.GetString ("Fullscreen"), null, Gtk.Stock.Fullscreen); ZoomComboBox = new ToolBarComboBox (75, 11, true, "3600%", "2400%", "1600%", "1200%", "800%", "700%", "600%", "500%", "400%", "300%", "200%", "100%", "66%", "50%", "33%", "25%", "16%", "12%", "8%", "5%", "Window"); UnitComboBox = new ToolBarComboBox (100, 0, false, "Pixels", "Inches", "Centimeters"); }
private void OnActionShowTickLabels(object source, EventArgs args) { Gtk.ToggleAction action = (Gtk.ToggleAction)source; foreach (Ticks ticks in ForeachTicks()) { ticks.ShowLabels = action.Active; } }
public MediaPlayer() { playback_service = ServiceManager.PlaybackController; engine_service = ServiceManager.PlayerEngine; playlist_sources = new Dictionary <string, AbstractPlaylistSource> (); changed_properties = new Dictionary <string, object> (); current_properties = new Dictionary <string, object> (); invalidated_properties = new List <string> (); var interface_service = ServiceManager.Get <InterfaceActionService> (); fullscreen_action = interface_service.ViewActions["FullScreenAction"] as Gtk.ToggleAction; }
private void OnActionShowTicks(object source, EventArgs args) { Gtk.ToggleAction action = (Gtk.ToggleAction)source; foreach (Ticks ticks in ForeachTicks()) { ticks.Visible = action.Active; } if (!action.Active) { d_graph.ShowGrid = false; } }
private void OnActionShowGrid(object source, EventArgs args) { Gtk.ToggleAction action = (Gtk.ToggleAction)source; d_graph.ShowGrid = action.Active; if (action.Active) { foreach (Ticks ticks in ForeachTicks()) { ticks.Visible = true; } } }
void OnLoggingActivated(object sender, System.EventArgs e) { if (proc == null) { return; } Gtk.ToggleAction ta = sender as Gtk.ToggleAction; if (ta.Active) { proc.Resume(); } else { proc.Pause(); } }
Gtk.UIManager BuildUIManager() { Gtk.ActionEntry[] actions = new Gtk.ActionEntry[] { new Gtk.ActionEntry("ProfileMenu", null, Catalog.GetString("_Profile"), null, null, null), new Gtk.ActionEntry("NewAction", Gtk.Stock.New, null, "<control>N", Catalog.GetString("Create New Profile"), new EventHandler(OnNewActivated)), new Gtk.ActionEntry("OpenAction", Gtk.Stock.Open, null, "<control>O", Catalog.GetString("Open Existing Profile Log"), new EventHandler(OnOpenActivated)), new Gtk.ActionEntry("SaveAsAction", Gtk.Stock.SaveAs, null, "<control>S", Catalog.GetString("Save Profile Data"), new EventHandler(OnSaveAsActivated)), new Gtk.ActionEntry("RecentLogsMenu", null, Catalog.GetString("Recent _Logs"), null, null, null), new Gtk.ActionEntry("RecentLogs0", null, "_0", null, null, new EventHandler(OnRecentLogsActivated)), new Gtk.ActionEntry("RecentLogs1", null, "_1", null, null, new EventHandler(OnRecentLogsActivated)), new Gtk.ActionEntry("RecentLogs2", null, "_2", null, null, new EventHandler(OnRecentLogsActivated)), new Gtk.ActionEntry("RecentLogs3", null, "_3", null, null, new EventHandler(OnRecentLogsActivated)), new Gtk.ActionEntry("RecentLogs4", null, "_4", null, null, new EventHandler(OnRecentLogsActivated)), new Gtk.ActionEntry("RepeatSessionsMenu", null, Catalog.GetString("Re_peat Sessions"), null, null, null), new Gtk.ActionEntry("RepeatSession0", null, "_0", null, null, new EventHandler(OnRepeatSessionActivated)), new Gtk.ActionEntry("RepeatSession1", null, "_1", null, null, new EventHandler(OnRepeatSessionActivated)), new Gtk.ActionEntry("RepeatSession2", null, "_2", null, null, new EventHandler(OnRepeatSessionActivated)), new Gtk.ActionEntry("RepeatSession3", null, "_3", null, null, new EventHandler(OnRepeatSessionActivated)), new Gtk.ActionEntry("RepeatSession4", null, "_4", null, null, new EventHandler(OnRepeatSessionActivated)), new Gtk.ActionEntry("QuitAction", Gtk.Stock.Quit, null, "<control>Q", Catalog.GetString("Quit Profiler"), new EventHandler(OnQuitActivated)), new Gtk.ActionEntry("RunMenu", null, Catalog.GetString("_Run"), null, null, null), new Gtk.ActionEntry("ViewMenu", null, Catalog.GetString("_View"), null, null, null), }; Gtk.ToggleActionEntry[] toggle_actions = new Gtk.ToggleActionEntry[] { new Gtk.ToggleActionEntry("ShowSystemNodesAction", null, Catalog.GetString("_Show system nodes"), null, Catalog.GetString("Shows internal nodes of system library method invocations"), new EventHandler(OnShowSystemNodesActivated), false), new Gtk.ToggleActionEntry("LogEnabledAction", null, Catalog.GetString("_Logging enabled"), null, Catalog.GetString("Profile logging enabled"), new EventHandler(OnLoggingActivated), true), }; group = new Gtk.ActionGroup("group"); group.Add(actions); group.Add(toggle_actions); Gtk.UIManager uim = new Gtk.UIManager(); uim.InsertActionGroup(group, (int)uim.NewMergeId()); uim.AddUiFromString(ui_info); AddAccelGroup(uim.AccelGroup); logging_enabled_action = group.GetAction("LogEnabledAction") as Gtk.ToggleAction; logging_enabled_action.Visible = false; save_action = group.GetAction("SaveAsAction"); save_action.Sensitive = false; show_system_nodes_action = group.GetAction("ShowSystemNodesAction"); return(uim); }
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.OpenLocationAction = new Gtk.Action("OpenLocationAction", Mono.Unix.Catalog.GetString("Open Location"), null, null); this.OpenLocationAction.ShortLabel = Mono.Unix.Catalog.GetString("Open Location"); w1.Add(this.OpenLocationAction, 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.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.FileAction1 = new Gtk.Action("FileAction1", Mono.Unix.Catalog.GetString("File"), null, null); this.FileAction1.ShortLabel = Mono.Unix.Catalog.GetString("File"); w1.Add(this.FileAction1, null); this.HelpAction1 = new Gtk.Action("HelpAction1", Mono.Unix.Catalog.GetString("Help"), null, null); this.HelpAction1.ShortLabel = Mono.Unix.Catalog.GetString("Help"); w1.Add(this.HelpAction1, null); this.OpenLocationAction1 = new Gtk.Action("OpenLocationAction1", Mono.Unix.Catalog.GetString("Open Location"), null, null); this.OpenLocationAction1.ShortLabel = Mono.Unix.Catalog.GetString("Open Location"); w1.Add(this.OpenLocationAction1, null); this.AboutAction1 = new Gtk.Action("AboutAction1", Mono.Unix.Catalog.GetString("About"), null, null); this.AboutAction1.ShortLabel = Mono.Unix.Catalog.GetString("About"); w1.Add(this.AboutAction1, null); this.Action = new Gtk.Action("Action", null, null, null); w1.Add(this.Action, null); this.FileAction2 = new Gtk.Action("FileAction2", Mono.Unix.Catalog.GetString("File"), null, null); this.FileAction2.ShortLabel = Mono.Unix.Catalog.GetString("File"); w1.Add(this.FileAction2, null); this.OpenLocationAction2 = new Gtk.Action("OpenLocationAction2", Mono.Unix.Catalog.GetString("Open Location"), null, null); this.OpenLocationAction2.ShortLabel = Mono.Unix.Catalog.GetString("Open Location"); w1.Add(this.OpenLocationAction2, null); this.HelpAction2 = new Gtk.Action("HelpAction2", Mono.Unix.Catalog.GetString("Help"), null, null); this.HelpAction2.ShortLabel = Mono.Unix.Catalog.GetString("Help"); w1.Add(this.HelpAction2, null); this.AboutAction2 = new Gtk.Action("AboutAction2", Mono.Unix.Catalog.GetString("About"), null, null); this.AboutAction2.ShortLabel = Mono.Unix.Catalog.GetString("About"); w1.Add(this.AboutAction2, 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.SortByAction = new Gtk.Action("SortByAction", Mono.Unix.Catalog.GetString("Sort by"), null, null); this.SortByAction.ShortLabel = Mono.Unix.Catalog.GetString("Sort by"); w1.Add(this.SortByAction, null); this.NameAction = new Gtk.Action("NameAction", Mono.Unix.Catalog.GetString("Name"), null, null); this.NameAction.ShortLabel = Mono.Unix.Catalog.GetString("Name"); w1.Add(this.NameAction, null); this.TypeAction = new Gtk.Action("TypeAction", Mono.Unix.Catalog.GetString("Type"), null, null); this.TypeAction.ShortLabel = Mono.Unix.Catalog.GetString("Type"); w1.Add(this.TypeAction, null); this.DateAction = new Gtk.Action("DateAction", Mono.Unix.Catalog.GetString("Date"), null, null); this.DateAction.ShortLabel = Mono.Unix.Catalog.GetString("Date"); w1.Add(this.DateAction, 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.VSyncEnabledAction = new Gtk.ToggleAction("VSyncEnabledAction", Mono.Unix.Catalog.GetString("VSync Enabled"), null, null); this.VSyncEnabledAction.Active = true; this.VSyncEnabledAction.ShortLabel = Mono.Unix.Catalog.GetString("VSync Enabled"); w1.Add(this.VSyncEnabledAction, null); this.VertigoEnabledAction = new Gtk.ToggleAction("VertigoEnabledAction", Mono.Unix.Catalog.GetString("Vertigo Enabled"), null, null); this.VertigoEnabledAction.Active = true; this.VertigoEnabledAction.ShortLabel = Mono.Unix.Catalog.GetString("Vertigo Enabled"); w1.Add(this.VertigoEnabledAction, null); this.ShowDetailsAction = new Gtk.ToggleAction("ShowDetailsAction", Mono.Unix.Catalog.GetString("Show Details"), null, null); this.ShowDetailsAction.Active = true; this.ShowDetailsAction.ShortLabel = Mono.Unix.Catalog.GetString("Show Details"); w1.Add(this.ShowDetailsAction, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Glomp"); this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-directory", Gtk.IconSize.Menu, 16); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.DefaultWidth = 1024; this.DefaultHeight = 600; // 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='menubar4'><menu name='FileAction2' action='FileAction2'><menuitem name='OpenLocationAction2' action='OpenLocationAction2'/></menu><menu name='ViewAction' action='ViewAction'><menu name='SortByAction' action='SortByAction'><menuitem name='NameAction' action='NameAction'/><menuitem name='TypeAction' action='TypeAction'/><menuitem name='DateAction' action='DateAction'/></menu><menu name='OptionsAction' action='OptionsAction'><menuitem name='VSyncEnabledAction' action='VSyncEnabledAction'/><menuitem name='VertigoEnabledAction' action='VertigoEnabledAction'/></menu><menuitem name='ShowDetailsAction' action='ShowDetailsAction'/></menu><menu name='HelpAction2' action='HelpAction2'><menuitem name='AboutAction2' action='AboutAction2'/></menu></menubar></ui>"); this.menubar4 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar4"))); this.menubar4.Name = "menubar4"; this.vbox1.Add(this.menubar4); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar4])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.entry4 = new Gtk.Entry(); this.entry4.CanFocus = true; this.entry4.Name = "entry4"; this.entry4.IsEditable = true; this.entry4.ActivatesDefault = true; this.entry4.InvisibleChar = '•'; this.vbox1.Add(this.entry4); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.entry4])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.glwidget1 = new Gtk.GLWidget(); this.glwidget1.CanDefault = true; this.glwidget1.CanFocus = true; this.glwidget1.Events = ((Gdk.EventMask)(768)); this.glwidget1.Name = "glwidget1"; this.glwidget1.SingleBuffer = false; this.glwidget1.ColorBPP = 32; this.glwidget1.AccumulatorBPP = 0; this.glwidget1.DepthBPP = 16; this.glwidget1.StencilBPP = 0; this.glwidget1.Samples = 0; this.glwidget1.Stereo = false; this.glwidget1.GlVersionMajor = 3; this.glwidget1.GlVersionMinor = 0; this.hbox1.Add(this.glwidget1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.glwidget1])); w4.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.detailsBox = new Gtk.VBox(); this.detailsBox.Name = "detailsBox"; this.detailsBox.Spacing = 6; this.detailsBox.BorderWidth = ((uint)(10)); // Container child detailsBox.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(12)), ((uint)(3)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.detailEntryName = new Gtk.Entry(); this.detailEntryName.CanFocus = true; this.detailEntryName.Name = "detailEntryName"; this.detailEntryName.IsEditable = true; this.detailEntryName.WidthChars = 30; this.detailEntryName.InvisibleChar = '•'; this.table1.Add(this.detailEntryName); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.detailEntryName])); w5.LeftAttach = ((uint)(2)); w5.RightAttach = ((uint)(3)); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.detailLabelAccessed = new Gtk.Label(); this.detailLabelAccessed.Name = "detailLabelAccessed"; this.detailLabelAccessed.Xalign = 0F; this.detailLabelAccessed.LabelProp = Mono.Unix.Catalog.GetString("Accessed:"); this.detailLabelAccessed.SingleLineMode = true; this.table1.Add(this.detailLabelAccessed); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.detailLabelAccessed])); w6.TopAttach = ((uint)(8)); w6.BottomAttach = ((uint)(9)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.detailLabelContents = new Gtk.Label(); this.detailLabelContents.Name = "detailLabelContents"; this.detailLabelContents.Xalign = 0F; this.detailLabelContents.LabelProp = Mono.Unix.Catalog.GetString("Contents:"); this.detailLabelContents.SingleLineMode = true; this.table1.Add(this.detailLabelContents); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.detailLabelContents])); w7.TopAttach = ((uint)(5)); w7.BottomAttach = ((uint)(6)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.detailLabelGroup = new Gtk.Label(); this.detailLabelGroup.Name = "detailLabelGroup"; this.detailLabelGroup.Xalign = 0F; this.detailLabelGroup.LabelProp = Mono.Unix.Catalog.GetString("Group:"); this.detailLabelGroup.SingleLineMode = true; this.table1.Add(this.detailLabelGroup); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.detailLabelGroup])); w8.TopAttach = ((uint)(11)); w8.BottomAttach = ((uint)(12)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.detailLabelModified = new Gtk.Label(); this.detailLabelModified.Name = "detailLabelModified"; this.detailLabelModified.Xalign = 0F; this.detailLabelModified.LabelProp = Mono.Unix.Catalog.GetString("Modified:"); this.detailLabelModified.SingleLineMode = true; this.table1.Add(this.detailLabelModified); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.detailLabelModified])); w9.TopAttach = ((uint)(7)); w9.BottomAttach = ((uint)(8)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.detailLabelName = new Gtk.Label(); this.detailLabelName.Name = "detailLabelName"; this.detailLabelName.Xalign = 0F; this.detailLabelName.LabelProp = Mono.Unix.Catalog.GetString("Name:"); this.detailLabelName.SingleLineMode = true; this.table1.Add(this.detailLabelName); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.detailLabelName])); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.detailLabelOwner = new Gtk.Label(); this.detailLabelOwner.Name = "detailLabelOwner"; this.detailLabelOwner.Xalign = 0F; this.detailLabelOwner.LabelProp = Mono.Unix.Catalog.GetString("Owner:"); this.detailLabelOwner.SingleLineMode = true; this.table1.Add(this.detailLabelOwner); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.detailLabelOwner])); w11.TopAttach = ((uint)(10)); w11.BottomAttach = ((uint)(11)); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.detailLabelSize = new Gtk.Label(); this.detailLabelSize.Name = "detailLabelSize"; this.detailLabelSize.Xalign = 0F; this.detailLabelSize.LabelProp = Mono.Unix.Catalog.GetString("Size:"); this.detailLabelSize.SingleLineMode = true; this.table1.Add(this.detailLabelSize); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.detailLabelSize])); w12.TopAttach = ((uint)(3)); w12.BottomAttach = ((uint)(4)); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.detailLabelSpace = new Gtk.Label(); this.detailLabelSpace.Name = "detailLabelSpace"; this.detailLabelSpace.Xalign = 0F; this.detailLabelSpace.LabelProp = Mono.Unix.Catalog.GetString("Space:"); this.detailLabelSpace.SingleLineMode = true; this.table1.Add(this.detailLabelSpace); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.detailLabelSpace])); w13.TopAttach = ((uint)(4)); w13.BottomAttach = ((uint)(5)); w13.XOptions = ((Gtk.AttachOptions)(4)); w13.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.detailLabelType = new Gtk.Label(); this.detailLabelType.Name = "detailLabelType"; this.detailLabelType.Xalign = 0F; this.detailLabelType.LabelProp = Mono.Unix.Catalog.GetString("Type:"); this.detailLabelType.SingleLineMode = true; this.table1.Add(this.detailLabelType); Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table1[this.detailLabelType])); w14.TopAttach = ((uint)(1)); w14.BottomAttach = ((uint)(2)); w14.XOptions = ((Gtk.AttachOptions)(4)); w14.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.detailValueAccessed = new Gtk.Label(); this.detailValueAccessed.Name = "detailValueAccessed"; this.detailValueAccessed.Xalign = 0F; this.table1.Add(this.detailValueAccessed); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.detailValueAccessed])); w15.TopAttach = ((uint)(8)); w15.BottomAttach = ((uint)(9)); 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.detailValueContents = new Gtk.Label(); this.detailValueContents.Name = "detailValueContents"; this.detailValueContents.Xalign = 0F; this.detailValueContents.MaxWidthChars = 30; this.table1.Add(this.detailValueContents); Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.detailValueContents])); w16.TopAttach = ((uint)(5)); w16.BottomAttach = ((uint)(6)); w16.LeftAttach = ((uint)(2)); w16.RightAttach = ((uint)(3)); w16.XOptions = ((Gtk.AttachOptions)(4)); w16.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.detailValueGroup = new Gtk.Label(); this.detailValueGroup.Name = "detailValueGroup"; this.detailValueGroup.Xalign = 0F; this.table1.Add(this.detailValueGroup); Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table1[this.detailValueGroup])); w17.TopAttach = ((uint)(11)); w17.BottomAttach = ((uint)(12)); 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.detailValueModified = new Gtk.Label(); this.detailValueModified.Name = "detailValueModified"; this.detailValueModified.Xalign = 0F; this.table1.Add(this.detailValueModified); Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.detailValueModified])); w18.TopAttach = ((uint)(7)); w18.BottomAttach = ((uint)(8)); w18.LeftAttach = ((uint)(2)); w18.RightAttach = ((uint)(3)); w18.XOptions = ((Gtk.AttachOptions)(4)); w18.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.detailValueOwner = new Gtk.Label(); this.detailValueOwner.Name = "detailValueOwner"; this.detailValueOwner.Xalign = 0F; this.table1.Add(this.detailValueOwner); Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.detailValueOwner])); w19.TopAttach = ((uint)(10)); w19.BottomAttach = ((uint)(11)); w19.LeftAttach = ((uint)(2)); w19.RightAttach = ((uint)(3)); w19.XOptions = ((Gtk.AttachOptions)(4)); w19.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.detailValueSize = new Gtk.Label(); this.detailValueSize.Name = "detailValueSize"; this.detailValueSize.Xalign = 0F; this.table1.Add(this.detailValueSize); Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(this.table1[this.detailValueSize])); w20.TopAttach = ((uint)(3)); w20.BottomAttach = ((uint)(4)); w20.LeftAttach = ((uint)(2)); w20.RightAttach = ((uint)(3)); w20.XOptions = ((Gtk.AttachOptions)(4)); w20.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.detailValueSpace = new Gtk.Label(); this.detailValueSpace.Name = "detailValueSpace"; this.detailValueSpace.Xalign = 0F; this.detailValueSpace.MaxWidthChars = 30; this.table1.Add(this.detailValueSpace); Gtk.Table.TableChild w21 = ((Gtk.Table.TableChild)(this.table1[this.detailValueSpace])); w21.TopAttach = ((uint)(4)); w21.BottomAttach = ((uint)(5)); w21.LeftAttach = ((uint)(2)); w21.RightAttach = ((uint)(3)); w21.XOptions = ((Gtk.AttachOptions)(4)); w21.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.detailValueType = new Gtk.Label(); this.detailValueType.Name = "detailValueType"; this.detailValueType.Xalign = 0F; this.detailValueType.MaxWidthChars = 30; this.table1.Add(this.detailValueType); Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.table1[this.detailValueType])); w22.TopAttach = ((uint)(1)); w22.BottomAttach = ((uint)(2)); w22.LeftAttach = ((uint)(2)); w22.RightAttach = ((uint)(3)); w22.XOptions = ((Gtk.AttachOptions)(4)); w22.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.fixed2 = new Gtk.Fixed(); this.fixed2.HeightRequest = 10; this.fixed2.Name = "fixed2"; this.fixed2.HasWindow = false; this.table1.Add(this.fixed2); Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.table1[this.fixed2])); w23.TopAttach = ((uint)(2)); w23.BottomAttach = ((uint)(3)); w23.LeftAttach = ((uint)(1)); w23.RightAttach = ((uint)(2)); w23.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.fixed3 = new Gtk.Fixed(); this.fixed3.HeightRequest = 10; this.fixed3.Name = "fixed3"; this.fixed3.HasWindow = false; this.table1.Add(this.fixed3); Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table1[this.fixed3])); w24.TopAttach = ((uint)(6)); w24.BottomAttach = ((uint)(7)); w24.LeftAttach = ((uint)(1)); w24.RightAttach = ((uint)(2)); w24.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.fixed4 = new Gtk.Fixed(); this.fixed4.HeightRequest = 10; this.fixed4.Name = "fixed4"; this.fixed4.HasWindow = false; this.table1.Add(this.fixed4); Gtk.Table.TableChild w25 = ((Gtk.Table.TableChild)(this.table1[this.fixed4])); w25.TopAttach = ((uint)(9)); w25.BottomAttach = ((uint)(10)); w25.LeftAttach = ((uint)(1)); w25.RightAttach = ((uint)(2)); w25.YOptions = ((Gtk.AttachOptions)(4)); this.detailsBox.Add(this.table1); Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.detailsBox[this.table1])); w26.Position = 0; w26.Expand = false; w26.Fill = false; // Container child detailsBox.Gtk.Box+BoxChild this.hseparator1 = new Gtk.HSeparator(); this.hseparator1.Name = "hseparator1"; this.detailsBox.Add(this.hseparator1); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.detailsBox[this.hseparator1])); w27.Position = 1; w27.Expand = false; w27.Fill = false; w27.Padding = ((uint)(10)); // Container child detailsBox.Gtk.Box+BoxChild this.fixed1 = new Gtk.Fixed(); this.fixed1.Name = "fixed1"; this.fixed1.HasWindow = false; this.detailsBox.Add(this.fixed1); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.detailsBox[this.fixed1])); w28.Position = 2; // Container child detailsBox.Gtk.Box+BoxChild this.permissionsLabel = new Gtk.Label(); this.permissionsLabel.Name = "permissionsLabel"; this.permissionsLabel.LabelProp = Mono.Unix.Catalog.GetString("<b>Permissions</b>"); this.permissionsLabel.UseMarkup = true; this.permissionsLabel.UseUnderline = true; this.detailsBox.Add(this.permissionsLabel); Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.detailsBox[this.permissionsLabel])); w29.Position = 3; w29.Expand = false; w29.Fill = false; // Container child detailsBox.Gtk.Box+BoxChild this.alignment2 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.alignment2.Name = "alignment2"; this.alignment2.LeftPadding = ((uint)(40)); this.alignment2.BottomPadding = ((uint)(1)); // Container child alignment2.Gtk.Container+ContainerChild this.table4 = new Gtk.Table(((uint)(4)), ((uint)(4)), true); this.table4.Name = "table4"; this.table4.RowSpacing = ((uint)(6)); this.table4.ColumnSpacing = ((uint)(6)); // Container child table4.Gtk.Table+TableChild this.permissionCheckGR = new Gtk.CheckButton(); this.permissionCheckGR.CanFocus = true; this.permissionCheckGR.Name = "permissionCheckGR"; this.permissionCheckGR.Label = ""; this.permissionCheckGR.DrawIndicator = true; this.permissionCheckGR.UseUnderline = true; this.permissionCheckGR.Xalign = 0F; this.permissionCheckGR.Yalign = 0F; this.table4.Add(this.permissionCheckGR); Gtk.Table.TableChild w30 = ((Gtk.Table.TableChild)(this.table4[this.permissionCheckGR])); w30.TopAttach = ((uint)(2)); w30.BottomAttach = ((uint)(3)); w30.LeftAttach = ((uint)(1)); w30.RightAttach = ((uint)(2)); w30.XOptions = ((Gtk.AttachOptions)(0)); w30.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.permissionCheckGW = new Gtk.CheckButton(); this.permissionCheckGW.CanFocus = true; this.permissionCheckGW.Name = "permissionCheckGW"; this.permissionCheckGW.Label = ""; this.permissionCheckGW.DrawIndicator = true; this.permissionCheckGW.UseUnderline = true; this.permissionCheckGW.Xalign = 0F; this.permissionCheckGW.Yalign = 0F; this.table4.Add(this.permissionCheckGW); Gtk.Table.TableChild w31 = ((Gtk.Table.TableChild)(this.table4[this.permissionCheckGW])); w31.TopAttach = ((uint)(2)); w31.BottomAttach = ((uint)(3)); w31.LeftAttach = ((uint)(2)); w31.RightAttach = ((uint)(3)); w31.XOptions = ((Gtk.AttachOptions)(0)); w31.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.permissionCheckGX = new Gtk.CheckButton(); this.permissionCheckGX.CanFocus = true; this.permissionCheckGX.Name = "permissionCheckGX"; this.permissionCheckGX.Label = ""; this.permissionCheckGX.DrawIndicator = true; this.permissionCheckGX.UseUnderline = true; this.permissionCheckGX.Xalign = 0F; this.permissionCheckGX.Yalign = 0F; this.table4.Add(this.permissionCheckGX); Gtk.Table.TableChild w32 = ((Gtk.Table.TableChild)(this.table4[this.permissionCheckGX])); w32.TopAttach = ((uint)(2)); w32.BottomAttach = ((uint)(3)); w32.LeftAttach = ((uint)(3)); w32.RightAttach = ((uint)(4)); w32.XOptions = ((Gtk.AttachOptions)(0)); w32.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.permissionCheckOR = new Gtk.CheckButton(); this.permissionCheckOR.CanFocus = true; this.permissionCheckOR.Name = "permissionCheckOR"; this.permissionCheckOR.Label = ""; this.permissionCheckOR.DrawIndicator = true; this.permissionCheckOR.UseUnderline = true; this.permissionCheckOR.Xalign = 0F; this.permissionCheckOR.Yalign = 0F; this.table4.Add(this.permissionCheckOR); Gtk.Table.TableChild w33 = ((Gtk.Table.TableChild)(this.table4[this.permissionCheckOR])); w33.TopAttach = ((uint)(1)); w33.BottomAttach = ((uint)(2)); w33.LeftAttach = ((uint)(1)); w33.RightAttach = ((uint)(2)); w33.XOptions = ((Gtk.AttachOptions)(0)); w33.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.permissionCheckOW = new Gtk.CheckButton(); this.permissionCheckOW.CanFocus = true; this.permissionCheckOW.Name = "permissionCheckOW"; this.permissionCheckOW.Label = ""; this.permissionCheckOW.DrawIndicator = true; this.permissionCheckOW.UseUnderline = true; this.permissionCheckOW.Xalign = 0F; this.permissionCheckOW.Yalign = 0F; this.table4.Add(this.permissionCheckOW); Gtk.Table.TableChild w34 = ((Gtk.Table.TableChild)(this.table4[this.permissionCheckOW])); w34.TopAttach = ((uint)(1)); w34.BottomAttach = ((uint)(2)); w34.LeftAttach = ((uint)(2)); w34.RightAttach = ((uint)(3)); w34.XOptions = ((Gtk.AttachOptions)(0)); w34.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.permissionCheckOX = new Gtk.CheckButton(); this.permissionCheckOX.CanFocus = true; this.permissionCheckOX.Name = "permissionCheckOX"; this.permissionCheckOX.Label = ""; this.permissionCheckOX.DrawIndicator = true; this.permissionCheckOX.UseUnderline = true; this.permissionCheckOX.Xalign = 0F; this.permissionCheckOX.Yalign = 0F; this.table4.Add(this.permissionCheckOX); Gtk.Table.TableChild w35 = ((Gtk.Table.TableChild)(this.table4[this.permissionCheckOX])); w35.TopAttach = ((uint)(1)); w35.BottomAttach = ((uint)(2)); w35.LeftAttach = ((uint)(3)); w35.RightAttach = ((uint)(4)); w35.XOptions = ((Gtk.AttachOptions)(0)); w35.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.permissionCheckUR = new Gtk.CheckButton(); this.permissionCheckUR.CanFocus = true; this.permissionCheckUR.Name = "permissionCheckUR"; this.permissionCheckUR.Label = ""; this.permissionCheckUR.DrawIndicator = true; this.permissionCheckUR.UseUnderline = true; this.permissionCheckUR.Xalign = 0F; this.permissionCheckUR.Yalign = 0F; this.table4.Add(this.permissionCheckUR); Gtk.Table.TableChild w36 = ((Gtk.Table.TableChild)(this.table4[this.permissionCheckUR])); w36.TopAttach = ((uint)(3)); w36.BottomAttach = ((uint)(4)); w36.LeftAttach = ((uint)(1)); w36.RightAttach = ((uint)(2)); w36.XOptions = ((Gtk.AttachOptions)(0)); w36.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.permissionCheckUW = new Gtk.CheckButton(); this.permissionCheckUW.CanFocus = true; this.permissionCheckUW.Name = "permissionCheckUW"; this.permissionCheckUW.Label = ""; this.permissionCheckUW.DrawIndicator = true; this.permissionCheckUW.UseUnderline = true; this.permissionCheckUW.Xalign = 0F; this.permissionCheckUW.Yalign = 0F; this.table4.Add(this.permissionCheckUW); Gtk.Table.TableChild w37 = ((Gtk.Table.TableChild)(this.table4[this.permissionCheckUW])); w37.TopAttach = ((uint)(3)); w37.BottomAttach = ((uint)(4)); w37.LeftAttach = ((uint)(2)); w37.RightAttach = ((uint)(3)); w37.XOptions = ((Gtk.AttachOptions)(0)); w37.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.permissionCheckUX = new Gtk.CheckButton(); this.permissionCheckUX.CanFocus = true; this.permissionCheckUX.Name = "permissionCheckUX"; this.permissionCheckUX.Label = ""; this.permissionCheckUX.DrawIndicator = true; this.permissionCheckUX.UseUnderline = true; this.permissionCheckUX.Xalign = 0F; this.permissionCheckUX.Yalign = 0F; this.table4.Add(this.permissionCheckUX); Gtk.Table.TableChild w38 = ((Gtk.Table.TableChild)(this.table4[this.permissionCheckUX])); w38.TopAttach = ((uint)(3)); w38.BottomAttach = ((uint)(4)); w38.LeftAttach = ((uint)(3)); w38.RightAttach = ((uint)(4)); w38.XOptions = ((Gtk.AttachOptions)(0)); w38.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.permissionLabelExecute = new Gtk.Label(); this.permissionLabelExecute.Name = "permissionLabelExecute"; this.permissionLabelExecute.LabelProp = Mono.Unix.Catalog.GetString("Users"); this.table4.Add(this.permissionLabelExecute); Gtk.Table.TableChild w39 = ((Gtk.Table.TableChild)(this.table4[this.permissionLabelExecute])); w39.TopAttach = ((uint)(3)); w39.BottomAttach = ((uint)(4)); w39.XOptions = ((Gtk.AttachOptions)(4)); w39.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.permissionLabelGroup = new Gtk.Label(); this.permissionLabelGroup.Name = "permissionLabelGroup"; this.permissionLabelGroup.LabelProp = Mono.Unix.Catalog.GetString("Write"); this.table4.Add(this.permissionLabelGroup); Gtk.Table.TableChild w40 = ((Gtk.Table.TableChild)(this.table4[this.permissionLabelGroup])); w40.LeftAttach = ((uint)(2)); w40.RightAttach = ((uint)(3)); w40.XOptions = ((Gtk.AttachOptions)(4)); w40.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.permissionLabelOwner = new Gtk.Label(); this.permissionLabelOwner.Name = "permissionLabelOwner"; this.permissionLabelOwner.LabelProp = Mono.Unix.Catalog.GetString("Read"); this.table4.Add(this.permissionLabelOwner); Gtk.Table.TableChild w41 = ((Gtk.Table.TableChild)(this.table4[this.permissionLabelOwner])); w41.LeftAttach = ((uint)(1)); w41.RightAttach = ((uint)(2)); w41.XOptions = ((Gtk.AttachOptions)(4)); w41.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.permissionLabelRead = new Gtk.Label(); this.permissionLabelRead.Name = "permissionLabelRead"; this.permissionLabelRead.LabelProp = Mono.Unix.Catalog.GetString("Owner"); this.table4.Add(this.permissionLabelRead); Gtk.Table.TableChild w42 = ((Gtk.Table.TableChild)(this.table4[this.permissionLabelRead])); w42.TopAttach = ((uint)(1)); w42.BottomAttach = ((uint)(2)); w42.XOptions = ((Gtk.AttachOptions)(4)); w42.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.permissionLabelUser = new Gtk.Label(); this.permissionLabelUser.Name = "permissionLabelUser"; this.permissionLabelUser.LabelProp = Mono.Unix.Catalog.GetString("Execute"); this.table4.Add(this.permissionLabelUser); Gtk.Table.TableChild w43 = ((Gtk.Table.TableChild)(this.table4[this.permissionLabelUser])); w43.LeftAttach = ((uint)(3)); w43.RightAttach = ((uint)(4)); w43.XOptions = ((Gtk.AttachOptions)(4)); w43.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.permissionLabelWrite = new Gtk.Label(); this.permissionLabelWrite.Name = "permissionLabelWrite"; this.permissionLabelWrite.LabelProp = Mono.Unix.Catalog.GetString("Group"); this.table4.Add(this.permissionLabelWrite); Gtk.Table.TableChild w44 = ((Gtk.Table.TableChild)(this.table4[this.permissionLabelWrite])); w44.TopAttach = ((uint)(2)); w44.BottomAttach = ((uint)(3)); w44.XOptions = ((Gtk.AttachOptions)(4)); w44.YOptions = ((Gtk.AttachOptions)(4)); this.alignment2.Add(this.table4); this.detailsBox.Add(this.alignment2); Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(this.detailsBox[this.alignment2])); w46.Position = 4; w46.Expand = false; this.hbox1.Add(this.detailsBox); Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(this.hbox1[this.detailsBox])); w47.Position = 1; w47.Expand = false; w47.Fill = false; this.vbox1.Add(this.hbox1); Gtk.Box.BoxChild w48 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); w48.Position = 2; // Container child vbox1.Gtk.Box+BoxChild this.findEntry = new Gtk.Entry(); this.findEntry.CanFocus = true; this.findEntry.Name = "findEntry"; this.findEntry.IsEditable = true; this.findEntry.InvisibleChar = '•'; this.vbox1.Add(this.findEntry); Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(this.vbox1[this.findEntry])); w49.Position = 3; w49.Expand = false; w49.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.statusbar6 = new Gtk.Statusbar(); this.statusbar6.Name = "statusbar6"; this.statusbar6.Spacing = 6; this.vbox1.Add(this.statusbar6); Gtk.Box.BoxChild w50 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar6])); w50.Position = 4; w50.Expand = false; w50.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.glwidget1.HasDefault = true; this.findEntry.Hide(); this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.AboutAction2.Activated += new System.EventHandler(this.OnAboutActivated); this.NameAction.Activated += new System.EventHandler(this.OnNameSortActivated); this.TypeAction.Activated += new System.EventHandler(this.OnTypeSortActivated); this.DateAction.Activated += new System.EventHandler(this.OnDateSortActivated); this.VSyncEnabledAction.Toggled += new System.EventHandler(this.OnVsyncToggle); this.VertigoEnabledAction.Toggled += new System.EventHandler(this.OnHeightColourToggle); this.ShowDetailsAction.Toggled += new System.EventHandler(this.OnDetailsVisibleToggled); this.entry4.Changed += new System.EventHandler(this.OnPathChanged); this.glwidget1.RenderFrame += new System.EventHandler(this.OnGlwidgetRenderFrame); this.glwidget1.SizeAllocated += new Gtk.SizeAllocatedHandler(this.OnWidgetResize); this.glwidget1.KeyPressEvent += new Gtk.KeyPressEventHandler(this.OnKeyPress); this.glwidget1.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(this.OnWidgetClick); this.detailEntryName.Activated += new System.EventHandler(this.OnNewNameEntered); this.permissionCheckUX.Toggled += new System.EventHandler(this.OnPermissionsToggle); this.permissionCheckUW.Toggled += new System.EventHandler(this.OnPermissionsToggle); this.permissionCheckUR.Toggled += new System.EventHandler(this.OnPermissionsToggle); this.permissionCheckOX.Toggled += new System.EventHandler(this.OnPermissionsToggle); this.permissionCheckOW.Toggled += new System.EventHandler(this.OnPermissionsToggle); this.permissionCheckOR.Toggled += new System.EventHandler(this.OnPermissionsToggle); this.permissionCheckGX.Toggled += new System.EventHandler(this.OnPermissionsToggle); this.permissionCheckGW.Toggled += new System.EventHandler(this.OnPermissionsToggle); this.permissionCheckGR.Toggled += new System.EventHandler(this.OnPermissionsToggle); this.findEntry.FocusOutEvent += new Gtk.FocusOutEventHandler(this.OnFindLoseFocus); this.findEntry.Changed += new System.EventHandler(this.OnSearchTextChanged); this.findEntry.KeyPressEvent += new Gtk.KeyPressEventHandler(this.OnFindKeyPress); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.NotesWidget Stetic.BinContainer w1 = Stetic.BinContainer.Attach(this); this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); this.boldAction = new Gtk.ToggleAction("boldAction", null, null, "gtk-bold"); w2.Add(this.boldAction, null); this.italicAction = new Gtk.Action("italicAction", null, null, "gtk-italic"); w2.Add(this.italicAction, null); this.missingImageAction = new Gtk.Action("missingImageAction", null, null, "gtk-missing-image"); w2.Add(this.missingImageAction, null); this.underlineAction = new Gtk.Action("underlineAction", null, null, "gtk-underline"); w2.Add(this.underlineAction, null); this.UIManager.InsertActionGroup(w2, 0); this.Name = "ocmgtk.NotesWidget"; // Container child ocmgtk.NotesWidget.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; this.vbox1.BorderWidth = ((uint)(6)); // Container child vbox1.Gtk.Box+BoxChild this.editorWidget = new ocmgtk.HTMLEditorWidget(); this.editorWidget.Events = ((Gdk.EventMask)(256)); this.editorWidget.Name = "editorWidget"; this.vbox1.Add(this.editorWidget); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.editorWidget])); w3.Position = 0; // Container child vbox1.Gtk.Box+BoxChild this.hbuttonbox1 = new Gtk.HButtonBox(); this.hbuttonbox1.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild this.saveButton = new Gtk.Button(); this.saveButton.Sensitive = false; this.saveButton.CanFocus = true; this.saveButton.Name = "saveButton"; this.saveButton.UseUnderline = true; // Container child saveButton.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-save", 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("_Save"); w8.UseUnderline = true; w5.Add(w8); w4.Add(w5); this.saveButton.Add(w4); this.hbuttonbox1.Add(this.saveButton); Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.saveButton])); w12.Expand = false; w12.Fill = false; this.vbox1.Add(this.hbuttonbox1); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbuttonbox1])); w13.Position = 1; w13.Expand = false; w13.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } w1.SetUiManager(UIManager); this.Hide(); this.saveButton.Clicked += new System.EventHandler(this.OnSaveNotes); }
private void OnActionSnapRulerToAxis(object source, EventArgs args) { Gtk.ToggleAction action = (Gtk.ToggleAction)source; d_graph.SnapRulerToAxis = action.Active; }
protected virtual void Build() { Stetic.Gui.Initialize(); // Widget MainWindow Gtk.UIManager w1 = new Gtk.UIManager(); Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); this.Options = new Gtk.Action("Options", Mono.Unix.Catalog.GetString("Options"), null, "gtk-preferences"); this.Options.ShortLabel = Mono.Unix.Catalog.GetString("File"); w2.Add(this.Options, null); this.AddFolder = new Gtk.Action("AddFolder", Mono.Unix.Catalog.GetString("Add Folder"), null, "gtk-open"); this.AddFolder.ShortLabel = Mono.Unix.Catalog.GetString("Add Folder"); w2.Add(this.AddFolder, null); this.NewCollection = new Gtk.Action("NewCollection", Mono.Unix.Catalog.GetString("New Collection"), null, "gtk-new"); this.NewCollection.ShortLabel = Mono.Unix.Catalog.GetString("New Collection"); w2.Add(this.NewCollection, null); this.Preferences = new Gtk.Action("Preferences", Mono.Unix.Catalog.GetString("Preferences"), null, "gtk-preferences"); this.Preferences.ShortLabel = Mono.Unix.Catalog.GetString("Options"); w2.Add(this.Preferences, null); this.Exit1 = new Gtk.Action("Exit1", Mono.Unix.Catalog.GetString("Exit"), null, "gtk-quit"); this.Exit1.ShortLabel = Mono.Unix.Catalog.GetString("Exit"); w2.Add(this.Exit1, null); this.Update = new Gtk.Action("Update", Mono.Unix.Catalog.GetString("Update"), null, "gtk-dialog-warning"); this.Update.ShortLabel = Mono.Unix.Catalog.GetString("Update"); w2.Add(this.Update, null); this.Exit2 = new Gtk.ToggleAction("Exit2", Mono.Unix.Catalog.GetString("Exit"), null, "gtk-quit"); this.Exit2.ShortLabel = Mono.Unix.Catalog.GetString("Exit"); w2.Add(this.Exit2, null); this.AddFile = new Gtk.Action("AddFile", Mono.Unix.Catalog.GetString("Add File"), null, "gtk-add"); this.AddFile.ShortLabel = Mono.Unix.Catalog.GetString("Add File"); w2.Add(this.AddFile, null); this.About = new Gtk.Action("About", Mono.Unix.Catalog.GetString("About"), null, "gtk-about"); this.About.ShortLabel = Mono.Unix.Catalog.GetString("About"); w2.Add(this.About, null); this.About3 = new Gtk.Action("About3", Mono.Unix.Catalog.GetString("_About"), null, "gtk-about"); this.About3.ShortLabel = Mono.Unix.Catalog.GetString("_About"); w2.Add(this.About3, null); w1.InsertActionGroup(w2, 0); this.AddAccelGroup(w1.AccelGroup); this.WidthRequest = 360; this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Mp3 Player"); this.Icon = Stetic.IconLoader.LoadIcon("stock_headphones", 16); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Resizable = false; this.AllowGrow = false; // Container child MainWindow.Gtk.Container+ContainerChild this.MainFixedWindow = new Gtk.Fixed(); this.MainFixedWindow.WidthRequest = 0; this.MainFixedWindow.HeightRequest = 640; this.MainFixedWindow.Name = "MainFixedWindow"; this.MainFixedWindow.HasWindow = false; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.bottomStatusBar = new Gtk.Statusbar(); this.bottomStatusBar.WidthRequest = 363; this.bottomStatusBar.HeightRequest = 17; this.bottomStatusBar.Name = "bottomStatusBar"; this.bottomStatusBar.Spacing = 6; this.MainFixedWindow.Add(this.bottomStatusBar); Gtk.Fixed.FixedChild w3 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.bottomStatusBar])); w3.X = 1; w3.Y = 624; // Container child MainFixedWindow.Gtk.Fixed+FixedChild w1.AddUiFromString("<ui><menubar name='menubar'><menu action='Options'><menuitem action='NewCollection'/><menuitem action='AddFolder'/><menuitem action='AddFile'/><menuitem action='Preferences'/><menuitem action='Exit1'/></menu><menu action='About'><menuitem action='About3'/></menu></menubar></ui>"); this.menubar = ((Gtk.MenuBar)(w1.GetWidget("/menubar"))); this.menubar.WidthRequest = 370; this.menubar.HasDefault = true; this.menubar.CanFocus = true; this.menubar.Name = "menubar"; this.MainFixedWindow.Add(this.menubar); // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.musicButtonBox = new Gtk.HBox(); this.musicButtonBox.Name = "musicButtonBox"; this.musicButtonBox.Spacing = 6; // Container child musicButtonBox.Gtk.Box+BoxChild this.playButton = new Gtk.Button(); this.playButton.CanFocus = true; this.playButton.Name = "playButton"; this.playButton.UseUnderline = true; // Container child playButton.Gtk.Container+ContainerChild Gtk.Alignment w5 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w5.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w6 = new Gtk.HBox(); w6.Name = "GtkHBox"; w6.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w7 = new Gtk.Image(); w7.Name = "image35"; w7.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-play", 16); w6.Add(w7); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w9 = new Gtk.Label(); w9.Name = "GtkLabel"; w9.LabelProp = ""; w6.Add(w9); w5.Add(w6); this.playButton.Add(w5); this.musicButtonBox.Add(this.playButton); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.playButton])); w13.Position = 0; w13.Expand = false; w13.Fill = false; // Container child musicButtonBox.Gtk.Box+BoxChild this.stopButton = new Gtk.Button(); this.stopButton.CanFocus = true; this.stopButton.Name = "stopButton"; this.stopButton.UseUnderline = true; // Container child stopButton.Gtk.Container+ContainerChild Gtk.Alignment w14 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w14.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w15 = new Gtk.HBox(); w15.Name = "GtkHBox"; w15.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w16 = new Gtk.Image(); w16.Name = "image36"; w16.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-stop", 16); w15.Add(w16); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w18 = new Gtk.Label(); w18.Name = "GtkLabel"; w18.LabelProp = ""; w15.Add(w18); w14.Add(w15); this.stopButton.Add(w14); this.musicButtonBox.Add(this.stopButton); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.stopButton])); w22.Position = 1; w22.Expand = false; w22.Fill = false; // Container child musicButtonBox.Gtk.Box+BoxChild this.previousButton = new Gtk.Button(); this.previousButton.CanFocus = true; this.previousButton.Name = "previousButton"; this.previousButton.UseUnderline = true; // Container child previousButton.Gtk.Container+ContainerChild Gtk.Alignment w23 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w23.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w24 = new Gtk.HBox(); w24.Name = "GtkHBox"; w24.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w25 = new Gtk.Image(); w25.Name = "image37"; w25.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-prev", 16); w24.Add(w25); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w27 = new Gtk.Label(); w27.Name = "GtkLabel"; w27.LabelProp = ""; w24.Add(w27); w23.Add(w24); this.previousButton.Add(w23); this.musicButtonBox.Add(this.previousButton); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.previousButton])); w31.Position = 2; w31.Expand = false; w31.Fill = false; // Container child musicButtonBox.Gtk.Box+BoxChild this.nextButton = new Gtk.Button(); this.nextButton.CanFocus = true; this.nextButton.Name = "nextButton"; this.nextButton.UseUnderline = true; // Container child nextButton.Gtk.Container+ContainerChild Gtk.Alignment w32 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w32.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w33 = new Gtk.HBox(); w33.Name = "GtkHBox"; w33.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w34 = new Gtk.Image(); w34.Name = "image38"; w34.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-next", 16); w33.Add(w34); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w36 = new Gtk.Label(); w36.Name = "GtkLabel"; w36.LabelProp = ""; w33.Add(w36); w32.Add(w33); this.nextButton.Add(w32); this.musicButtonBox.Add(this.nextButton); Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.nextButton])); w40.Position = 3; w40.Expand = false; w40.Fill = false; // Container child musicButtonBox.Gtk.Box+BoxChild this.rewindButton = new Gtk.Button(); this.rewindButton.CanFocus = true; this.rewindButton.Name = "rewindButton"; this.rewindButton.UseUnderline = true; // Container child rewindButton.Gtk.Container+ContainerChild Gtk.Alignment w41 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w41.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w42 = new Gtk.HBox(); w42.Name = "GtkHBox"; w42.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w43 = new Gtk.Image(); w43.Name = "image39"; w43.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-rew", 16); w42.Add(w43); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w45 = new Gtk.Label(); w45.Name = "GtkLabel"; w45.LabelProp = ""; w42.Add(w45); w41.Add(w42); this.rewindButton.Add(w41); this.musicButtonBox.Add(this.rewindButton); Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.rewindButton])); w49.Position = 4; w49.Expand = false; w49.Fill = false; // Container child musicButtonBox.Gtk.Box+BoxChild this.fastfoward = new Gtk.Button(); this.fastfoward.CanFocus = true; this.fastfoward.Name = "fastfoward"; this.fastfoward.UseUnderline = true; // Container child fastfoward.Gtk.Container+ContainerChild Gtk.Alignment w50 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w50.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w51 = new Gtk.HBox(); w51.Name = "GtkHBox"; w51.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w52 = new Gtk.Image(); w52.Name = "image40"; w52.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-fwd", 16); w51.Add(w52); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w54 = new Gtk.Label(); w54.Name = "GtkLabel"; w54.LabelProp = ""; w51.Add(w54); w50.Add(w51); this.fastfoward.Add(w50); this.musicButtonBox.Add(this.fastfoward); Gtk.Box.BoxChild w58 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.fastfoward])); w58.Position = 5; w58.Expand = false; w58.Fill = false; this.MainFixedWindow.Add(this.musicButtonBox); Gtk.Fixed.FixedChild w59 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.musicButtonBox])); w59.X = 127; w59.Y = 120; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.songProgressBar = new Gtk.ProgressBar(); this.songProgressBar.WidthRequest = 199; this.songProgressBar.Name = "songProgressBar"; this.songProgressBar.Text = Mono.Unix.Catalog.GetString("00:00 / 00:00"); this.MainFixedWindow.Add(this.songProgressBar); Gtk.Fixed.FixedChild w60 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.songProgressBar])); w60.X = 132; w60.Y = 90; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.volumeScale = new Gtk.HScale(null); this.volumeScale.WidthRequest = 80; this.volumeScale.CanFocus = true; this.volumeScale.Name = "volumeScale"; this.volumeScale.Adjustment.Upper = 1; this.volumeScale.Adjustment.PageIncrement = 0.5; this.volumeScale.Adjustment.StepIncrement = 0.1; this.volumeScale.Adjustment.Value = 1; this.volumeScale.DrawValue = false; this.volumeScale.Digits = 0; this.volumeScale.ValuePos = ((Gtk.PositionType)(2)); this.MainFixedWindow.Add(this.volumeScale); Gtk.Fixed.FixedChild w61 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.volumeScale])); w61.X = 3; w61.Y = 126; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.muteButton = new Gtk.Button(); this.muteButton.CanFocus = true; this.muteButton.Name = "muteButton"; this.muteButton.UseUnderline = true; // Container child muteButton.Gtk.Container+ContainerChild Gtk.Alignment w62 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w62.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w63 = new Gtk.HBox(); w63.Name = "GtkHBox"; w63.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w64 = new Gtk.Image(); w64.Name = "image41"; w64.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-cancel", 16); w63.Add(w64); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w66 = new Gtk.Label(); w66.Name = "GtkLabel"; w66.LabelProp = ""; w63.Add(w66); w62.Add(w63); this.muteButton.Add(w62); this.MainFixedWindow.Add(this.muteButton); Gtk.Fixed.FixedChild w70 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.muteButton])); w70.X = 90; w70.Y = 120; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.volumeButton = new Gtk.Button(); this.volumeButton.CanFocus = true; this.volumeButton.Name = "volumeButton"; this.volumeButton.UseUnderline = true; // Container child volumeButton.Gtk.Container+ContainerChild Gtk.Alignment w71 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w71.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w72 = new Gtk.HBox(); w72.Name = "GtkHBox"; w72.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w73 = new Gtk.Image(); w73.Name = "image42"; w73.Pixbuf = Stetic.IconLoader.LoadIcon("stock_volume", 16); w72.Add(w73); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w75 = new Gtk.Label(); w75.Name = "GtkLabel"; w75.LabelProp = ""; w72.Add(w75); w71.Add(w72); this.volumeButton.Add(w71); this.MainFixedWindow.Add(this.volumeButton); Gtk.Fixed.FixedChild w79 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.volumeButton])); w79.X = 90; w79.Y = 120; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.npSong = new Gtk.Label(); this.npSong.Name = "npSong"; this.npSong.LabelProp = Mono.Unix.Catalog.GetString("Stopped"); this.npSong.UseMarkup = true; this.MainFixedWindow.Add(this.npSong); Gtk.Fixed.FixedChild w80 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.npSong])); w80.X = 115; w80.Y = 35; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.npByFrom = new Gtk.Label(); this.npByFrom.WidthRequest = 231; this.npByFrom.Name = "npByFrom"; this.npByFrom.LabelProp = Mono.Unix.Catalog.GetString(" "); this.npByFrom.UseMarkup = true; this.npByFrom.Wrap = true; this.MainFixedWindow.Add(this.npByFrom); Gtk.Fixed.FixedChild w81 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.npByFrom])); w81.X = 121; w81.Y = 49; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.albumCoverImage = new Gtk.Image(); this.albumCoverImage.Name = "albumCoverImage"; this.albumCoverImage.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-cdrom", 48); this.MainFixedWindow.Add(this.albumCoverImage); Gtk.Fixed.FixedChild w82 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.albumCoverImage])); w82.X = 24; w82.Y = 62; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.tabbedNotebook = new Gtk.Notebook(); this.tabbedNotebook.CanFocus = true; this.tabbedNotebook.Name = "tabbedNotebook"; this.tabbedNotebook.CurrentPage = 1; this.tabbedNotebook.Scrollable = true; // Container child tabbedNotebook.Gtk.Notebook+NotebookChild this.searchVertBox = new Gtk.VBox(); this.searchVertBox.Name = "searchVertBox"; this.searchVertBox.Spacing = 6; // Container child searchVertBox.Gtk.Box+BoxChild this.searchTopHorBox = new Gtk.HBox(); this.searchTopHorBox.Name = "searchTopHorBox"; this.searchTopHorBox.Spacing = 6; this.searchTopHorBox.BorderWidth = ((uint)(4)); // Container child searchTopHorBox.Gtk.Box+BoxChild this.searchSelectionType = Gtk.ComboBox.NewText(); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Song")); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Artist")); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Album")); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Track #")); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Year")); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Genre")); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Filename")); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("All Fields")); this.searchSelectionType.WidthRequest = 75; this.searchSelectionType.Name = "searchSelectionType"; this.searchSelectionType.Active = 7; this.searchTopHorBox.Add(this.searchSelectionType); Gtk.Box.BoxChild w83 = ((Gtk.Box.BoxChild)(this.searchTopHorBox[this.searchSelectionType])); w83.Position = 0; w83.Expand = false; w83.Fill = false; // Container child searchTopHorBox.Gtk.Box+BoxChild this.searchEntry = new Gtk.Entry(); this.searchEntry.WidthRequest = 246; this.searchEntry.HeightRequest = 23; this.searchEntry.HasDefault = true; this.searchEntry.CanFocus = true; this.searchEntry.Name = "searchEntry"; this.searchEntry.IsEditable = true; this.searchEntry.InvisibleChar = '●'; this.searchTopHorBox.Add(this.searchEntry); Gtk.Box.BoxChild w84 = ((Gtk.Box.BoxChild)(this.searchTopHorBox[this.searchEntry])); w84.Position = 1; this.searchVertBox.Add(this.searchTopHorBox); Gtk.Box.BoxChild w85 = ((Gtk.Box.BoxChild)(this.searchVertBox[this.searchTopHorBox])); w85.Position = 0; w85.Expand = false; w85.Fill = false; // Container child searchVertBox.Gtk.Box+BoxChild this.searchList = new Gtk.ScrolledWindow(); this.searchList.WidthRequest = 329; this.searchList.HeightRequest = 358; this.searchList.CanFocus = true; this.searchList.Name = "searchList"; this.searchList.HscrollbarPolicy = ((Gtk.PolicyType)(2)); this.searchList.ShadowType = ((Gtk.ShadowType)(1)); // Container child searchList.Gtk.Container+ContainerChild this.songListTree = new Gtk.TreeView(); this.songListTree.CanFocus = true; this.songListTree.Name = "songListTree"; this.songListTree.Reorderable = true; this.searchList.Add(this.songListTree); this.searchVertBox.Add(this.searchList); Gtk.Box.BoxChild w87 = ((Gtk.Box.BoxChild)(this.searchVertBox[this.searchList])); w87.Position = 1; // Container child searchVertBox.Gtk.Box+BoxChild this.searchBottomHorizonalBox = new Gtk.HBox(); this.searchBottomHorizonalBox.Name = "searchBottomHorizonalBox"; this.searchBottomHorizonalBox.Spacing = 6; this.searchBottomHorizonalBox.BorderWidth = ((uint)(2)); // Container child searchBottomHorizonalBox.Gtk.Box+BoxChild this.searchAddButton = new Gtk.Button(); this.searchAddButton.CanFocus = true; this.searchAddButton.Name = "searchAddButton"; this.searchAddButton.UseUnderline = true; // Container child searchAddButton.Gtk.Container+ContainerChild Gtk.Alignment w88 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w88.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w89 = new Gtk.HBox(); w89.Name = "GtkHBox"; w89.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w90 = new Gtk.Image(); w90.Name = "image43"; w90.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-add", 16); w89.Add(w90); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w92 = new Gtk.Label(); w92.Name = "GtkLabel"; w92.LabelProp = Mono.Unix.Catalog.GetString("Add"); w92.UseUnderline = true; w89.Add(w92); w88.Add(w89); this.searchAddButton.Add(w88); this.searchBottomHorizonalBox.Add(this.searchAddButton); Gtk.Box.BoxChild w96 = ((Gtk.Box.BoxChild)(this.searchBottomHorizonalBox[this.searchAddButton])); w96.Position = 2; w96.Expand = false; w96.Fill = false; this.searchVertBox.Add(this.searchBottomHorizonalBox); Gtk.Box.BoxChild w97 = ((Gtk.Box.BoxChild)(this.searchVertBox[this.searchBottomHorizonalBox])); w97.Position = 2; w97.Expand = false; w97.Fill = false; this.tabbedNotebook.Add(this.searchVertBox); Gtk.Notebook.NotebookChild w98 = ((Gtk.Notebook.NotebookChild)(this.tabbedNotebook[this.searchVertBox])); w98.TabExpand = false; // Notebook tab this.searchMainLabel = new Gtk.Label(); this.searchMainLabel.WidthRequest = 100; this.searchMainLabel.Name = "searchMainLabel"; this.searchMainLabel.LabelProp = Mono.Unix.Catalog.GetString("Collection"); this.tabbedNotebook.SetTabLabel(this.searchVertBox, this.searchMainLabel); // Container child tabbedNotebook.Gtk.Notebook+NotebookChild this.queueVertBox = new Gtk.VBox(); this.queueVertBox.Name = "queueVertBox"; this.queueVertBox.Spacing = 9; this.queueVertBox.BorderWidth = ((uint)(3)); // Container child queueVertBox.Gtk.Box+BoxChild this.queueScrolledList = new Gtk.ScrolledWindow(); this.queueScrolledList.CanFocus = true; this.queueScrolledList.Name = "queueScrolledList"; this.queueScrolledList.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.queueScrolledList.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.queueScrolledList.ShadowType = ((Gtk.ShadowType)(1)); // Container child queueScrolledList.Gtk.Container+ContainerChild this.queueTreeView = new Gtk.TreeView(); this.queueTreeView.CanFocus = true; this.queueTreeView.Name = "queueTreeView"; this.queueScrolledList.Add(this.queueTreeView); this.queueVertBox.Add(this.queueScrolledList); Gtk.Box.BoxChild w100 = ((Gtk.Box.BoxChild)(this.queueVertBox[this.queueScrolledList])); w100.Position = 0; // Container child queueVertBox.Gtk.Box+BoxChild this.queueBottomHorBox = new Gtk.HBox(); this.queueBottomHorBox.Name = "queueBottomHorBox"; this.queueBottomHorBox.Spacing = 6; // Container child queueBottomHorBox.Gtk.Box+BoxChild this.queueNewPlaylist = new Gtk.Button(); this.queueNewPlaylist.CanFocus = true; this.queueNewPlaylist.Name = "queueNewPlaylist"; // Container child queueNewPlaylist.Gtk.Container+ContainerChild Gtk.Alignment w101 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w101.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w102 = new Gtk.HBox(); w102.Name = "GtkHBox"; w102.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w103 = new Gtk.Image(); w103.Name = "image44"; w103.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-file", 16); w102.Add(w103); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w105 = new Gtk.Label(); w105.Name = "GtkLabel"; w105.LabelProp = ""; w102.Add(w105); w101.Add(w102); this.queueNewPlaylist.Add(w101); this.queueBottomHorBox.Add(this.queueNewPlaylist); Gtk.Box.BoxChild w109 = ((Gtk.Box.BoxChild)(this.queueBottomHorBox[this.queueNewPlaylist])); w109.Position = 0; w109.Expand = false; w109.Fill = false; // Container child queueBottomHorBox.Gtk.Box+BoxChild this.queueDeleteButton = new Gtk.Button(); this.queueDeleteButton.CanFocus = true; this.queueDeleteButton.Name = "queueDeleteButton"; this.queueDeleteButton.UseUnderline = true; // Container child queueDeleteButton.Gtk.Container+ContainerChild Gtk.Alignment w110 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w110.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w111 = new Gtk.HBox(); w111.Name = "GtkHBox"; w111.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w112 = new Gtk.Image(); w112.Name = "image45"; w112.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-delete", 16); w111.Add(w112); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w114 = new Gtk.Label(); w114.Name = "GtkLabel"; w114.LabelProp = ""; w111.Add(w114); w110.Add(w111); this.queueDeleteButton.Add(w110); this.queueBottomHorBox.Add(this.queueDeleteButton); Gtk.Box.BoxChild w118 = ((Gtk.Box.BoxChild)(this.queueBottomHorBox[this.queueDeleteButton])); w118.Position = 1; w118.Expand = false; w118.Fill = false; // Container child queueBottomHorBox.Gtk.Box+BoxChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Playlist Name"); this.queueBottomHorBox.Add(this.label4); Gtk.Box.BoxChild w119 = ((Gtk.Box.BoxChild)(this.queueBottomHorBox[this.label4])); w119.Position = 2; w119.Expand = false; w119.Fill = false; // Container child queueBottomHorBox.Gtk.Box+BoxChild this.queueEntryBox = new Gtk.Entry(); this.queueEntryBox.WidthRequest = 3; this.queueEntryBox.CanFocus = true; this.queueEntryBox.Name = "queueEntryBox"; this.queueEntryBox.IsEditable = true; this.queueEntryBox.InvisibleChar = '●'; this.queueBottomHorBox.Add(this.queueEntryBox); Gtk.Box.BoxChild w120 = ((Gtk.Box.BoxChild)(this.queueBottomHorBox[this.queueEntryBox])); w120.Position = 3; // Container child queueBottomHorBox.Gtk.Box+BoxChild this.queueSaveButton = new Gtk.Button(); this.queueSaveButton.CanFocus = true; this.queueSaveButton.Name = "queueSaveButton"; this.queueSaveButton.UseUnderline = true; this.queueSaveButton.Label = Mono.Unix.Catalog.GetString("Save"); this.queueBottomHorBox.Add(this.queueSaveButton); Gtk.Box.BoxChild w121 = ((Gtk.Box.BoxChild)(this.queueBottomHorBox[this.queueSaveButton])); w121.Position = 4; w121.Expand = false; w121.Fill = false; this.queueVertBox.Add(this.queueBottomHorBox); Gtk.Box.BoxChild w122 = ((Gtk.Box.BoxChild)(this.queueVertBox[this.queueBottomHorBox])); w122.Position = 1; w122.Expand = false; w122.Fill = false; this.tabbedNotebook.Add(this.queueVertBox); Gtk.Notebook.NotebookChild w123 = ((Gtk.Notebook.NotebookChild)(this.tabbedNotebook[this.queueVertBox])); w123.Position = 1; w123.TabExpand = false; // Notebook tab this.queueMainLabel = new Gtk.Label(); this.queueMainLabel.WidthRequest = 100; this.queueMainLabel.Name = "queueMainLabel"; this.queueMainLabel.LabelProp = Mono.Unix.Catalog.GetString("Current Songs"); this.tabbedNotebook.SetTabLabel(this.queueVertBox, this.queueMainLabel); // Container child tabbedNotebook.Gtk.Notebook+NotebookChild this.playlistVertBox = new Gtk.VBox(); this.playlistVertBox.Name = "playlistVertBox"; this.playlistVertBox.Spacing = 6; this.playlistVertBox.BorderWidth = ((uint)(3)); // Container child playlistVertBox.Gtk.Box+BoxChild this.playListScrolledWindow = new Gtk.ScrolledWindow(); this.playListScrolledWindow.CanFocus = true; this.playListScrolledWindow.Name = "playListScrolledWindow"; this.playListScrolledWindow.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.playListScrolledWindow.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.playListScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child playListScrolledWindow.Gtk.Container+ContainerChild this.playListTreeView = new Gtk.TreeView(); this.playListTreeView.CanFocus = true; this.playListTreeView.Name = "playListTreeView"; this.playListScrolledWindow.Add(this.playListTreeView); this.playlistVertBox.Add(this.playListScrolledWindow); Gtk.Box.BoxChild w125 = ((Gtk.Box.BoxChild)(this.playlistVertBox[this.playListScrolledWindow])); w125.Position = 0; // Container child playlistVertBox.Gtk.Box+BoxChild this.playListBottomBox = new Gtk.HBox(); this.playListBottomBox.Name = "playListBottomBox"; this.playListBottomBox.Spacing = 6; // Container child playListBottomBox.Gtk.Box+BoxChild this.playListNewButton = new Gtk.Button(); this.playListNewButton.CanFocus = true; this.playListNewButton.Name = "playListNewButton"; this.playListNewButton.UseUnderline = true; // Container child playListNewButton.Gtk.Container+ContainerChild Gtk.Alignment w126 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w126.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w127 = new Gtk.HBox(); w127.Name = "GtkHBox"; w127.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w128 = new Gtk.Image(); w128.Name = "image46"; w128.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-file", 16); w127.Add(w128); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w130 = new Gtk.Label(); w130.Name = "GtkLabel"; w130.LabelProp = Mono.Unix.Catalog.GetString("New"); w130.UseUnderline = true; w127.Add(w130); w126.Add(w127); this.playListNewButton.Add(w126); this.playListBottomBox.Add(this.playListNewButton); Gtk.Box.BoxChild w134 = ((Gtk.Box.BoxChild)(this.playListBottomBox[this.playListNewButton])); w134.Position = 0; w134.Expand = false; w134.Fill = false; // Container child playListBottomBox.Gtk.Box+BoxChild this.playListLoadButton = new Gtk.Button(); this.playListLoadButton.CanFocus = true; this.playListLoadButton.Name = "playListLoadButton"; this.playListLoadButton.UseUnderline = true; // Container child playListLoadButton.Gtk.Container+ContainerChild Gtk.Alignment w135 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w135.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w136 = new Gtk.HBox(); w136.Name = "GtkHBox"; w136.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w137 = new Gtk.Image(); w137.Name = "image47"; w137.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-directory", 16); w136.Add(w137); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w139 = new Gtk.Label(); w139.Name = "GtkLabel"; w139.LabelProp = Mono.Unix.Catalog.GetString("Load"); w139.UseUnderline = true; w136.Add(w139); w135.Add(w136); this.playListLoadButton.Add(w135); this.playListBottomBox.Add(this.playListLoadButton); Gtk.Box.BoxChild w143 = ((Gtk.Box.BoxChild)(this.playListBottomBox[this.playListLoadButton])); w143.Position = 1; w143.Expand = false; w143.Fill = false; // Container child playListBottomBox.Gtk.Box+BoxChild this.playlistRenameButton = new Gtk.Button(); this.playlistRenameButton.CanFocus = true; this.playlistRenameButton.Name = "playlistRenameButton"; this.playlistRenameButton.UseUnderline = true; // Container child playlistRenameButton.Gtk.Container+ContainerChild Gtk.Alignment w144 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w144.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w145 = new Gtk.HBox(); w145.Name = "GtkHBox"; w145.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w146 = new Gtk.Image(); w146.Name = "image48"; w146.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-edit", 16); w145.Add(w146); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w148 = new Gtk.Label(); w148.Name = "GtkLabel"; w148.LabelProp = Mono.Unix.Catalog.GetString("Edit"); w148.UseUnderline = true; w145.Add(w148); w144.Add(w145); this.playlistRenameButton.Add(w144); this.playListBottomBox.Add(this.playlistRenameButton); Gtk.Box.BoxChild w152 = ((Gtk.Box.BoxChild)(this.playListBottomBox[this.playlistRenameButton])); w152.Position = 2; w152.Expand = false; w152.Fill = false; // Container child playListBottomBox.Gtk.Box+BoxChild this.playListDeleteButton = new Gtk.Button(); this.playListDeleteButton.CanFocus = true; this.playListDeleteButton.Name = "playListDeleteButton"; this.playListDeleteButton.UseUnderline = true; // Container child playListDeleteButton.Gtk.Container+ContainerChild Gtk.Alignment w153 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w153.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w154 = new Gtk.HBox(); w154.Name = "GtkHBox"; w154.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w155 = new Gtk.Image(); w155.Name = "image49"; w155.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-delete", 16); w154.Add(w155); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w157 = new Gtk.Label(); w157.Name = "GtkLabel"; w157.LabelProp = Mono.Unix.Catalog.GetString("Delete"); w157.UseUnderline = true; w154.Add(w157); w153.Add(w154); this.playListDeleteButton.Add(w153); this.playListBottomBox.Add(this.playListDeleteButton); Gtk.Box.BoxChild w161 = ((Gtk.Box.BoxChild)(this.playListBottomBox[this.playListDeleteButton])); w161.Position = 3; w161.Expand = false; w161.Fill = false; this.playlistVertBox.Add(this.playListBottomBox); Gtk.Box.BoxChild w162 = ((Gtk.Box.BoxChild)(this.playlistVertBox[this.playListBottomBox])); w162.PackType = ((Gtk.PackType)(1)); w162.Position = 1; w162.Expand = false; w162.Fill = false; this.tabbedNotebook.Add(this.playlistVertBox); Gtk.Notebook.NotebookChild w163 = ((Gtk.Notebook.NotebookChild)(this.tabbedNotebook[this.playlistVertBox])); w163.Position = 2; w163.TabExpand = false; // Notebook tab this.playListMainLabel = new Gtk.Label(); this.playListMainLabel.WidthRequest = 100; this.playListMainLabel.Name = "playListMainLabel"; this.playListMainLabel.LabelProp = Mono.Unix.Catalog.GetString("Playlists"); this.tabbedNotebook.SetTabLabel(this.playlistVertBox, this.playListMainLabel); this.MainFixedWindow.Add(this.tabbedNotebook); Gtk.Fixed.FixedChild w164 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.tabbedNotebook])); w164.X = 10; w164.Y = 159; this.Add(this.MainFixedWindow); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 562; this.DefaultHeight = 662; this.muteButton.Hide(); this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.AddFolder.Activated += new System.EventHandler(this.OnAddFolderActivated); this.NewCollection.Activated += new System.EventHandler(this.OnNewCollectionActivated); this.Preferences.Activated += new System.EventHandler(this.OnPreferencesActivated); this.Exit1.Activated += new System.EventHandler(this.OnExit1Activated); this.AddFile.Activated += new System.EventHandler(this.OnAddFileActivated); this.About3.Activated += new System.EventHandler(this.OnAbout3Activated); this.playButton.Clicked += new System.EventHandler(this.OnPlayButtonClicked); this.stopButton.Clicked += new System.EventHandler(this.OnStopButtonClicked); this.previousButton.Clicked += new System.EventHandler(this.OnPreviousButtonClicked); this.nextButton.Clicked += new System.EventHandler(this.OnNextButtonClicked); this.rewindButton.Clicked += new System.EventHandler(this.OnRewindClicked); this.fastfoward.Clicked += new System.EventHandler(this.OnFastfowardClicked); this.volumeScale.ValueChanged += new System.EventHandler(this.OnVolumeScaleValueChanged); this.muteButton.Clicked += new System.EventHandler(this.OnMuteButtonClicked); this.volumeButton.Clicked += new System.EventHandler(this.OnVolumeButtonClicked); this.searchAddButton.Clicked += new System.EventHandler(this.OnSearchAddButtonClicked); this.queueNewPlaylist.Clicked += new System.EventHandler(this.OnQueueNewPlaylistClicked); this.queueDeleteButton.Clicked += new System.EventHandler(this.OnQueueDeleteButtonClicked); this.queueSaveButton.Clicked += new System.EventHandler(this.OnQueueSaveButtonClicked); this.playListNewButton.Clicked += new System.EventHandler(this.OnPlayListNewButtonClicked); this.playListLoadButton.Clicked += new System.EventHandler(this.OnPlayListLoadButtonClicked); this.playListDeleteButton.Clicked += new System.EventHandler(this.OnPlayListDeleteButtonClicked); }
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); }
private void OnActionShowBox(object source, EventArgs args) { Gtk.ToggleAction action = (Gtk.ToggleAction)source; d_graph.ShowBox = action.Active; }
public MediaPlayer () { playback_service = ServiceManager.PlaybackController; engine_service = ServiceManager.PlayerEngine; playlist_sources = new Dictionary<string, AbstractPlaylistSource> (); changed_properties = new Dictionary<string, object> (); current_properties = new Dictionary<string, object> (); invalidated_properties = new List<string> (); var interface_service = ServiceManager.Get<InterfaceActionService> (); fullscreen_action = interface_service.ViewActions["FullScreenAction"] as Gtk.ToggleAction; }
Gtk.UIManager BuildUIManager() { Gtk.ActionEntry[] actions = new Gtk.ActionEntry[] { new Gtk.ActionEntry ("ProfileMenu", null, Catalog.GetString ("_Profile"), null, null, null), new Gtk.ActionEntry ("NewAction", Gtk.Stock.New, null, "<control>N", Catalog.GetString ("Create New Profile"), new EventHandler (OnNewActivated)), new Gtk.ActionEntry ("OpenAction", Gtk.Stock.Open, null, "<control>O", Catalog.GetString ("Open Existing Profile Log"), new EventHandler (OnOpenActivated)), new Gtk.ActionEntry ("SaveAsAction", Gtk.Stock.SaveAs, null, "<control>S", Catalog.GetString ("Save Profile Data"), new EventHandler (OnSaveAsActivated)), new Gtk.ActionEntry ("RecentLogsMenu", null, Catalog.GetString ("Recent _Logs"), null, null, null), new Gtk.ActionEntry ("RecentLogs0", null, "_0", null, null, new EventHandler (OnRecentLogsActivated)), new Gtk.ActionEntry ("RecentLogs1", null, "_1", null, null, new EventHandler (OnRecentLogsActivated)), new Gtk.ActionEntry ("RecentLogs2", null, "_2", null, null, new EventHandler (OnRecentLogsActivated)), new Gtk.ActionEntry ("RecentLogs3", null, "_3", null, null, new EventHandler (OnRecentLogsActivated)), new Gtk.ActionEntry ("RecentLogs4", null, "_4", null, null, new EventHandler (OnRecentLogsActivated)), new Gtk.ActionEntry ("RepeatSessionsMenu", null, Catalog.GetString ("Re_peat Sessions"), null, null, null), new Gtk.ActionEntry ("RepeatSession0", null, "_0", null, null, new EventHandler (OnRepeatSessionActivated)), new Gtk.ActionEntry ("RepeatSession1", null, "_1", null, null, new EventHandler (OnRepeatSessionActivated)), new Gtk.ActionEntry ("RepeatSession2", null, "_2", null, null, new EventHandler (OnRepeatSessionActivated)), new Gtk.ActionEntry ("RepeatSession3", null, "_3", null, null, new EventHandler (OnRepeatSessionActivated)), new Gtk.ActionEntry ("RepeatSession4", null, "_4", null, null, new EventHandler (OnRepeatSessionActivated)), new Gtk.ActionEntry ("QuitAction", Gtk.Stock.Quit, null, "<control>Q", Catalog.GetString ("Quit Profiler"), new EventHandler (OnQuitActivated)), new Gtk.ActionEntry ("RunMenu", null, Catalog.GetString ("_Run"), null, null, null), new Gtk.ActionEntry ("ViewMenu", null, Catalog.GetString ("_View"), null, null, null), }; Gtk.ToggleActionEntry[] toggle_actions = new Gtk.ToggleActionEntry[] { new Gtk.ToggleActionEntry ("ShowSystemNodesAction", null, Catalog.GetString ("_Show system nodes"), null, Catalog.GetString ("Shows internal nodes of system library method invocations"), new EventHandler (OnShowSystemNodesActivated), false), new Gtk.ToggleActionEntry ("LogEnabledAction", null, Catalog.GetString ("_Logging enabled"), null, Catalog.GetString ("Profile logging enabled"), new EventHandler (OnLoggingActivated), true), }; group = new Gtk.ActionGroup ("group"); group.Add (actions); group.Add (toggle_actions); Gtk.UIManager uim = new Gtk.UIManager (); uim.InsertActionGroup (group, (int) uim.NewMergeId ()); uim.AddUiFromString (ui_info); AddAccelGroup (uim.AccelGroup); logging_enabled_action = group.GetAction ("LogEnabledAction") as Gtk.ToggleAction; logging_enabled_action.Visible = false; save_action = group.GetAction ("SaveAsAction"); save_action.Sensitive = false; show_system_nodes_action = group.GetAction ("ShowSystemNodesAction"); return uim; }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget TuxMate.MainWindow Gtk.UIManager w1 = new Gtk.UIManager(); Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("_File"), null, null); this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("_File"); w2.Add(this.FileAction, null); this.EditAction = new Gtk.Action("EditAction", Mono.Unix.Catalog.GetString("_Edit"), null, null); this.EditAction.ShortLabel = Mono.Unix.Catalog.GetString("_Edit"); w2.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"); w2.Add(this.ViewAction, null); this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("_New"), null, "gtk-new"); this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("_New"); w2.Add(this.NewAction, null); this.OpenAction = new Gtk.Action("OpenAction", Mono.Unix.Catalog.GetString("_Open"), null, "gtk-open"); this.OpenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Open"); w2.Add(this.OpenAction, null); this.SaveAction = new Gtk.Action("SaveAction", Mono.Unix.Catalog.GetString("_Save"), null, "gtk-save"); this.SaveAction.ShortLabel = Mono.Unix.Catalog.GetString("_Save"); w2.Add(this.SaveAction, null); this.SaveAsAction = new Gtk.Action("SaveAsAction", Mono.Unix.Catalog.GetString("Save _As..."), null, "gtk-save-as"); this.SaveAsAction.ShortLabel = Mono.Unix.Catalog.GetString("Save _As..."); w2.Add(this.SaveAsAction, "<Control><Shift>s"); this.CloseAction = new Gtk.Action("CloseAction", Mono.Unix.Catalog.GetString("_Close"), null, "gtk-close"); this.CloseAction.ShortLabel = Mono.Unix.Catalog.GetString("_Close"); w2.Add(this.CloseAction, 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); 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.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, null); this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help"); w2.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"); w2.Add(this.AboutAction, null); this.UndoAction = new Gtk.Action("UndoAction", Mono.Unix.Catalog.GetString("_Undo"), null, "gtk-undo"); this.UndoAction.Sensitive = false; this.UndoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Undo"); w2.Add(this.UndoAction, "<Control>z"); this.RedoAction = new Gtk.Action("RedoAction", Mono.Unix.Catalog.GetString("_Redo"), null, "gtk-redo"); this.RedoAction.Sensitive = false; this.RedoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Redo"); w2.Add(this.RedoAction, "<Control><Shift>z"); this.CutAction = new Gtk.Action("CutAction", Mono.Unix.Catalog.GetString("Cu_t"), null, "gtk-cut"); this.CutAction.ShortLabel = Mono.Unix.Catalog.GetString("Cu_t"); w2.Add(this.CutAction, null); this.CopyAction = new Gtk.Action("CopyAction", Mono.Unix.Catalog.GetString("_Copy"), null, "gtk-copy"); this.CopyAction.ShortLabel = Mono.Unix.Catalog.GetString("_Copy"); w2.Add(this.CopyAction, null); this.PasteAction = new Gtk.Action("PasteAction", Mono.Unix.Catalog.GetString("_Paste"), null, "gtk-paste"); this.PasteAction.ShortLabel = Mono.Unix.Catalog.GetString("_Paste"); w2.Add(this.PasteAction, null); this.undoAction = new Gtk.Action("undoAction", null, null, "gtk-undo"); w2.Add(this.undoAction, null); this.ShowLineNumbersAction = new Gtk.ToggleAction("ShowLineNumbersAction", Mono.Unix.Catalog.GetString("Show Line Numbers"), null, null); this.ShowLineNumbersAction.ShortLabel = Mono.Unix.Catalog.GetString("Show Line Numbers"); w2.Add(this.ShowLineNumbersAction, null); w1.InsertActionGroup(w2, 0); this.AddAccelGroup(w1.AccelGroup); this.Name = "TuxMate.MainWindow"; this.Title = Mono.Unix.Catalog.GetString("TuxMate"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.DefaultWidth = 800; this.DefaultHeight = 600; // Container child TuxMate.MainWindow.Gtk.Container+ContainerChild this.vbox = new Gtk.VBox(); this.vbox.Name = "vbox"; this.vbox.Spacing = 2; // Container child vbox.Gtk.Box+BoxChild w1.AddUiFromString("<ui><menubar name='menuBar'><menu action='FileAction'><menuitem action='NewAction'/><menuitem action='OpenAction'/><menuitem action='SaveAction'/><menuitem action='SaveAsAction'/><separator/><menuitem action='CloseAction'/><menuitem action='QuitAction'/></menu><menu action='EditAction'><menuitem action='UndoAction'/><menuitem action='RedoAction'/><separator/><menuitem action='CutAction'/><menuitem action='CopyAction'/><menuitem action='PasteAction'/><separator/><menuitem action='PreferencesAction'/><menuitem/></menu><menu action='ViewAction'><menuitem action='ShowLineNumbersAction'/></menu><menu action='HelpAction'><menuitem action='AboutAction'/></menu></menubar></ui>"); this.menuBar = ((Gtk.MenuBar)(w1.GetWidget("/menuBar"))); this.menuBar.Name = "menuBar"; this.vbox.Add(this.menuBar); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox[this.menuBar])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox.Gtk.Box+BoxChild this.scrolledwindow = new Gtk.ScrolledWindow(); this.scrolledwindow.CanFocus = true; this.scrolledwindow.Name = "scrolledwindow"; this.scrolledwindow.ShadowType = ((Gtk.ShadowType)(1)); this.vbox.Add(this.scrolledwindow); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox[this.scrolledwindow])); w4.Position = 1; // Container child vbox.Gtk.Box+BoxChild this.statusbar = new Gtk.Statusbar(); this.statusbar.Name = "statusbar"; this.statusbar.Spacing = 6; this.vbox.Add(this.statusbar); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox[this.statusbar])); w5.Position = 2; w5.Expand = false; w5.Fill = false; this.Add(this.vbox); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.NewAction.Activated += new System.EventHandler(this.OnNewActionActivated); this.OpenAction.Activated += new System.EventHandler(this.OnOpenActionActivated); this.SaveAction.Activated += new System.EventHandler(this.OnSaveActionActivated); this.SaveAsAction.Activated += new System.EventHandler(this.OnSaveAsActionActivated); this.QuitAction.Activated += new System.EventHandler(this.OnQuitActionActivated); this.PreferencesAction.Activated += new System.EventHandler(this.OnPreferencesActionActivated); this.AboutAction.Activated += new System.EventHandler(this.OnAboutActionActivated); this.UndoAction.Activated += new System.EventHandler(this.OnUndoActionActivated); this.RedoAction.Activated += new System.EventHandler(this.OnRedoActionActivated); this.ShowLineNumbersAction.Activated += new System.EventHandler(this.OnShowLineNumbersActionActivated); }
private void OnActionKeepAspect(object source, EventArgs args) { Gtk.ToggleAction action = (Gtk.ToggleAction)source; d_graph.KeepAspect = action.Active; }
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.ExitAction = new Gtk.Action("ExitAction", Mono.Unix.Catalog.GetString("Exit"), null, "gtk-stop"); this.ExitAction.ShortLabel = Mono.Unix.Catalog.GetString("Exit"); w1.Add(this.ExitAction, 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.RecordImagesAction = new Gtk.ToggleAction("RecordImagesAction", Mono.Unix.Catalog.GetString("Record images"), null, null); this.RecordImagesAction.Active = true; this.RecordImagesAction.ShortLabel = Mono.Unix.Catalog.GetString("Record images"); w1.Add(this.RecordImagesAction, null); this.CalibrateAlignmentAction = new Gtk.Action("CalibrateAlignmentAction", Mono.Unix.Catalog.GetString("Calibrate Alignment"), null, null); this.CalibrateAlignmentAction.ShortLabel = Mono.Unix.Catalog.GetString("Calibrate Alignment"); w1.Add(this.CalibrateAlignmentAction, null); this.ManualTweaksAction = new Gtk.Action("ManualTweaksAction", Mono.Unix.Catalog.GetString("Manual Tweaks"), null, null); this.ManualTweaksAction.ShortLabel = Mono.Unix.Catalog.GetString("Manual Tweaks"); w1.Add(this.ManualTweaksAction, null); this.UIManager.InsertActionGroup(w1, 0); Gtk.ActionGroup w2 = new Gtk.ActionGroup("New Action Group"); this.SaveAsAnimatedGifAction = new Gtk.Action("SaveAsAnimatedGifAction", Mono.Unix.Catalog.GetString("Save as animated gif"), null, null); this.SaveAsAnimatedGifAction.ShortLabel = Mono.Unix.Catalog.GetString("Save as animated gif"); w2.Add(this.SaveAsAnimatedGifAction, null); this.UIManager.InsertActionGroup(w2, 1); this.AddAccelGroup(this.UIManager.AccelGroup); this.CanFocus = true; this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Webcam SVS"); 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='FileAction' action='FileAction'><menuitem name='SaveAsAnimatedGifAction' action='SaveAsAnimatedGifAction'/><menuitem name='ExitAction' action='ExitAction'/></menu><menu name='ToolsAction' action='ToolsAction'><menuitem name='RecordImagesAction' action='RecordImagesAction'/><menuitem name='CalibrateAlignmentAction' action='CalibrateAlignmentAction'/><menuitem name='ManualTweaksAction' action='ManualTweaksAction'/></menu></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox1.Add(this.menubar1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.leftimage = new Gtk.Image(); this.leftimage.Name = "leftimage"; this.hbox1.Add(this.leftimage); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.leftimage])); w4.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.rightimage = new Gtk.Image(); this.rightimage.Name = "rightimage"; this.hbox1.Add(this.rightimage); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.rightimage])); w5.Position = 1; this.vbox1.Add(this.hbox1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); w6.Position = 1; w6.Expand = false; w6.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.chkRecord = new Gtk.CheckButton(); this.chkRecord.CanFocus = true; this.chkRecord.Name = "chkRecord"; this.chkRecord.Label = Mono.Unix.Catalog.GetString("Record"); this.chkRecord.DrawIndicator = true; this.chkRecord.UseUnderline = true; this.hbox2.Add(this.chkRecord); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox2[this.chkRecord])); w7.Position = 0; // Container child hbox2.Gtk.Box+BoxChild this.chkCalibrateLeft = new Gtk.CheckButton(); this.chkCalibrateLeft.CanFocus = true; this.chkCalibrateLeft.Name = "chkCalibrateLeft"; this.chkCalibrateLeft.Label = Mono.Unix.Catalog.GetString("Calibrate left camera"); this.chkCalibrateLeft.DrawIndicator = true; this.chkCalibrateLeft.UseUnderline = true; this.hbox2.Add(this.chkCalibrateLeft); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox2[this.chkCalibrateLeft])); w8.Position = 1; // Container child hbox2.Gtk.Box+BoxChild this.chkCalibrateRight = new Gtk.CheckButton(); this.chkCalibrateRight.CanFocus = true; this.chkCalibrateRight.Name = "chkCalibrateRight"; this.chkCalibrateRight.Label = Mono.Unix.Catalog.GetString("Calibrate right camera"); this.chkCalibrateRight.DrawIndicator = true; this.chkCalibrateRight.UseUnderline = true; this.hbox2.Add(this.chkCalibrateRight); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox2[this.chkCalibrateRight])); w9.Position = 2; // Container child hbox2.Gtk.Box+BoxChild this.chkFlipRight = new Gtk.CheckButton(); this.chkFlipRight.CanFocus = true; this.chkFlipRight.Name = "chkFlipRight"; this.chkFlipRight.Label = Mono.Unix.Catalog.GetString("Flip right"); this.chkFlipRight.DrawIndicator = true; this.chkFlipRight.UseUnderline = true; this.hbox2.Add(this.chkFlipRight); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox2[this.chkFlipRight])); w10.PackType = ((Gtk.PackType)(1)); w10.Position = 3; // Container child hbox2.Gtk.Box+BoxChild this.chkFlipLeft = new Gtk.CheckButton(); this.chkFlipLeft.CanFocus = true; this.chkFlipLeft.Name = "chkFlipLeft"; this.chkFlipLeft.Label = Mono.Unix.Catalog.GetString("Flip left"); this.chkFlipLeft.DrawIndicator = true; this.chkFlipLeft.UseUnderline = true; this.hbox2.Add(this.chkFlipLeft); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox2[this.chkFlipLeft])); w11.PackType = ((Gtk.PackType)(1)); w11.Position = 4; // Container child hbox2.Gtk.Box+BoxChild this.chkRadialCorrection = new Gtk.CheckButton(); this.chkRadialCorrection.CanFocus = true; this.chkRadialCorrection.Name = "chkRadialCorrection"; this.chkRadialCorrection.Label = Mono.Unix.Catalog.GetString("Radial Correction"); this.chkRadialCorrection.DrawIndicator = true; this.chkRadialCorrection.UseUnderline = true; this.hbox2.Add(this.chkRadialCorrection); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox2[this.chkRadialCorrection])); w12.PackType = ((Gtk.PackType)(1)); w12.Position = 5; // Container child hbox2.Gtk.Box+BoxChild this.chkRectification = new Gtk.CheckButton(); this.chkRectification.CanFocus = true; this.chkRectification.Name = "chkRectification"; this.chkRectification.Label = Mono.Unix.Catalog.GetString("Rectification"); this.chkRectification.DrawIndicator = true; this.chkRectification.UseUnderline = true; this.hbox2.Add(this.chkRectification); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox2[this.chkRectification])); w13.PackType = ((Gtk.PackType)(1)); w13.Position = 6; // Container child hbox2.Gtk.Box+BoxChild this.cmdTweaks = new Gtk.Button(); this.cmdTweaks.CanFocus = true; this.cmdTweaks.Name = "cmdTweaks"; this.cmdTweaks.UseUnderline = true; this.cmdTweaks.Label = Mono.Unix.Catalog.GetString("Tweaks"); this.hbox2.Add(this.cmdTweaks); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox2[this.cmdTweaks])); w14.PackType = ((Gtk.PackType)(1)); w14.Position = 7; w14.Expand = false; w14.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.cmdCalibrateAlignment = new Gtk.Button(); this.cmdCalibrateAlignment.CanFocus = true; this.cmdCalibrateAlignment.Name = "cmdCalibrateAlignment"; this.cmdCalibrateAlignment.UseUnderline = true; this.cmdCalibrateAlignment.Label = Mono.Unix.Catalog.GetString("Calibrate Alignment"); this.hbox2.Add(this.cmdCalibrateAlignment); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox2[this.cmdCalibrateAlignment])); w15.PackType = ((Gtk.PackType)(1)); w15.Position = 8; w15.Expand = false; w15.Fill = false; this.vbox1.Add(this.hbox2); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2])); w16.Position = 2; w16.Expand = false; w16.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.lblBaseline = new Gtk.Label(); this.lblBaseline.Name = "lblBaseline"; this.lblBaseline.LabelProp = Mono.Unix.Catalog.GetString("Baseline (mm)"); this.hbox3.Add(this.lblBaseline); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox3[this.lblBaseline])); w17.Position = 0; w17.Expand = false; w17.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.txtBaseline = new Gtk.Entry(); this.txtBaseline.CanFocus = true; this.txtBaseline.Name = "txtBaseline"; this.txtBaseline.IsEditable = true; this.txtBaseline.InvisibleChar = '●'; this.hbox3.Add(this.txtBaseline); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox3[this.txtBaseline])); w18.Position = 1; this.vbox1.Add(this.hbox3); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox3])); w19.Position = 3; w19.Expand = false; w19.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.cmdSimpleStereo = new Gtk.Button(); this.cmdSimpleStereo.CanFocus = true; this.cmdSimpleStereo.Name = "cmdSimpleStereo"; this.cmdSimpleStereo.UseUnderline = true; this.cmdSimpleStereo.Label = Mono.Unix.Catalog.GetString("Simple Stereo"); this.hbox4.Add(this.cmdSimpleStereo); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox4[this.cmdSimpleStereo])); w20.Position = 0; w20.Expand = false; w20.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.cmdDenseStereo = new Gtk.Button(); this.cmdDenseStereo.CanFocus = true; this.cmdDenseStereo.Name = "cmdDenseStereo"; this.cmdDenseStereo.UseUnderline = true; this.cmdDenseStereo.Label = Mono.Unix.Catalog.GetString("Dense Stereo"); this.hbox4.Add(this.cmdDenseStereo); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox4[this.cmdDenseStereo])); w21.Position = 1; w21.Expand = false; w21.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.cmdSaveCalibration = new Gtk.Button(); this.cmdSaveCalibration.CanFocus = true; this.cmdSaveCalibration.Name = "cmdSaveCalibration"; this.cmdSaveCalibration.UseUnderline = true; this.cmdSaveCalibration.Label = Mono.Unix.Catalog.GetString("Save calibration file"); this.hbox4.Add(this.cmdSaveCalibration); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox4[this.cmdSaveCalibration])); w22.Position = 3; w22.Expand = false; w22.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.cmdSaveCalibrationImage = new Gtk.Button(); this.cmdSaveCalibrationImage.CanFocus = true; this.cmdSaveCalibrationImage.Name = "cmdSaveCalibrationImage"; this.cmdSaveCalibrationImage.UseUnderline = true; this.cmdSaveCalibrationImage.Label = Mono.Unix.Catalog.GetString("Save calibration image"); this.hbox4.Add(this.cmdSaveCalibrationImage); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox4[this.cmdSaveCalibrationImage])); w23.Position = 4; w23.Expand = false; w23.Fill = false; this.vbox1.Add(this.hbox4); Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox4])); w24.PackType = ((Gtk.PackType)(1)); w24.Position = 4; w24.Expand = false; w24.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 1076; this.DefaultHeight = 300; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.ExitAction.Activated += new System.EventHandler(this.OnExitActionActivated); this.RecordImagesAction.Activated += new System.EventHandler(this.OnRecordImagesActionActivated); this.CalibrateAlignmentAction.Activated += new System.EventHandler(this.OnCalibrateAlignmentActionActivated); this.ManualTweaksAction.Activated += new System.EventHandler(this.OnManualTweaksActionActivated); this.SaveAsAnimatedGifAction.Activated += new System.EventHandler(this.OnSaveAsAnimatedGifActionActivated); this.chkRecord.Clicked += new System.EventHandler(this.OnChkRecordClicked); this.chkCalibrateLeft.Clicked += new System.EventHandler(this.OnChkCalibrateLeftClicked); this.chkCalibrateRight.Clicked += new System.EventHandler(this.OnChkCalibrateRightClicked); this.cmdCalibrateAlignment.Clicked += new System.EventHandler(this.OnCmdCalibrateAlignmentClicked); this.cmdTweaks.Clicked += new System.EventHandler(this.OnCmdTweaksClicked); this.chkRectification.Clicked += new System.EventHandler(this.OnChkDisableRectificationClicked); this.chkRadialCorrection.Clicked += new System.EventHandler(this.OnChkRadialCorrectionClicked); this.chkFlipLeft.Clicked += new System.EventHandler(this.OnChkFlipLeftClicked); this.chkFlipRight.Clicked += new System.EventHandler(this.OnChkFlipRightClicked); this.cmdSimpleStereo.Clicked += new System.EventHandler(this.OnCmdSimpleStereoClicked); this.cmdDenseStereo.Clicked += new System.EventHandler(this.OnCmdDenseStereoClicked); this.cmdSaveCalibration.Clicked += new System.EventHandler(this.OnCmdSaveCalibrationClicked); this.cmdSaveCalibrationImage.Clicked += new System.EventHandler(this.OnCmdSaveCalibrationImageClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Monsoon.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.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.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.About = new Gtk.Action("About", Mono.Unix.Catalog.GetString("_About"), null, "gtk-about"); this.About.ShortLabel = Mono.Unix.Catalog.GetString("_About"); w1.Add(this.About, 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.stopTorrentButton = new Gtk.Action("stopTorrentButton", null, Mono.Unix.Catalog.GetString("Stop the torrent"), "gtk-media-stop"); this.stopTorrentButton.Sensitive = false; w1.Add(this.stopTorrentButton, null); this.removeTorrentButton = new Gtk.Action("removeTorrentButton", null, Mono.Unix.Catalog.GetString("Remove the torrent"), "gtk-remove"); this.removeTorrentButton.Sensitive = false; w1.Add(this.removeTorrentButton, null); this.preferences = new Gtk.Action("preferences", null, Mono.Unix.Catalog.GetString("Open the preferences dialog"), "gtk-preferences"); w1.Add(this.preferences, null); this.deleteTorrentButton = new Gtk.Action("deleteTorrentButton", null, Mono.Unix.Catalog.GetString("Remove the torrent and delete it's data"), "gtk-delete"); this.deleteTorrentButton.Sensitive = false; w1.Add(this.deleteTorrentButton, null); this.EditColumns = new Gtk.Action("EditColumns", Mono.Unix.Catalog.GetString("Edit Columns"), null, null); this.EditColumns.ShortLabel = Mono.Unix.Catalog.GetString("Columns"); w1.Add(this.EditColumns, null); this.ShowLabels = new Gtk.ToggleAction("ShowLabels", Mono.Unix.Catalog.GetString("Show Labels"), null, null); this.ShowLabels.ShortLabel = Mono.Unix.Catalog.GetString("Show Labels"); w1.Add(this.ShowLabels, null); this.ShowDetailedInfo = new Gtk.ToggleAction("ShowDetailedInfo", Mono.Unix.Catalog.GetString("Show Detailed Info"), null, null); this.ShowDetailedInfo.ShortLabel = Mono.Unix.Catalog.GetString("Show Detailed Info"); w1.Add(this.ShowDetailedInfo, null); this.OpenTorrent = new Gtk.Action("OpenTorrent", Mono.Unix.Catalog.GetString("_Open Torrent"), Mono.Unix.Catalog.GetString("Open existing torrent file"), "gtk-open"); this.OpenTorrent.ShortLabel = Mono.Unix.Catalog.GetString("_Open Torrent"); w1.Add(this.OpenTorrent, null); this.startTorrentButton = new Gtk.Action("startTorrentButton", null, Mono.Unix.Catalog.GetString("Start the torrent"), "gtk-media-play"); this.startTorrentButton.Sensitive = false; w1.Add(this.startTorrentButton, null); this.NewTorrent = new Gtk.Action("NewTorrent", Mono.Unix.Catalog.GetString("_New Torrent"), Mono.Unix.Catalog.GetString("Create a new torrent"), "gtk-new"); this.NewTorrent.ShortLabel = Mono.Unix.Catalog.GetString("_New Torrent"); w1.Add(this.NewTorrent, null); this.Plugins = new Gtk.Action("Plugins", Mono.Unix.Catalog.GetString("Plugins"), Mono.Unix.Catalog.GetString("Open the RSS manager"), "rss"); this.Plugins.ShortLabel = Mono.Unix.Catalog.GetString("Plugins"); w1.Add(this.Plugins, null); this.ReportBugAction = new Gtk.Action("ReportBugAction", Mono.Unix.Catalog.GetString("Report Bug"), null, null); this.ReportBugAction.ShortLabel = Mono.Unix.Catalog.GetString("Report Bug"); w1.Add(this.ReportBugAction, null); this.gotoTopAction = new Gtk.Action("gotoTopAction", null, null, "gtk-goto-top"); w1.Add(this.gotoTopAction, null); this.gotoBottomAction = new Gtk.Action("gotoBottomAction", null, null, "gtk-goto-bottom"); w1.Add(this.gotoBottomAction, null); this.CloseAction = new Gtk.Action("CloseAction", Mono.Unix.Catalog.GetString("Close"), null, "gtk-close"); this.CloseAction.ShortLabel = Mono.Unix.Catalog.GetString("Close"); w1.Add(this.CloseAction, null); this.AddInManagerAction = new Gtk.Action("AddInManagerAction", Mono.Unix.Catalog.GetString("_Add-in Manager"), null, "gtk-properties"); this.AddInManagerAction.ShortLabel = Mono.Unix.Catalog.GetString("_Add-in Manager"); w1.Add(this.AddInManagerAction, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "Monsoon.MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Monsoon"); this.Icon = Stetic.IconLoader.LoadIcon(this, "stock_weather-showers", Gtk.IconSize.Dialog, 48); // Container child Monsoon.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='FileAction' action='FileAction'><menuitem name='NewTorrent' action='NewTorrent'/><menuitem name='OpenTorrent' action='OpenTorrent'/><separator/><menuitem name='CloseAction' action='CloseAction'/><menuitem name='Quit' action='Quit'/></menu><menu name='EditAction' action='EditAction'><menuitem name='AddInManagerAction' action='AddInManagerAction'/><menuitem name='preferences' action='preferences'/></menu><menu name='ViewAction' action='ViewAction'><menuitem name='EditColumns' action='EditColumns'/><separator/><menuitem name='ShowLabels' action='ShowLabels'/><menuitem name='ShowDetailedInfo' action='ShowDetailedInfo'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='About' action='About'/><menuitem name='ReportBugAction' action='ReportBugAction'/></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='NewTorrent' action='NewTorrent'/><toolitem name='OpenTorrent' action='OpenTorrent'/><separator/><toolitem name='startTorrentButton' action='startTorrentButton'/><toolitem name='stopTorrentButton' action='stopTorrentButton'/><toolitem name='removeTorrentButton' action='removeTorrentButton'/><toolitem name='deleteTorrentButton' action='deleteTorrentButton'/><separator/><toolitem name='gotoTopAction' action='gotoTopAction'/><toolitem name='gotoBottomAction' action='gotoBottomAction'/><separator/><toolitem name='Plugins' action='Plugins'/><toolitem name='preferences' action='preferences'/></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.hPaned = new Gtk.HPaned(); this.hPaned.CanFocus = true; this.hPaned.Name = "hPaned"; this.hPaned.Position = 145; // Container child hPaned.Gtk.Paned+PanedChild this.labelViewScrolledWindow = new Gtk.ScrolledWindow(); this.labelViewScrolledWindow.CanFocus = true; this.labelViewScrolledWindow.Name = "labelViewScrolledWindow"; this.hPaned.Add(this.labelViewScrolledWindow); Gtk.Paned.PanedChild w4 = ((Gtk.Paned.PanedChild)(this.hPaned[this.labelViewScrolledWindow])); w4.Resize = false; // Container child hPaned.Gtk.Paned+PanedChild this.vPaned = new Gtk.VPaned(); this.vPaned.CanFocus = true; this.vPaned.Name = "vPaned"; this.vPaned.Position = 165; // Container child vPaned.Gtk.Paned+PanedChild this.torrentViewScrolledWindow = new Gtk.ScrolledWindow(); this.torrentViewScrolledWindow.CanFocus = true; this.torrentViewScrolledWindow.Name = "torrentViewScrolledWindow"; this.torrentViewScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); this.vPaned.Add(this.torrentViewScrolledWindow); Gtk.Paned.PanedChild w5 = ((Gtk.Paned.PanedChild)(this.vPaned[this.torrentViewScrolledWindow])); w5.Resize = false; // Container child vPaned.Gtk.Paned+PanedChild this.detailNotebook = new Gtk.Notebook(); this.detailNotebook.CanFocus = true; this.detailNotebook.Name = "detailNotebook"; this.detailNotebook.CurrentPage = 4; // Container child detailNotebook.Gtk.Notebook+NotebookChild this.scrolledwindow1 = new Gtk.ScrolledWindow(); this.scrolledwindow1.CanFocus = true; this.scrolledwindow1.Name = "scrolledwindow1"; this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow1.Gtk.Container+ContainerChild Gtk.Viewport w6 = new Gtk.Viewport(); w6.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport2.Gtk.Container+ContainerChild this.vbox4 = new Gtk.VBox(); this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 6; this.vbox4.BorderWidth = ((uint)(5)); // Container child vbox4.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.statusProgressBarLabel = new Gtk.Label(); this.statusProgressBarLabel.Name = "statusProgressBarLabel"; this.statusProgressBarLabel.LabelProp = Mono.Unix.Catalog.GetString("Status: "); this.hbox3.Add(this.statusProgressBarLabel); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox3[this.statusProgressBarLabel])); w7.Position = 0; w7.Expand = false; w7.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.statusProgressBar = new Gtk.ProgressBar(); this.statusProgressBar.Name = "statusProgressBar"; this.statusProgressBar.Text = Mono.Unix.Catalog.GetString(" "); this.hbox3.Add(this.statusProgressBar); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox3[this.statusProgressBar])); w8.Position = 1; this.vbox4.Add(this.hbox3); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbox3])); w9.Position = 0; w9.Expand = false; w9.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.frame1 = new Gtk.Frame(); this.frame1.WidthRequest = 260; this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame1.Gtk.Container+ContainerChild this.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(12)); // Container child GtkAlignment.Gtk.Container+ContainerChild this.table8 = new Gtk.Table(((uint)(5)), ((uint)(2)), false); this.table8.Name = "table8"; this.table8.RowSpacing = ((uint)(6)); this.table8.ColumnSpacing = ((uint)(6)); // Container child table8.Gtk.Table+TableChild this.downloadedValueLabel = new Gtk.Label(); this.downloadedValueLabel.Name = "downloadedValueLabel"; this.downloadedValueLabel.Xalign = 0F; this.table8.Add(this.downloadedValueLabel); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table8[this.downloadedValueLabel])); w10.TopAttach = ((uint)(1)); w10.BottomAttach = ((uint)(2)); w10.LeftAttach = ((uint)(1)); w10.RightAttach = ((uint)(2)); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table8.Gtk.Table+TableChild this.elapsedTimeLabel = new Gtk.Label(); this.elapsedTimeLabel.Name = "elapsedTimeLabel"; this.elapsedTimeLabel.Xalign = 0F; this.elapsedTimeLabel.LabelProp = Mono.Unix.Catalog.GetString("Elapsed Time:"); this.table8.Add(this.elapsedTimeLabel); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table8[this.elapsedTimeLabel])); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); // Container child table8.Gtk.Table+TableChild this.elapsedTimeValueLabel = new Gtk.Label(); this.elapsedTimeValueLabel.Name = "elapsedTimeValueLabel"; this.elapsedTimeValueLabel.Xalign = 0F; this.table8.Add(this.elapsedTimeValueLabel); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table8[this.elapsedTimeValueLabel])); w12.LeftAttach = ((uint)(1)); w12.RightAttach = ((uint)(2)); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table8.Gtk.Table+TableChild this.hashFailsLabel = new Gtk.Label(); this.hashFailsLabel.Name = "hashFailsLabel"; this.hashFailsLabel.Xalign = 0F; this.table8.Add(this.hashFailsLabel); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table8[this.hashFailsLabel])); w13.TopAttach = ((uint)(3)); w13.BottomAttach = ((uint)(4)); w13.LeftAttach = ((uint)(1)); w13.RightAttach = ((uint)(2)); w13.XOptions = ((Gtk.AttachOptions)(4)); w13.YOptions = ((Gtk.AttachOptions)(4)); // Container child table8.Gtk.Table+TableChild this.label21 = new Gtk.Label(); this.label21.Name = "label21"; this.label21.Xalign = 0F; this.label21.LabelProp = Mono.Unix.Catalog.GetString("Downloaded:"); this.table8.Add(this.label21); Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table8[this.label21])); w14.TopAttach = ((uint)(1)); w14.BottomAttach = ((uint)(2)); w14.XOptions = ((Gtk.AttachOptions)(4)); w14.YOptions = ((Gtk.AttachOptions)(4)); // Container child table8.Gtk.Table+TableChild this.label22 = new Gtk.Label(); this.label22.Name = "label22"; this.label22.Xalign = 0F; this.label22.LabelProp = Mono.Unix.Catalog.GetString("Uploaded:"); this.table8.Add(this.label22); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table8[this.label22])); w15.TopAttach = ((uint)(2)); w15.BottomAttach = ((uint)(3)); w15.XOptions = ((Gtk.AttachOptions)(4)); w15.YOptions = ((Gtk.AttachOptions)(4)); // Container child table8.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.Xalign = 0F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Hash Fails:"); this.table8.Add(this.label3); Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table8[this.label3])); w16.TopAttach = ((uint)(3)); w16.BottomAttach = ((uint)(4)); w16.XOptions = ((Gtk.AttachOptions)(4)); w16.YOptions = ((Gtk.AttachOptions)(4)); // Container child table8.Gtk.Table+TableChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.Xalign = 0F; this.label5.LabelProp = Mono.Unix.Catalog.GetString("Swarm Speed:"); this.table8.Add(this.label5); Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table8[this.label5])); w17.TopAttach = ((uint)(4)); w17.BottomAttach = ((uint)(5)); w17.XOptions = ((Gtk.AttachOptions)(4)); w17.YOptions = ((Gtk.AttachOptions)(4)); // Container child table8.Gtk.Table+TableChild this.swarmSpeedLabel = new Gtk.Label(); this.swarmSpeedLabel.Name = "swarmSpeedLabel"; this.swarmSpeedLabel.Xalign = 0F; this.table8.Add(this.swarmSpeedLabel); Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table8[this.swarmSpeedLabel])); w18.TopAttach = ((uint)(4)); w18.BottomAttach = ((uint)(5)); w18.LeftAttach = ((uint)(1)); w18.RightAttach = ((uint)(2)); w18.XOptions = ((Gtk.AttachOptions)(4)); w18.YOptions = ((Gtk.AttachOptions)(4)); // Container child table8.Gtk.Table+TableChild this.uploadedValueLabel = new Gtk.Label(); this.uploadedValueLabel.Name = "uploadedValueLabel"; this.uploadedValueLabel.Xalign = 0F; this.table8.Add(this.uploadedValueLabel); Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table8[this.uploadedValueLabel])); w19.TopAttach = ((uint)(2)); w19.BottomAttach = ((uint)(3)); w19.LeftAttach = ((uint)(1)); w19.RightAttach = ((uint)(2)); w19.XOptions = ((Gtk.AttachOptions)(4)); w19.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment.Add(this.table8); this.frame1.Add(this.GtkAlignment); this.GtkLabel6 = new Gtk.Label(); this.GtkLabel6.Name = "GtkLabel6"; this.GtkLabel6.LabelProp = Mono.Unix.Catalog.GetString("<b>Transfer</b>"); this.GtkLabel6.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel6; this.hbox1.Add(this.frame1); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame1])); w22.Position = 0; w22.Expand = false; w22.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.frame2 = new Gtk.Frame(); this.frame2.Name = "frame2"; this.frame2.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame2.Gtk.Container+ContainerChild this.GtkAlignment1 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment1.Name = "GtkAlignment1"; this.GtkAlignment1.LeftPadding = ((uint)(12)); // Container child GtkAlignment1.Gtk.Container+ContainerChild this.table7 = new Gtk.Table(((uint)(5)), ((uint)(2)), false); this.table7.Name = "table7"; this.table7.RowSpacing = ((uint)(6)); this.table7.ColumnSpacing = ((uint)(6)); // Container child table7.Gtk.Table+TableChild this.label19 = new Gtk.Label(); this.label19.Name = "label19"; this.label19.Xalign = 0F; this.label19.LabelProp = Mono.Unix.Catalog.GetString("Update In:"); this.table7.Add(this.label19); Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.table7[this.label19])); w23.TopAttach = ((uint)(3)); w23.BottomAttach = ((uint)(4)); w23.XOptions = ((Gtk.AttachOptions)(4)); w23.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.label20 = new Gtk.Label(); this.label20.Name = "label20"; this.label20.Xalign = 0F; this.label20.LabelProp = Mono.Unix.Catalog.GetString("Status:"); this.table7.Add(this.label20); Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table7[this.label20])); w24.TopAttach = ((uint)(1)); w24.BottomAttach = ((uint)(2)); w24.XOptions = ((Gtk.AttachOptions)(4)); w24.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.label23 = new Gtk.Label(); this.label23.Name = "label23"; this.label23.Xalign = 0F; this.label23.LabelProp = Mono.Unix.Catalog.GetString("Message:"); this.table7.Add(this.label23); Gtk.Table.TableChild w25 = ((Gtk.Table.TableChild)(this.table7[this.label23])); w25.TopAttach = ((uint)(4)); w25.BottomAttach = ((uint)(5)); w25.XOptions = ((Gtk.AttachOptions)(4)); w25.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.Xalign = 0F; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Last Updated:"); this.table7.Add(this.label4); Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.table7[this.label4])); w26.TopAttach = ((uint)(2)); w26.BottomAttach = ((uint)(3)); w26.XOptions = ((Gtk.AttachOptions)(4)); w26.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.label8 = new Gtk.Label(); this.label8.Name = "label8"; this.label8.Xalign = 0F; this.label8.LabelProp = Mono.Unix.Catalog.GetString("URL:"); this.table7.Add(this.label8); Gtk.Table.TableChild w27 = ((Gtk.Table.TableChild)(this.table7[this.label8])); w27.XOptions = ((Gtk.AttachOptions)(4)); w27.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.lastUpdatedLabel = new Gtk.Label(); this.lastUpdatedLabel.Name = "lastUpdatedLabel"; this.lastUpdatedLabel.Xalign = 0F; this.table7.Add(this.lastUpdatedLabel); Gtk.Table.TableChild w28 = ((Gtk.Table.TableChild)(this.table7[this.lastUpdatedLabel])); w28.TopAttach = ((uint)(2)); w28.BottomAttach = ((uint)(3)); w28.LeftAttach = ((uint)(1)); w28.RightAttach = ((uint)(2)); w28.XOptions = ((Gtk.AttachOptions)(4)); w28.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.messageLabel = new Gtk.Label(); this.messageLabel.Name = "messageLabel"; this.messageLabel.Xalign = 0F; this.messageLabel.Wrap = true; this.table7.Add(this.messageLabel); Gtk.Table.TableChild w29 = ((Gtk.Table.TableChild)(this.table7[this.messageLabel])); w29.TopAttach = ((uint)(4)); w29.BottomAttach = ((uint)(5)); w29.LeftAttach = ((uint)(1)); w29.RightAttach = ((uint)(2)); w29.XOptions = ((Gtk.AttachOptions)(4)); w29.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.trackerStatusValueLabel = new Gtk.Label(); this.trackerStatusValueLabel.Name = "trackerStatusValueLabel"; this.trackerStatusValueLabel.Xalign = 0F; this.table7.Add(this.trackerStatusValueLabel); Gtk.Table.TableChild w30 = ((Gtk.Table.TableChild)(this.table7[this.trackerStatusValueLabel])); w30.TopAttach = ((uint)(1)); w30.BottomAttach = ((uint)(2)); w30.LeftAttach = ((uint)(1)); w30.RightAttach = ((uint)(2)); w30.XOptions = ((Gtk.AttachOptions)(4)); w30.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.trackerUrlValueLabel = new Gtk.Label(); this.trackerUrlValueLabel.Name = "trackerUrlValueLabel"; this.trackerUrlValueLabel.Xalign = 0F; this.table7.Add(this.trackerUrlValueLabel); Gtk.Table.TableChild w31 = ((Gtk.Table.TableChild)(this.table7[this.trackerUrlValueLabel])); w31.LeftAttach = ((uint)(1)); w31.RightAttach = ((uint)(2)); w31.XOptions = ((Gtk.AttachOptions)(4)); w31.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.updateInLabel = new Gtk.Label(); this.updateInLabel.Name = "updateInLabel"; this.updateInLabel.Xalign = 0F; this.table7.Add(this.updateInLabel); Gtk.Table.TableChild w32 = ((Gtk.Table.TableChild)(this.table7[this.updateInLabel])); w32.TopAttach = ((uint)(3)); w32.BottomAttach = ((uint)(4)); w32.LeftAttach = ((uint)(1)); w32.RightAttach = ((uint)(2)); w32.XOptions = ((Gtk.AttachOptions)(4)); w32.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment1.Add(this.table7); this.frame2.Add(this.GtkAlignment1); this.GtkLabel7 = new Gtk.Label(); this.GtkLabel7.Name = "GtkLabel7"; this.GtkLabel7.LabelProp = Mono.Unix.Catalog.GetString("<b>Tracker</b>"); this.GtkLabel7.UseMarkup = true; this.frame2.LabelWidget = this.GtkLabel7; this.hbox1.Add(this.frame2); Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame2])); w35.Position = 1; w35.Expand = false; w35.Fill = false; this.vbox4.Add(this.hbox1); Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbox1])); w36.Position = 1; w36.Expand = false; w36.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.frame3 = new Gtk.Frame(); this.frame3.Name = "frame3"; this.frame3.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame3.Gtk.Container+ContainerChild this.GtkAlignment2 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment2.Name = "GtkAlignment2"; this.GtkAlignment2.LeftPadding = ((uint)(12)); // Container child GtkAlignment2.Gtk.Container+ContainerChild this.table9 = new Gtk.Table(((uint)(4)), ((uint)(2)), false); this.table9.Name = "table9"; this.table9.RowSpacing = ((uint)(6)); this.table9.ColumnSpacing = ((uint)(6)); // Container child table9.Gtk.Table+TableChild this.commentValueLabel = new Gtk.Label(); this.commentValueLabel.Name = "commentValueLabel"; this.commentValueLabel.Xalign = 0F; this.table9.Add(this.commentValueLabel); Gtk.Table.TableChild w37 = ((Gtk.Table.TableChild)(this.table9[this.commentValueLabel])); w37.TopAttach = ((uint)(3)); w37.BottomAttach = ((uint)(4)); w37.LeftAttach = ((uint)(1)); w37.RightAttach = ((uint)(2)); w37.XOptions = ((Gtk.AttachOptions)(4)); w37.YOptions = ((Gtk.AttachOptions)(4)); // Container child table9.Gtk.Table+TableChild this.createdOnValueLabel = new Gtk.Label(); this.createdOnValueLabel.Name = "createdOnValueLabel"; this.createdOnValueLabel.Xalign = 0F; this.table9.Add(this.createdOnValueLabel); Gtk.Table.TableChild w38 = ((Gtk.Table.TableChild)(this.table9[this.createdOnValueLabel])); w38.TopAttach = ((uint)(2)); w38.BottomAttach = ((uint)(3)); w38.LeftAttach = ((uint)(1)); w38.RightAttach = ((uint)(2)); w38.XOptions = ((Gtk.AttachOptions)(4)); w38.YOptions = ((Gtk.AttachOptions)(4)); // Container child table9.Gtk.Table+TableChild this.label10 = new Gtk.Label(); this.label10.Name = "label10"; this.label10.Xalign = 0F; this.label10.LabelProp = Mono.Unix.Catalog.GetString("Size:"); this.table9.Add(this.label10); Gtk.Table.TableChild w39 = ((Gtk.Table.TableChild)(this.table9[this.label10])); w39.TopAttach = ((uint)(1)); w39.BottomAttach = ((uint)(2)); w39.XOptions = ((Gtk.AttachOptions)(4)); w39.YOptions = ((Gtk.AttachOptions)(4)); // Container child table9.Gtk.Table+TableChild this.label11 = new Gtk.Label(); this.label11.Name = "label11"; this.label11.Xalign = 0F; this.label11.LabelProp = Mono.Unix.Catalog.GetString("Created on:"); this.table9.Add(this.label11); Gtk.Table.TableChild w40 = ((Gtk.Table.TableChild)(this.table9[this.label11])); w40.TopAttach = ((uint)(2)); w40.BottomAttach = ((uint)(3)); w40.XOptions = ((Gtk.AttachOptions)(4)); w40.YOptions = ((Gtk.AttachOptions)(4)); // Container child table9.Gtk.Table+TableChild this.label12 = new Gtk.Label(); this.label12.Name = "label12"; this.label12.Xalign = 0F; this.label12.LabelProp = Mono.Unix.Catalog.GetString("Comment:"); this.table9.Add(this.label12); Gtk.Table.TableChild w41 = ((Gtk.Table.TableChild)(this.table9[this.label12])); w41.TopAttach = ((uint)(3)); w41.BottomAttach = ((uint)(4)); w41.XOptions = ((Gtk.AttachOptions)(4)); w41.YOptions = ((Gtk.AttachOptions)(4)); // Container child table9.Gtk.Table+TableChild this.label7 = new Gtk.Label(); this.label7.Name = "label7"; this.label7.Xalign = 0F; this.label7.LabelProp = Mono.Unix.Catalog.GetString("Save path:"); this.table9.Add(this.label7); Gtk.Table.TableChild w42 = ((Gtk.Table.TableChild)(this.table9[this.label7])); w42.XOptions = ((Gtk.AttachOptions)(4)); w42.YOptions = ((Gtk.AttachOptions)(4)); // Container child table9.Gtk.Table+TableChild this.savePathValueLabel = new Gtk.Label(); this.savePathValueLabel.Name = "savePathValueLabel"; this.savePathValueLabel.Xalign = 0F; this.table9.Add(this.savePathValueLabel); Gtk.Table.TableChild w43 = ((Gtk.Table.TableChild)(this.table9[this.savePathValueLabel])); w43.LeftAttach = ((uint)(1)); w43.RightAttach = ((uint)(2)); w43.XOptions = ((Gtk.AttachOptions)(4)); w43.YOptions = ((Gtk.AttachOptions)(4)); // Container child table9.Gtk.Table+TableChild this.sizeValueLabel = new Gtk.Label(); this.sizeValueLabel.Name = "sizeValueLabel"; this.sizeValueLabel.Xalign = 0F; this.table9.Add(this.sizeValueLabel); Gtk.Table.TableChild w44 = ((Gtk.Table.TableChild)(this.table9[this.sizeValueLabel])); w44.TopAttach = ((uint)(1)); w44.BottomAttach = ((uint)(2)); w44.LeftAttach = ((uint)(1)); w44.RightAttach = ((uint)(2)); w44.XOptions = ((Gtk.AttachOptions)(4)); w44.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment2.Add(this.table9); this.frame3.Add(this.GtkAlignment2); this.GtkLabel8 = new Gtk.Label(); this.GtkLabel8.Name = "GtkLabel8"; this.GtkLabel8.LabelProp = Mono.Unix.Catalog.GetString("<b>General</b>"); this.GtkLabel8.UseMarkup = true; this.frame3.LabelWidget = this.GtkLabel8; this.vbox4.Add(this.frame3); Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame3])); w47.Position = 2; w47.Expand = false; w47.Fill = false; w6.Add(this.vbox4); this.scrolledwindow1.Add(w6); this.detailNotebook.Add(this.scrolledwindow1); // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("General"); this.detailNotebook.SetTabLabel(this.scrolledwindow1, this.label1); this.label1.ShowAll(); // Container child detailNotebook.Gtk.Notebook+NotebookChild this.filesScrolledWindow = new Gtk.ScrolledWindow(); this.filesScrolledWindow.CanFocus = true; this.filesScrolledWindow.Name = "filesScrolledWindow"; this.filesScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); this.detailNotebook.Add(this.filesScrolledWindow); Gtk.Notebook.NotebookChild w51 = ((Gtk.Notebook.NotebookChild)(this.detailNotebook[this.filesScrolledWindow])); w51.Position = 1; // Notebook tab this.label9 = new Gtk.Label(); this.label9.Name = "label9"; this.label9.LabelProp = Mono.Unix.Catalog.GetString("Files"); this.detailNotebook.SetTabLabel(this.filesScrolledWindow, this.label9); this.label9.ShowAll(); // Container child detailNotebook.Gtk.Notebook+NotebookChild this.piecesScrolledWindow = new Gtk.ScrolledWindow(); this.piecesScrolledWindow.CanFocus = true; this.piecesScrolledWindow.Name = "piecesScrolledWindow"; this.piecesScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); this.detailNotebook.Add(this.piecesScrolledWindow); Gtk.Notebook.NotebookChild w52 = ((Gtk.Notebook.NotebookChild)(this.detailNotebook[this.piecesScrolledWindow])); w52.Position = 2; // Notebook tab this.label18 = new Gtk.Label(); this.label18.Name = "label18"; this.label18.LabelProp = Mono.Unix.Catalog.GetString("Pieces"); this.detailNotebook.SetTabLabel(this.piecesScrolledWindow, this.label18); this.label18.ShowAll(); // Container child detailNotebook.Gtk.Notebook+NotebookChild this.peersScrolledWindow = new Gtk.ScrolledWindow(); this.peersScrolledWindow.CanFocus = true; this.peersScrolledWindow.Name = "peersScrolledWindow"; this.peersScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); this.detailNotebook.Add(this.peersScrolledWindow); Gtk.Notebook.NotebookChild w53 = ((Gtk.Notebook.NotebookChild)(this.detailNotebook[this.peersScrolledWindow])); w53.Position = 3; // Notebook tab this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.LabelProp = Mono.Unix.Catalog.GetString("Peers"); this.detailNotebook.SetTabLabel(this.peersScrolledWindow, this.label6); this.label6.ShowAll(); // Container child detailNotebook.Gtk.Notebook+NotebookChild this.scrolledwindow2 = new Gtk.ScrolledWindow(); this.scrolledwindow2.CanFocus = true; this.scrolledwindow2.Name = "scrolledwindow2"; this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow2.Gtk.Container+ContainerChild Gtk.Viewport w54 = new Gtk.Viewport(); w54.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport5.Gtk.Container+ContainerChild this.hbox13 = new Gtk.HBox(); this.hbox13.Name = "hbox13"; this.hbox13.Spacing = 6; // Container child hbox13.Gtk.Box+BoxChild this.vbox6 = new Gtk.VBox(); this.vbox6.Name = "vbox6"; this.vbox6.Spacing = 6; // Container child vbox6.Gtk.Box+BoxChild this.frame5 = new Gtk.Frame(); this.frame5.Name = "frame5"; this.frame5.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame5.Gtk.Container+ContainerChild this.GtkAlignment4 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment4.Name = "GtkAlignment4"; this.GtkAlignment4.LeftPadding = ((uint)(12)); // Container child GtkAlignment4.Gtk.Container+ContainerChild this.table2 = new Gtk.Table(((uint)(5)), ((uint)(2)), false); this.table2.Name = "table2"; this.table2.RowSpacing = ((uint)(6)); this.table2.ColumnSpacing = ((uint)(6)); // Container child table2.Gtk.Table+TableChild this.label14 = new Gtk.Label(); this.label14.Name = "label14"; this.label14.Xalign = 0F; this.label14.LabelProp = Mono.Unix.Catalog.GetString("Maximum upload rate:"); this.table2.Add(this.label14); Gtk.Table.TableChild w55 = ((Gtk.Table.TableChild)(this.table2[this.label14])); w55.XOptions = ((Gtk.AttachOptions)(4)); w55.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label15 = new Gtk.Label(); this.label15.Name = "label15"; this.label15.Xalign = 0F; this.label15.LabelProp = Mono.Unix.Catalog.GetString("Maximum download rate:"); this.table2.Add(this.label15); Gtk.Table.TableChild w56 = ((Gtk.Table.TableChild)(this.table2[this.label15])); w56.TopAttach = ((uint)(1)); w56.BottomAttach = ((uint)(2)); w56.XOptions = ((Gtk.AttachOptions)(4)); w56.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label16 = new Gtk.Label(); this.label16.Name = "label16"; this.label16.Xalign = 0F; this.label16.LabelProp = Mono.Unix.Catalog.GetString("Maximum connections:"); this.table2.Add(this.label16); Gtk.Table.TableChild w57 = ((Gtk.Table.TableChild)(this.table2[this.label16])); w57.TopAttach = ((uint)(2)); w57.BottomAttach = ((uint)(3)); w57.XOptions = ((Gtk.AttachOptions)(4)); w57.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label17 = new Gtk.Label(); this.label17.Name = "label17"; this.label17.Xalign = 0F; this.label17.LabelProp = Mono.Unix.Catalog.GetString("Upload slots:"); this.table2.Add(this.label17); Gtk.Table.TableChild w58 = ((Gtk.Table.TableChild)(this.table2[this.label17])); w58.TopAttach = ((uint)(3)); w58.BottomAttach = ((uint)(4)); w58.XOptions = ((Gtk.AttachOptions)(4)); w58.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.torrentDownloadRateSpinButton = new Gtk.SpinButton(0, 100, 1); this.torrentDownloadRateSpinButton.CanFocus = true; this.torrentDownloadRateSpinButton.Name = "torrentDownloadRateSpinButton"; this.torrentDownloadRateSpinButton.Adjustment.PageIncrement = 10; this.torrentDownloadRateSpinButton.ClimbRate = 1; this.torrentDownloadRateSpinButton.Numeric = true; this.table2.Add(this.torrentDownloadRateSpinButton); Gtk.Table.TableChild w59 = ((Gtk.Table.TableChild)(this.table2[this.torrentDownloadRateSpinButton])); w59.TopAttach = ((uint)(1)); w59.BottomAttach = ((uint)(2)); w59.LeftAttach = ((uint)(1)); w59.RightAttach = ((uint)(2)); w59.XOptions = ((Gtk.AttachOptions)(4)); w59.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.torrentMaxConnectionsSpinButton = new Gtk.SpinButton(0, 100, 1); this.torrentMaxConnectionsSpinButton.CanFocus = true; this.torrentMaxConnectionsSpinButton.Name = "torrentMaxConnectionsSpinButton"; this.torrentMaxConnectionsSpinButton.Adjustment.PageIncrement = 10; this.torrentMaxConnectionsSpinButton.ClimbRate = 1; this.torrentMaxConnectionsSpinButton.Numeric = true; this.table2.Add(this.torrentMaxConnectionsSpinButton); Gtk.Table.TableChild w60 = ((Gtk.Table.TableChild)(this.table2[this.torrentMaxConnectionsSpinButton])); w60.TopAttach = ((uint)(2)); w60.BottomAttach = ((uint)(3)); w60.LeftAttach = ((uint)(1)); w60.RightAttach = ((uint)(2)); w60.XOptions = ((Gtk.AttachOptions)(4)); w60.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.torrentUploadRateSpinButton = new Gtk.SpinButton(0, 100, 1); this.torrentUploadRateSpinButton.CanFocus = true; this.torrentUploadRateSpinButton.Name = "torrentUploadRateSpinButton"; this.torrentUploadRateSpinButton.Adjustment.PageIncrement = 10; this.torrentUploadRateSpinButton.ClimbRate = 1; this.torrentUploadRateSpinButton.Numeric = true; this.table2.Add(this.torrentUploadRateSpinButton); Gtk.Table.TableChild w61 = ((Gtk.Table.TableChild)(this.table2[this.torrentUploadRateSpinButton])); w61.LeftAttach = ((uint)(1)); w61.RightAttach = ((uint)(2)); w61.XOptions = ((Gtk.AttachOptions)(4)); w61.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.torrentUploadSlotSpinButton = new Gtk.SpinButton(0, 100, 1); this.torrentUploadSlotSpinButton.CanFocus = true; this.torrentUploadSlotSpinButton.Name = "torrentUploadSlotSpinButton"; this.torrentUploadSlotSpinButton.Adjustment.PageIncrement = 10; this.torrentUploadSlotSpinButton.ClimbRate = 1; this.torrentUploadSlotSpinButton.Numeric = true; this.table2.Add(this.torrentUploadSlotSpinButton); Gtk.Table.TableChild w62 = ((Gtk.Table.TableChild)(this.table2[this.torrentUploadSlotSpinButton])); w62.TopAttach = ((uint)(3)); w62.BottomAttach = ((uint)(4)); w62.LeftAttach = ((uint)(1)); w62.RightAttach = ((uint)(2)); w62.XOptions = ((Gtk.AttachOptions)(4)); w62.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment4.Add(this.table2); this.frame5.Add(this.GtkAlignment4); this.GtkLabel11 = new Gtk.Label(); this.GtkLabel11.Name = "GtkLabel11"; this.GtkLabel11.LabelProp = Mono.Unix.Catalog.GetString("<b>Bandwidth</b>"); this.GtkLabel11.UseMarkup = true; this.frame5.LabelWidget = this.GtkLabel11; this.vbox6.Add(this.frame5); Gtk.Box.BoxChild w65 = ((Gtk.Box.BoxChild)(this.vbox6[this.frame5])); w65.Position = 0; this.hbox13.Add(this.vbox6); Gtk.Box.BoxChild w66 = ((Gtk.Box.BoxChild)(this.hbox13[this.vbox6])); w66.Position = 0; w66.Expand = false; w66.Fill = false; w54.Add(this.hbox13); this.scrolledwindow2.Add(w54); this.detailNotebook.Add(this.scrolledwindow2); Gtk.Notebook.NotebookChild w69 = ((Gtk.Notebook.NotebookChild)(this.detailNotebook[this.scrolledwindow2])); w69.Position = 4; // Notebook tab this.label13 = new Gtk.Label(); this.label13.Name = "label13"; this.label13.LabelProp = Mono.Unix.Catalog.GetString("Options"); this.detailNotebook.SetTabLabel(this.scrolledwindow2, this.label13); this.label13.ShowAll(); this.vPaned.Add(this.detailNotebook); this.hPaned.Add(this.vPaned); this.vbox1.Add(this.hPaned); Gtk.Box.BoxChild w72 = ((Gtk.Box.BoxChild)(this.vbox1[this.hPaned])); w72.Position = 2; // Container child vbox1.Gtk.Box+BoxChild this.alignment4 = new Gtk.Alignment(1F, 0.5F, 0F, 1F); this.alignment4.Name = "alignment4"; // Container child alignment4.Gtk.Container+ContainerChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.natStatus = new Monsoon.NatWidget(); this.natStatus.WidthRequest = 28; this.natStatus.Name = "natStatus"; this.natStatus.HasIncoming = false; this.natStatus.RouterFound = false; this.natStatus.PortForwarded = false; this.hbox4.Add(this.natStatus); Gtk.Box.BoxChild w73 = ((Gtk.Box.BoxChild)(this.hbox4[this.natStatus])); w73.Position = 0; w73.Expand = false; w73.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><toolbar name='statusToolbar'/></ui>"); this.statusToolbar = ((Gtk.Toolbar)(this.UIManager.GetWidget("/statusToolbar"))); this.statusToolbar.Name = "statusToolbar"; this.statusToolbar.ShowArrow = false; this.statusToolbar.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.statusToolbar.IconSize = ((Gtk.IconSize)(1)); this.hbox4.Add(this.statusToolbar); Gtk.Box.BoxChild w74 = ((Gtk.Box.BoxChild)(this.hbox4[this.statusToolbar])); w74.Position = 1; this.alignment4.Add(this.hbox4); this.vbox1.Add(this.alignment4); Gtk.Box.BoxChild w76 = ((Gtk.Box.BoxChild)(this.vbox1[this.alignment4])); w76.Position = 3; w76.Expand = false; w76.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 765; this.DefaultHeight = 658; this.Hide(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.About.Activated += new System.EventHandler(this.OnAboutActivated); this.Quit.Activated += new System.EventHandler(this.OnQuitActivated); this.stopTorrentButton.Activated += new System.EventHandler(this.OnStopTorrentActivated); this.removeTorrentButton.Activated += new System.EventHandler(this.OnRemoveTorrentButtonActivated); this.preferences.Activated += new System.EventHandler(this.OnPreferencesActivated); this.deleteTorrentButton.Activated += new System.EventHandler(this.OnDeleteTorrentButtonActivated); this.EditColumns.Activated += new System.EventHandler(this.OnColumnsActivated); this.ShowLabels.Activated += new System.EventHandler(this.OnShowLabelsActivated); this.ShowDetailedInfo.Activated += new System.EventHandler(this.OnShowDetailedInfoActivated); this.OpenTorrent.Activated += new System.EventHandler(this.OnOpenActivated); this.startTorrentButton.Activated += new System.EventHandler(this.OnStartTorrentActivated); this.NewTorrent.Activated += new System.EventHandler(this.OnNewActivated); this.Plugins.Activated += new System.EventHandler(this.OnPluginsActivated); this.ReportBugAction.Activated += new System.EventHandler(this.OnReportBugActivated); this.gotoTopAction.Activated += new System.EventHandler(this.OnPriorityHighest); this.gotoBottomAction.Activated += new System.EventHandler(this.OnPriorityLowest); this.CloseAction.Activated += new System.EventHandler(this.OnCloseActionActivated); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget OpenVP.GtkGui.MainWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); this.Preset = new Gtk.Action("Preset", Mono.Unix.Catalog.GetString("_Preset"), null, null); this.Preset.ShortLabel = Mono.Unix.Catalog.GetString("_Preset"); w1.Add(this.Preset, null); this.@new = new Gtk.Action("new", Mono.Unix.Catalog.GetString("_New"), null, "gtk-new"); [email protected] = Mono.Unix.Catalog.GetString("_New"); w1.Add(this.@new, null); this.open = new Gtk.Action("open", Mono.Unix.Catalog.GetString("_Open"), null, "gtk-open"); this.open.ShortLabel = Mono.Unix.Catalog.GetString("_Open"); w1.Add(this.open, null); this.save = new Gtk.Action("save", Mono.Unix.Catalog.GetString("_Save"), null, "gtk-save"); this.save.Sensitive = false; this.save.ShortLabel = Mono.Unix.Catalog.GetString("_Save"); w1.Add(this.save, null); this.saveAs = new Gtk.Action("saveAs", Mono.Unix.Catalog.GetString("Save _As"), null, "gtk-save-as"); this.saveAs.Sensitive = false; this.saveAs.ShortLabel = Mono.Unix.Catalog.GetString("Save _As"); w1.Add(this.saveAs, 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.LinearPreset = new Gtk.Action("LinearPreset", Mono.Unix.Catalog.GetString("_Linear preset"), null, null); this.LinearPreset.ShortLabel = Mono.Unix.Catalog.GetString("_Linear preset"); w1.Add(this.LinearPreset, null); this.Options = new Gtk.Action("Options", Mono.Unix.Catalog.GetString("_Options"), null, null); this.Options.ShortLabel = Mono.Unix.Catalog.GetString("_Options"); w1.Add(this.Options, null); this.WaitForDataSliceToDraw = new Gtk.ToggleAction("WaitForDataSliceToDraw", Mono.Unix.Catalog.GetString("_Wait for data slice to draw"), null, null); this.WaitForDataSliceToDraw.Active = true; this.WaitForDataSliceToDraw.ShortLabel = Mono.Unix.Catalog.GetString("_Wait for data slice to draw"); w1.Add(this.WaitForDataSliceToDraw, null); this.AllowSlicesToBeSkipped = new Gtk.ToggleAction("AllowSlicesToBeSkipped", Mono.Unix.Catalog.GetString("_Allow slices to be skipped"), null, null); this.AllowSlicesToBeSkipped.ShortLabel = Mono.Unix.Catalog.GetString("_Allow slices to be skipped"); w1.Add(this.AllowSlicesToBeSkipped, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "OpenVP.GtkGui.MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Open Visualization Platform"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child OpenVP.GtkGui.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='Preset' action='Preset'><menu name='new' action='new'><menuitem name='LinearPreset' action='LinearPreset'/></menu><menuitem name='open' action='open'/><menuitem name='save' action='save'/><menuitem name='saveAs' action='saveAs'/><separator/><menuitem name='quit' action='quit'/></menu><menu name='Options' action='Options'><menuitem name='WaitForDataSliceToDraw' action='WaitForDataSliceToDraw'/><menuitem name='AllowSlicesToBeSkipped' action='AllowSlicesToBeSkipped'/></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.PresetPane = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.PresetPane.Name = "PresetPane"; this.vbox1.Add(this.PresetPane); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.PresetPane])); w3.Position = 1; // Container child vbox1.Gtk.Box+BoxChild this.StatusBar = new Gtk.Statusbar(); this.StatusBar.Name = "StatusBar"; this.StatusBar.Spacing = 6; this.vbox1.Add(this.StatusBar); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.StatusBar])); w4.Position = 2; w4.Expand = false; w4.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 530; this.DefaultHeight = 395; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.open.Activated += new System.EventHandler(this.OnOpenActivated); this.save.Activated += new System.EventHandler(this.OnSaveActivated); this.saveAs.Activated += new System.EventHandler(this.OnSaveAsActivated); this.quit.Activated += new System.EventHandler(this.OnQuitActivated); this.LinearPreset.Activated += new System.EventHandler(this.OnLinearPresetActivated); this.WaitForDataSliceToDraw.Toggled += new System.EventHandler(this.OnWaitForDataSliceToDrawToggled); this.AllowSlicesToBeSkipped.Toggled += new System.EventHandler(this.OnAllowSlicesToBeSkippedToggled); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Mono.CSharp.Gui.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.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.AttachToProcessAction = new Gtk.Action("AttachToProcessAction", Mono.Unix.Catalog.GetString("Attach to Process"), null, null); this.AttachToProcessAction.ShortLabel = Mono.Unix.Catalog.GetString("Attach to Process"); w1.Add(this.AttachToProcessAction, 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.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.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.gtkpane = new Gtk.ToggleAction("gtkpane", Mono.Unix.Catalog.GetString("Gtk Pane"), null, null); this.gtkpane.ShortLabel = Mono.Unix.Catalog.GetString("Gtk Pane"); w1.Add(this.gtkpane, 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.DescribeTypeAction = new Gtk.Action("DescribeTypeAction", Mono.Unix.Catalog.GetString("Describe Type"), null, null); this.DescribeTypeAction.ShortLabel = Mono.Unix.Catalog.GetString("Describe Type"); w1.Add(this.DescribeTypeAction, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "Mono.CSharp.Gui.MainWindow"; this.Title = Mono.Unix.Catalog.GetString("MainWindow"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.DefaultWidth = 600; this.DefaultHeight = 500; // Container child Mono.CSharp.Gui.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='AttachToProcessAction' action='AttachToProcessAction'/><separator/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='ViewAction' action='ViewAction'><menuitem name='gtkpane' action='gtkpane'/></menu><menu name='ToolsAction' action='ToolsAction'><menuitem name='DescribeTypeAction' action='DescribeTypeAction'/></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.notebook1 = new Gtk.Notebook(); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 0; this.notebook1.ShowBorder = false; this.notebook1.ShowTabs = false; // Container child notebook1.Gtk.Notebook+NotebookChild this.hpaned = new Gtk.HPaned(); this.hpaned.CanFocus = true; this.hpaned.Name = "hpaned"; this.hpaned.Position = 472; // Container child hpaned.Gtk.Paned+PanedChild this.paned_container = new Gtk.EventBox(); this.paned_container.Name = "paned_container"; this.hpaned.Add(this.paned_container); Gtk.Paned.PanedChild w3 = ((Gtk.Paned.PanedChild)(this.hpaned[this.paned_container])); w3.Resize = false; // Container child hpaned.Gtk.Paned+PanedChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.expander1 = new Gtk.Expander(null); this.expander1.CanFocus = true; this.expander1.Name = "expander1"; this.expander1.Expanded = true; // Container child expander1.Gtk.Container+ContainerChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.Xpad = 10; this.label4.Xalign = 0.1F; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Set the contents of this pane by adding Gtk.Widgets children to the <b>PaneContainer</b> property. The PaneContainer is a Gtk.EventBox. \n\nTry it like this:\n\nLoadPackage (\"gtk-sharp-2.0\");\nvar l = new Label (\"Hello world\");\nPaneContainer.Add (l);\nl.ShowAll ();"); this.label4.UseMarkup = true; this.label4.Wrap = true; this.expander1.Add(this.label4); this.GtkLabel4 = new Gtk.Label(); this.GtkLabel4.Name = "GtkLabel4"; this.GtkLabel4.LabelProp = Mono.Unix.Catalog.GetString("<b>PaneContent</b>"); this.GtkLabel4.UseMarkup = true; this.GtkLabel4.UseUnderline = true; this.expander1.LabelWidget = this.GtkLabel4; this.vbox2.Add(this.expander1); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.expander1])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.eventbox = new Gtk.EventBox(); this.eventbox.Name = "eventbox"; this.vbox2.Add(this.eventbox); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.eventbox])); w6.Position = 1; this.hpaned.Add(this.vbox2); this.notebook1.Add(this.hpaned); // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("page1"); this.notebook1.SetTabLabel(this.hpaned, this.label1); this.label1.ShowAll(); // Container child notebook1.Gtk.Notebook+NotebookChild this.standalone_container = new Gtk.EventBox(); this.standalone_container.Name = "standalone_container"; // Container child standalone_container.Gtk.Container+ContainerChild this.shellnotebook = new Gtk.Notebook(); this.shellnotebook.CanFocus = true; this.shellnotebook.Name = "shellnotebook"; this.shellnotebook.CurrentPage = 0; this.shellnotebook.ShowTabs = false; this.shellnotebook.Scrollable = true; // Container child shellnotebook.Gtk.Notebook+NotebookChild this.sw = new Gtk.ScrolledWindow(); this.sw.CanFocus = true; this.sw.Name = "sw"; this.sw.ShadowType = ((Gtk.ShadowType)(1)); this.shellnotebook.Add(this.sw); // Notebook tab this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("C#"); this.shellnotebook.SetTabLabel(this.sw, this.label3); this.label3.ShowAll(); this.standalone_container.Add(this.shellnotebook); this.notebook1.Add(this.standalone_container); Gtk.Notebook.NotebookChild w11 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.standalone_container])); w11.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.standalone_container, this.label2); this.label2.ShowAll(); this.vbox1.Add(this.notebook1); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook1])); w12.Position = 1; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.QuitAction.Activated += new System.EventHandler(this.OnQuitActionActivated); this.AttachToProcessAction.Activated += new System.EventHandler(this.OnAttachToProcessActionActivated); this.DescribeTypeAction.Activated += new System.EventHandler(this.OnDescribeTypeActionActivated); }
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 static void Build(object obj, string id) { System.Collections.Hashtable bindings = new System.Collections.Hashtable(); if ((id == "sink.help")) { Gtk.Dialog cobj = ((Gtk.Dialog)(obj)); // Widget sink.help cobj.Title = "help"; cobj.WindowPosition = ((Gtk.WindowPosition)(4)); cobj.HasSeparator = false; cobj.Events = ((Gdk.EventMask)(256)); cobj.Name = "sink.help"; // Internal child sink.help.VBox Gtk.VBox w1 = cobj.VBox; w1.BorderWidth = ((uint)(2)); w1.Events = ((Gdk.EventMask)(256)); w1.Name = "dialog_VBox"; // Container child dialog_VBox.Gtk.Box+BoxChild Gtk.VBox w2 = new Gtk.VBox(); w2.Events = ((Gdk.EventMask)(0)); w2.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild Gtk.Alignment w3 = new Gtk.Alignment(0.5F, 0.5F, 0F, 1F); w3.TopPadding = ((uint)(15)); w3.BottomPadding = ((uint)(15)); w3.Events = ((Gdk.EventMask)(0)); w3.Name = "alignment1"; // Container child alignment1.Gtk.Container+ContainerChild Gtk.HBox w4 = new Gtk.HBox(); w4.Spacing = 15; w4.Events = ((Gdk.EventMask)(0)); w4.Name = "hbox3"; // Container child hbox3.Gtk.Box+BoxChild Gtk.Image w5 = new Gtk.Image(); w5.Pixbuf = new Gdk.Pixbuf("sink.bmp"); w5.Events = ((Gdk.EventMask)(0)); w5.Name = "image5"; bindings["image5"] = w5; w4.Add(w5); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w4[w5])); w6.Position = 0; w6.Expand = false; w6.Fill = false; // Container child hbox3.Gtk.Box+BoxChild Gtk.Label w7 = new Gtk.Label(); w7.LabelProp = "SINK"; w7.UseUnderline = true; w7.Events = ((Gdk.EventMask)(0)); w7.Name = "label4"; bindings["label4"] = w7; w4.Add(w7); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w4[w7])); w8.Position = 1; w8.Expand = false; w8.Fill = false; bindings["hbox3"] = w4; w3.Add(w4); bindings["alignment1"] = w3; w2.Add(w3); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w2[w3])); w10.Position = 0; w10.Expand = false; w10.Fill = false; // Container child vbox1.Gtk.Box+BoxChild Gtk.ScrolledWindow w11 = new Gtk.ScrolledWindow(); w11.VscrollbarPolicy = ((Gtk.PolicyType)(1)); w11.HscrollbarPolicy = ((Gtk.PolicyType)(2)); w11.CanFocus = true; w11.Events = ((Gdk.EventMask)(0)); w11.Name = "scrolledwindow1"; // Container child scrolledwindow1.Gtk.Container+ContainerChild Gtk.Viewport w12 = new Gtk.Viewport(); w12.ShadowType = ((Gtk.ShadowType)(0)); w12.Events = ((Gdk.EventMask)(0)); w12.Name = "GtkViewport"; // Container child GtkViewport.Gtk.Container+ContainerChild Gtk.ScrolledWindow w13 = new Gtk.ScrolledWindow(); w13.VscrollbarPolicy = ((Gtk.PolicyType)(1)); w13.HscrollbarPolicy = ((Gtk.PolicyType)(1)); w13.CanFocus = true; w13.Events = ((Gdk.EventMask)(0)); w13.Name = "scrolledwindow2"; // Container child scrolledwindow2.Gtk.Container+ContainerChild Gtk.TextView w14 = new Gtk.TextView(); w14.Buffer.Text = "Introduction\r\n\r\nCellular automaton consist of an infinite number of cells, which have a finite number of states. These states change depending on the state of their neighbours. Each cell has the same rule for updating.\r\n\r\nSink\r\n\r\nIn this program, the cells can have two states: 0 or 1. This state depends on the state of their neighbours and the place where the cell is. \r\n\r\nThese are the default update rules:\r\n\r\n. If both the cell and path are 1, and the cell has eight neighbours, the cell becomes 0. \r\n. If the cell is 1, path is 0 and the cell has more than three neighbours, the cell changes to 0.\r\n. If both the cell and path are 0, and the cell has more than three neighbours, the cell changes to 1.\r\n. If the cell is 0, path is 1 and the cell has more than two neighbours, the cell becomes 1.\r\n\r\nThe user can change all the parameters of the program in the configuration menu.\r\n"; w14.WrapMode = ((Gtk.WrapMode)(2)); w14.Editable = false; w14.CanFocus = true; w14.Events = ((Gdk.EventMask)(0)); w14.Name = "textview1"; bindings["textview1"] = w14; w13.Add(w14); bindings["scrolledwindow2"] = w13; w12.Add(w13); bindings["GtkViewport"] = w12; w11.Add(w12); bindings["scrolledwindow1"] = w11; w2.Add(w11); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(w2[w11])); w18.Position = 1; bindings["vbox1"] = w2; w1.Add(w2); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(w1[w2])); w19.Position = 0; bindings["dialog_VBox"] = w1; // Internal child sink.help.ActionArea Gtk.HButtonBox w20 = cobj.ActionArea; w20.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); w20.Spacing = 6; w20.BorderWidth = ((uint)(5)); w20.Events = ((Gdk.EventMask)(256)); w20.Name = "sink.help_ActionArea"; // Container child sink.help_ActionArea.Gtk.ButtonBox+ButtonBoxChild Gtk.Button w21 = new Gtk.Button(); w21.CanFocus = true; w21.Events = ((Gdk.EventMask)(0)); w21.Name = "button3"; w21.CanDefault = true; w21.Label = "OK"; bindings["button3"] = w21; cobj.AddActionWidget(w21, 0); Gtk.ButtonBox.ButtonBoxChild w22 = ((Gtk.ButtonBox.ButtonBoxChild)(w20[w21])); w22.Expand = false; w22.Fill = false; bindings["sink.help_ActionArea"] = w20; cobj.DefaultWidth = 400; cobj.DefaultHeight = 449; bindings["sink.help"] = cobj; w5.Show(); w7.Show(); w4.Show(); w3.Show(); w14.Show(); w13.Show(); w12.Show(); w11.Show(); w2.Show(); w1.Show(); w21.Show(); w20.Show(); cobj.Show(); w21.Released += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnButton3Released"))); } else { if ((id == "sink.sinkgtk")) { Gtk.Window cobj = ((Gtk.Window)(obj)); // Widget sink.sinkgtk cobj.Title = "sinkgtk"; Gtk.UIManager w1 = new Gtk.UIManager(); Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); Gtk.Action w3 = new Gtk.Action("Simulation", "Simulation", null, null); w3.ShortLabel = "Start"; bindings["Simulation"] = w3; w2.Add(w3, null); Gtk.Action w4 = new Gtk.Action("NewSimulation", "New simulation", null, "gtk-media-play"); w4.ShortLabel = "New simulation"; bindings["NewSimulation"] = w4; w2.Add(w4, null); Gtk.ToggleAction w5 = new Gtk.ToggleAction("PauseSimulation", "Pause simulation", null, "gtk-media-pause"); w5.ShortLabel = "Pause simulation"; bindings["PauseSimulation"] = w5; w2.Add(w5, null); Gtk.Action w6 = new Gtk.Action("StopSimulation", "Stop simulation", null, "gtk-media-stop"); w6.ShortLabel = "Stop simulation"; bindings["StopSimulation"] = w6; w2.Add(w6, null); Gtk.Action w7 = new Gtk.Action("Exit", "Exit", null, "gtk-close"); w7.ShortLabel = "Exit"; bindings["Exit"] = w7; w2.Add(w7, null); Gtk.Action w8 = new Gtk.Action("Configuration", "Configuration", null, null); w8.ShortLabel = "Configuration"; bindings["Configuration"] = w8; w2.Add(w8, null); Gtk.Action w9 = new Gtk.Action("IntroVariables", "Intro variables", null, "gtk-properties"); w9.ShortLabel = "Intro variables"; bindings["IntroVariables"] = w9; w2.Add(w9, null); Gtk.Action w10 = new Gtk.Action("Help", "Help", null, null); w10.ShortLabel = "Help"; bindings["Help"] = w10; w2.Add(w10, null); Gtk.Action w11 = new Gtk.Action("Help1", "Help", null, "gtk-help"); w11.ShortLabel = "Help"; bindings["Help1"] = w11; w2.Add(w11, null); Gtk.Action w12 = new Gtk.Action("AboutAuthors", "About Authors", null, "gtk-info"); w12.ShortLabel = "About Authors"; bindings["AboutAuthors"] = w12; w2.Add(w12, null); w1.InsertActionGroup(w2, 0); cobj.AddAccelGroup(w1.AccelGroup); cobj.Icon = Gtk.IconTheme.Default.LoadIcon("stock_internet", 16, 0); cobj.WindowPosition = ((Gtk.WindowPosition)(4)); cobj.Events = ((Gdk.EventMask)(0)); cobj.Name = "sink.sinkgtk"; // Container child sink.sinkgtk.Gtk.Container+ContainerChild Gtk.VBox w13 = new Gtk.VBox(); w13.Events = ((Gdk.EventMask)(0)); w13.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='Simulation'><menuitem action='NewSimulation'/><menuitem action='PauseSimulation'/><menuitem action='StopSimulation'/><menuitem action='Exit'/></menu><menu action='Configuration'><menuitem action='IntroVariables'/></menu><menu action='Help'><menuitem action='Help1'/><menuitem action='AboutAuthors'/></menu></menubar></ui>"); Gtk.MenuBar w14 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1"))); w14.Events = ((Gdk.EventMask)(0)); w14.Name = "menubar1"; bindings["menubar1"] = w14; w13.Add(w14); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w13[w14])); w15.Position = 0; w15.Expand = false; w15.Fill = false; // Container child vbox1.Gtk.Box+BoxChild Gtk.Statusbar w16 = new Gtk.Statusbar(); w16.Events = ((Gdk.EventMask)(0)); w16.Name = "statusbar1"; bindings["statusbar1"] = w16; w13.Add(w16); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(w13[w16])); w17.Position = 1; w17.Expand = false; w17.Fill = false; // Container child vbox1.Gtk.Box+BoxChild Gtk.DrawingArea w18 = new Gtk.DrawingArea(); w18.Events = ((Gdk.EventMask)(0)); w18.Name = "drawingarea1"; bindings["drawingarea1"] = w18; w13.Add(w18); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(w13[w18])); w19.Position = 2; bindings["vbox1"] = w13; cobj.Add(w13); cobj.DefaultWidth = 500; cobj.DefaultHeight = 300; bindings["sink.sinkgtk"] = cobj; w14.Show(); w16.Show(); w18.Show(); w13.Show(); cobj.Show(); cobj.Removed += ((Gtk.RemovedHandler)(System.Delegate.CreateDelegate(typeof(Gtk.RemovedHandler), cobj, "OnRemoved"))); w4.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnNewSimulationActivated"))); w5.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnPauseSimulationActivated"))); w6.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnStopSimulationActivated"))); w7.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnExitActivated"))); w9.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnIntroVariablesActivated"))); w11.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnHelp1Activated"))); w12.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnAboutAuthorsActivated"))); w18.ExposeEvent += ((Gtk.ExposeEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.ExposeEventHandler), cobj, "OnDrawingarea1ExposeEvent"))); } else { if ((id == "sink.configuration")) { Gtk.Dialog cobj = ((Gtk.Dialog)(obj)); // Widget sink.configuration cobj.Title = "configuration"; cobj.WindowPosition = ((Gtk.WindowPosition)(4)); cobj.HasSeparator = false; cobj.Events = ((Gdk.EventMask)(256)); cobj.Name = "sink.configuration"; // Internal child sink.configuration.VBox Gtk.VBox w1 = cobj.VBox; w1.BorderWidth = ((uint)(2)); w1.Events = ((Gdk.EventMask)(256)); w1.Name = "dialog_VBox"; // Container child dialog_VBox.Gtk.Box+BoxChild Gtk.VBox w2 = new Gtk.VBox(); w2.Events = ((Gdk.EventMask)(0)); w2.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild Gtk.Table w3 = new Gtk.Table(((uint)(5)), ((uint)(2)), false); w3.Events = ((Gdk.EventMask)(0)); w3.Name = "table1"; // Container child table1.Gtk.Table+TableChild Gtk.Label w4 = new Gtk.Label(); w4.LabelProp = "Max cicles"; w4.Events = ((Gdk.EventMask)(0)); w4.Name = "label1"; bindings["label1"] = w4; w3.Add(w4); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(w3[w4])); w5.YOptions = ((Gtk.AttachOptions)(4)); w5.XOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.Label w6 = new Gtk.Label(); w6.LabelProp = "Population"; w6.Events = ((Gdk.EventMask)(0)); w6.Name = "label3"; bindings["label3"] = w6; w3.Add(w6); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(w3[w6])); w7.BottomAttach = ((uint)(2)); w7.TopAttach = ((uint)(1)); w7.YOptions = ((Gtk.AttachOptions)(4)); w7.XOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.Label w8 = new Gtk.Label(); w8.LabelProp = "Mortality"; w8.Events = ((Gdk.EventMask)(0)); w8.Name = "label4"; bindings["label4"] = w8; w3.Add(w8); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(w3[w8])); w9.BottomAttach = ((uint)(3)); w9.TopAttach = ((uint)(2)); w9.YOptions = ((Gtk.AttachOptions)(4)); w9.XOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.Label w10 = new Gtk.Label(); w10.LabelProp = "Patch"; w10.Events = ((Gdk.EventMask)(0)); w10.Name = "label5"; bindings["label5"] = w10; w3.Add(w10); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(w3[w10])); w11.BottomAttach = ((uint)(4)); w11.TopAttach = ((uint)(3)); w11.YOptions = ((Gtk.AttachOptions)(4)); w11.XOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.HScale w12 = new Gtk.HScale(null); w12.Digits = 0; w12.Adjustment.Upper = 100000; w12.Adjustment.PageIncrement = 100; w12.Adjustment.StepIncrement = 10; w12.DrawValue = true; w12.Adjustment.Value = 99900; w12.ValuePos = ((Gtk.PositionType)(2)); w12.CanFocus = true; w12.Events = ((Gdk.EventMask)(0)); w12.Name = "hscale1"; bindings["hscale1"] = w12; w3.Add(w12); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(w3[w12])); w13.LeftAttach = ((uint)(1)); w13.RightAttach = ((uint)(2)); w13.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.HScale w14 = new Gtk.HScale(null); w14.Digits = 0; w14.Adjustment.Upper = 5000; w14.Adjustment.PageIncrement = 10; w14.Adjustment.StepIncrement = 1; w14.DrawValue = true; w14.ValuePos = ((Gtk.PositionType)(2)); w14.CanFocus = true; w14.Events = ((Gdk.EventMask)(0)); w14.Name = "hscale2"; bindings["hscale2"] = w14; w3.Add(w14); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(w3[w14])); w15.BottomAttach = ((uint)(2)); w15.LeftAttach = ((uint)(1)); w15.RightAttach = ((uint)(2)); w15.TopAttach = ((uint)(1)); w15.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.HScale w16 = new Gtk.HScale(null); w16.Digits = 0; w16.Adjustment.Upper = 10000; w16.Adjustment.PageIncrement = 10; w16.Adjustment.StepIncrement = 1; w16.DrawValue = true; w16.ValuePos = ((Gtk.PositionType)(2)); w16.CanFocus = true; w16.Events = ((Gdk.EventMask)(0)); w16.Name = "hscale3"; bindings["hscale3"] = w16; w3.Add(w16); Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(w3[w16])); w17.BottomAttach = ((uint)(3)); w17.LeftAttach = ((uint)(1)); w17.RightAttach = ((uint)(2)); w17.TopAttach = ((uint)(2)); w17.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.HScale w18 = new Gtk.HScale(null); w18.Digits = 0; w18.Adjustment.Upper = 1000; w18.Adjustment.PageIncrement = 10; w18.Adjustment.StepIncrement = 1; w18.DrawValue = true; w18.ValuePos = ((Gtk.PositionType)(2)); w18.CanFocus = true; w18.Events = ((Gdk.EventMask)(0)); w18.Name = "hscale4"; bindings["hscale4"] = w18; w3.Add(w18); Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(w3[w18])); w19.BottomAttach = ((uint)(4)); w19.LeftAttach = ((uint)(1)); w19.RightAttach = ((uint)(2)); w19.TopAttach = ((uint)(3)); w19.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.HScale w20 = new Gtk.HScale(null); w20.Digits = 0; w20.Adjustment.Upper = 300; w20.Adjustment.PageIncrement = 10; w20.Adjustment.StepIncrement = 1; w20.DrawValue = true; w20.Adjustment.Value = 60; w20.ValuePos = ((Gtk.PositionType)(2)); w20.CanFocus = true; w20.Events = ((Gdk.EventMask)(0)); w20.Name = "hscale5"; bindings["hscale5"] = w20; w3.Add(w20); Gtk.Table.TableChild w21 = ((Gtk.Table.TableChild)(w3[w20])); w21.BottomAttach = ((uint)(5)); w21.LeftAttach = ((uint)(1)); w21.RightAttach = ((uint)(2)); w21.TopAttach = ((uint)(4)); w21.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.Label w22 = new Gtk.Label(); w22.LabelProp = "Size "; w22.Events = ((Gdk.EventMask)(0)); w22.Name = "label7"; bindings["label7"] = w22; w3.Add(w22); Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(w3[w22])); w23.BottomAttach = ((uint)(5)); w23.TopAttach = ((uint)(4)); w23.YOptions = ((Gtk.AttachOptions)(4)); w23.XOptions = ((Gtk.AttachOptions)(4)); bindings["table1"] = w3; w2.Add(w3); Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(w2[w3])); w24.Position = 0; w24.Expand = false; w24.Fill = false; // Container child vbox1.Gtk.Box+BoxChild Gtk.Frame w25 = new Gtk.Frame(); w25.ShadowType = ((Gtk.ShadowType)(0)); w25.LabelXalign = 0F; w25.Events = ((Gdk.EventMask)(0)); w25.Name = "frame2"; // Container child frame2.Gtk.Container+ContainerChild Gtk.Alignment w26 = new Gtk.Alignment(0F, 0F, 1F, 1F); w26.LeftPadding = ((uint)(12)); w26.Events = ((Gdk.EventMask)(0)); w26.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.Table w27 = new Gtk.Table(((uint)(6)), ((uint)(3)), false); w27.Events = ((Gdk.EventMask)(0)); w27.Name = "table2"; // Container child table2.Gtk.Table+TableChild Gtk.Label w28 = new Gtk.Label(); w28.LabelProp = " Cell changes to 1 if:"; w28.Events = ((Gdk.EventMask)(0)); w28.Name = "label16"; bindings["label16"] = w28; w27.Add(w28); Gtk.Table.TableChild w29 = ((Gtk.Table.TableChild)(w27[w28])); w29.BottomAttach = ((uint)(4)); w29.LeftAttach = ((uint)(1)); w29.RightAttach = ((uint)(2)); w29.TopAttach = ((uint)(3)); w29.YOptions = ((Gtk.AttachOptions)(4)); w29.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.Label w30 = new Gtk.Label(); w30.LabelProp = " Cell changes to 0 if: "; w30.Events = ((Gdk.EventMask)(0)); w30.Name = "label2"; bindings["label2"] = w30; w27.Add(w30); Gtk.Table.TableChild w31 = ((Gtk.Table.TableChild)(w27[w30])); w31.LeftAttach = ((uint)(1)); w31.RightAttach = ((uint)(2)); w31.YOptions = ((Gtk.AttachOptions)(4)); w31.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.Label w32 = new Gtk.Label(); w32.LabelProp = "If neighborhood is >= "; w32.Events = ((Gdk.EventMask)(0)); w32.Name = "label15"; bindings["label15"] = w32; w27.Add(w32); Gtk.Table.TableChild w33 = ((Gtk.Table.TableChild)(w27[w32])); w33.BottomAttach = ((uint)(2)); w33.TopAttach = ((uint)(1)); w33.YOptions = ((Gtk.AttachOptions)(4)); w33.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.Label w34 = new Gtk.Label(); w34.LabelProp = "If neighborhood is >= "; w34.Events = ((Gdk.EventMask)(0)); w34.Name = "label11"; bindings["label11"] = w34; w27.Add(w34); Gtk.Table.TableChild w35 = ((Gtk.Table.TableChild)(w27[w34])); w35.BottomAttach = ((uint)(3)); w35.TopAttach = ((uint)(2)); w35.YOptions = ((Gtk.AttachOptions)(4)); w35.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.Label w36 = new Gtk.Label(); w36.LabelProp = "If neighborhood is >="; w36.Events = ((Gdk.EventMask)(0)); w36.Name = "label13"; bindings["label13"] = w36; w27.Add(w36); Gtk.Table.TableChild w37 = ((Gtk.Table.TableChild)(w27[w36])); w37.BottomAttach = ((uint)(5)); w37.TopAttach = ((uint)(4)); w37.YOptions = ((Gtk.AttachOptions)(4)); w37.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.Label w38 = new Gtk.Label(); w38.LabelProp = "If neighborhood is >="; w38.Events = ((Gdk.EventMask)(0)); w38.Name = "label14"; bindings["label14"] = w38; w27.Add(w38); Gtk.Table.TableChild w39 = ((Gtk.Table.TableChild)(w27[w38])); w39.BottomAttach = ((uint)(6)); w39.TopAttach = ((uint)(5)); w39.YOptions = ((Gtk.AttachOptions)(4)); w39.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.Label w40 = new Gtk.Label(); w40.LabelProp = "and habitat = 1; Or ..."; w40.Events = ((Gdk.EventMask)(0)); w40.Name = "label6"; bindings["label6"] = w40; w27.Add(w40); Gtk.Table.TableChild w41 = ((Gtk.Table.TableChild)(w27[w40])); w41.BottomAttach = ((uint)(2)); w41.LeftAttach = ((uint)(2)); w41.RightAttach = ((uint)(3)); w41.TopAttach = ((uint)(1)); w41.YOptions = ((Gtk.AttachOptions)(4)); w41.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.Label w42 = new Gtk.Label(); w42.LabelProp = "and habitat = 0; "; w42.Events = ((Gdk.EventMask)(0)); w42.Name = "label12"; bindings["label12"] = w42; w27.Add(w42); Gtk.Table.TableChild w43 = ((Gtk.Table.TableChild)(w27[w42])); w43.BottomAttach = ((uint)(3)); w43.LeftAttach = ((uint)(2)); w43.RightAttach = ((uint)(3)); w43.TopAttach = ((uint)(2)); w43.YOptions = ((Gtk.AttachOptions)(4)); w43.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.Label w44 = new Gtk.Label(); w44.LabelProp = "and habitat = 1; Or..."; w44.Events = ((Gdk.EventMask)(0)); w44.Name = "label9"; bindings["label9"] = w44; w27.Add(w44); Gtk.Table.TableChild w45 = ((Gtk.Table.TableChild)(w27[w44])); w45.BottomAttach = ((uint)(5)); w45.LeftAttach = ((uint)(2)); w45.RightAttach = ((uint)(3)); w45.TopAttach = ((uint)(4)); w45.YOptions = ((Gtk.AttachOptions)(4)); w45.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.Label w46 = new Gtk.Label(); w46.LabelProp = "and habitat = 0;"; w46.Events = ((Gdk.EventMask)(0)); w46.Name = "label10"; bindings["label10"] = w46; w27.Add(w46); Gtk.Table.TableChild w47 = ((Gtk.Table.TableChild)(w27[w46])); w47.BottomAttach = ((uint)(6)); w47.LeftAttach = ((uint)(2)); w47.RightAttach = ((uint)(3)); w47.TopAttach = ((uint)(5)); w47.YOptions = ((Gtk.AttachOptions)(4)); w47.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.HScale w48 = new Gtk.HScale(null); w48.Digits = 0; w48.Adjustment.Upper = 8; w48.Adjustment.PageIncrement = 1; w48.Adjustment.StepIncrement = 1; w48.DrawValue = true; w48.Adjustment.Value = 8; w48.ValuePos = ((Gtk.PositionType)(2)); w48.CanFocus = true; w48.Events = ((Gdk.EventMask)(0)); w48.Name = "hscale7"; bindings["hscale7"] = w48; w27.Add(w48); Gtk.Table.TableChild w49 = ((Gtk.Table.TableChild)(w27[w48])); w49.BottomAttach = ((uint)(2)); w49.LeftAttach = ((uint)(1)); w49.RightAttach = ((uint)(2)); w49.TopAttach = ((uint)(1)); w49.YOptions = ((Gtk.AttachOptions)(4)); w49.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.HScale w50 = new Gtk.HScale(null); w50.Digits = 0; w50.Adjustment.Upper = 8; w50.Adjustment.PageIncrement = 1; w50.Adjustment.StepIncrement = 1; w50.DrawValue = true; w50.ValuePos = ((Gtk.PositionType)(2)); w50.CanFocus = true; w50.Events = ((Gdk.EventMask)(0)); w50.Name = "hscale8"; bindings["hscale8"] = w50; w27.Add(w50); Gtk.Table.TableChild w51 = ((Gtk.Table.TableChild)(w27[w50])); w51.BottomAttach = ((uint)(3)); w51.LeftAttach = ((uint)(1)); w51.RightAttach = ((uint)(2)); w51.TopAttach = ((uint)(2)); w51.YOptions = ((Gtk.AttachOptions)(4)); w51.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.HScale w52 = new Gtk.HScale(null); w52.Digits = 0; w52.Adjustment.Upper = 8; w52.Adjustment.PageIncrement = 1; w52.Adjustment.StepIncrement = 1; w52.DrawValue = true; w52.Adjustment.Value = 8; w52.ValuePos = ((Gtk.PositionType)(2)); w52.CanFocus = true; w52.Events = ((Gdk.EventMask)(0)); w52.Name = "hscale9"; bindings["hscale9"] = w52; w27.Add(w52); Gtk.Table.TableChild w53 = ((Gtk.Table.TableChild)(w27[w52])); w53.BottomAttach = ((uint)(5)); w53.LeftAttach = ((uint)(1)); w53.RightAttach = ((uint)(2)); w53.TopAttach = ((uint)(4)); w53.YOptions = ((Gtk.AttachOptions)(4)); w53.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.HScale w54 = new Gtk.HScale(null); w54.Digits = 0; w54.Adjustment.Upper = 8; w54.Adjustment.PageIncrement = 1; w54.Adjustment.StepIncrement = 1; w54.DrawValue = true; w54.Adjustment.Value = 3; w54.ValuePos = ((Gtk.PositionType)(2)); w54.CanFocus = true; w54.Events = ((Gdk.EventMask)(0)); w54.Name = "hscale10"; bindings["hscale10"] = w54; w27.Add(w54); Gtk.Table.TableChild w55 = ((Gtk.Table.TableChild)(w27[w54])); w55.BottomAttach = ((uint)(6)); w55.LeftAttach = ((uint)(1)); w55.RightAttach = ((uint)(2)); w55.TopAttach = ((uint)(5)); w55.YOptions = ((Gtk.AttachOptions)(4)); w55.XOptions = ((Gtk.AttachOptions)(4)); bindings["table2"] = w27; w26.Add(w27); bindings["GtkAlignment"] = w26; w25.Add(w26); Gtk.Label w58 = new Gtk.Label(); w58.LabelProp = "<b>Internal variables:</b>"; w58.UseMarkup = true; w58.Events = ((Gdk.EventMask)(256)); w58.Name = "GtkLabel1"; bindings["GtkLabel1"] = w58; w25.LabelWidget = w58; bindings["frame2"] = w25; w2.Add(w25); Gtk.Box.BoxChild w59 = ((Gtk.Box.BoxChild)(w2[w25])); w59.Position = 1; w59.Expand = false; w59.Fill = false; bindings["vbox1"] = w2; w1.Add(w2); Gtk.Box.BoxChild w60 = ((Gtk.Box.BoxChild)(w1[w2])); w60.Position = 0; w60.Expand = false; w60.Fill = false; bindings["dialog_VBox"] = w1; // Internal child sink.configuration.ActionArea Gtk.HButtonBox w61 = cobj.ActionArea; w61.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); w61.Spacing = 6; w61.BorderWidth = ((uint)(5)); w61.Events = ((Gdk.EventMask)(256)); w61.Name = "sink.configuration_ActionArea"; // Container child sink.configuration_ActionArea.Gtk.ButtonBox+ButtonBoxChild Gtk.Button w62 = new Gtk.Button(); w62.CanFocus = true; w62.Events = ((Gdk.EventMask)(0)); w62.Name = "button1"; w62.CanDefault = true; w62.Label = "Save"; bindings["button1"] = w62; cobj.AddActionWidget(w62, 0); Gtk.ButtonBox.ButtonBoxChild w63 = ((Gtk.ButtonBox.ButtonBoxChild)(w61[w62])); w63.Expand = false; w63.Fill = false; bindings["sink.configuration_ActionArea"] = w61; cobj.DefaultWidth = 609; cobj.DefaultHeight = 484; bindings["sink.configuration"] = cobj; w4.Show(); w6.Show(); w8.Show(); w10.Show(); w12.Show(); w14.Show(); w16.Show(); w18.Show(); w20.Show(); w22.Show(); w3.Show(); w28.Show(); w30.Show(); w32.Show(); w34.Show(); w36.Show(); w38.Show(); w40.Show(); w42.Show(); w44.Show(); w46.Show(); w48.Show(); w50.Show(); w52.Show(); w54.Show(); w27.Show(); w26.Show(); w58.Show(); w25.Show(); w2.Show(); w1.Show(); w62.Show(); w61.Show(); cobj.Show(); w62.Released += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnButton1Released"))); } } } System.Reflection.FieldInfo[] fields = obj.GetType().GetFields(((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic) | System.Reflection.BindingFlags.Instance)); for (int n = 0; (n < fields.Length); n = (n + 1)) { System.Reflection.FieldInfo field = fields[n]; object widget = bindings[field.Name]; if (((widget != null) && field.FieldType.IsInstanceOfType(widget))) { field.SetValue(obj, widget); } } }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget 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.connectAction = new Gtk.ToggleAction("connectAction", null, Mono.Unix.Catalog.GetString("Connect to server"), "gtk-connect"); w1.Add(this.connectAction, null); this.SSLAction = new Gtk.ToggleAction("SSLAction", Mono.Unix.Catalog.GetString("SSL"), Mono.Unix.Catalog.GetString("Enable SSL for connection"), "gtk-dialog-authentication"); this.SSLAction.ShortLabel = Mono.Unix.Catalog.GetString("SSL"); w1.Add(this.SSLAction, null); this.quitAction = new Gtk.Action("quitAction", null, null, "gtk-quit"); w1.Add(this.quitAction, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Login"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; // 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><toolbar name='toolbar1'><toolitem name='connectAction' action='connectAction'/><toolitem name='SSLAction' action='SSLAction'/><toolitem name='quitAction' action='quitAction'/></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 w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Username"); this.hbox1.Add(this.label1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.xid = new Gtk.Entry(); this.xid.CanFocus = true; this.xid.Name = "xid"; this.xid.IsEditable = true; this.xid.InvisibleChar = '●'; this.hbox1.Add(this.xid); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.xid])); w4.Position = 1; this.vbox1.Add(this.hbox1); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); w5.Position = 1; w5.Expand = false; w5.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.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Password"); this.hbox2.Add(this.label2); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox2[this.label2])); w6.Position = 0; w6.Expand = false; w6.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.password = new Gtk.Entry(); this.password.CanFocus = true; this.password.Name = "password"; this.password.IsEditable = true; this.password.InvisibleChar = '●'; this.hbox2.Add(this.password); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox2[this.password])); w7.Position = 1; this.vbox1.Add(this.hbox2); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2])); w8.Position = 2; w8.Expand = false; w8.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.statusbar1 = new Gtk.Statusbar(); this.statusbar1.Name = "statusbar1"; this.statusbar1.Spacing = 6; this.vbox1.Add(this.statusbar1); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1])); w9.Position = 3; w9.Expand = false; w9.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 162; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.connectAction.Toggled += new System.EventHandler(this.OnConnect); this.SSLAction.Toggled += new System.EventHandler(this.OnSSL); this.quitAction.Activated += new System.EventHandler(this.OnQuit); }
void OnShowSystemNodesActivated(object sender, System.EventArgs e) { Gtk.ToggleAction ta = sender as Gtk.ToggleAction; (View as ProfileView).Options.ShowSystemNodes = ta.Active; }