def _createStandardDialogWidgets(self):
        ZStandardDialog._createStandardDialogWidgets(self)

        self.provider = ZBlogListContentProvider(self.blogs, self.blog)
        style = wx.LC_REPORT | wx.LC_NO_HEADER | wx.LC_SINGLE_SEL
        self.blogsCheckList = ZCheckBoxListViewWithButtons(self.provider, self.topPanel, style = style)

        singleBlog = len(self.blogs) == 1
        self.localCopyCB = wx.CheckBox(self.topPanel, wx.ID_ANY, _extstr(u"deletepostsdialog.DeleteLocalCopy")) #$NON-NLS-1$
        self.localCopyCB.SetValue(singleBlog)
Beispiel #2
0
    def _createStandardDialogWidgets(self):
        ZStandardDialog._createStandardDialogWidgets(self)

        self.provider = ZBlogListContentProvider(self.blogs, self.blog)
        style = wx.LC_REPORT | wx.LC_NO_HEADER | wx.LC_SINGLE_SEL
        self.blogsCheckList = ZCheckBoxListViewWithButtons(self.provider,
                                                           self.topPanel,
                                                           style=style)

        singleBlog = len(self.blogs) == 1
        self.localCopyCB = wx.CheckBox(
            self.topPanel, wx.ID_ANY,
            _extstr(u"deletepostsdialog.DeleteLocalCopy"))  #$NON-NLS-1$
        self.localCopyCB.SetValue(singleBlog)
    def __init__(self, parent, document, blog, blogs):
        self.document = document
        self.blog = blog
        self.blogs = blogs

        title = _extstr(u"deletepostsdialog.DeletePublishedPost") #$NON-NLS-1$
        caption = u"%s: '%s'\n%s:" % (_extstr(u"deletepostsdialog.DeleteBlogPost"), getSafeString(self.document.getTitle()), _extstr(u"deletepostsdialog.DeleteFromTheseBlogs")) #$NON-NLS-1$ #$NON-NLS-3$ #$NON-NLS-2$
        buttonMask = ZBaseDialog.YES_BUTTON | ZBaseDialog.NO_BUTTON
        ZStandardDialog.__init__(self, parent, title, caption, buttonMask, u"question") #$NON-NLS-1$

        (w, h) = self.GetBestSizeTuple()
        w = min(max(w, 500), 600)
        self.SetSize(wx.Size(w, h))
        self.Layout()
Beispiel #4
0
    def __init__(self, parent, document, blog, blogs):
        self.document = document
        self.blog = blog
        self.blogs = blogs

        title = _extstr(u"deletepostsdialog.DeletePublishedPost")  #$NON-NLS-1$
        caption = u"%s: '%s'\n%s:" % (
            _extstr(u"deletepostsdialog.DeleteBlogPost"),
            getSafeString(self.document.getTitle()),
            _extstr(u"deletepostsdialog.DeleteFromTheseBlogs")
        )  #$NON-NLS-1$ #$NON-NLS-3$ #$NON-NLS-2$
        buttonMask = ZBaseDialog.YES_BUTTON | ZBaseDialog.NO_BUTTON
        ZStandardDialog.__init__(self, parent, title, caption, buttonMask,
                                 u"question")  #$NON-NLS-1$

        (w, h) = self.GetBestSizeTuple()
        w = min(max(w, 500), 600)
        self.SetSize(wx.Size(w, h))
        self.Layout()
Beispiel #5
0
    def _bindWidgetEvents(self):
        ZStandardDialog._bindWidgetEvents(self)

        self.Bind(ZEVT_CHECKBOX_LIST_CHANGE, self.onCheckListChange,
                  self.blogsCheckList)
    def _bindWidgetEvents(self):
        ZStandardDialog._bindWidgetEvents(self)

        self.Bind(ZEVT_CHECKBOX_LIST_CHANGE, self.onCheckListChange, self.blogsCheckList)