Пример #1
0
 def __init__(self, application):
     self._application = application
     self._appearancePanel = None
     self._appearanceController = None
     self._colorizerController = WikiColorizerController(
         self._application,
         WikiWikiPage.getTypeString())
Пример #2
0
 def __onPageDialogPageTypeChanged(self, page, params):
     if params.pageType == WikiWikiPage.getTypeString():
         self._addTab(params.dialog)
     elif self._appearancePanel is not None:
         params.dialog.removeController(self._appearanceController)
         params.dialog.removePanel(self._appearancePanel)
         self._appearancePanel = None
         self._appearanceController = None
Пример #3
0
 def __onPageDialogPageTypeChanged (self, page, params):
     if params.pageType == WikiWikiPage.getTypeString():
         self._addTab(params.dialog)
     elif self._appearancePanel is not None:
         params.dialog.removeController (self._appearanceController)
         params.dialog.removePanel (self._appearancePanel)
         self._appearancePanel = None
         self._appearanceController = None
Пример #4
0
    def __onPageUpdateNeeded(self, page, params):
        if (page is None
                or page.getTypeString() != WikiWikiPage.getTypeString()
                or page.readonly):
            return

        if not params.allowCache:
            HtmlCache(page, self._application).resetHash()
        self._updatePage(page)
Пример #5
0
    def __onPageUpdateNeeded(self, page, params):
        if (page is None or
                page.getTypeString() != WikiWikiPage.getTypeString() or
                page.readonly):
            return

        if not params.allowCache:
            HtmlCache(page, self._application).resetHash()
        self._updatePage(page)
Пример #6
0
 def initialize (self, page):
     if page.getTypeString() == WikiWikiPage.getTypeString():
         self._bindEvents()
Пример #7
0
 def __init__(self, application):
     self._application = application
     self._appearancePanel = None
     self._appearanceController = None
     self._colorizerController = WikiColorizerController(
         self._application, WikiWikiPage.getTypeString())
Пример #8
0
 def initialize(self, page):
     if page.getTypeString() == WikiWikiPage.getTypeString():
         self._bindEvents()