Ejemplo n.º 1
0
    def __init__(self, parent, title, runnableProgress):
        self.runnableProgress = runnableProgress
        self.runnableProgress.addListener(self)
        self.thread = ZProgressDialogThread(self.runnableProgress, self)

        ZBaseDialog.__init__(self, parent, wx.ID_ANY, title)
        self.Fit()
        self.thread.start()
Ejemplo n.º 2
0
    def __init__(self, parent, model):
        # model is instance of ZFontModel.
        self.model = model
        fontsEnum = wx.FontEnumerator()
        fontsEnum.EnumerateFacenames()
        self.systemFontNames = fontsEnum.GetFacenames()
        self.systemFontNames.sort()

        ZBaseDialog.__init__(self, parent, wx.ID_ANY, _extstr(u"fontdialog.DialogTitle"), style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name = u"ZFontDialog") #$NON-NLS-1$ #$NON-NLS-2$
Ejemplo n.º 3
0
 def __init__(self, parent, title, caption, buttonMask, imageName):
     self.caption = caption
     self.buttonMask = buttonMask
     self.imageName = imageName
     ZBaseDialog.__init__(self, parent, wx.ID_ANY, title, style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER)
     (w, h) = self.GetBestSizeTuple()
     w = min(max(w, 350), 500)
     self.SetSize(wx.Size(w, h))
     self.Layout()
Ejemplo n.º 4
0
 def __init__(self,
              parent,
              id,
              title,
              pos=wx.DefaultPosition,
              size=wx.DefaultSize,
              style=wx.DEFAULT_DIALOG_STYLE,
              name=u"ZHeaderDialog"):  #$NON-NLS-1$):
     ZBaseDialog.__init__(self, parent, id, title, pos, size, style, name)
Ejemplo n.º 5
0
    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)
Ejemplo n.º 6
0
 def __init__(
     self,
     parent,
     id,
     title,
     pos=wx.DefaultPosition,
     size=wx.DefaultSize,
     style=wx.DEFAULT_DIALOG_STYLE,
     name=u"ZHeaderDialog",
 ):  # $NON-NLS-1$):
     ZBaseDialog.__init__(self, parent, id, title, pos, size, style, name)
Ejemplo n.º 7
0
    def __init__(self, parent, session, id, title, pos = wx.DefaultPosition, size = wx.DefaultSize, style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name = u"ZWizard"): #$NON-NLS-1$
        self.session = session
        self.images = []
        self.pages = []
        self.currentIdx = 0
        self.lastDirection = -1 # last know direction (WizarPage.PREVIOUS or WizardPage.NEXT) pressed
        self.bgTask = None # runnable bg task
        self.bgTaskPreviousButtonState = False
        self.bgTaskNextButtonState = False

        ZBaseDialog.__init__(self, parent, id, title, pos, size, style, name)
        self._createWizardPages()
Ejemplo n.º 8
0
 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)
Ejemplo n.º 9
0
 def __init__(self, parent, model):
     # model is instance of ZTableModel.
     self.model = model
     ZBaseDialog.__init__(
         self,
         parent,
         wx.ID_ANY,
         _extstr(u"tabledialog.DialogTitle"),
         style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER,
         name=u"ZInsertTableDialog")  #$NON-NLS-1$ #$NON-NLS-2$
     bestHeight = self.GetBestSizeTuple()[1]
     self.SetSize(wx.Size(-1, bestHeight))
Ejemplo n.º 10
0
    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)
Ejemplo n.º 11
0
    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)
Ejemplo n.º 12
0
 def __init__(
     self,
     ztest,
     parent,
     title,
     pos=wx.DefaultPosition,
     size=wx.DefaultSize,
     style=wx.DEFAULT_DIALOG_STYLE,
 ):
     self.ztest = ztest
     ZBaseDialog.__init__(self,
                          parent,
                          wx.ID_ANY,
                          title,
                          pos=pos,
                          size=size,
                          style=style)
Ejemplo n.º 13
0
    def __init__(self,
                 parent,
                 session,
                 id,
                 title,
                 pos=wx.DefaultPosition,
                 size=wx.DefaultSize,
                 style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER,
                 name=u"ZWizard"):  #$NON-NLS-1$
        self.session = session
        self.images = []
        self.pages = []
        self.currentIdx = 0
        self.lastDirection = -1  # last know direction (WizarPage.PREVIOUS or WizardPage.NEXT) pressed
        self.bgTask = None  # runnable bg task
        self.bgTaskPreviousButtonState = False
        self.bgTaskNextButtonState = False

        ZBaseDialog.__init__(self, parent, id, title, pos, size, style, name)
        self._createWizardPages()
Ejemplo n.º 14
0
 def __init__(self, parent, errorMessage, errorDetail):
     self.parent = parent
     self.errorMessage = errorMessage
     self.errorDetail = errorDetail
     self.mode = MODE_COMPACT
     ZBaseDialog.__init__(self, parent, wx.ID_ANY, _extstr(u"error_dialog.DialogTitle"), style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER,  size=wx.Size(DIALOG_WIDTH, COMPACT_DIALOG_HEIGHT)) #$NON-NLS-1$
Ejemplo n.º 15
0
 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)
Ejemplo n.º 16
0
    def __init__(self, parent):
        ZBaseDialog.__init__(self, parent, wx.ID_ANY, _extstr(u"aboutdialog.AboutRaven")) #$NON-NLS-1$

        size = self.GetBestSize()
        self.SetSize(size)
Ejemplo n.º 17
0
 def ShowModal(self):
     self.testPanel.startTest()
     ZBaseDialog.ShowModal(self)
Ejemplo n.º 18
0
 def __init__(self, parent, model):
     # model is instance of ZTableModel.
     self.model = model
     ZBaseDialog.__init__(self, parent, wx.ID_ANY, _extstr(u"tabledialog.DialogTitle"), style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, name = u"ZInsertTableDialog") #$NON-NLS-1$ #$NON-NLS-2$
     bestHeight = self.GetBestSizeTuple()[1]
     self.SetSize(wx.Size(-1, bestHeight))
Ejemplo n.º 19
0
    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)
Ejemplo n.º 20
0
 def __init__(self, ztest, parent, title, pos = wx.DefaultPosition, size = wx.DefaultSize, style = wx.DEFAULT_DIALOG_STYLE,):
     self.ztest = ztest
     ZBaseDialog.__init__(self, parent, wx.ID_ANY, title, pos = pos, size = size, style = style)
Ejemplo n.º 21
0
    def __init__(self, parent):
        ZBaseDialog.__init__(self, parent, wx.ID_ANY,
                             _extstr(u"aboutdialog.AboutRaven"))  #$NON-NLS-1$

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