Example #1
0
	def __init__(self, type=EPG_TYPE_SINGLE, selChangedCB=None, timer=None, time_epoch=120, overjump_empty=False, graphic=False):
		if type != EPG_TYPE_SINGLE:
			print("[EPGList] Warning: EPGList does not support type '%s'" % type)
			print("          Attempting to continue in single EPG mode")
		EPGListSingle.__init__(self, Screens.InfoBar.InfoBar.instance.session, config.epgselection.single, selChangedCB)

		# Attributes for backwards compatibility.
		self.eventFontSizeSingle = self.eventFontSize
Example #2
0
	def __init__(self, session, service, timeFocus=None):
		EPGSelectionBase.__init__(self, session, config.epgselection.single, startRef=service)

		self.skinName = ["SingleEPG", "EPGSelection"]

		helpDescription = _("EPG Commands")
		self["okactions"] = HelpableActionMap(self, "OkCancelActions", {
			"cancel": (self.closeScreen, _("Exit EPG")),
			"OK": (ignoreLongKeyPress(self.OK), _("Close")),
			"OKLong": (self.OKLong, _("Close"))
		}, prio=-1, description=helpDescription)
		self["epgactions"] = HelpableActionMap(self, "EPGSelectActions", {
			"info": (self.openEventView, _("Show detailed event info")),
			"epg": (self.openEventView, _("Show detailed event info")),
			"menu": (self.createSetup, _("Setup menu"))
		}, prio=-1, description=helpDescription)
		self["epgcursoractions"] = HelpableActionMap(self, "DirectionActions", {
			"left": (self.prevPage, _("Move up a page")),
			"right": (self.nextPage, _("Move down a page")),
			"up": (self.moveUp, _("Go to previous channel")),
			"down": (self.moveDown, _("Go to next channel"))
		}, prio=-1, description=helpDescription)

		self.timeFocus = timeFocus or time()
		self["list"] = EPGListSingle(session, config.epgselection.single, self.onSelectionChanged)
	def __init__(self, session, zapFunc, startBouquet, startRef, bouquets, timeFocus=None):
		UserDefinedButtons.__init__(self, config.epgselection.single, epgActions, okActions)
		EPGSelectionBase.__init__(self, session, config.epgselection.single, startBouquet, startRef, bouquets)
		EPGServiceNumberSelection.__init__(self)
		EPGServiceZap.__init__(self, zapFunc)

		self.skinName = ["SingleEPG", "EPGSelection"]
		EPGServiceBrowse.__init__(self)

		helpDescription = _("EPG Commands")
		self["epgactions"] = HelpableActionMap(self, "EPGSelectActions", {
			"nextBouquet": (self.nextBouquet, _("Go to next bouquet")),
			"prevBouquet": (self.prevBouquet, _("Go to previous bouquet")),
			"nextService": (self.nextService, _("Go to next channel")),
			"prevService": (self.prevService, _("Go to previous channel")),
			"epg": self.helpKeyAction("epg"),
			"epglong": self.helpKeyAction("epglong"),
			"info": self.helpKeyAction("info"),
			"infolong": self.helpKeyAction("infolong"),
			"tv": (self.toggleBouquetList, _("Toggle between bouquet/epg lists")),
			"timer": (self.openTimerList, _("Show timer list")),
			"timerlong": (self.openAutoTimerList, _("Show autotimer list")),
			"back": (self.goToCurrentTimeOrService, _("Go to current time, then the start service")),
			"menu": (self.createSetup, _("Setup menu"))
		}, prio=-1, description=helpDescription)
		self["epgcursoractions"] = HelpableActionMap(self, "DirectionActions", {
			"left": (self.prevPage, _("Move up a page")),
			"right": (self.nextPage, _("Move down a page")),
			"up": (self.moveUp, _("Go to previous channel")),
			"down": (self.moveDown, _("Go to next channel"))
		}, prio=-1, description=helpDescription)

		self.timeFocus = timeFocus or time()

		self["list"] = EPGListSingle(session, selChangedCB=self.onSelectionChanged, epgConfig=config.epgselection.single)
Example #4
0
	def __init__(self, session, service, eventId):
		EPGSelectionBase.__init__(self, session, config.epgselection.single)

		self.skinName = ["SingleEPG", "EPGSelection"]
		self.currentService = service
		self.eventId = eventId

		self["list"] = EPGListSingle(session, selChangedCB=self.onSelectionChanged, epgConfig=config.epgselection.single)
Example #5
0
    def __init__(self,
                 type=EPG_TYPE_SINGLE,
                 selChangedCB=None,
                 timer=None,
                 time_epoch=120,
                 overjump_empty=False,
                 graphic=False):
        if type != EPG_TYPE_SINGLE:
            print "[EPGList] Warning: EPGList no longer supports", {
                "infobar": "EPG_TYPE_INFOBAR",
                "enhanced": "EPG_TYPE_ENHANCED",
                "graph": "EPG_TYPE_GRAPH",
                "infobargraph": "EPG_TYPE_INFOBARGRAPH",
                "multi": "EPG_TYPE_MULTI",
                None: "EPGtype == None"
            }.get(type, type)
            print "          attempting to continue in single EPG mode"
        EPGListSingle.__init__(self, Screens.InfoBar.InfoBar.instance.session,
                               config.epgselection.single, selChangedCB)

        # Attributes for backwards compatibility.
        self.eventFontSizeSingle = self.eventFontSize
Example #6
0
    def __init__(self, session, zapFunc, startBouquet, startRef, bouquets):
        UserDefinedButtons.__init__(self, config.epgselection.infobar,
                                    epgActions, okActions)
        EPGSelectionBase.__init__(self, session, config.epgselection.infobar,
                                  startBouquet, startRef, bouquets)
        EPGServiceZap.__init__(self, zapFunc)

        self.skinName = ["InfobarSingleEPG", "QuickEPG"]

        EPGServiceBrowse.__init__(self)

        helpDescription = _("EPG Commands")
        self["epgactions"] = HelpableActionMap(
            self,
            "EPGSelectActions", {
                "nextBouquet": (self.nextBouquet, _("Go to next bouquet")),
                "prevBouquet": (self.prevBouquet, _("Go to previous bouquet")),
                "nextService": (self.nextPage, _("Move down a page")),
                "prevService": (self.prevPage, _("Move up a page")),
                "epg":
                (self.openSingleEPG, _("Show single epg for current channel")),
                "info": (self.openEventView, _("Show detailed event info")),
                "infolong":
                (self.openSingleEPG, _("Show single epg for current channel")),
                "timer": (self.openTimerList, _("Show timer list")),
                "timerlong":
                (self.openAutoTimerList, _("Show autotimer list")),
                "menu": (self.createSetup, _("Setup menu"))
            },
            prio=-1,
            description=helpDescription)
        self["epgcursoractions"] = HelpableActionMap(
            self,
            "DirectionActions", {
                "left": (self.prevService, _("Go to previous channel")),
                "right": (self.nextService, _("Go to next channel")),
                "up": (self.moveUp, _("Go to previous channel")),
                "down": (self.moveDown, _("Go to next channel"))
            },
            prio=-1,
            description=helpDescription)

        self["list"] = EPGListSingle(session,
                                     epgConfig=config.epgselection.infobar,
                                     selChangedCB=self.onSelectionChanged)
Example #7
0
	def recalcEntrySize(self):
		EPGListSingle.recalcEntrySize(self)
Example #8
0
	def buildSingleEntry(self, service, eventId, beginTime, duration, eventName):
		return EPGListSingle.buildEntry(self, service, eventId, beginTime, duration, eventName)