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())
def __init__(self, application): self._application = application self._GUIController = ActionsGUIController( self._application, WikiWikiPage.getTypeString(), )
def __init__(self, plugin, application): self._plugin = plugin self._application = application self._actions_gui_controller = ActionsGUIController( self._application, WikiWikiPage.getTypeString(), )
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())
def __init__(self, plugin, application): self._plugin = plugin self._application = application self.__maxCommandIndex = 9 self._GUIController = ActionsGUIController( self._application, WikiWikiPage.getTypeString(), )
def __init__(self, plugin, application): """ """ self._plugin = plugin self._application = application self._GUIController = ActionsGUIController( self._application, WikiWikiPage.getTypeString(), ) self._toolsWindowController = ToolsWindowController(self._application)
def __init__(self, plugin, application): self._plugin = plugin self._application = application # В этот список добавить новые викикоманды, если они нужны self._commands = [CommandOrg] self._GUIController = ActionsGUIController( self._application, WikiWikiPage.getTypeString(), )
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(), )
def __init__(self, plugin, application): """ plugin - Владелец контроллера(экземпляр класса PluginSource) application - экземпляр класса ApplicationParams """ self._plugin = plugin self._application = application self._GUIController = ActionsGUIController( self._application, WikiWikiPage.getTypeString(), )
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(), )
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(), )