Esempio n. 1
0
	def __init__(self, serviceList):
		self.serviceList = serviceList
		GUIComponent.__init__(self)
		self.l = eListboxServiceContent()

		pic = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/folder.png"))
		pic and self.l.setPixmap(self.l.picFolder, pic)
		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/marker.png"))
		pic and	self.l.setPixmap(self.l.picMarker, pic)
		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/ico_dvb_s.png"))
		pic and	self.l.setPixmap(self.l.picDVB_S, pic)
		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/ico_dvb_c.png"))
		pic and self.l.setPixmap(self.l.picDVB_C, pic)
		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/ico_dvb_t.png"))
		pic and self.l.setPixmap(self.l.picDVB_T, pic)
		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/ico_stream.png"))
		pic and self.l.setPixmap(self.l.picStream, pic)
		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/ico_service_group.png"))
		pic and self.l.setPixmap(self.l.picServiceGroup, pic)
		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/icon_crypt.png"))
		pic and self.l.setPixmap(self.l.picCrypto, pic)
		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/record.png"))
		pic and self.l.setPixmap(self.l.picRecord, pic)

		self.root = None
		self.mode = self.MODE_NORMAL
		self.ItemHeight = 28
		self.ServiceNameFont = parseFont("Regular;22", ((1,1),(1,1)))
		self.ServiceInfoFont = parseFont("Regular;18", ((1,1),(1,1)))
		self.ServiceNumberFont = parseFont("Regular;20", ((1,1),(1,1)))
		self.progressBarWidth = 52
		self.progressPercentWidth = 0
		self.fieldMargins = 10

		self.onSelectionChanged = [ ]
Esempio n. 2
0
	def __init__(self):
		GUIComponent.__init__(self)
		self.l = eListboxServiceContent()

		pic = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/folder.png"))
		if pic:
			self.l.setPixmap(self.l.picFolder, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/marker.png"))
		if pic:
			self.l.setPixmap(self.l.picMarker, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "ico_dvb_s-fs8.png"))
		if pic:
			self.l.setPixmap(self.l.picDVB_S, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "ico_dvb_c-fs8.png"))
		if pic:
			self.l.setPixmap(self.l.picDVB_C, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "ico_dvb_t-fs8.png"))
		if pic:
			self.l.setPixmap(self.l.picDVB_T, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "ico_service_group-fs8.png"))
		if pic:
			self.l.setPixmap(self.l.picServiceGroup, pic)

		self.root = None
		self.mode = self.MODE_NORMAL
		self.ItemHeight = 28
		self.ServiceNameFont = parseFont("Regular;22", ((1,1),(1,1)))
		self.ServiceInfoFont = parseFont("Regular;18", ((1,1),(1,1)))
		self.ServiceNumberFont = parseFont("Regular;20", ((1,1),(1,1)))
		self.onSelectionChanged = [ ]
Esempio n. 3
0
	def __init__(self, serviceList):
		self.serviceList = serviceList
		GUIComponent.__init__(self)
		self.l = eListboxServiceContent()

		pic = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/folder.png"))
		pic and self.l.setPixmap(self.l.picFolder, pic)
		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/marker.png"))
		pic and	self.l.setPixmap(self.l.picMarker, pic)
		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/ico_dvb_s-fs8.png"))
		pic and	self.l.setPixmap(self.l.picDVB_S, pic)
		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/ico_dvb_c-fs8.png"))
		pic and self.l.setPixmap(self.l.picDVB_C, pic)
		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/ico_dvb_t-fs8.png"))
		pic and self.l.setPixmap(self.l.picDVB_T, pic)
		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/ico_stream-fs8.png"))
		pic and self.l.setPixmap(self.l.picStream, pic)
		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/ico_service_group-fs8.png"))
		pic and self.l.setPixmap(self.l.picServiceGroup, pic)
		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/icon_crypt.png"))
		pic and self.l.setPixmap(self.l.picCrypto, pic)
		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/record.png"))
		pic and self.l.setPixmap(self.l.picRecord, pic)

		self.root = None
		self.mode = self.MODE_NORMAL
		self.ItemHeight = 28
		self.ServiceNameFont = parseFont("Regular;22", ((1,1),(1,1)))
		self.ServiceInfoFont = parseFont("Regular;18", ((1,1),(1,1)))
		self.ServiceNumberFont = parseFont("Regular;20", ((1,1),(1,1)))
		self.progressBarWidth = 60
		self.progressPercentWidth = 85
		self.fieldMargins = 10

		self.onSelectionChanged = [ ]
