예제 #1
0
    def testPageType2(self):
        self.assertEqual(self.root["Типы страниц/HTML-страница"].getTypeString(),
                         HtmlWikiPage.getTypeString())

        self.assertEqual(self.root["Типы страниц/wiki-страница"].getTypeString(),
                         WikiWikiPage.getTypeString())

        self.assertEqual(self.root["Типы страниц/wiki-страница"].getTypeString(),
                         WikiWikiPage.getTypeString())

        self.assertEqual(self.root["Типы страниц/Страница поиска"].getTypeString(),
                         SearchWikiPage.getTypeString())

        self.assertEqual (self.root["Типы страниц/Текстовая страница"].getTypeString(),
                          TextWikiPage.getTypeString())
예제 #2
0
    def __init__(self, application):
        self._application = application

        self._GUIController = ActionsGUIController(
            self._application,
            WikiWikiPage.getTypeString(),
        )
예제 #3
0
    def __init__(self, plugin, application):
        self._plugin = plugin
        self._application = application

        self._actions_gui_controller = ActionsGUIController(
            self._application,
            WikiWikiPage.getTypeString(),
        )
예제 #4
0
    def testPageType2(self):
        self.assertEqual(self.root[u"Типы страниц/HTML-страница"].getTypeString(), HtmlWikiPage.getTypeString())

        self.assertEqual(self.root[u"Типы страниц/wiki-страница"].getTypeString(), WikiWikiPage.getTypeString())

        self.assertEqual(self.root[u"Типы страниц/Страница поиска"].getTypeString(), SearchWikiPage.getTypeString())

        self.assertEqual(self.root[u"Типы страниц/Текстовая страница"].getTypeString(), TextWikiPage.getTypeString())
예제 #5
0
    def __init__(self, plugin, application):
        self._plugin = plugin
        self._application = application

        self._actions_gui_controller = ActionsGUIController(
            self._application,
            WikiWikiPage.getTypeString(),
        )
예제 #6
0
    def __init__(self, plugin, application):
        self._plugin = plugin
        self._application = application
        self.__maxCommandIndex = 9

        self._GUIController = ActionsGUIController(
            self._application,
            WikiWikiPage.getTypeString(),
        )
예제 #7
0
    def __init__(self, plugin, application):
        self._plugin = plugin
        self._application = application
        self.__maxCommandIndex = 9

        self._GUIController = ActionsGUIController(
            self._application,
            WikiWikiPage.getTypeString(),
        )
예제 #8
0
    def __init__(self, plugin, application):
        """
        """
        self._plugin = plugin
        self._application = application

        self._GUIController = ActionsGUIController(
            self._application,
            WikiWikiPage.getTypeString(),
        )
        self._toolsWindowController = ToolsWindowController(self._application)
예제 #9
0
    def __init__(self, plugin, application):
        self._plugin = plugin
        self._application = application

        # В этот список добавить новые викикоманды, если они нужны
        self._commands = [CommandOrg]

        self._GUIController = ActionsGUIController(
            self._application,
            WikiWikiPage.getTypeString(),
        )
예제 #10
0
    def __init__(self, plugin, application):
        self._plugin = plugin
        self._application = application

        # В этот список добавить новые викикоманды, если они нужны
        self._commands = [CommandOrg]

        self._GUIController = ActionsGUIController(
            self._application,
            WikiWikiPage.getTypeString(),
        )
예제 #11
0
    def __init__(self, plugin, application):
        """
        """
        self._plugin = plugin
        self._application = application

        self._GUIController = ActionsGUIController(
            self._application,
            WikiWikiPage.getTypeString(),
        )
        self._toolsWindowController = ToolsWindowController(self._application)
예제 #12
0
    def __init__(self, plugin, application):
        self._plugin = plugin
        self._application = application

        self._page = None
        self._menuToolsController = MenuToolsController(self._application)
        self._commandController = CommandController(self._application)

        self._GUIController = ActionsGUIController(
            self._application,
            WikiWikiPage.getTypeString(),
        )
예제 #13
0
    def __init__(self, plugin, application):
        """
        plugin - Владелец контроллера(экземпляр класса PluginSource)
        application - экземпляр класса ApplicationParams
        """
        self._plugin = plugin
        self._application = application

        self._GUIController = ActionsGUIController(
            self._application,
            WikiWikiPage.getTypeString(),
        )
예제 #14
0
    def __init__(self, plugin, application):
        """
        plugin - Владелец контроллера(экземпляр класса PluginSource)
        application - экземпляр класса ApplicationParams
        """
        self._plugin = plugin
        self._application = application

        self._commands = [
            TitleCommand, DescriptionCommand, KeywordsCommand, StyleCommand,
            CustomHeadsCommand
        ]

        self._GUIController = ActionsGUIController(
            self._application,
            WikiWikiPage.getTypeString(),
        )
예제 #15
0
    def __init__(self, plugin, application):
        """
        plugin - Владелец контроллера(экземпляр класса PluginSource)
        application - экземпляр класса ApplicationParams
        """
        self._plugin = plugin
        self._application = application

        self._commands = [TitleCommand,
                          DescriptionCommand,
                          KeywordsCommand,
                          StyleCommand,
                          CustomHeadsCommand]

        self._GUIController = ActionsGUIController(
            self._application,
            WikiWikiPage.getTypeString(),
        )