public ToolWindowUI(MainWindowControl mainWindowControl, AppToolWindowLocation location, double length, StackedContent <IStackedContentChild> stackedContent, bool insertLast, IToolWindowGroupManager mgr) { this.mainWindowControl = mainWindowControl; this.Location = location; this.Length = length; this.StackedContent = stackedContent; this.InsertLast = insertLast; this.ToolWindowGroupManager = mgr; ToolWindowGroupManager.TabGroupCollectionChanged += ToolWindowGroupManager_TabGroupCollectionChanged; }
public ToolWindowUI(MainWindowControl mainWindowControl, AppToolWindowLocation location, double length, StackedContent <IStackedContentChild> stackedContent, bool insertLast, IToolWindowGroupService mgr) { this.mainWindowControl = mainWindowControl; Location = location; Length = length; StackedContent = stackedContent; InsertLast = insertLast; ToolWindowGroupService = mgr; ToolWindowGroupService.TabGroupCollectionChanged += ToolWindowGroupService_TabGroupCollectionChanged; }
public TabGroupManager(TabManager tabManager, IMenuManager menuManager, IWpfFocusManager wpfFocusManager, TabGroupManagerOptions options) { this.options = (options ?? new TabGroupManagerOptions()).Clone(); this.stackedContent = new StackedContent <TabGroup>(); this.tabSelectionChanged = new WeakEventList <TabSelectedEventArgs>(); this.tabGroupSelectionChanged = new WeakEventList <TabGroupSelectedEventArgs>(); this.tabGroupCollectionChanged = new WeakEventList <TabGroupCollectionChangedEventArgs>(); this.tabManager = tabManager; this.menuManager = menuManager; this.wpfFocusManager = wpfFocusManager; this._activeIndex = -1; }
public TabGroupManager(TabManager tabManager, IMenuManager menuManager, IWpfFocusManager wpfFocusManager, TabGroupManagerOptions options) { this.options = (options ?? new TabGroupManagerOptions()).Clone(); this.stackedContent = new StackedContent<TabGroup>(); this.tabSelectionChanged = new WeakEventList<TabSelectedEventArgs>(); this.tabGroupSelectionChanged = new WeakEventList<TabGroupSelectedEventArgs>(); this.tabGroupCollectionChanged = new WeakEventList<TabGroupCollectionChangedEventArgs>(); this.tabManager = tabManager; this.menuManager = menuManager; this.wpfFocusManager = wpfFocusManager; this._activeIndex = -1; }
public TabGroupService(TabService tabService, IMenuService menuService, IWpfFocusService wpfFocusService, TabGroupServiceOptions options) { this.options = (options ?? new TabGroupServiceOptions()).Clone(); stackedContent = new StackedContent <TabGroup>(); tabSelectionChanged = new WeakEventList <TabSelectedEventArgs>(); tabGroupSelectionChanged = new WeakEventList <TabGroupSelectedEventArgs>(); tabGroupCollectionChanged = new WeakEventList <TabGroupCollectionChangedEventArgs>(); this.tabService = tabService; this.menuService = menuService; this.wpfFocusService = wpfFocusService; _activeIndex = -1; }
AppWindow(ISettingsService settingsService, IDocumentTabService documentTabService, AppToolBar appToolBar, MainWindowControl mainWindowControl, IWpfCommandService wpfCommandService) { assemblyInformationalVersion = CalculateAssemblyInformationalVersion(GetType().Assembly); uiSettings = new UISettings(settingsService); uiSettings.Read(); stackedContent = new StackedContent <IStackedContentChild>(margin: new Thickness(6)); this.documentTabService = documentTabService; statusBar = new AppStatusBar(); this.appToolBar = appToolBar; this.mainWindowControl = mainWindowControl; this.wpfCommandService = wpfCommandService; mainWindowCommands = wpfCommandService.GetCommands(ControlConstants.GUID_MAINWINDOW); mainWindowClosing = new WeakEventList <CancelEventArgs>(); mainWindowClosed = new WeakEventList <EventArgs>(); }
MainWindowControl(IToolWindowManagerCreator toolWindowManagerCreator, [ImportMany] Lazy<IMainToolWindowContentCreator>[] contentCreators) { this.horizontalContent = new StackedContent<IStackedContentChild>(true); this.verticalContent = new StackedContent<IStackedContentChild>(false); this.toolWindowUIs = new Dictionary<AppToolWindowLocation, ToolWindowUI>(); var toolWindowManager = toolWindowManagerCreator.Create(); this.contentCreators = contentCreators.ToArray(); this.savedLocations = new Dictionary<Guid, AppToolWindowLocation>(); var guid = new Guid(MenuConstants.GUIDOBJ_TOOLWINDOW_TABCONTROL_GUID); const double HORIZ_WIDTH = 250, VERT_HEIGHT = 250; toolWindowUIs.Add(AppToolWindowLocation.Left, new ToolWindowUI(this, AppToolWindowLocation.Left, HORIZ_WIDTH, horizontalContent, false, toolWindowManager.Create(new ToolWindowGroupManagerOptions(guid)))); toolWindowUIs.Add(AppToolWindowLocation.Right, new ToolWindowUI(this, AppToolWindowLocation.Right, HORIZ_WIDTH, horizontalContent, true, toolWindowManager.Create(new ToolWindowGroupManagerOptions(guid)))); toolWindowUIs.Add(AppToolWindowLocation.Top, new ToolWindowUI(this, AppToolWindowLocation.Top, VERT_HEIGHT, verticalContent, false, toolWindowManager.Create(new ToolWindowGroupManagerOptions(guid)))); toolWindowUIs.Add(AppToolWindowLocation.Bottom, new ToolWindowUI(this, AppToolWindowLocation.Bottom, VERT_HEIGHT, verticalContent, true, toolWindowManager.Create(new ToolWindowGroupManagerOptions(guid)))); }
public Window InitializeMainWindow() { var sc = new StackedContent <IStackedContentChild>(false); sc.AddChild(appToolBar, StackedContentChildInfo.CreateVertical(new GridLength(0, GridUnitType.Auto))); sc.AddChild(stackedContent, StackedContentChildInfo.CreateVertical(new GridLength(1, GridUnitType.Star))); sc.AddChild(statusBar, StackedContentChildInfo.CreateVertical(new GridLength(0, GridUnitType.Auto))); mainWindow = new MainWindow(themeManager, imageManager, sc.UIObject); AddTitleInfo(IntPtr.Size == 4 ? "x86" : "x64"); wpfCommandManager.Add(ControlConstants.GUID_MAINWINDOW, mainWindow); new SavedWindowStateRestorer(mainWindow, uiSettings.SavedWindowState, DefaultWindowLocation); mainWindow.Closing += MainWindow_Closing; mainWindow.Closed += MainWindow_Closed; mainWindow.GotKeyboardFocus += MainWindow_GotKeyboardFocus; RefreshToolBar(); return(mainWindow); }
MainWindowControl(IToolWindowManagerCreator toolWindowManagerCreator, [ImportMany] Lazy <IMainToolWindowContentCreator>[] contentCreators) { this.horizontalContent = new StackedContent <IStackedContentChild>(true); this.verticalContent = new StackedContent <IStackedContentChild>(false); this.toolWindowUIs = new Dictionary <AppToolWindowLocation, ToolWindowUI>(); var toolWindowManager = toolWindowManagerCreator.Create(); this.contentCreators = contentCreators.ToArray(); this.savedLocations = new Dictionary <Guid, AppToolWindowLocation>(); var guid = new Guid(MenuConstants.GUIDOBJ_TOOLWINDOW_TABCONTROL_GUID); const double HORIZ_WIDTH = 250, VERT_HEIGHT = 250; toolWindowUIs.Add(AppToolWindowLocation.Left, new ToolWindowUI(this, AppToolWindowLocation.Left, HORIZ_WIDTH, horizontalContent, false, toolWindowManager.Create(new ToolWindowGroupManagerOptions(guid)))); toolWindowUIs.Add(AppToolWindowLocation.Right, new ToolWindowUI(this, AppToolWindowLocation.Right, HORIZ_WIDTH, horizontalContent, true, toolWindowManager.Create(new ToolWindowGroupManagerOptions(guid)))); toolWindowUIs.Add(AppToolWindowLocation.Top, new ToolWindowUI(this, AppToolWindowLocation.Top, VERT_HEIGHT, verticalContent, false, toolWindowManager.Create(new ToolWindowGroupManagerOptions(guid)))); toolWindowUIs.Add(AppToolWindowLocation.Bottom, new ToolWindowUI(this, AppToolWindowLocation.Bottom, VERT_HEIGHT, verticalContent, true, toolWindowManager.Create(new ToolWindowGroupManagerOptions(guid)))); }
AppWindow(IThemeManager themeManager, IImageManager imageManager, IAppSettings appSettings, ISettingsManager settingsManager, IFileTabManager fileTabManager, AppToolBar appToolBar, MainWindowControl mainWindowControl, IWpfCommandManager wpfCommandManager, IDecompilerManager decompilerManager) { this.assemblyInformationalVersion = CalculateAssemblyInformationalVersion(GetType().Assembly); this.uiSettings = new UISettings(settingsManager); this.uiSettings.Read(); this.appSettings = appSettings; this.stackedContent = new StackedContent <IStackedContentChild>(margin: new Thickness(6)); this.themeManager = themeManager; themeManager.ThemeChanged += ThemeManager_ThemeChanged; this.imageManager = imageManager; this.fileTabManager = fileTabManager; this.statusBar = new AppStatusBar(); this.appToolBar = appToolBar; this.mainWindowControl = mainWindowControl; this.wpfCommandManager = wpfCommandManager; this.decompilerManager = decompilerManager; this.mainWindowCommands = wpfCommandManager.GetCommands(ControlConstants.GUID_MAINWINDOW); this.mainWindowClosing = new WeakEventList <CancelEventArgs>(); this.mainWindowClosed = new WeakEventList <EventArgs>(); }
AppWindow(ISettingsService settingsService, IDocumentTabService documentTabService, AppToolBar appToolBar, MainWindowControl mainWindowControl, IWpfCommandService wpfCommandService) { assemblyInformationalVersion = CalculateAssemblyInformationalVersion(GetType().Assembly); uiSettings = new UISettings(settingsService); uiSettings.Read(); stackedContent = new StackedContent<IStackedContentChild>(margin: new Thickness(6)); this.documentTabService = documentTabService; statusBar = new AppStatusBar(); this.appToolBar = appToolBar; this.mainWindowControl = mainWindowControl; this.wpfCommandService = wpfCommandService; mainWindowCommands = wpfCommandService.GetCommands(ControlConstants.GUID_MAINWINDOW); mainWindowClosing = new WeakEventList<CancelEventArgs>(); mainWindowClosed = new WeakEventList<EventArgs>(); }
public Window InitializeMainWindow() { var sc = new StackedContent<IStackedContentChild>(false); sc.AddChild(appToolBar, StackedContentChildInfo.CreateVertical(new GridLength(0, GridUnitType.Auto))); sc.AddChild(stackedContent, StackedContentChildInfo.CreateVertical(new GridLength(1, GridUnitType.Star))); sc.AddChild(statusBar, StackedContentChildInfo.CreateVertical(new GridLength(0, GridUnitType.Auto))); mainWindow = new MainWindow(sc.UIObject); AddTitleInfo(IntPtr.Size == 4 ? "x86" : "x64"); wpfCommandService.Add(ControlConstants.GUID_MAINWINDOW, mainWindow); new SavedWindowStateRestorer(mainWindow, uiSettings.SavedWindowState, DefaultWindowLocation); mainWindow.Closing += MainWindow_Closing; mainWindow.Closed += MainWindow_Closed; mainWindow.GotKeyboardFocus += MainWindow_GotKeyboardFocus; RefreshToolBar(); return mainWindow; }
public ToolWindowUI(MainWindowControl mainWindowControl, AppToolWindowLocation location, double length, StackedContent<IStackedContentChild> stackedContent, bool insertLast, IToolWindowGroupManager mgr) { this.mainWindowControl = mainWindowControl; this.Location = location; this.Length = length; this.StackedContent = stackedContent; this.InsertLast = insertLast; this.ToolWindowGroupManager = mgr; ToolWindowGroupManager.TabGroupCollectionChanged += ToolWindowGroupManager_TabGroupCollectionChanged; }
AppWindow(IThemeManager themeManager, IImageManager imageManager, IAppSettings appSettings, ISettingsManager settingsManager, IFileTabManager fileTabManager, AppToolBar appToolBar, MainWindowControl mainWindowControl, IWpfCommandManager wpfCommandManager, ILanguageManager languageManager) { this.assemblyInformationalVersion = CalculateAssemblyInformationalVersion(GetType().Assembly); this.uiSettings = new UISettings(settingsManager); this.uiSettings.Read(); this.appSettings = appSettings; this.stackedContent = new StackedContent<IStackedContentChild>(margin: new Thickness(6)); this.themeManager = themeManager; themeManager.ThemeChanged += ThemeManager_ThemeChanged; this.imageManager = imageManager; this.fileTabManager = fileTabManager; this.statusBar = new AppStatusBar(); this.appToolBar = appToolBar; this.mainWindowControl = mainWindowControl; this.wpfCommandManager = wpfCommandManager; this.languageManager = languageManager; this.mainWindowCommands = wpfCommandManager.GetCommands(CommandConstants.GUID_MAINWINDOW); this.mainWindowClosing = new WeakEventList<CancelEventArgs>(); this.mainWindowClosed = new WeakEventList<EventArgs>(); this.appSettings.PropertyChanged += AppSettings_PropertyChanged; InitializeTextFormatterProvider(); }
public TabGroupService(TabService tabService, IMenuService menuService, IWpfFocusService wpfFocusService, TabGroupServiceOptions options) { this.options = (options ?? new TabGroupServiceOptions()).Clone(); stackedContent = new StackedContent<TabGroup>(); tabSelectionChanged = new WeakEventList<TabSelectedEventArgs>(); tabGroupSelectionChanged = new WeakEventList<TabGroupSelectedEventArgs>(); tabGroupCollectionChanged = new WeakEventList<TabGroupCollectionChangedEventArgs>(); this.tabService = tabService; this.menuService = menuService; this.wpfFocusService = wpfFocusService; _activeIndex = -1; }
public ToolWindowUI(MainWindowControl mainWindowControl, AppToolWindowLocation location, double length, StackedContent<IStackedContentChild> stackedContent, bool insertLast, IToolWindowGroupService mgr) { this.mainWindowControl = mainWindowControl; Location = location; Length = length; StackedContent = stackedContent; InsertLast = insertLast; ToolWindowGroupService = mgr; ToolWindowGroupService.TabGroupCollectionChanged += ToolWindowGroupService_TabGroupCollectionChanged; }