Esempio n. 4
0
	def __init__(self):
		GUIComponent.__init__(self)
		self.l = eListboxServiceContent()

		pic = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/folder.png"))
		if pic:
			self.l.setPixmap(self.l.picFolder, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/marker.png"))
		if pic:
			self.l.setPixmap(self.l.picMarker, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "ico_dvb_s-fs8.png"))
		if pic:
			self.l.setPixmap(self.l.picDVB_S, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "ico_dvb_c-fs8.png"))
		if pic:
			self.l.setPixmap(self.l.picDVB_C, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "ico_dvb_t-fs8.png"))
		if pic:
			self.l.setPixmap(self.l.picDVB_T, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "ico_service_group-fs8.png"))
		if pic:
			self.l.setPixmap(self.l.picServiceGroup, pic)

		self.root = None
		self.mode = self.MODE_NORMAL
		self.ItemHeight = 28
		self.ServiceNameFont = parseFont("Regular;22", ((1,1),(1,1)))
		self.ServiceInfoFont = parseFont("Regular;18", ((1,1),(1,1)))
		self.ServiceNumberFont = parseFont("Regular;20", ((1,1),(1,1)))
		self.onSelectionChanged = [ ]
Esempio n. 5
0
    def __init__(self, serviceList):
        self.serviceList = serviceList
        GUIComponent.__init__(self)
        self.l = eListboxServiceContent()

        pic = LoadPixmap(cached=True,
                         path=resolveFilename(SCOPE_ACTIVE_SKIN,
                                              "icons/folder.png"))
        pic and self.l.setPixmap(self.l.picFolder, pic)

        pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN,
                                         "icons/marker.png"))
        pic and self.l.setPixmap(self.l.picMarker, pic)

        pic = LoadPixmap(
            resolveFilename(SCOPE_ACTIVE_SKIN, "icons/ico_dvb-s.png"))
        pic and self.l.setPixmap(self.l.picDVB_S, pic)

        pic = LoadPixmap(
            resolveFilename(SCOPE_ACTIVE_SKIN, "icons/ico_dvb-c.png"))
        pic and self.l.setPixmap(self.l.picDVB_C, pic)

        pic = LoadPixmap(
            resolveFilename(SCOPE_ACTIVE_SKIN, "icons/ico_dvb-t.png"))
        pic and self.l.setPixmap(self.l.picDVB_T, pic)

        pic = LoadPixmap(
            resolveFilename(SCOPE_ACTIVE_SKIN, "icons/ico_stream.png"))
        pic and self.l.setPixmap(self.l.picStream, pic)

        pic = LoadPixmap(
            resolveFilename(SCOPE_ACTIVE_SKIN, "icons/ico_service_group.png"))
        pic and self.l.setPixmap(self.l.picServiceGroup, pic)

        pic = LoadPixmap(
            resolveFilename(SCOPE_ACTIVE_SKIN, "icons/icon_crypt.png"))
        pic and self.l.setPixmap(self.l.picCrypto, pic)

        pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN,
                                         "icons/record.png"))
        pic and self.l.setPixmap(self.l.picRecord, pic)

        self.root = None
        self.mode = self.MODE_NORMAL
        self.listHeight = None
        self.listWidth = None
        self.ServiceNumberFontName = "Regular"
        self.ServiceNumberFontSize = 20
        self.ServiceNameFontName = "Regular"
        self.ServiceNameFontSize = 22
        self.ServiceInfoFontName = "Regular"
        self.ServiceInfoFontSize = 18
        self.progressBarWidth = 52
        self.fieldMargins = 10
        self.listMarginRight = 25  #scrollbar is fixed 20 + 5 Extra marge
        self.listMarginLeft = 5
        self.progressFontOffset = -2

        self.onSelectionChanged = []
Esempio n. 6
0
    def __init__(self, serviceList):
        self.serviceList = serviceList
        GUIComponent.__init__(self)
        self.l = eListboxServiceContent()

        pic = LoadPixmap(cached=True,
                         path=resolveFilename(SCOPE_ACTIVE_SKIN,
                                              "icons/folder.png"))
        if pic:
            self.l.setPixmap(self.l.picFolder, pic)

        pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN,
                                         "icons/marker.png"))
        if pic:
            self.l.setPixmap(self.l.picMarker, pic)

        pic = LoadPixmap(
            resolveFilename(SCOPE_ACTIVE_SKIN, "icons/ico_dvb-s.png"))
        if pic:
            self.l.setPixmap(self.l.picDVB_S, pic)

        pic = LoadPixmap(
            resolveFilename(SCOPE_ACTIVE_SKIN, "icons/ico_dvb-c.png"))
        if pic:
            self.l.setPixmap(self.l.picDVB_C, pic)

        pic = LoadPixmap(
            resolveFilename(SCOPE_ACTIVE_SKIN, "icons/ico_dvb-t.png"))
        if pic:
            self.l.setPixmap(self.l.picDVB_T, pic)

        pic = LoadPixmap(
            resolveFilename(SCOPE_ACTIVE_SKIN, "icons/ico_stream.png"))
        if pic:
            self.l.setPixmap(self.l.picStream, pic)

        pic = LoadPixmap(
            resolveFilename(SCOPE_ACTIVE_SKIN, "icons/ico_service_group.png"))
        if pic:
            self.l.setPixmap(self.l.picServiceGroup, pic)

        pic = LoadPixmap(
            resolveFilename(SCOPE_ACTIVE_SKIN, "icons/icon_crypt.png"))
        if pic:
            self.l.setPixmap(self.l.picCrypto, pic)

        self.root = None
        self.mode = self.MODE_NORMAL
        self.listHeight = None
        self.listWidth = None
        self.ServiceNumberFontName = "Regular"
        self.ServiceNumberFontSize = 20
        self.ServiceNameFontName = "Regular"
        self.ServiceNameFontSize = 22
        self.ServiceInfoFontName = "Regular"
        self.ServiceInfoFontSize = 18
        self.onSelectionChanged = []
