コード例 #1
0
ファイル: controller.py プロジェクト: LihMeh/outwiker
    def initialize (self):
        global _
        _ = get_()

        self._menuToolsController.initialize()
        self._commandController.initialize()
        self._owner.application.onPreferencesDialogCreate += self.__onPreferencesDialogCreate
コード例 #2
0
    def initialize(self):
        global _
        _ = get_()

        self._menuToolsController.initialize()
        self._commandController.initialize()
        self._owner.application.onPreferencesDialogCreate += self.__onPreferencesDialogCreate
コード例 #3
0
    def initialize(self):
        global _
        _ = get_()

        self._renamer = Renamer(self._application)

        self._application.onForceSave += self._renamer.RenamePage
        self._application.onPreferencesDialogCreate += self.__onPreferencesDialogCreate
        self._application.onPageViewCreate += self.__onPageViewCreate
        self._application.onPageViewDestroy += self.__onPageViewDestroy
        self._application.onWikiParserPrepare += self.__onWikiParserPrepare
コード例 #4
0
ファイル: autorenamer.py プロジェクト: LihMeh/outwiker
	def initialize (self):
		global _
		_ = get_()

		self._renamer = Renamer(self._application)

		self._application.onForceSave += self._renamer.RenamePage
		self._application.onPreferencesDialogCreate += self.__onPreferencesDialogCreate
		self._application.onPageViewCreate += self.__onPageViewCreate
		self._application.onPageViewDestroy += self.__onPageViewDestroy
		self._application.onWikiParserPrepare += self.__onWikiParserPrepare
コード例 #5
0
    def __init__(self, parent, config):
        """
        parent - родитель панели (должен быть wx.Treebook)
        config - настройки из plugin._application.config
        """
        super(PreferencePanel, self).__init__(parent)

        global _
        _ = get_()

        self.__createGui()
        self.__controller = PrefPanelController(self, config)
        self._setScrolling()
コード例 #6
0
ファイル: preferencepanel.py プロジェクト: LihMeh/outwiker
    def __init__ (self, parent, config):
        """
        parent - родитель панели (должен быть wx.Treebook)
        config - настройки из plugin._application.config
        """
        super (PreferencePanel, self).__init__ (parent)

        global _
        _ = get_()

        self.__createGui()
        self.__controller = PrefPanelController (self, config)
        self._setScrolling()
コード例 #7
0
ファイル: controller.py プロジェクト: DavidWHouse/outwiker
    def initialize (self):
        global _
        _ = get_()

        self._correctSysPath()
        self._application.onPageDialogPageFactoriesNeeded += self._onPageDialogPageFactoriesNeeded
        self._application.onPageViewDestroy += self._onPageViewDestroy
        self._application.onPageViewCreate += self._onPageViewCreate

        self._registerHtmlProcessors()

        if self._application.mainWindow is not None:
            self._registerActions ()
            self._guiController.initialize()
        FactorySelector.addFactory (WebPageFactory())
コード例 #8
0
    def initialize(self):
        global _
        _ = get_()

        self._correctSysPath()
        self._application.onPageDialogPageFactoriesNeeded += self._onPageDialogPageFactoriesNeeded
        self._application.onPageViewDestroy += self._onPageViewDestroy
        self._application.onPageViewCreate += self._onPageViewCreate
        self._application.onPageUpdateNeeded += self._onPageUpdateNeeded

        self._registerHtmlProcessors()

        if self._application.mainWindow is not None:
            self._registerActions()
            self._guiController.initialize()
        FactorySelector.addFactory(WebPageFactory())
コード例 #9
0
ファイル: actions.py プロジェクト: sarutobi/outwiker
    def __init__ (self, application):
        self._application = application

        global _
        _ = get_()