def __init__(self, parent, model): self.model = model ZValidatingHeaderDialog.__init__(self, parent, wx.ID_ANY, _extstr(u"linkdialog.EnterLinkInfo"), style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name = u"ZLinkDialog") #$NON-NLS-2$ #$NON-NLS-1$ bestHeight = self.GetBestSizeTuple()[1] self.SetMinSize(wx.Size(-1, bestHeight)) ZPersistentDialogMixin.__init__(self, IZBlogAppUserPrefsKeys.LINK_DIALOG, True, True)
def __init__(self, parent): self.model = ZTranslationManagerModel() self.selectedTranslation = None style = wx.DEFAULT_FRAME_STYLE | wx.FULL_REPAINT_ON_RESIZE | wx.CLIP_CHILDREN ZBaseWindow.__init__(self, parent, _extstr(u"translationmanager.TranslationManager"), style = style) #$NON-NLS-1$ ZPersistentDialogMixin.__init__(self, IZBlogAppUserPrefsKeys.TRANSLATION_WINDOW) self.Layout()
def __init__(self, parent): self.model = ZAddTemplateFromBlogModel() ZValidatingHeaderDialog.__init__( self, parent, wx.ID_ANY, _extstr(u"templatedialogs.AddTemplate")) #$NON-NLS-1$ ZPersistentDialogMixin.__init__( self, IZBlogAppUserPrefsKeys.ADD_TEMPLATE_FROM_BLOG_DIALOG, True, True)
def __init__(self, parent): self.model = ZBackgroundTaskManagerModel() ZBaseWindow.__init__(self, parent, _extstr(u"bgtaskmanager.BackgroundTaskManager"), name = u"ZBackgroundTaskManager") #$NON-NLS-2$ #$NON-NLS-1$ ZPersistentDialogMixin.__init__(self, IZAppUserPrefsKeys.BGTASK_WINDOW) self.Layout() self.model.getService().addListener(self)
def __init__(self, parent): self.model = ZThumbnailImageDialogModel() title = _extstr(u"imagehandlerdialog.Generate_Thumbnail") #$NON-NLS-1$ ZValidatingHeaderDialog.__init__(self, parent, wx.ID_ANY, title, style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name = u"ZThumbnailImageDialog") #$NON-NLS-1$ bestHeight = self.GetBestSizeTuple()[1] self.SetMinSize(wx.Size(-1, bestHeight)) ZPersistentDialogMixin.__init__(self, IZBlogAppUserPrefsKeys.DND_THUMBNAIL_DIALOG, True, True)
def __init__(self, parent): self.model = ZTemplateManagerModel() self.selectedTemplate = None style = wx.DEFAULT_FRAME_STYLE | wx.FULL_REPAINT_ON_RESIZE | wx.CLIP_CHILDREN ZBaseWindow.__init__(self, parent, _extstr(u"templatemanager.BlogTemplateManager"), name = u"ZTemplateManager", style = style) #$NON-NLS-2$ #$NON-NLS-1$ ZPersistentDialogMixin.__init__(self, IZBlogAppUserPrefsKeys.TEMPLATE_WINDOW) self.Layout() self._installListener()
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
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()
def __init__(self, parent): self.userPrefs = getApplicationModel().getUserProfile().getPreferences( ) self.feedbackEmailUserPrefsKey = IZAppUserPrefsKeys.FEEDBACK_DIALOG + u".email" #$NON-NLS-1$ ZBaseDialog.__init__( self, parent, wx.ID_ANY, _extstr(u"feedbackdialog.ZoundryRavenFeedback")) #$NON-NLS-1$ ZPersistentDialogMixin.__init__(self, IZAppUserPrefsKeys.FEEDBACK_DIALOG, True, True)
def __init__(self, parent): self.model = ZTranslationManagerModel() self.selectedTranslation = None style = wx.DEFAULT_FRAME_STYLE | wx.FULL_REPAINT_ON_RESIZE | wx.CLIP_CHILDREN ZBaseWindow.__init__(self, parent, _extstr(u"translationmanager.TranslationManager"), style=style) #$NON-NLS-1$ ZPersistentDialogMixin.__init__( self, IZBlogAppUserPrefsKeys.TRANSLATION_WINDOW) self.Layout()
def __init__(self, parent, spellCheckModel): self.spellCheckModel = spellCheckModel ZBaseDialog.__init__( self, parent, wx.ID_ANY, _extstr(u"spellcheckdialog.DialogTitle"), size=wx.Size(350, 340), style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name=u"ZSpellCheckDialog") #$NON-NLS-1$ #$NON-NLS-2$ ZPersistentDialogMixin.__init__( self, IZBlogAppUserPrefsKeys.SPELLCHECK_DIALOG, False, True)
def __init__(self): self.editorFactory = ZEditorFactory() self.menuBar = None self.toolBar = None self.statusBar = None self.editors = [] self.tabToEditorMap = {} self.parent = None ZBaseWindow.__init__(self, self.parent, u"", name = u"ZEditorWindow", size = wx.Size(640, 550)) #$NON-NLS-2$ #$NON-NLS-1$ ZPersistentDialogMixin.__init__(self, IZBlogAppUserPrefsKeys.EDITOR_WINDOW, False) self.Layout()
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()
def __init__(self, parent): self.model = ZBackgroundTaskManagerModel() ZBaseWindow.__init__( self, parent, _extstr(u"bgtaskmanager.BackgroundTaskManager"), name=u"ZBackgroundTaskManager") #$NON-NLS-2$ #$NON-NLS-1$ ZPersistentDialogMixin.__init__(self, IZAppUserPrefsKeys.BGTASK_WINDOW) self.Layout() self.model.getService().addListener(self)
def __init__(self, parent, model): # model is instance of ZEditImageModel. self.model = model self.aspectRatio = 0.0 title = _extstr(u"imagedialog.EditImageInformation") #$NON-NLS-1$ if not self.model.isEditMode(): title = _extstr(u"imagedialog.InsertImage") #$NON-NLS-1$ ZValidatingHeaderDialog.__init__(self, parent, wx.ID_ANY, title, style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name = u"ZImageDialog") #$NON-NLS-1$ bestHeight = self.GetBestSizeTuple()[1] self.SetMinSize(wx.Size(-1, bestHeight)) ZPersistentDialogMixin.__init__(self, IZBlogAppUserPrefsKeys.IMAGE_DIALOG, True, True)
def __init__(self, parent, findReplaceModel): self.findReplaceModel = findReplaceModel ZBaseDialog.__init__( self, parent, wx.ID_ANY, _extstr(u"findreplacedialog.DialogTitle"), style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name=u"ZSpellCheckDialog") #$NON-NLS-1$ #$NON-NLS-2$ ZPersistentDialogMixin.__init__( self, IZBlogAppUserPrefsKeys.FIND_REPLACE_DIALOG, True, True) if getNoneString(self.findReplaceModel.getFindText()) is not None: # since there is a search term preselected, initiate the find process. runnable = ZMethodRunnable(self._doFindNext) fireUIExecEvent(runnable, self)
def __init__(self, parent, findReplaceModel): self.findReplaceModel = findReplaceModel ZBaseDialog.__init__( self, parent, wx.ID_ANY, _extstr(u"findreplacedialog.DialogTitle"), style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name=u"ZSpellCheckDialog", ) # $NON-NLS-1$ #$NON-NLS-2$ ZPersistentDialogMixin.__init__(self, IZBlogAppUserPrefsKeys.FIND_REPLACE_DIALOG, True, True) if getNoneString(self.findReplaceModel.getFindText()) is not None: # since there is a search term preselected, initiate the find process. runnable = ZMethodRunnable(self._doFindNext) fireUIExecEvent(runnable, self)
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
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()
def __init__(self, parent, spellCheckModel): self.spellCheckModel = spellCheckModel ZBaseDialog.__init__(self, parent,wx.ID_ANY, _extstr(u"spellcheckdialog.DialogTitle"), size = wx.Size(350, 340), style =wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name = u"ZSpellCheckDialog") #$NON-NLS-1$ #$NON-NLS-2$ ZPersistentDialogMixin.__init__(self, IZBlogAppUserPrefsKeys.SPELLCHECK_DIALOG, False, True)
def __init__(self, parent): self.model = ZAddTemplateFromBlogModel() ZValidatingHeaderDialog.__init__(self, parent, wx.ID_ANY, _extstr(u"templatedialogs.AddTemplate")) #$NON-NLS-1$ ZPersistentDialogMixin.__init__(self, IZBlogAppUserPrefsKeys.ADD_TEMPLATE_FROM_BLOG_DIALOG, True, True)
def __init__(self, parent): self.userPrefs = getApplicationModel().getUserProfile().getPreferences() self.feedbackEmailUserPrefsKey = IZAppUserPrefsKeys.FEEDBACK_DIALOG + u".email" #$NON-NLS-1$ ZBaseDialog.__init__(self, parent, wx.ID_ANY, _extstr(u"feedbackdialog.ZoundryRavenFeedback")) #$NON-NLS-1$ ZPersistentDialogMixin.__init__(self, IZAppUserPrefsKeys.FEEDBACK_DIALOG, True, True)
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()