Esempio n. 7
0
	def __init__(self, serviceList):
		self.serviceList = serviceList
		GUIComponent.__init__(self)
		self.l = eListboxServiceContent()

		pic = LoadPixmap(cached=True, path=resolveFilename(SCOPE_ACTIVE_SKIN, "icons/folder.png"))
		if pic:
			self.l.setPixmap(self.l.picFolder, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, "icons/marker.png"))
		if pic:
			self.l.setPixmap(self.l.picMarker, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, "icons/ico_dvb-s.png"))
		if pic:
			self.l.setPixmap(self.l.picDVB_S, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, "icons/ico_dvb-c.png"))
		if pic:
			self.l.setPixmap(self.l.picDVB_C, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, "icons/ico_dvb-t.png"))
		if pic:
			self.l.setPixmap(self.l.picDVB_T, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, "icons/ico_stream.png"))
		if pic:
			self.l.setPixmap(self.l.picStream, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, "icons/ico_service_group.png"))
		if pic:
			self.l.setPixmap(self.l.picServiceGroup, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, "icons/icon_crypt.png"))
		if pic:
			self.l.setPixmap(self.l.picCrypto, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, "icons/record.png"))
		if pic:
			self.l.setPixmap(self.l.picRecord, pic)

		self.root = None
		self.mode = self.MODE_NORMAL
		self.listHeight = None
		self.listWidth = None
		self.ServiceNumberFontName = "Regular"
		self.ServiceNumberFontSize = 20
		self.ServiceNameFontName = "Regular"
		self.ServiceNameFontSize = 22
		self.ServiceInfoFontName = "Regular"
		self.ServiceInfoFontSize = 18
		self.progressBarWidth = config.usage.serviceinfo_progressBarWidth.value
		self.fieldMargins = 10

		self.onSelectionChanged = [ ]
