Пример #1
0
    def __init__(self, parent, title, label):
        self.title = title
        self.label = label

        ZHeaderDialog.__init__(self, parent, wx.ID_ANY, title)

        self.Fit()
Пример #2
0
    def __init__(self, parent, title, label):
        self.title = title
        self.label = label

        ZHeaderDialog.__init__(self, parent, wx.ID_ANY, title)

        self.Fit()
Пример #3
0
 def __init__(self, parent, document, blog):
     self.blog = blog
     self.document = document
     self.blogInfoModel = ZBlogPostMetaDataModel()
     self.blogInfoModel.setInitDocument(document)
     self.pubMetaDataCtrl = None
     #FIXME (PJ) extern this and rest of string in this class/module
     ZHeaderDialog.__init__(self, parent, wx.ID_ANY, u"Publish Blog Entry", style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name = u"ZBlogPublishingDialog") #$NON-NLS-2$ #$NON-NLS-1$
     self.Layout()
Пример #4
0
    def __init__(self, parent, translation, defaultTranslation, translationDisplayName):
        self.translationDisplayName = translationDisplayName
        self.model = ZTranslationEditorModel(translation, defaultTranslation)
        style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER

        ZHeaderDialog.__init__(self, parent, wx.ID_ANY, _extstr(u"translationeditor.EditTranslation_") % translationDisplayName, style = style) #$NON-NLS-1$
        ZPersistentDialogMixin.__init__(self, IZBlogAppUserPrefsKeys.TRANSLATION_DIALOG, True, True)

        self.selectedKey = None
        self.selectedValue = None
Пример #5
0
    def __init__(self, parent):
        self.model = ZMediaStorageManagerModel()
        self.model.getService().addListener(self)
        ZHeaderDialog.__init__(self, parent, wx.ID_ANY, _extstr(u"mediastoragedialog.DialogTitle"), style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name = u"ZMediaStorageManagerDialog") #$NON-NLS-2$ #$NON-NLS-1$

        size = self.GetBestSize()
        self.SetSize(size)

        ZPersistentDialogMixin.__init__(self, IZAppUserPrefsKeys.MEDIA_STORE_MANAGER_DIALOG)

        self.Layout()
Пример #6
0
    def __init__(self,
                 parent,
                 id,
                 title,
                 pos=wx.DefaultPosition,
                 size=wx.DefaultSize,
                 style=wx.DEFAULT_DIALOG_STYLE,
                 name=u"ZValidatingDialog"):  #$NON-NLS-1$):
        self.validatingWidgets = {}
        self.isValid = True

        ZHeaderDialog.__init__(self, parent, id, title, pos, size, style, name)
Пример #7
0
 def __init__(self, parent, izConfigValidationReporter, title, description, imagePath):
     self.reporter = izConfigValidationReporter
     self.title = title
     self.description = description
     self.imagePath = imagePath
     ZHeaderDialog.__init__(self, parent, wx.ID_ANY, title)
     size = self.GetBestSize()
     if size.GetWidth() < 500:
         size.SetWidth(500)
     if size.GetHeight() < 300:
         size.SetHeight(300)            
     self.SetSize(size)
Пример #8
0
 def __init__(self, parent, account):
     self.account = account
     self.model = ZAccountSynchModel(self.account)
     ZHeaderDialog.__init__(
         self,
         parent,
         wx.ID_ANY,
         _extstr(u"synchronizeaccountdialog.DialogTitle"),
         style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER,
         name=u"ZSynchronizeAccountBlogsDialog")  #$NON-NLS-2$ #$NON-NLS-1$
     ZPersistentDialogMixin.__init__(self,
                                     IZBlogAppUserPrefsKeys.SYNCH_DIALOG)
     self.Layout()
Пример #9
0
 def __init__(self, parent, izConfigValidationReporter, title, description,
              imagePath):
     self.reporter = izConfigValidationReporter
     self.title = title
     self.description = description
     self.imagePath = imagePath
     ZHeaderDialog.__init__(self, parent, wx.ID_ANY, title)
     size = self.GetBestSize()
     if size.GetWidth() < 500:
         size.SetWidth(500)
     if size.GetHeight() < 300:
         size.SetHeight(300)
     self.SetSize(size)
Пример #10
0
    def __init__(self, parent, jumpToPageId = None):
        self.currentSelection = None
        self.currentPage = None
        self.currentPageId = None
        self.pageCache = {}
        style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
        title = self._getDialogTitle()
        size = self._getInitialSize()
        
        ZHeaderDialog.__init__(self, parent, wx.ID_ANY, title, name = u"PrefsDialog", style = style, size = size) #$NON-NLS-1$

        self._enableButtons(False)
        self.jumpToPage(jumpToPageId)
        self.prefsTreeView.SetFocus()
Пример #11
0
 def __init__(self, parent, document, blog):
     self.blog = blog
     self.document = document
     self.blogInfoModel = ZBlogPostMetaDataModel()
     self.blogInfoModel.setInitDocument(document)
     self.pubMetaDataCtrl = None
     #FIXME (PJ) extern this and rest of string in this class/module
     ZHeaderDialog.__init__(
         self,
         parent,
         wx.ID_ANY,
         u"Publish Blog Entry",
         style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER,
         name=u"ZBlogPublishingDialog")  #$NON-NLS-2$ #$NON-NLS-1$
     self.Layout()
