Exemplo n.º 1
0
class ZBlogPrefsPage(ZBasePrefsPage):

    def __init__(self, parent, blog):
        self.blog = blog

        ZBasePrefsPage.__init__(self, parent)
    # end __init__()

    def _createSession(self):
        return ZBlogPrefsSession(self, self.blog)
    # end _createSession()

    def _createPrefsSubPages(self, parent):
        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/publishing.png") #$NON-NLS-1$
        self.pubPage = ZBlogPublishingPrefSubPage(parent, self.session)
        self.toolBook.addPage(self.pubPage, _extstr(u"blogpage.Publishing"), _extstr(u"blogpage.Publishing_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/media_store.png") #$NON-NLS-1$
        self.storePage = ZBlogMediaStoragePrefSubPage(parent, self.session)
        self.toolBook.addPage(self.storePage, _extstr(u"blogpage.Media_Store"), _extstr(u"blogpage.Media_Store_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/template.png") #$NON-NLS-1$
        self.templatePage = ZBlogTemplatePrefSubPage(parent, self.session)
        self.toolBook.addPage(self.templatePage, _extstr(u"blogpage.Template"), _extstr(u"blogpage.Template_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/ping_sites.png") #$NON-NLS-1$
        self.sitesPage = ZBlogPingSitesPrefSubPage(parent, self.session)
        self.toolBook.addPage(self.sitesPage, _extstr(u"blogpage.Ping_Sites"), _extstr(u"blogpage.Ping_Sites_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$
        
        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/tag_sites.png") #$NON-NLS-1$
        self.tagsPage = ZBlogTagSitesPrefSubPage(parent, self.session)
        self.toolBook.addPage(self.tagsPage, _extstr(u"blogpage.Tag_Sites"), _extstr(u"blogpage.Tag_Sites_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$
        
    # end _createPrefsSubPages()

    def populateWidgets(self):
        self.pubPage._populateWidgets()
        self.storePage._populateWidgets()
        self.sitesPage._populateWidgets()
        self.tagsPage._populateWidgets()
    # end populateWidgets()

    def bindWidgetEvents(self):
        self._bindValidatingWidget(self.pubPage)
        self._bindValidatingWidget(self.storePage)
        self._bindValidatingWidget(self.sitesPage)
        self._bindValidatingWidget(self.tagsPage)
Exemplo n.º 2
0
    def _createPrefsSubPages(self, parent):
        bmp = getResourceRegistry().getBitmap(
            u"images/dialogs/account/manager/account_pages/publishing.png"
        )  #$NON-NLS-1$
        self.pubPage = ZBlogPublishingPrefSubPage(parent, self.session)
        self.toolBook.addPage(self.pubPage, _extstr(u"blogpage.Publishing"),
                              _extstr(u"blogpage.Publishing_Description"),
                              bmp)  #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(
            u"images/dialogs/account/manager/account_pages/media_store.png"
        )  #$NON-NLS-1$
        self.storePage = ZBlogMediaStoragePrefSubPage(parent, self.session)
        self.toolBook.addPage(self.storePage, _extstr(u"blogpage.Media_Store"),
                              _extstr(u"blogpage.Media_Store_Description"),
                              bmp)  #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(
            u"images/dialogs/account/manager/account_pages/template.png"
        )  #$NON-NLS-1$
        self.templatePage = ZBlogTemplatePrefSubPage(parent, self.session)
        self.toolBook.addPage(self.templatePage, _extstr(u"blogpage.Template"),
                              _extstr(u"blogpage.Template_Description"),
                              bmp)  #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(
            u"images/dialogs/account/manager/account_pages/ping_sites.png"
        )  #$NON-NLS-1$
        self.sitesPage = ZBlogPingSitesPrefSubPage(parent, self.session)
        self.toolBook.addPage(self.sitesPage, _extstr(u"blogpage.Ping_Sites"),
                              _extstr(u"blogpage.Ping_Sites_Description"),
                              bmp)  #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(
            u"images/dialogs/account/manager/account_pages/tag_sites.png"
        )  #$NON-NLS-1$
        self.tagsPage = ZBlogTagSitesPrefSubPage(parent, self.session)
        self.toolBook.addPage(self.tagsPage, _extstr(u"blogpage.Tag_Sites"),
                              _extstr(u"blogpage.Tag_Sites_Description"),
                              bmp)  #$NON-NLS-2$ #$NON-NLS-1$
Exemplo n.º 3
0
    def _createPrefsSubPages(self, parent):
        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/publishing.png") #$NON-NLS-1$
        self.pubPage = ZBlogPublishingPrefSubPage(parent, self.session)
        self.toolBook.addPage(self.pubPage, _extstr(u"blogpage.Publishing"), _extstr(u"blogpage.Publishing_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/media_store.png") #$NON-NLS-1$
        self.storePage = ZBlogMediaStoragePrefSubPage(parent, self.session)
        self.toolBook.addPage(self.storePage, _extstr(u"blogpage.Media_Store"), _extstr(u"blogpage.Media_Store_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/template.png") #$NON-NLS-1$
        self.templatePage = ZBlogTemplatePrefSubPage(parent, self.session)
        self.toolBook.addPage(self.templatePage, _extstr(u"blogpage.Template"), _extstr(u"blogpage.Template_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/ping_sites.png") #$NON-NLS-1$
        self.sitesPage = ZBlogPingSitesPrefSubPage(parent, self.session)
        self.toolBook.addPage(self.sitesPage, _extstr(u"blogpage.Ping_Sites"), _extstr(u"blogpage.Ping_Sites_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$
        
        bmp = getResourceRegistry().getBitmap(u"images/dialogs/account/manager/account_pages/tag_sites.png") #$NON-NLS-1$
        self.tagsPage = ZBlogTagSitesPrefSubPage(parent, self.session)
        self.toolBook.addPage(self.tagsPage, _extstr(u"blogpage.Tag_Sites"), _extstr(u"blogpage.Tag_Sites_Description"), bmp) #$NON-NLS-2$ #$NON-NLS-1$
Exemplo n.º 4
0
class ZBlogPrefsPage(ZBasePrefsPage):
    def __init__(self, parent, blog):
        self.blog = blog

        ZBasePrefsPage.__init__(self, parent)

    # end __init__()

    def _createSession(self):
        return ZBlogPrefsSession(self, self.blog)

    # end _createSession()

    def _createPrefsSubPages(self, parent):
        bmp = getResourceRegistry().getBitmap(
            u"images/dialogs/account/manager/account_pages/publishing.png"
        )  #$NON-NLS-1$
        self.pubPage = ZBlogPublishingPrefSubPage(parent, self.session)
        self.toolBook.addPage(self.pubPage, _extstr(u"blogpage.Publishing"),
                              _extstr(u"blogpage.Publishing_Description"),
                              bmp)  #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(
            u"images/dialogs/account/manager/account_pages/media_store.png"
        )  #$NON-NLS-1$
        self.storePage = ZBlogMediaStoragePrefSubPage(parent, self.session)
        self.toolBook.addPage(self.storePage, _extstr(u"blogpage.Media_Store"),
                              _extstr(u"blogpage.Media_Store_Description"),
                              bmp)  #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(
            u"images/dialogs/account/manager/account_pages/template.png"
        )  #$NON-NLS-1$
        self.templatePage = ZBlogTemplatePrefSubPage(parent, self.session)
        self.toolBook.addPage(self.templatePage, _extstr(u"blogpage.Template"),
                              _extstr(u"blogpage.Template_Description"),
                              bmp)  #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(
            u"images/dialogs/account/manager/account_pages/ping_sites.png"
        )  #$NON-NLS-1$
        self.sitesPage = ZBlogPingSitesPrefSubPage(parent, self.session)
        self.toolBook.addPage(self.sitesPage, _extstr(u"blogpage.Ping_Sites"),
                              _extstr(u"blogpage.Ping_Sites_Description"),
                              bmp)  #$NON-NLS-2$ #$NON-NLS-1$

        bmp = getResourceRegistry().getBitmap(
            u"images/dialogs/account/manager/account_pages/tag_sites.png"
        )  #$NON-NLS-1$
        self.tagsPage = ZBlogTagSitesPrefSubPage(parent, self.session)
        self.toolBook.addPage(self.tagsPage, _extstr(u"blogpage.Tag_Sites"),
                              _extstr(u"blogpage.Tag_Sites_Description"),
                              bmp)  #$NON-NLS-2$ #$NON-NLS-1$

    # end _createPrefsSubPages()

    def populateWidgets(self):
        self.pubPage._populateWidgets()
        self.storePage._populateWidgets()
        self.sitesPage._populateWidgets()
        self.tagsPage._populateWidgets()

    # end populateWidgets()

    def bindWidgetEvents(self):
        self._bindValidatingWidget(self.pubPage)
        self._bindValidatingWidget(self.storePage)
        self._bindValidatingWidget(self.sitesPage)
        self._bindValidatingWidget(self.tagsPage)