Example #1
0
 def __init__(self, application):
     self._application = application
     self._appearancePanel = None
     self._appearanceController = None
     self._colorizerController = WikiColorizerController(
         self._application,
         WikiWikiPage.getTypeString())
Example #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
Example #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
Example #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)
Example #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)
 def initialize (self, page):
     if page.getTypeString() == WikiWikiPage.getTypeString():
         self._bindEvents()
Example #7
0
 def __init__(self, application):
     self._application = application
     self._appearancePanel = None
     self._appearanceController = None
     self._colorizerController = WikiColorizerController(
         self._application, WikiWikiPage.getTypeString())
Example #8
0
 def initialize(self, page):
     if page.getTypeString() == WikiWikiPage.getTypeString():
         self._bindEvents()