Пример #12
0
    def __init__(self, parent, translation, defaultTranslation,
                 translationDisplayName):
        self.translationDisplayName = translationDisplayName
        self.model = ZTranslationEditorModel(translation, defaultTranslation)
        style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER

        ZHeaderDialog.__init__(self,
                               parent,
                               wx.ID_ANY,
                               _extstr(u"translationeditor.EditTranslation_") %
                               translationDisplayName,
                               style=style)  #$NON-NLS-1$
        ZPersistentDialogMixin.__init__(
            self, IZBlogAppUserPrefsKeys.TRANSLATION_DIALOG, True, True)

        self.selectedKey = None
        self.selectedValue = None
Пример #13
0
    def __init__(self, parent):
        self.model = ZMediaStorageManagerModel()
        self.model.getService().addListener(self)
        ZHeaderDialog.__init__(
            self,
            parent,
            wx.ID_ANY,
            _extstr(u"mediastoragedialog.DialogTitle"),
            style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER,
            name=u"ZMediaStorageManagerDialog")  #$NON-NLS-2$ #$NON-NLS-1$

        size = self.GetBestSize()
        self.SetSize(size)

        ZPersistentDialogMixin.__init__(
            self, IZAppUserPrefsKeys.MEDIA_STORE_MANAGER_DIALOG)

        self.Layout()
Пример #14
0
    def __init__(self, parent, jumpToPageId=None):
        self.currentSelection = None
        self.currentPage = None
        self.currentPageId = None
        self.pageCache = {}
        style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
        title = self._getDialogTitle()
        size = self._getInitialSize()

        ZHeaderDialog.__init__(self,
                               parent,
                               wx.ID_ANY,
                               title,
                               name=u"PrefsDialog",
                               style=style,
                               size=size)  #$NON-NLS-1$

        self._enableButtons(False)
        self.jumpToPage(jumpToPageId)
        self.prefsTreeView.SetFocus()
Пример #15
0
    def __init__(self, parent, bgTask, title, description, imagePath):
        self.title = title
        self.description = description
        self.bgTask = bgTask
        self.imagePath = imagePath

        # This is here for intellisense purposes.
        if self.bgTask is None and False:
            self.bgTask = IZBackgroundTask()

        self.mutex = ZMutex(u"BGTaskDialogMTX")  #$NON-NLS-1$

        # Dialog state - can be modified by multiple threads and should
        # be protected by the above mutex.
        self.model = ZBackgroundTaskProgressDialogModel()

        ZHeaderDialog.__init__(self, parent, wx.ID_ANY, title)

        size = self.GetBestSize()
        if size.GetWidth() < 500:
            size.SetWidth(500)
        self.SetSize(size)

        self.bgTask.attachListener(self)
Пример #16
0
    def __init__(self, parent, bgTask, title, description, imagePath):
        self.title = title
        self.description = description
        self.bgTask = bgTask
        self.imagePath = imagePath

        # This is here for intellisense purposes.
        if self.bgTask is None and False:
            self.bgTask = IZBackgroundTask()

        self.mutex = ZMutex(u"BGTaskDialogMTX") #$NON-NLS-1$

        # Dialog state - can be modified by multiple threads and should
        # be protected by the above mutex.
        self.model = ZBackgroundTaskProgressDialogModel()

        ZHeaderDialog.__init__(self, parent, wx.ID_ANY, title)

        size = self.GetBestSize()
        if size.GetWidth() < 500:
            size.SetWidth(500)
        self.SetSize(size)

        self.bgTask.attachListener(self)
Пример #17
0
 def __init__(self, parent, account):
     self.account = account
     self.model = ZAccountSynchModel(self.account)
     ZHeaderDialog.__init__(self, parent, wx.ID_ANY, _extstr(u"synchronizeaccountdialog.DialogTitle"), style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name = u"ZSynchronizeAccountBlogsDialog") #$NON-NLS-2$ #$NON-NLS-1$
     ZPersistentDialogMixin.__init__(self, IZBlogAppUserPrefsKeys.SYNCH_DIALOG)
     self.Layout()
Пример #18
0
    def __init__(self, parent, title):
        ZHeaderDialog.__init__(self, parent, wx.ID_ANY, title)
        # Tell the dialog to resize itself to best-fit its children.

        self.Fit()
Пример #19
0
 def __init__(self, parent, title):
     ZHeaderDialog.__init__(self, parent, wx.ID_ANY, title)
     # Tell the dialog to resize itself to best-fit its children.
 
     self.Fit()
Пример #20
0
    def __init__(self, parent, id, title, pos = wx.DefaultPosition, size = wx.DefaultSize, style = wx.DEFAULT_DIALOG_STYLE, name = u"ZValidatingDialog"): #$NON-NLS-1$):
        self.validatingWidgets = {}
        self.isValid = True

        ZHeaderDialog.__init__(self, parent, id, title, pos, size, style, name)