from Components.config import Config
from Components.config import ConfigSelection
from Components.config import ConfigText
from Components.config import getConfigListEntry
from Components.ConfigList import ConfigListScreen
from Components.ActionMap import ActionMap
from Components.Button import Button

from ConfigTextWithSuggestions import ConfigTextWithSuggestions

from . import _

searchContext = Config()
searchContext.searchTerm = ConfigTextWithSuggestions("", False, threaded=True)
searchContext.orderBy = ConfigSelection([("relevance", _("Relevance")),
                                         ("viewCount", _("View Count")),
                                         ("published", _("Published")),
                                         ("rating", _("Rating"))], "relevance")
searchContext.time = ConfigSelection([("all_time", _("All Time")),
                                      ("this_month", _("This Month")),
                                      ("this_week", _("This Week")),
                                      ("today", _("Today"))], "all_time")
searchContext.racy = ConfigSelection([("include", _("Yes")),
                                      ("exclude", _("No"))], "exclude")
searchContext.categories = ConfigSelection(
    [(None, _("All")), ("Autos", _("Autos & Vehicles")), ("Music", _("Music")),
     ("Animals", _("Pets & Animals")), ("Sports", _("Sports")),
     ("Travel", _("Travel & Events")), ("Shortmov", _("Short Movies")),
     ("Games", _("Gaming")), ("Comedy", _("Comedy")),
     ("People", _("People & Blogs")), ("News", _("News & Politics")),
     ("Entertainment", _("Entertainment")), ("Education", _("Education")),
     ("Howto", _("Howto & Style")), ("Nonprofit", _("Nonprofits & Activism")),
from Components.config import ConfigText
from Components.config import getConfigListEntry
from Components.ConfigList import ConfigListScreen
from Components.ActionMap import ActionMap
from Components.Button import Button

from ConfigTextWithSuggestions import ConfigTextWithSuggestions

from . import _

searchContext = Config()
searchContext.searchTerm = ConfigTextWithSuggestions("", False, threaded = True)
searchContext.orderBy = ConfigSelection(
				[
				 ("relevance", _("Relevance")),
				 ("viewCount", _("View Count")),
				 ("published", _("Published")),
				 ("rating", _("Rating"))
				], "relevance")
searchContext.time = ConfigSelection(
				[
				 ("all_time", _("All Time")),
				 ("this_month", _("This Month")),
				 ("this_week", _("This Week")),
				 ("today", _("Today"))
				], "all_time")
searchContext.racy = ConfigSelection(
				[
				 ("include", _("Yes")),
				 ("exclude", _("No"))
				], "exclude")