Esempio n. 8
0
 def __init__(self, serviceList):
     self.serviceList = serviceList
     GUIComponent.__init__(self)
     self.l = eListboxServiceContent()
     pic = LoadPixmap(cached=True, path=resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/folder.png'))
     pic and self.l.setPixmap(self.l.picFolder, pic)
     pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/marker.png'))
     pic and self.l.setPixmap(self.l.picMarker, pic)
     pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/ico_dvb-s.png'))
     pic and self.l.setPixmap(self.l.picDVB_S, pic)
     pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/ico_dvb-c.png'))
     pic and self.l.setPixmap(self.l.picDVB_C, pic)
     pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/ico_dvb-t.png'))
     pic and self.l.setPixmap(self.l.picDVB_T, pic)
     pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/ico_stream.png'))
     pic and self.l.setPixmap(self.l.picStream, pic)
     pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/ico_service_group.png'))
     pic and self.l.setPixmap(self.l.picServiceGroup, pic)
     pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/icon_crypt.png'))
     pic and self.l.setPixmap(self.l.picCrypto, pic)
     pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/record.png'))
     pic and self.l.setPixmap(self.l.picRecord, pic)
     pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/ico_sd.png'))
     pic and self.l.setPixmap(self.l.picSD, pic)
     pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/ico_hd.png'))
     pic and self.l.setPixmap(self.l.picHD, pic)
     pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/ico_4k-uhd.png'))
     pic and self.l.setPixmap(self.l.pic4K, pic)
     pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/ico_3d.png'))
     pic and self.l.setPixmap(self.l.pic3D, pic)
     pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/ico_iptv.png'))
     pic and self.l.setPixmap(self.l.picIPTV, pic)
     self.root = None
     self.mode = self.MODE_NORMAL
     self.listHeight = None
     self.listWidth = None
     self.ServiceNumberFontName = 'Regular'
     self.ServiceNumberFontSize = 20
     self.ServiceNameFontName = 'Regular'
     self.ServiceNameFontSize = 22
     self.ServiceInfoFontName = 'Regular'
     self.ServiceInfoFontSize = 18
     self.progressInfoFontName = 'Regular'
     self.progressInfoFontSize = -1
     self.progressBarWidth = 52
     self.fieldMargins = 10
     self.itemsDistances = 8
     self.listMarginRight = 25
     self.listMarginLeft = 5
     self.onSelectionChanged = []
Esempio n. 9
0
	def __init__(self, serviceList):
		self.serviceList = serviceList
		GUIComponent.__init__(self)
		self.l = eListboxServiceContent()

		pic = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/folder.png"))
		pic and self.l.setPixmap(self.l.picFolder, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/marker.png"))
		pic and	self.l.setPixmap(self.l.picMarker, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/ico_dvb_s-fs8.png"))
		pic and	self.l.setPixmap(self.l.picDVB_S, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/ico_dvb_c-fs8.png"))
		pic and self.l.setPixmap(self.l.picDVB_C, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/ico_dvb_t-fs8.png"))
		pic and self.l.setPixmap(self.l.picDVB_T, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/ico_stream-fs8.png"))
		pic and self.l.setPixmap(self.l.picStream, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/ico_service_group-fs8.png"))
		pic and self.l.setPixmap(self.l.picServiceGroup, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/icon_crypt.png"))
		pic and self.l.setPixmap(self.l.picCrypto, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/record.png"))
		pic and self.l.setPixmap(self.l.picRecord, pic)

		self.root = None
		self.mode = self.MODE_NORMAL
		self.listHeight = None
		self.listWidth = None
		self.ServiceNumberFontName = "Regular"
		self.ServiceNumberFontSize = 20
		self.ServiceNameFontName = "Regular"
		self.ServiceNameFontSize = 22
		self.ServiceInfoFontName = "Regular"
		self.ServiceInfoFontSize = 18
		self.progressBarWidth = 52
		self.progressPercentWidth = 0
		self.fieldMargins = 10
		self.itemsppage = 1

		self.onSelectionChanged = [ ]
Esempio n. 10
0
	def __init__(self):
		GUIComponent.__init__(self)
		self.l = eListboxServiceContent()

		pic = LoadPixmap(cached=True, path=resolveFilename(SCOPE_ACTIVE_SKIN, "icons/folder.png"))
		if pic:
			self.l.setPixmap(self.l.picFolder, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, "icons/marker.png"))
		if pic:
			self.l.setPixmap(self.l.picMarker, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, "icons/ico_dvb-s.png"))
		if pic:
			self.l.setPixmap(self.l.picDVB_S, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, "icons/ico_dvb-c.png"))
		if pic:
			self.l.setPixmap(self.l.picDVB_C, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, "icons/ico_dvb-t.png"))
		if pic:
			self.l.setPixmap(self.l.picDVB_T, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, "icons/ico_stream.png"))
		if pic:
			self.l.setPixmap(self.l.picStream, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, "icons/ico_service_group.png"))
		if pic:
			self.l.setPixmap(self.l.picServiceGroup, pic)

		self.root = None
		self.mode = self.MODE_NORMAL
		self.listHeight = None
		self.listWidth = None
		self.ServiceNumberFontName = "Regular"
		self.ServiceNumberFontSize = 20
		self.ServiceNameFontName = "Regular"
		self.ServiceNameFontSize = 22
		self.ServiceInfoFontName = "Regular"
		self.ServiceInfoFontSize = 18
		self.onSelectionChanged = [ ]
Esempio n. 11
0
    def __init__(self, session=None):
        GUIComponent.__init__(self)

        self._componentSizes = componentSizes[componentSizes.SERVICE_LIST]
        Log.i(self._componentSizes)
        tlf = TemplatedListFonts()

        upper_service_name_limit = self.getDesktopWith() / 3
        config.usage.configselection_servicenamecolwidth.limits = [
            (100, upper_service_name_limit),
        ]
        self.session = session
        self.mode = self.MODE_NORMAL

        self.picFolder = LoadPixmap(cached=True,
                                    path=resolveFilename(
                                        SCOPE_CURRENT_SKIN,
                                        "skin_default/icons/folder.png"))
        self.picMarker = LoadPixmap(
            resolveFilename(SCOPE_CURRENT_SKIN,
                            "skin_default/icons/marker.png"))
        self.picDVB_S = LoadPixmap(
            resolveFilename(SCOPE_CURRENT_SKIN, "ico_dvb_s-fs8.png"))
        self.picDVB_C = LoadPixmap(
            resolveFilename(SCOPE_CURRENT_SKIN, "ico_dvb_c-fs8.png"))
        self.picDVB_T = LoadPixmap(
            resolveFilename(SCOPE_CURRENT_SKIN, "ico_dvb_t-fs8.png"))
        self.picServiceGroup = LoadPixmap(
            resolveFilename(SCOPE_CURRENT_SKIN, "ico_service_group-fs8.png"))
        self.markedForeground = 0xffffff
        self.markedBackground = 0xff0000
        self.markedForegroundSelected = 0xffffff
        self.markedBackgroundSelected = 0x800000

        colors = TemplatedColors().colors
        if "ListboxMarkedForeground" in colors:
            self.markedForeground = colors["ListboxMarkedForeground"]
        if "ListboxMarkedBackground" in colors:
            self.markedBackground = colors["ListboxMarkedBackground"]
        if "ListboxMarkedAndSelectedForeground" in colors:
            self.markedForegroundSelected = colors[
                "ListboxMarkedAndSelectedForeground"]
        if "ListboxMarkedAndSelectedBackground" in colors:
            self.markedBackgroundSelected = colors[
                "ListboxMarkedAndSelectedBackground"]

        self.serviceNotAvail = 0xbbbbbb
        self.serviceEventProgressbarColor = None
        self.serviceEventProgressbarColorSelected = None
        self.serviceEventProgressbarBackColor = None
        self.serviceEventProgressbarBackColorSelected = None
        self.serviceEventProgressbarBorderColor = None
        self.serviceEventProgressbarBorderColorSelected = None
        self.serviceDescriptionColor = 0xe7b53f
        self.serviceDescriptionColorSelected = 0xe7b53f
        self.recordingColor = 0xff4A3C
        self.recordingColorSelected = 0xff4A3C
        self.additionalInfoColor = None
        self.additionalInfoColorSelected = None
        self.picServiceEventProgressbar = None
        self.selectionPixmapStandard = None
        self.selectionPixmapBig = None
        self.l = eListboxServiceContent()
        self.l.setBuildFunc(self.buildOptionEntry, True)
        self.l.setFont(
            0,
            gFont(tlf.face(TemplatedListFonts.SMALL),
                  tlf.size(TemplatedListFonts.SMALL)))  # AdditionalInfoFont
        self.l.setFont(
            1,
            gFont(tlf.face(TemplatedListFonts.MEDIUM),
                  tlf.size(TemplatedListFonts.MEDIUM)))  # ServiceNumberFont
        self.l.setFont(2,
                       gFont(tlf.face(TemplatedListFonts.BIG),
                             tlf.size(
                                 TemplatedListFonts.BIG)))  # ServiceNameFont
        self.l.setFont(3,
                       gFont(tlf.face(TemplatedListFonts.SMALL),
                             tlf.size(
                                 TemplatedListFonts.SMALL)))  # ServiceInfoFont
        self.serviceNameFont = gFont(tlf.face(TemplatedListFonts.BIG),
                                     tlf.size(TemplatedListFonts.BIG))
        self.serviceInfoFontHeight = tlf.size(TemplatedListFonts.SMALL)
        self.serviceInfoHeight = self.serviceInfoFontHeight + self._componentSizes.get(
            self.KEY_SERVICE_INFO_HEIGHT_ADD, 6)
        self.additionalInfoFont = gFont(tlf.face(TemplatedListFonts.SMALL),
                                        tlf.size(TemplatedListFonts.SMALL))
        self.list = []
        self.size = 0
        self.service_center = eServiceCenter.getInstance()
        self.numberoffset = 0
        self.is_playable_ignore = eServiceReference()
        self.root = None

        self.itemHeight = self._componentSizes.get(
            self.KEY_SERVICE_ITEM_HEIGHT, 28)
        self.itemHeightHigh = self._componentSizes.get(
            self.KEY_SERVICE_ITEM_HEIGHT_LARGE, 60)
        self.l.setItemHeight(self.itemHeight)
        self.onSelectionChanged = []
        self.recordingList = {}
        self.piconLoader = PiconLoader()
        if self.session:
            self.session.nav.RecordTimer.on_state_change.append(
                self.onTimerEntryStateChange)
        config.usage.configselection_showrecordings.addNotifier(
            self.getRecordingList, initial_call=True)
        config.usage.configselection_bigpicons.addNotifier(self.setItemHeight,
                                                           initial_call=True)
        config.usage.configselection_secondlineinfo.addNotifier(
            self.setItemHeight, initial_call=False)
        self._reloadTimer = eTimer()
        self.__reloadTimerConn = self._reloadTimer.timeout.connect(
            self._reload)
Esempio n. 12
0
	def __init__(self, session = None):
		GUIComponent.__init__(self)

		self._componentSizes = componentSizes[componentSizes.SERVICE_LIST]
		Log.i(self._componentSizes)
		tlf = TemplatedListFonts()

		upper_service_name_limit = self.getDesktopWith() / 3
		config.usage.configselection_servicenamecolwidth.limits = [(100, upper_service_name_limit),]
		self.session = session
		self.mode = self.MODE_NORMAL

		self.picFolder = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/folder.png"))
		self.picMarker = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/marker.png"))
		self.picDVB_S = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "ico_dvb_s-fs8.png"))
		self.picDVB_C = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "ico_dvb_c-fs8.png"))
		self.picDVB_T = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "ico_dvb_t-fs8.png"))
		self.picServiceGroup = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "ico_service_group-fs8.png"))
		self.markedForeground = 0xffffff
		self.markedBackground = 0xff0000
		self.markedForegroundSelected = 0xffffff
		self.markedBackgroundSelected = 0x800000

		colors = TemplatedColors().colors
		if "ListboxMarkedForeground" in colors:
			self.markedForeground = colors["ListboxMarkedForeground"]
		if "ListboxMarkedBackground" in colors:
			self.markedBackground = colors["ListboxMarkedBackground"]
		if "ListboxMarkedAndSelectedForeground" in colors:
			self.markedForegroundSelected = colors["ListboxMarkedAndSelectedForeground"]
		if "ListboxMarkedAndSelectedBackground" in colors:
			self.markedBackgroundSelected = colors["ListboxMarkedAndSelectedBackground"]

		self.serviceNotAvail = 0xbbbbbb
		self.serviceEventProgressbarColor = None
		self.serviceEventProgressbarColorSelected = None
		self.serviceEventProgressbarBackColor = None
		self.serviceEventProgressbarBackColorSelected = None
		self.serviceEventProgressbarBorderColor = None
		self.serviceEventProgressbarBorderColorSelected = None
		self.serviceDescriptionColor = 0xe7b53f
		self.serviceDescriptionColorSelected = 0xe7b53f
		self.recordingColor = 0xff4A3C
		self.recordingColorSelected = 0xff4A3C
		self.additionalInfoColor =  None
		self.additionalInfoColorSelected =  None
		self.picServiceEventProgressbar = None
		self.selectionPixmapStandard = None
		self.selectionPixmapBig = None
		self.l = eListboxServiceContent()
		self.l.setBuildFunc(self.buildOptionEntry, True)
		self.l.setFont(0, gFont(tlf.face(TemplatedListFonts.SMALL), tlf.size(TemplatedListFonts.SMALL))) # AdditionalInfoFont
		self.l.setFont(1, gFont(tlf.face(TemplatedListFonts.MEDIUM), tlf.size(TemplatedListFonts.MEDIUM))) # ServiceNumberFont
		self.l.setFont(2, gFont(tlf.face(TemplatedListFonts.BIG), tlf.size(TemplatedListFonts.BIG))) # ServiceNameFont
		self.l.setFont(3, gFont(tlf.face(TemplatedListFonts.SMALL), tlf.size(TemplatedListFonts.SMALL))) # ServiceInfoFont
		self.serviceNameFont = gFont(tlf.face(TemplatedListFonts.BIG), tlf.size(TemplatedListFonts.BIG))
		self.serviceInfoFontHeight = tlf.size(TemplatedListFonts.SMALL)
		self.serviceInfoHeight = self.serviceInfoFontHeight + self._componentSizes.get(self.KEY_SERVICE_INFO_HEIGHT_ADD, 6)
		self.additionalInfoFont = gFont(tlf.face(TemplatedListFonts.SMALL), tlf.size(TemplatedListFonts.SMALL))
		self.list = []
		self.size = 0
		self.service_center = eServiceCenter.getInstance()
		self.numberoffset = 0
		self.is_playable_ignore = eServiceReference()
		self.root = None

		self.itemHeight = self._componentSizes.get(self.KEY_SERVICE_ITEM_HEIGHT, 28)
		self.itemHeightHigh = self._componentSizes.get(self.KEY_SERVICE_ITEM_HEIGHT_LARGE, 60)
		self.l.setItemHeight(self.itemHeight)
		self.onSelectionChanged = [ ]
		self.recordingList = {}
		self.piconLoader = PiconLoader()
		if self.session:
			self.session.nav.RecordTimer.on_state_change.append(self.onTimerEntryStateChange)
		config.usage.configselection_showrecordings.addNotifier(self.getRecordingList, initial_call = True)
		config.usage.configselection_bigpicons.addNotifier(self.setItemHeight, initial_call = True)
		config.usage.configselection_secondlineinfo.addNotifier(self.setItemHeight, initial_call = False)
		self._reloadTimer = eTimer()
		self.__reloadTimerConn = self._reloadTimer.timeout.connect(self._reload)
