Example #1
0
    def __init__(self, parent, aspectRatio):
        self._init_ctrls(parent)
        self.Bind(wx.EVT_CLOSE, self.OnCmdCancelButton)

        self.pnlHdr.SetTitle(_('Configure output and start render process'))
        self.pnlHdr.SetBitmap(wx.ArtProvider.GetBitmap('PFS_RENDER_32'))

        self.cbDraft.SetToolTip(
            _(u"Activate this option to generate a preview of your PhotoFilmStrip. The rendering process will speed up dramatically, but results in lower quality."
              ))

        self.aspectRatio = aspectRatio
        self.__InitProfiles()

        settings = Settings()
        if settings.GetUsedRenderer() is None:
            self.choiceFormat.SetStringSelection(self.DEFAULT_FORMAT)
        else:
            self.choiceFormat.SetSelection(settings.GetUsedRenderer())
        self.OnChoiceFormat(None)

        self.__SelectProfileByName(settings.GetLastProfile())

        self.SetEscapeId(wxID_DLGRENDERCMDCANCEL)
        self.SetInitialSize(self.GetEffectiveMinSize())
        self.CentreOnParent()
        self.SetFocus()

        self.profile = None
        self.draftMode = False
        self.rendererClass = None
Example #2
0
 def GetDefault(self):
     settings = Settings()
     if settings.GetUsedRenderer() is None:
         return self.DEFAULT_FORMAT
     else:
         return settings.GetUsedRenderer()