Esempio n. 1
0
    def __init__(self, parent):
        super(ExecDialog, self).__init__(parent)

        global _
        _ = get_()

        self._formats = [_(u'Link'), _(u'Button')]

        self.SetTitle(_(u'Inserting (:exec:) command'))
        self._createGui()
        self._titleTextBox.SetFocus()
Esempio n. 2
0
    def __init__ (self, parent):
        super (ExecDialog, self).__init__(parent)

        global _
        _ = get_()

        self._formats = [_(u'Link'), _(u'Button')]

        self.SetTitle (_(u'Inserting (:exec:) command'))
        self._createGui ()
        self._titleTextBox.SetFocus()
Esempio n. 3
0
    def __init__(self, application):
        self._application = application

        self._actions = [
            CommandExecAction,
            MacrosPageAction,
            MacrosHtmlAction,
            MacrosAttachAction,
            MacrosFolderAction,
        ]

        # MenuItem for ExternalTools submenu
        self._submenuItem = None

        global _
        _ = get_()
Esempio n. 4
0
    def __init__ (self, application):
        self._application = application

        self._actions = [
            CommandExecAction,
            MacrosPageAction,
            MacrosHtmlAction,
            MacrosAttachAction,
            MacrosFolderAction,
        ]

        # MenuItem for ExternalTools submenu
        self._submenuItem = None

        global _
        _ = get_()
Esempio n. 5
0
    def initialize(self):
        global _
        _ = get_()

        if self._enableExecCommand:
            from externaltools.commandexec.guicreator import GuiCreator

            self._application.onWikiParserPrepare += self.__onWikiParserPrepare
            self._application.onHoverLink += self._onHoverLink
            self._application.onLinkClick += self.onLinkClick
            self._application.onPageViewCreate += self.__onPageViewCreate
            self._application.onPageViewDestroy += self.__onPageViewDestroy

            self._guiCreator = GuiCreator(self._application)
            self._guiCreator.initialize()

            if self._isCurrentWikiPage:
                self.__onPageViewCreate(self._application.selectedPage)
Esempio n. 6
0
    def initialize (self):
        global _
        _ = get_()

        if self._enableExecCommand:
            from externaltools.commandexec.guicreator import GuiCreator

            self._application.onWikiParserPrepare += self.__onWikiParserPrepare
            self._application.onHoverLink += self._onHoverLink
            self._application.onLinkClick += self.onLinkClick
            self._application.onPageViewCreate += self.__onPageViewCreate
            self._application.onPageViewDestroy += self.__onPageViewDestroy

            self._guiCreator = GuiCreator (self._application)
            self._guiCreator.initialize()

            if self._isCurrentWikiPage:
                self.__onPageViewCreate (self._application.selectedPage)
Esempio n. 7
0
    def __init__(self, application):
        self._application = application

        global _
        _ = get_()
Esempio n. 8
0
    def __init__(self, application):
        self._application = application

        global _
        _ = get_()