Esempio n. 13
0
	def __init__(self):
		GUIComponent.__init__(self)
		self.l = eListboxServiceContent()

		pic = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/folder.png"))
		if pic:
			self.l.setPixmap(self.l.picFolder, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/marker.png"))
		if pic:
			self.l.setPixmap(self.l.picMarker, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/icon_dvb_s.png"))
		if pic:
			self.l.setPixmap(self.l.picDVB_S, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/icon_dvb_c.png"))
		if pic:
			self.l.setPixmap(self.l.picDVB_C, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/icon_dvb_t.png"))
		if pic:
			self.l.setPixmap(self.l.picDVB_T, pic)

		pic = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/ico_service_group-fs8.png"))
		if pic:
			self.l.setPixmap(self.l.picServiceGroup, pic)

		pic =  LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/epgclock.png"))
		if pic:
			self.l.setPixmap(self.l.picRecordService, pic)

		if config.usage.servicelist_show_picon.value:
			self.l.setPiconFunction(findPicon)

		if config.usage.servicelist_mark_rec_service:
			self.l.setRECServiceFunction(recordService)

		self.picon_width = int(config.usage.servicelist_show_picon.value)
		self.custom_picon_width, self.custom_picon_height = skin.parameters.get("ServicelistCustomPiconSize", (50,30))
		self.root = None
		self.mode = self.MODE_NORMAL
		self.min_two_line_height = int(skin.parameters.get("ServicelistDoubleSpacedMinHeight", (50,))[0])
		if self.picon_width == 100:
			self.ItemHeight = 60
			p_w = 100
			p_h = 60
		elif self.picon_width == 50:
			self.ItemHeight = 30
			p_w = 50
			p_h = 30
		elif self.picon_width == 1:
			self.ItemHeight = self.custom_picon_height
			p_w = self.custom_picon_width
			p_h = self.custom_picon_height
		else:
			self.ItemHeight = 30
		if config.usage.servicelist_two_lines.value and self.ItemHeight < self.min_two_line_height:
			self.ItemHeight = self.min_two_line_height
		if self.picon_width > 0:
			self.l.setPiconHeight(int(p_h))
			self.l.setPiconWidth(int(p_w))
		self.ServiceNameFont = parseFont("Regular;22", ((1,1),(1,1)))
		self.ServiceInfoFont = parseFont("Regular;18", ((1,1),(1,1)))
		self.ServiceNumberFont = parseFont("Regular;20", ((1,1),(1,1)))
		self.onSelectionChanged = [ ]
Esempio n. 14
0
	def __init__(self, session = None):
		GUIComponent.__init__(self)

		self.session = session
		self.picFolder = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/folder.png"))
		self.picMarker = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/marker.png"))
		self.picDVB_S = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "ico_dvb_s-fs8.png"))
		self.picDVB_C = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "ico_dvb_c-fs8.png"))
		self.picDVB_T = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "ico_dvb_t-fs8.png"))
		self.picServiceGroup = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "ico_service_group-fs8.png"))
		self.markedForeground = 0xffffff
		self.markedBackground = 0xff0000
		self.markedForegroundSelected = 0xffffff
		self.markedBackgroundSelected = 0x800000

		colors = TemplatedColors().colors
		if "ListboxMarkedForeground" in colors:
			self.markedForeground = colors["ListboxMarkedForeground"]
		if "ListboxMarkedBackground" in colors:
			self.markedBackground = colors["ListboxMarkedBackground"]
		if "ListboxMarkedAndSelectedForeground" in colors:
			self.markedForegroundSelected = colors["ListboxMarkedAndSelectedForeground"]
		if "ListboxMarkedAndSelectedBackground" in colors:
			self.markedBackgroundSelected = colors["ListboxMarkedAndSelectedBackground"]

		self.serviceNotAvail = 0xbbbbbb
		self.serviceEventProgressbarColor = None
		self.serviceEventProgressbarColorSelected = None
		self.serviceEventProgressbarBackColor = None
		self.serviceEventProgressbarBackColorSelected = None
		self.serviceEventProgressbarBorderColor = None
		self.serviceEventProgressbarBorderColorSelected = None
		self.serviceDescriptionColor = 0xe7b53f
		self.serviceDescriptionColorSelected = 0xe7b53f
		self.recordingColor = 0xff4A3C
		self.recordingColorSelected = 0xff4A3C
		self.additionalInfoColor =  None
		self.additionalInfoColorSelected =  None
		self.picServiceEventProgressbar = None
		self.selectionPixmapStandard = None
		self.selectionPixmapBig = None
		self.l = eListboxServiceContent()
		self.l.setBuildFunc(self.buildOptionEntry, True)
		self.l.setFont(0, gFont("Regular", 18)) # AdditionalInfoFont
		self.l.setFont(1, gFont("Regular", 20)) # ServiceNumberFont
		self.l.setFont(2, gFont("Regular", 22)) # ServiceNameFont
		self.l.setFont(3, gFont("Regular", 18)) # ServiceInfoFont
		self.serviceNameFont = gFont("Regular", 22)
		self.serviceInfoFontHeight = 18
		self.additionalInfoFont = gFont("Regular", 18)
		self.list = []
		self.size = 0
		self.service_center = eServiceCenter.getInstance()
		self.numberoffset = 0
		self.is_playable_ignore = eServiceReference()
		self.root = None
		self.mode = self.MODE_NORMAL
		self.itemHeight = 28
		self.l.setItemHeight(28)
		self.onSelectionChanged = [ ]
		self.recordingList = {}
		self.piconLoader = PiconLoader()
		if self.session:
			self.session.nav.RecordTimer.on_state_change.append(self.onTimerEntryStateChange)
		config.usage.configselection_showrecordings.addNotifier(self.getRecordingList, initial_call = True)
		config.usage.configselection_bigpicons.addNotifier(self.setItemHeight, initial_call = True)
		config.usage.configselection_secondlineinfo.addNotifier(self.setItemHeight, initial_call = False)
