public SdiWorkspaceWindow (DefaultWorkbench workbench, IViewContent content, Notebook tabControl, TabLabel tabLabel) : base () { this.workbench = workbench; this.tabControl = tabControl; this.content = content; this.tabLabel = tabLabel; this.tabPage = content.Control; content.WorkbenchWindow = this; content.ContentNameChanged += new EventHandler(SetTitleEvent); content.DirtyChanged += new EventHandler(SetTitleEvent); content.BeforeSave += new EventHandler(BeforeSave); content.ContentChanged += new EventHandler (OnContentChanged); ShadowType = ShadowType.None; box = new VBox (); box.PackStart (content.Control); Add (box); box.Show (); SetTitleEvent(null, null); commandHandler = new ViewCommandHandlers (this); Show (); }
public SdiWorkspaceWindow (DefaultWorkbench workbench, IViewContent content, Notebook tabControl, TabLabel tabLabel) : base () { this.workbench = workbench; this.tabControl = tabControl; this.content = content; this.tabLabel = tabLabel; this.tabPage = content.Control; ShadowType = ShadowType.None; box = new VBox (); Add (box); box.PackStart (content.Control); fileTypeCondition.SetFileName (content.ContentName ?? content.UntitledName); extensionContext = AddinManager.CreateExtensionContext (); extensionContext.RegisterCondition ("FileType", fileTypeCondition); content.WorkbenchWindow = this; content.ContentNameChanged += new EventHandler(SetTitleEvent); content.DirtyChanged += new EventHandler(SetTitleEvent); content.BeforeSave += new EventHandler(BeforeSave); content.ContentChanged += new EventHandler (OnContentChanged); box.Show (); SetTitleEvent(null, null); commandHandler = new ViewCommandHandlers (this); Show (); }
internal Pad (DefaultWorkbench workbench, PadCodon content) { this.window = workbench.GetPadWindow (content); this.window.PadHidden += delegate { IsOpenedAutomatically = false; }; this.content = content; this.workbench = workbench; }
public SideBar (DefaultWorkbench workbench, Gtk.Orientation orientation) { bars.Add (this); this.orientation = orientation; if (orientation == Orientation.Vertical) { mainBox = this; boxTabs = new VBox (false, 0); } else { mainBox = new HBox (); PackStart (mainBox); boxTabs = new HBox (false, 0); } this.workbench = workbench; mainBox.PackStart (boxTabs, true, true, 0); AddinManager.ExtensionChanged += HandleAddinManagerExtensionChanged; ShowAll (); IdeApp.Workbench.LayoutChanged += HandleIdeAppWorkbenchLayoutChanged; UpdateTabs (); }
public SdiDragNotebook(DefaultWorkbench window) { NextButtonClicked += delegate { IdeApp.CommandService.DispatchCommand (Ide.Commands.NavigationCommands.NavigateForward); }; PreviousButtonClicked += delegate { IdeApp.CommandService.DispatchCommand (Ide.Commands.NavigationCommands.NavigateBack); }; SwitchPage += window.OnActiveWindowChanged; PageRemoved += window.OnActiveWindowChanged; TabClosed += window.CloseClicked; TabActivated += delegate { window.ToggleFullViewMode (); }; TabsReordered += window.OnTabsReordered; CanFocus = true; DoPopupMenu = window.ShowPopup; Events |= Gdk.EventMask.FocusChangeMask | Gdk.EventMask.KeyPressMask; IdeApp.CommandService.RegisterCommandBar (this); }
public PadActivationHandler(DefaultWorkbench wb, PadCodon pad) { this.pad = pad; this.wb = wb; }
internal PadWindow (DefaultWorkbench workbench, PadCodon codon) { this.workbench = workbench; this.codon = codon; this.title = GettextCatalog.GetString (codon.Label); this.icon = codon.Icon; }