Beispiel #1
0
 public SetTabRowCountMenuGroup(SplitMenuGroup reference)
     : base(CreateChildMenus())
 {
     _positionType      = PositionType.NextTo;
     _designationTarget = reference;
     _isVolatile        = true;
 }
Beispiel #2
0
        public MainWindowMenu() {
            _idToMenu = new TypedSequentialTable<string, MainMenuItem>();

            _fileMenu = CreateMainMenu("Menu.File", "org.poderosa.menu.file");
            _editMenu = CreateMainMenu("Menu.Edit", "org.poderosa.menu.edit");
            _consoleMenu = CreateMainMenu("Menu.Console", "org.poderosa.menu.console");
            _toolMenu = CreateMainMenu("Menu.Tool", "org.poderosa.menu.tool");
            _windowMenu = CreateMainMenu("Menu.Window", "org.poderosa.menu.window");
            _pluginMenu = CreateMainMenu("Menu.Plugin", "org.poderosa.menu.plugin");
            _helpMenu = CreateMainMenu("Menu.Help", "org.poderosa.menu.help");

            _splitMenuGroup = new SplitMenuGroup();
#if !UNITTEST
            _windowMenu.ExtensionPoint.RegisterExtension(_splitMenuGroup);
            _windowMenu.ExtensionPoint.RegisterExtension(new CloseAllMenuGroup(_splitMenuGroup));
            _windowMenu.ExtensionPoint.RegisterExtension(new SetTabRowCountMenuGroup(_splitMenuGroup));
            _windowMenu.ExtensionPoint.RegisterExtension(new DocActivationMenuGroup());
            _fileMenu.ExtensionPoint.RegisterExtension(new NewWindowMenuGroup());
            _fileMenu.ExtensionPoint.RegisterExtension(new QuitMenuGroup());
            _editMenu.ExtensionPoint.RegisterExtension(new CopyGroup());
            _editMenu.ExtensionPoint.RegisterExtension(new PasteGroup());
            _consoleMenu.ExtensionPoint.RegisterExtension(new CloseDocumentGroup());
            _pluginMenu.ExtensionPoint.RegisterExtension(new DefaultPluginMenuGroup());
            _helpMenu.ExtensionPoint.RegisterExtension(new DefaultHelpMenuGroup());
#endif
        }
Beispiel #3
0
 public CloseAllMenuGroup(SplitMenuGroup reference)
     : base(CreateChildMenus())
 {
     _positionType = PositionType.NextTo;
     _designationTarget = reference;
 }
Beispiel #4
0
 public SetTabRowCountMenuGroup(SplitMenuGroup reference)
     : base(CreateChildMenus())
 {
     _positionType = PositionType.NextTo;
     _designationTarget = reference;
     _isVolatile = true;
 }
Beispiel #5
0
 public CloseAllMenuGroup(SplitMenuGroup reference)
     : base(CreateChildMenus())
 {
     _positionType      = PositionType.NextTo;
     _designationTarget = reference;
 }