def __init__(self, parent, preferences, plugin): spBaseDialog.__init__(self, parent, preferences, title="About") wx.GetApp().SetAppName("about" + plugin.get_key()) title_box = self.CreateTitle(ABOUT_ICON, "About") content_box = AboutPluginPanel(self, preferences, plugin) button_box = self.CreateButtonBox([], [self.CreateOkayButton()]) self.LayoutComponents(title_box, content_box, button_box) self.SetMinSize((520, 580))
def __init__(self, parent, preferences): spBaseDialog.__init__(self, parent, preferences, title="About") wx.GetApp().SetAppName("about") self.about_panel = AboutSPPASPanel(self, preferences) self.LayoutComponents( self.CreateTitle(ABOUT_ICON, "About"), self.about_panel, self.CreateButtonBox([], [self.CreateOkayButton()])) self.SetMinSize((520, 580))
def __init__(self, parent, preferences): spBaseDialog.__init__(self, parent, preferences, title="Feedback") wx.GetApp().SetAppName("feedback") self.controller = FeedbackForm(self, webbrowser) titlebox = self.CreateTitle(FEEDBACK_ICON, "Email Feedback") contentbox = self._create_content() buttonbox = self._create_buttons() self.LayoutComponents(titlebox, contentbox, buttonbox)
def __init__(self, parent, preferences): """Constructor.""" spBaseDialog.__init__(self, parent, preferences, title=" - Tag filter") wx.GetApp().SetAppName("tagfilter") titlebox = self.CreateTitle(FILTER_ADD_LABEL, "Tag-based single filter") contentbox = self._create_content() buttonbox = self._create_buttons() self.LayoutComponents(titlebox, contentbox, buttonbox)
def __init__(self, parent, preferences, sndname): spBaseDialog.__init__(self, parent, preferences, title=" - Information") wx.GetApp().SetAppName( "audioinfodlg" ) titlebox = self.CreateTitle(INFO_ICON,"Audio description") contentbox = self._create_content(sndname) buttonbox = self._create_buttons() self.LayoutComponents( titlebox, contentbox, buttonbox ) self.SetMinSize((480,220))
def __init__(self, parent, preferences): """Constructor.""" spBaseDialog.__init__(self, parent, preferences, title=" - Localization filter") wx.GetApp().SetAppName("locfilter") titlebox = self.CreateTitle(FILTER_ADD_TIME, "Localization-based filter") contentbox = self._create_content() buttonbox = self._create_buttons() self.LayoutComponents(titlebox, contentbox, buttonbox)
def __init__(self, parent, preferences): """ Create a new dialog fo fix preferences, sorted in a notebook. @param parent is a wx window. @param preferences (Preferences) """ spBaseDialog.__init__(self, parent, preferences, title=" - Settings") wx.GetApp().SetAppName("settings") titlebox = self.CreateTitle(SETTINGS_ICON, "User settings") contentbox = self._create_content() buttonbox = self._create_buttons() self.LayoutComponents(titlebox, contentbox, buttonbox)
def __init__(self, parent, preferences, step, step_idx): """ Constructor. :param parent must be the sppas main frame """ spBaseDialog.__init__(self, parent, preferences, title=" - Options") wx.GetApp().SetAppName("option" + str(step_idx)) self.step = step self.stepid = step_idx self._preferences = preferences self.LayoutComponents(self._create_title(), self._create_content(), self._create_buttons())
def __init__(self, parent, preferences, start, end): """ """ spBaseDialog.__init__(self, parent, preferences, title=" - Chooser") wx.GetApp().SetAppName("perioddlg") self.start = start self.end = end titlebox = self.CreateTitle(INFO_ICON, "Choose a period:") contentbox = self._create_content() buttonbox = self._create_buttons() self.SetMinSize((300, 120)) self.LayoutComponents(titlebox, contentbox, buttonbox)
def __init__(self, parent, preferences, plugin): """ Constructor. :param plugin: (sppasPluginParam) """ spBaseDialog.__init__(self, parent, preferences, title=" - Plugin") wx.GetApp().SetAppName("plugin") self.preferences = preferences self.plugin = plugin self.items = [] self._options_key = [] self.LayoutComponents(self._create_title(), self._create_content(), self._create_buttons())
def __init__(self, parent, preferences, tiers=[]): """Dialog constructor. :param parent: a wx.Window or wx.Frame or wx.Dialog :param preferences: (Preferences or Preferences_IO) :param tiers: a list of tiers to display """ spBaseDialog.__init__(self, parent, preferences, title=" - Preview") wx.GetApp().SetAppName("log") self.tiers = tiers titlebox = self.CreateTitle(TIER_PREVIEW, "Preview of tier(s)") contentbox = self._create_content() buttonbox = self._create_buttons() self.LayoutComponents(titlebox, contentbox, buttonbox)
def __init__(self, parent, preferences): """Create a new dialog.""" spBaseDialog.__init__(self, parent, preferences, title=" - SingleFilter") wx.GetApp().SetAppName("singlefilter") # Members self.match_all = False titlebox = self.CreateTitle(FILTER_SINGLE, "Filter annotations of a tier") contentbox = self._create_content() buttonbox = self._create_buttons() self.LayoutComponents(titlebox, contentbox, buttonbox) self.SetMinSize((540, 460))
def __init__(self, parent, preferences, filename): """ Dialog constructor. :param parent: is the parent wx object. :param preferences: (Preferences) :param filename: (str) the file to display in this frame. """ spBaseDialog.__init__(self, parent, preferences, title=" - Report") wx.GetApp().SetAppName("log") self.preferences = preferences self.filename = filename titlebox = self.CreateTitle(REPORT_ICON, "Procedure outcome report") contentbox = self._create_content() buttonbox = self._create_buttons() self.LayoutComponents(titlebox, contentbox, buttonbox)
def __init__(self, parent, preferences, tierX=[], tierY=[]): """Create a new dialog.""" spBaseDialog.__init__(self, parent, preferences, title=" - RelationFilter") wx.GetApp().SetAppName("relationfilter") # Members self.tierX = tierX self.tierY = tierY titlebox = self.CreateTitle( FILTER_RELATION, "Filter a tier X, " "depending on time-relations with a tier Y") contentbox = self._create_content() buttonbox = self._create_buttons() self.LayoutComponents(titlebox, contentbox, buttonbox)
def __init__(self, parent, preferences, header_text="Processing..."): """ Constructor. :param parent: (wx.Window) :param preferences: (Preferences) """ spBaseDialog.__init__(self, parent, preferences, title=" - Progress") wx.GetApp().SetAppName("progress") self.LayoutComponents(self.CreateTitle(ANNOTATE_ICON, header_text), self._create_content()) self.SetMinSize((420, 180)) self.Layout() self.Show() self.Raise() self.SetFocus() self.Center() self.Refresh()
def __init__(self, parent, preferences, filename): """ Constructor. @param parent is a wx.Window or wx.Frame or wx.Dialog @param preferences (Preferences or Preferences_IO) @param filename """ spBaseDialog.__init__(self, parent, preferences, title=" - AudioRoamer") wx.GetApp().SetAppName("audio") self._filename = filename titlebox = self.CreateTitle(AUDIOROAMER_APP_ICON, "Audio Data Manager") contentbox = self._create_content() buttonbox = self._create_buttons() self.LayoutComponents(titlebox, contentbox, buttonbox)
def __init__(self, parent, preferences, trs): """Constructor. :param parent: is the parent wx object. :param preferences: (Preferences) :param trs: (Transcription) """ spBaseDialog.__init__(self, parent, preferences, title=" - Search") wx.GetApp().SetAppName("search") # Members self._trs = trs self._pmin = 0. self._pmax = 0. titlebox = self.CreateTitle(TIER_SEARCH, "Search patterns in a tier") contentbox = self._create_content() buttonbox = self._create_buttons() self.LayoutComponents(titlebox, contentbox, buttonbox)
def __init__(self, parent, preferences, tiers={}): """ Constructor. @param parent is a wx.Window or wx.Frame or wx.Dialog @param preferences (Preferences or Preferences_IO) @param tiers: a dictionary with key=filename, value=list of selected tiers """ spBaseDialog.__init__(self, parent, preferences, title=" - User Agreement") wx.GetApp().SetAppName( "useragreement" ) self.tiers = tiers titlebox = self.CreateTitle(USERCHECK, "User agreement of 2 tiers") contentbox = self._create_content() buttonbox = self._create_buttons() self.LayoutComponents( titlebox, contentbox, buttonbox )
def __init__(self, parent, preferences, tiers={}): """Constructor. @param parent is the parent wx object. @param preferences (Preferences) @param tiers: a dictionary with key=filename, value=list of selected tiers """ spBaseDialog.__init__(self, parent, preferences, title=" - Descriptive statistics") wx.GetApp().SetAppName("descriptivesstats") # Options to evaluate stats: self.n = 1 self.withradius = 0 self.withalt = False self._data = {} # to store stats for k, v in tiers.items(): # k = filename # v = list of tiers for tier in v: ts = sppasTierStats(tier, self.n, self.withradius, self.withalt) self._data[ts] = k # remark: statistics are not estimated yet. # ts contains a pointer to the tier; ts.tier titlebox = self.CreateTitle( SPREADSHEETS, "Descriptives statistics of a set of tiers") contentbox = self._create_content() buttonbox = self._create_buttons() self.LayoutComponents(titlebox, contentbox, buttonbox)