Ejemplo 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()
Ejemplo 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()
Ejemplo 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_()
Ejemplo 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_()
Ejemplo 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)
Ejemplo 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)
Ejemplo n.º 7
0
    def __init__(self, application):
        self._application = application

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

        global _
        _ = get_()