Started recovering the search function
This commit is contained in:
@@ -15,24 +15,6 @@ class searchAudioDialog(widgetUtils.BaseDialog):
|
||||
self.term.SetSize(dc.GetTextExtent("0"*40))
|
||||
sizer.Add(label, 0, wx.ALL, 5)
|
||||
sizer.Add(self.term, 0, wx.ALL, 5)
|
||||
self.auto_complete = wx.CheckBox(panel, wx.NewId(), _(u"Try to &correct for mistakes in the search term"))
|
||||
self.auto_complete.SetValue(True)
|
||||
sizer.Add(self.auto_complete, 0, wx.ALL, 5)
|
||||
self.lyrics = wx.CheckBox(panel, wx.NewId(), _(u"Search only songs with associated &lyrics"))
|
||||
sizer.Add(self.lyrics, 0, wx.ALL, 5)
|
||||
staticbox = wx.StaticBox(panel, label=_(u"Search by"))
|
||||
self.artist_only = wx.RadioButton(panel, wx.NewId(), _(u"&Title"), style=wx.RB_GROUP)
|
||||
self.audios = wx.RadioButton(panel, wx.NewId(), _(u"&artist"))
|
||||
radioSizer = wx.StaticBoxSizer(staticbox, wx.HORIZONTAL)
|
||||
radioSizer.Add(self.artist_only, 0, wx.ALL, 5)
|
||||
radioSizer.Add(self.audios, 0, wx.ALL, 5)
|
||||
sizer.Add(radioSizer, 0, wx.ALL, 5)
|
||||
sort_order = wx.StaticText(panel, -1, _(U"&Sort order by: "))
|
||||
self.sortorder = wx.ComboBox(panel, wx.NewId(), choices=[_(u"Date added"), _(u"Duration"), _(u"Popularity")], value=_(u"Popularity"), style=wx.CB_READONLY)
|
||||
rBox = wx.BoxSizer(wx.HORIZONTAL)
|
||||
rBox.Add(sort_order, 0, wx.ALL, 5)
|
||||
rBox.Add(self.sortorder, 0, wx.ALL, 5)
|
||||
sizer.Add(rBox, 0, wx.ALL, 5)
|
||||
ok = wx.Button(panel, wx.ID_OK, _(u"&OK"))
|
||||
ok.SetDefault()
|
||||
cancel = wx.Button(panel, wx.ID_CANCEL, _(u"&Close"))
|
||||
@@ -43,15 +25,6 @@ class searchAudioDialog(widgetUtils.BaseDialog):
|
||||
panel.SetSizer(sizer)
|
||||
self.SetClientSize(sizer.CalcMin())
|
||||
|
||||
def get_checkable(self, control):
|
||||
if getattr(self, control).GetValue() == True:
|
||||
return 1
|
||||
else:
|
||||
return 0
|
||||
|
||||
def get_sort_order(self):
|
||||
return self.sortorder.GetSelection()
|
||||
|
||||
class searchVideoDialog(widgetUtils.BaseDialog):
|
||||
def __init__(self, value=""):
|
||||
super(searchVideoDialog, self).__init__(None, -1)
|
||||
|
Reference in New Issue
Block a user