Esempio n. 15
0
    def __init__(self):
        GUIComponent.__init__(self)
        self.l = eListboxServiceContent()

        pic = LoadPixmap(cached=True,
                         path=resolveFilename(SCOPE_CURRENT_SKIN,
                                              "skin_default/icons/folder.png"))
        if pic:
            self.l.setPixmap(self.l.picFolder, pic)

        pic = LoadPixmap(
            resolveFilename(SCOPE_CURRENT_SKIN,
                            "skin_default/icons/marker.png"))
        if pic:
            self.l.setPixmap(self.l.picMarker, pic)

        pic = LoadPixmap(
            resolveFilename(SCOPE_CURRENT_SKIN,
                            "skin_default/icons/icon_dvb_s.png"))
        if pic:
            self.l.setPixmap(self.l.picDVB_S, pic)

        pic = LoadPixmap(
            resolveFilename(SCOPE_CURRENT_SKIN,
                            "skin_default/icons/icon_dvb_c.png"))
        if pic:
            self.l.setPixmap(self.l.picDVB_C, pic)

        pic = LoadPixmap(
            resolveFilename(SCOPE_CURRENT_SKIN,
                            "skin_default/icons/icon_dvb_t.png"))
        if pic:
            self.l.setPixmap(self.l.picDVB_T, pic)

        pic = LoadPixmap(
            resolveFilename(SCOPE_CURRENT_SKIN,
                            "skin_default/icons/ico_service_group-fs8.png"))
        if pic:
            self.l.setPixmap(self.l.picServiceGroup, pic)

        pic = LoadPixmap(
            resolveFilename(SCOPE_CURRENT_SKIN,
                            "skin_default/icons/epgclock.png"))
        if pic:
            self.l.setPixmap(self.l.picRecordService, pic)

        if config.usage.servicelist_show_picon.value:
            self.l.setPiconFunction(findPicon)

        if config.usage.servicelist_mark_rec_service:
            self.l.setRECServiceFunction(recordService)

        self.picon_width = int(config.usage.servicelist_show_picon.value)
        self.custom_picon_width, self.custom_picon_height = skin.parameters.get(
            "ServicelistCustomPiconSize", (50, 30))
        self.root = None
        self.mode = self.MODE_NORMAL
        self.min_two_line_height = int(
            skin.parameters.get("ServicelistDoubleSpacedMinHeight", (50, ))[0])
        if self.picon_width == 100:
            self.ItemHeight = 60
            p_w = 100
            p_h = 60
        elif self.picon_width == 50:
            self.ItemHeight = 30
            p_w = 50
            p_h = 30
        elif self.picon_width == 1:
            self.ItemHeight = self.custom_picon_height
            p_w = self.custom_picon_width
            p_h = self.custom_picon_height
        else:
            self.ItemHeight = 30
        if config.usage.servicelist_two_lines.value and self.ItemHeight < self.min_two_line_height:
            self.ItemHeight = self.min_two_line_height
        if self.picon_width > 0:
            self.l.setPiconHeight(int(p_h))
            self.l.setPiconWidth(int(p_w))
        self.ServiceNameFont = parseFont("Regular;22", ((1, 1), (1, 1)))
        self.ServiceInfoFont = parseFont("Regular;18", ((1, 1), (1, 1)))
        self.ServiceNumberFont = parseFont("Regular;20", ((1, 1), (1, 1)))
        self.onSelectionChanged = []