Ejemplo n.º 1
0
   def __init__(self):
       GUIComponent.__init__(self)
       self.l = eListboxPythonMultiContent()
       self.l.setFont(0, gFont("Regular", 24))
       self.l.setFont(1, gFont("Regular", 18))
 
       self.l.setBuildFunc(self.buildEntry)
       #self.l.setItemHeight(65)
       self.l.setItemHeight(35)
       self.onSelectionChanged = [ ]
       
       try:
           self.categoryPIX = LoadPixmap(cached=True, path=resolveFilename(SCOPE_PLUGINS, self.ICON_CATEGORY))
           print("loaded")
           self.searchPIX = LoadPixmap(cached=True, path=resolveFilename(SCOPE_PLUGINS, self.ICON_SEARCH))
           print("loaded")
           self.newthreadPIX = LoadPixmap(cached=True, path=resolveFilename(SCOPE_PLUGINS, self.ICON_NEWTHREAD))
           print("loaded")
           self.oldthreadPIX = LoadPixmap(cached=True, path=resolveFilename(SCOPE_PLUGINS, self.ICON_OLDTHREAD))
           print("loaded")
       except:
           self.categoryPIX = None
           self.searchPIX = None
           self.newthreadPIX = None
           self.oldthreadPIX = None
           print("Problem with loading markers for MyList")
Ejemplo n.º 2
0
	def __init__(self, source):
		GUIComponent.__init__(self)
		self.l = eListboxPythonMultiContent()
		self.list = source
		self.l.setList(self.list)
		self.l.setFont(0, gFont("Regular", 23))
		self.l.setItemHeight(25)
Ejemplo n.º 3
0
    def __init__(self, selChangedCB=None, timer=None, time_epoch=120, overjump_empty=True):
        self.cur_event = None
        self.cur_service = None
        self.offs = 0
        self.timer = timer
        self.onSelChanged = []
        if selChangedCB is not None:
            self.onSelChanged.append(selChangedCB)
        GUIComponent.__init__(self)
        self.l = eListboxPythonMultiContent()
        self.l.setItemHeight(54)
        self.l.setBuildFunc(self.buildEntry)
        if overjump_empty:
            self.l.setSelectableFunc(self.isSelectable)
        self.epgcache = eEPGCache.getInstance()
        self.clock_pixmap = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "750S/icons/epgclock.png"))
        self.clock_add_pixmap = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "750S/icons/epgclock_add.png"))
        self.clock_pre_pixmap = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "750S/icons/epgclock_pre.png"))
        self.clock_post_pixmap = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "750S/icons/epgclock_post.png"))
        self.clock_prepost_pixmap = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "750S/icons/epgclock_prepost.png"))
        self.time_base = None
        self.time_epoch = time_epoch
        self.list = None
        self.event_rect = None

        self.foreColor = None
        self.foreColorSelected = None
        self.borderColor = None
        self.backColor = 0x586D88
        self.backColorSelected = 0x808080
        self.foreColorService = None
        self.backColorService = None
Ejemplo n.º 4
0
	def __init__(self, selChangedCB = None, timer = None, time_epoch = 120, overjump_empty = True):
		GUIComponent.__init__(self)
		self.cur_event = None
		self.cur_service = None
		self.offs = 0
		self.timer = timer
		self.last_time = time()
		self.onSelChanged = [ ]
		if selChangedCB is not None:
			self.onSelChanged.append(selChangedCB)
		self.l = eListboxPythonMultiContent()
		self.l.setBuildFunc(self.buildEntry)
		self.setOverjump_Empty(overjump_empty)
		self.epgcache = eEPGCache.getInstance()
		self.clocks =  [ LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/epgclock_add.png')),
				 LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/epgclock_pre.png')),
				 LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/epgclock.png')),
				 LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/epgclock_prepost.png')),
				 LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/epgclock_post.png')) ]
		self.time_base = None
		self.time_epoch = time_epoch
		self.list = None
		self.select_rect = None
		self.event_rect = None
		self.service_rect = None
		self.picon_size = None
		self.currentlyPlaying = None
		self.showPicon = False
		self.showServiceTitle = True
		self.picload = ePicLoad()
		self.nowEvPix = None
		self.othEvPix = None
		self.selEvPix = None
		self.recEvPix = None
		self.curSerPix = None

		self.foreColor = 0xffffff
		self.foreColorSelected = 0xffc000
		self.borderColor = 0x464445
		self.backColor = 0x595959
		self.backColorSelected = 0x808080
		self.foreColorService = 0xffffff
		self.foreColorServiceSelected = 0xffffff
		self.backColorService = 0x000000
		self.backColorServiceSelected = 0x508050
		self.borderColorService = 0x000000
		self.foreColorNow = 0xffffff
		self.backColorNow = 0x505080
		self.foreColorRec = 0xffffff
		self.backColorRec = 0x805050
		self.serviceFont = gFont("Regular", 20)
		self.entryFontName = "Regular"
		self.entryFontSize = 18

		self.listHeight = None
		self.listWidth = None
		self.serviceBorderWidth = 1
		self.serviceNamePadding = 0
		self.eventBorderWidth = 1
		self.eventNamePadding = 0
Ejemplo n.º 5
0
	def __init__(self, eventList):
		GUIComponent.__init__(self)
		self.l = eListboxPythonMultiContent()
		self.l.setFont(0, gFont("Regular", 18))
		self.l.setBuildFunc(self.buildResultEntry)
		self.l.setItemHeight(150)
		self.onSelectionChanged = [ ]

		self.resultlist = LoadPixmap(cached = True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, 'Extensions/PrimeTimeManager/images/resultlist.png'), desktop = getDesktop(0))
		self.favoritePixmap = LoadPixmap(cached = True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, 'Extensions/PrimeTimeManager/images/favorite.png'), desktop = getDesktop(0))
		self.clockPixmap = LoadPixmap(cached = True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, 'Extensions/PrimeTimeManager/images/epgclock.png'), desktop = getDesktop(0))
		self.clockOverlap = LoadPixmap(cached = True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, 'Extensions/PrimeTimeManager/images/clockOverlap.png'), desktop = getDesktop(0))
		self.clockNotrecord = LoadPixmap(cached = True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, 'Extensions/PrimeTimeManager/images/clockNotrecord.png'), desktop = getDesktop(0))
		self.noConflictPixmap = LoadPixmap(cached = True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, 'Extensions/PrimeTimeManager/images/noConflict.png'), desktop = getDesktop(0))
		self.arrowRightPixmap = LoadPixmap(cached = True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, 'Extensions/PrimeTimeManager/images/right.png'), desktop = getDesktop(0))
		self.deletePixmap = LoadPixmap(cached = True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, 'Extensions/PrimeTimeManager/images/delete.png'), desktop = getDesktop(0))
		if AUTOTIMER and config.plugins.PrimeTimeManager.UseAutotimer.value:
			self.autotimerPixmap = LoadPixmap(cached = True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, 'Extensions/AutoTimer/plugin.png'), desktop = getDesktop(0))

		self.l.setList(eventList)

		self.digitList = []
		i = 0
		while i <= 10:
			name = 'Extensions/PrimeTimeManager/images/digit_' + str(i) + '.png'
			digitPixmap = LoadPixmap(cached = True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, name), desktop = getDesktop(0))
			self.digitList.append(digitPixmap)
			i += 1
Ejemplo n.º 6
0
	def __init__(self, list, videoMode, piconLoader, piconSize, listStyle):
		self.videoMode = videoMode
		self.piconLoader = piconLoader
		self.piconSize = piconSize
		self.baseHeight = self.piconSize.height()
		self.listStyle = listStyle
		
		GUIComponent.__init__(self)
		
		self.l = eListboxPythonMultiContent()
		self.l.setBuildFunc(self.buildTimerEntry)
		self.onSelectionChanged = [ ]
		
		if self.videoMode == MODE_SD or self.videoMode == MODE_XD:
			self.overallFontHeight = 36
		elif self.videoMode == MODE_HD:
			self.overallFontHeight = 44
		elif self.videoMode == MODE_FHD:
			self.overallFontHeight = 66
			
		self.l.setList(list)
		config.plugins.merlinEpgCenter.listItemHeight.addNotifier(self.changeHeight, initial_call = True)
		config.plugins.merlinEpgCenter.adjustFontSize.addNotifier(self.setFontSizes, initial_call = True)
		
		self.autoTimerPixmap = LoadPixmap(cached=False, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "Extensions/MerlinEPGCenter/images/AutoTimerSmall.png"))
Ejemplo n.º 7
0
 def __init__(self, navcore):
     GUIComponent.__init__(self)
     PerServiceBase.__init__(self, navcore, {iPlayableService.evStart: self.newService,
      iPlayableService.evEnd: self.stopEvent,
      iPlayableService.evCuesheetChanged: self.newCuesheet})
     self.instance = None
     self.__seek_position = 0
	def __init__(self, enableWrapAround = True):
		GUIComponent.__init__(self)

		self.screenwidth = getDesktop(0).size().width()
		if self.screenwidth and self.screenwidth == 1920:
			self.posFont = parseFont("Regular;30", ((1,1),(1,1)))
			self.nameFont = parseFont("Regular;30", ((1,1),(1,1)))
			self.itemHeight = 40
		else:
			self.posFont = parseFont("Regular;20", ((1,1),(1,1)))
			self.nameFont = parseFont("Regular;20", ((1,1),(1,1)))
			self.itemHeight = 30

		self.posColor = 0xFFFFFF
		self.posColorSel = 0xFFFFFF
		self.nameColor = 0xFFFFFF
		self.nameColorSel = 0xFFFFFF

		self.posWidth = -1
		self.nameWidth = -1

		self.l = eListboxPythonMultiContent()
		self.l.setFont(0, self.posFont)
		self.l.setFont(1, self.nameFont)

		self.onSelectionChanged = []
Ejemplo n.º 9
0
	def __init__(self, root, list_type=None, sort_type=None, show_times=None, sftitle_episode_separator = None, MovieSelectionSelf = None):
		GUIComponent.__init__(self)
#		print "[SF-Plugin] class SF:MovieList init, lstt=%x, srt=%x, sht=%s, sft=>%s<, root=%s" % ( list_type, sort_type, show_times, str(sftitle_episode_separator), str(root))
		self.list_type = list_type or self.LISTTYPE_MINIMAL
		self.show_times = show_times or self.SHOW_DURATION | self.SHOW_DIRECTORIES
		self.sort_type = sort_type or self.SORT_RECORDED
		self.sftitle_episode_separator = sftitle_episode_separator

		self.l = eListboxPythonMultiContent()

		self.tags = set()
		self.list = None
		self.sflists = None
		self.MovieSelectionSelf = MovieSelectionSelf
		self.MselTitle = ""

		if root is not None:
			self.reload(root)

		self.pdirIcon = LoadPixmap(cached=True, path=eEnv.resolve('${libdir}/enigma2/python/Plugins/Extensions/SerienFilm/icons/folder_20.png'))
		self.rdirIcon = LoadPixmap(cached=True, path=eEnv.resolve('${libdir}/enigma2/python/Plugins/Extensions/SerienFilm/icons/folder_red.png'))
		self.fupIcon = LoadPixmap(cached=True, path=eEnv.resolve('${libdir}/enigma2/python/Plugins/Extensions/SerienFilm/icons/folderup_20.png'))
		self.pdirMap = MultiContentEntryPixmapAlphaTest(pos=(0,0), size=(20,20), png=self.pdirIcon)
		self.rdirMap = MultiContentEntryPixmapAlphaTest(pos=(0,0), size=(20,20), png=self.rdirIcon)
		self.fupMap = MultiContentEntryPixmapAlphaTest(pos=(0,0), size=(20,20), png=self.fupIcon)

		self.redrawList()
		self.l.setBuildFunc(self.buildMovieListEntry)

		self.onSelectionChanged = [ ]
Ejemplo n.º 10
0
 def __init__(self):
     GUIComponent.__init__(self)
     self.l = eListboxPythonMultiContent()
     self.l.setBuildFunc(self.buildList)
     self.l.setFont(0, gFont("Regular", 22))
     self.l.setFont(1, gFont("Regular", 18))
     self.l.setItemHeight(75)
Ejemplo n.º 11
0
	def __init__(self, path, type, update = True):
		GUIComponent.__init__(self)
		VariableText.__init__(self)
		self.type = type
# 		self.path = config.crash.debug_path.value
		if update:
			self.update(path)
Ejemplo n.º 12
0
    def __init__(self, directory, showDirectories = True, showFiles = True, showMountpoints = True, matchingPattern = None, useServiceRef = False, inhibitDirs = False, inhibitMounts = False, isTop = False, enableWrapAround = False, additionalExtensions = None, sortDate=False):
        MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
        GUIComponent.__init__(self)

        self.additional_extensions = additionalExtensions
        self.mountpoints = []
        self.current_directory = None
        self.current_mountpoint = None
        self.useServiceRef = useServiceRef
        self.showDirectories = showDirectories
        self.showMountpoints = showMountpoints
        self.showFiles = showFiles
        self.isTop = isTop
        # example: matching .nfi and .ts files: "^.*\.(nfi|ts)"
        self.matchingPattern = matchingPattern
        self.inhibitDirs = inhibitDirs or []
        self.inhibitMounts = inhibitMounts or []
        self.sortDate = sortDate

        self.refreshMountpoints()
        #self.changeDir(directory)
        #self.l.setFont(0, gFont("Regular", int(config.plugins.AdvancedFreePlayer.FileListFontSize.value)))
        #self.l.setItemHeight(35)
        self.serviceHandler = eServiceCenter.getInstance()

        #default values:
        self.font0 = gFont("Regular",22)
        self.font1 = gFont("Regular",16)
        self.itemHeight = 35
        self.DimText0 = (45, 1, 1020, 35, 0)
        self.DimText1 = (0, 0, 0, 0) # not used here
        self.DimPIC = (5, 4, 25, 25)
Ejemplo n.º 13
0
	def __init__(self, entries):
		GUIComponent.__init__(self)
		self.l = eListboxPythonMultiContent()
		self.l.setFont(0, gFont("Regular", 22))
		self.l.setFont(1, gFont("Regular", 18))
		self.list = [self.buildListboxEntry(x) for x in entries]
		self.l.setList(self.list)
Ejemplo n.º 14
0
 def __init__(self):
     GUIComponent.__init__(self)
     self.l = eListboxPythonMultiContent()
     self.l.setBuildFunc(self.buildMovieSelectionListEntry)
     self.l.setFont(0, gFont("Regular", 20))                             
     self.l.setItemHeight(30)
     self.onSelectionChanged = [ ]
Ejemplo n.º 15
0
	def __init__(self, selChangedCB=None, timer = None, time_epoch = 120, overjump_empty=True):
		self.cur_event = None
		self.cur_service = None
		self.offs = 0
		self.timer = timer
		self.onSelChanged = [ ]
		if selChangedCB is not None:
			self.onSelChanged.append(selChangedCB)
		GUIComponent.__init__(self)
		self.l = eListboxPythonMultiContent()
		self.l.setBuildFunc(self.buildEntry)
		self.setOverjump_Empty(overjump_empty)
		self.epgcache = eEPGCache.getInstance()
		self.clock_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/epgclock.png'))
		self.clock_add_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/epgclock_add.png'))
		self.clock_pre_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/epgclock_pre.png'))
		self.clock_post_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/epgclock_post.png'))
		self.clock_prepost_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/epgclock_prepost.png'))
		self.time_base = None
		self.time_epoch = time_epoch
		self.list = None
		self.event_rect = None

		self.foreColor = None
		self.foreColorSelected = None
		self.borderColor = None
		self.backColor = 0x586d88
		self.backColorSelected = 0x808080
		self.foreColorService = None
		self.backColorService = None
Ejemplo n.º 16
0
	def __init__(self):
		GUIComponent.__init__(self)
		self.l = eListboxPythonMultiContent()
		self.l.setBuildFunc(self.buildList)
		tlf = TemplatedListFonts()
		self.l.setFont(0, gFont(tlf.face(tlf.BIG), tlf.size(tlf.BIG)))
		self.l.setFont(1, gFont(tlf.face(tlf.SMALL), tlf.size(tlf.SMALL)))
		self.l.setItemHeight(componentSizes.itemHeight(self.SKIN_COMPONENT_KEY, 77))
Ejemplo n.º 17
0
 def __init__(self, default=None, cachedir='/tmp/', caching=True):
     GUIComponent.__init__(self)
     self.caching = caching
     self.cachedir = cachedir
     self.default = default
     self.currentUrl = None
     self.picload = ePicLoad()
     self.picload.PictureData.get().append(self.setPixmapCB)
Ejemplo n.º 18
0
	def __init__(self, source):
		GUIComponent.__init__(self)
		self.l = eListboxPythonMultiContent()
		self.list = source
		self.l.setList(self.list)
                self.fontName, self.fontSize = skin.parameters.get("ServiceInfoFont", ('Regular', 23))
                self.l.setFont(0, gFont(self.fontName, self.fontSize))
		self.ItemHeight = 25
Ejemplo n.º 19
0
 def __init__(self, source):
     GUIComponent.__init__(self)
     self.l = eListboxPythonMultiContent()
     self.list = source
     self.l.setList(self.list)
     font = skin.fonts.get("ServiceInfo", ("Regular", 23, 25))
     self.l.setFont(0, gFont(font[0], font[1]))
     self.l.setItemHeight(font[2])
Ejemplo n.º 20
0
	def __init__(self, entries):
		GUIComponent.__init__(self)

		self.list = entries
		self.l = eListboxPythonMultiContent()
		self.l.setFont(0, gFont("Regular", 22))
		self.l.setBuildFunc(self.buildListboxEntry)
		self.l.setList(self.list)
Ejemplo n.º 21
0
	def __init__(self, source):
		GUIComponent.__init__(self)
		self.l = eListboxPythonMultiContent()
		self.list = source
		self.l.setList(self.list)
		self.fontName = "Regular"
		self.fontSize = 23
		self.ItemHeight = 25
Ejemplo n.º 22
0
	def __init__(self, list, session = None):
		GUIComponent.__init__(self)
		self.l = eListboxPythonConfigContent()
		self.l.setSeperation(200)
		self.timer = eTimer()
		self.list = list
		self.onSelectionChanged = [ ]
		self.current = None
		self.session = session
Ejemplo n.º 23
0
	def __init__(self, mode):
		GUIComponent.__init__(self)
		self.mode = mode
		self.l = eListboxPythonMultiContent()
#		self.l.setFont(0, gFont('Regular', 22))
		font, size = skin.parameters.get("TMDbListFont", ('Regular', 23))
		self.l.setFont(0, gFont(font, size))
		self.l.setItemHeight(30)
		self.l.setBuildFunc(self.buildList)
Ejemplo n.º 24
0
	def __init__(self):
		GUIComponent.__init__(self)
		sizes = componentSizes[componentSizes.TIMELINE_TEXT]
		height = sizes.get(componentSizes.ITEM_HEIGHT, 25)
		self.l = eListboxPythonMultiContent()
		self.l.setSelectionClip(eRect(0, 0, 0, 0))
		self.l.setItemHeight(height);
		tlf = TemplatedListFonts()
		self.l.setFont(0, gFont(tlf.face(tlf.MEDIUM), tlf.size(tlf.MEDIUM)))
Ejemplo n.º 25
0
 def __init__(self, ip_address):
     GUIComponent.__init__(self)
     self.l = eListboxPythonMultiContent()        
     self.l.setFont(0, gFont("Regular", 22))
     self.l.setFont(1, gFont("Regular", 18))
     self.l.setItemHeight(100)
     self.l.setBuildFunc(self.buildMovieListEntry)
     self.onSelectionChanged = [ ]
     self.staticIP = ip_address
Ejemplo n.º 26
0
	def __init__(self):
		GUIComponent.__init__(self)
		self.l = eListboxPythonMultiContent()
		self.l.setFont(0, gFont("Regular", 20))
		self.l.setFont(1, gFont("Regular", 18))
		self.l.setBuildFunc(self.buildEntry)
		self.l.setItemHeight(22)
		self.onSelectionChanged = [ ]
		self.mode = 0
Ejemplo n.º 27
0
	def __init__(self, list, enableWrapAround = False):
		GUIComponent.__init__(self)
		self.l = eListboxPythonMultiContent()
		self.list = list
		self.l.setList(list)
		self.l.setFont(0, gFont('Regular', 21))
		self.l.setItemHeight(48)
		self.onSelectionChanged = []
		self.enableWrapAround = enableWrapAround
		self.last = 0
Ejemplo n.º 28
0
	def __init__(self):
		GUIComponent.__init__(self)
		self.l = eListboxPythonMultiContent()
		self.l.setSelectionClip(eRect(0,0,0,0))
		if config.skin.xres.value == 1920:
			self.l.setItemHeight(35);
			self.l.setFont(0, gFont("Regular", 30))
		else:
			self.l.setItemHeight(25);
			self.l.setFont(0, gFont("Regular", 20))
Ejemplo n.º 29
0
	def __init__(self):
		GUIComponent.__init__(self)
		self.l = eListboxPythonMultiContent()
		self.l.setSelectionClip(eRect(0, 0, 0, 0))
		self.l.setItemHeight(25);
		self.foreColor = 0xffc000
		self.backColor = 0x000000
		self.time_base = 0
		self.time_epoch = 0
		self.font = gFont("Regular", 20)
Ejemplo n.º 30
0
	def __init__(self):
		GUIComponent.__init__(self)

		self.list = []
		self.active_style = None
		self.selectionEnabled = True
		self._template = self._getTemplate()
		self._initialized = False

		self.buildfunc = None
		self.l = eListboxPythonMultiContent()
Ejemplo n.º 31
0
    def __init__(self, helplist, callback):
        GUIComponent.__init__(self)
        self.onSelChanged = []
        self.l = eListboxPythonMultiContent()
        self.callback = callback
        self.extendedHelp = False

        l = []
        for (actionmap, context, actions) in helplist:
            for (action, help) in actions:
                if hasattr(help, '__call__'):
                    help = help()
                if not help:
                    continue
                buttons = queryKeyBinding(context, action)

                # do not display entries which are not accessible from keys
                if not len(buttons):
                    continue

                name = None
                flags = 0

                for n in buttons:
                    (name, flags) = (getKeyDescription(n[0]), n[1])

                    # only show entries with keys that are available on the used rc
                    if name is None:
                        continue

                    if flags & 8:  # for long keypresses, prepend l_ into the key name.
                        name = (name[0], "long")

                    entry = [(actionmap, context, action, name)]

                    if isinstance(help, list):
                        self.extendedHelp = True
                        print("[HelpMenuList] extendedHelpEntry found")
                        x, y, w, h = skin.parameters.get(
                            "HelpMenuListExtHlp0", (0, 0, 600, 26))
                        x1, y1, w1, h1 = skin.parameters.get(
                            "HelpMenuListExtHlp1", (0, 28, 600, 20))
                        entry.extend(((eListboxPythonMultiContent.TYPE_TEXT, x,
                                       y, w, h, 0, 0, help[0]),
                                      (eListboxPythonMultiContent.TYPE_TEXT,
                                       x1, y1, w1, h1, 1, 0, help[1])))
                    else:
                        x, y, w, h = skin.parameters.get(
                            "HelpMenuListHlp", (0, 0, 600, 28))
                        entry.append((eListboxPythonMultiContent.TYPE_TEXT, x,
                                      y, w, h, 0, 0, help))

                    l.append(entry)

        self.l.setList(l)
        if self.extendedHelp is True:
            font = skin.fonts.get("HelpMenuListExt0", ("Regular", 24, 50))
            self.l.setFont(0, gFont(font[0], font[1]))
            self.l.setItemHeight(font[2])
            font = skin.fonts.get("HelpMenuListExt1", ("Regular", 18))
            self.l.setFont(1, gFont(font[0], font[1]))
        else:
            font = skin.fonts.get("HelpMenuList", ("Regular", 24, 38))
            self.l.setFont(0, gFont(font[0], font[1]))
            self.l.setItemHeight(font[2])
Ejemplo n.º 32
0
 def __init__(self, text=""):
     GUIComponent.__init__(self)
     VariableText.__init__(self)
     self.setText(text)
Ejemplo n.º 33
0
	def __init__(self):
		GUIComponent.__init__(self)
		VariableValue.__init__(self)
		self.__start = 0
		self.__end = 100
Ejemplo n.º 34
0
	def __init__(self, text="", onClick=None):
		if not onClick: onClick = []
		GUIComponent.__init__(self)
		VariableText.__init__(self)
		self.setText(text)
		self.onClick = onClick
Ejemplo n.º 35
0
 def __init__(self, decoder=1, fb_width=720, fb_height=576):
     GUIComponent.__init__(self)
     self.decoder = decoder
     self.fb_width = fb_width
     self.fb_height = fb_height
Ejemplo n.º 36
0
    def __init__(self, helplist, callback):
        GUIComponent.__init__(self)
        self.onSelChanged = []
        self.l = eListboxPythonMultiContent()
        self.callback = callback
        self.extendedHelp = False

        l = []

        sortlist = []
        for (actionmap, context, actions) in helplist:
            for (action, help) in actions:
                if hasattr(help, '__call__'):
                    help = help()
                if not help:
                    continue
                sortlist.append((actionmap, context, action, help))
        # Sort by description text (main and extended), then by action (this puts numeric actions in ascending order).
#		sortlist.sort(key=lambda helpItem: (list(map(str.lower, helpItem[3] if isinstance(helpItem[3], (tuple, list)) else [helpItem[3]])), helpItem[2]))
        sortlist.sort(key=lambda helpItem: ([
            s.lower() for s in (helpItem[3] if isinstance(
                helpItem[3], (tuple, list)) else [helpItem[3]])
        ], helpItem[2]))

        for (actionmap, context, action, help) in sortlist:
            buttons = queryKeyBinding(context, action)

            # do not display entries which are not accessible from keys
            if not len(buttons):
                continue

            name = None
            flags = 0

            for n in buttons:
                (name, flags) = (getKeyDescription(n[0]), n[1])
                if name is not None:
                    break

            # only show entries with keys that are available on the used rc
            if name is None:
                continue

            if flags & 8:  # for long keypresses, prepend l_ into the key name.
                name = (name[0], "long")

            entry = [(actionmap, context, action, name)]

            if isinstance(help, list):
                self.extendedHelp = True
                print("extendedHelpEntry found")
                x, y, w, h = skin.parameters.get(
                    "HelpMenuListExtHlp0",
                    (skin.applySkinFactor(5), 0, skin.applySkinFactor(595),
                     skin.applySkinFactor(28)))
                x1, y1, w1, h1 = skin.parameters.get(
                    "HelpMenuListExtHlp1",
                    (skin.applySkinFactor(5), skin.applySkinFactor(34),
                     skin.applySkinFactor(595), skin.applySkinFactor(22)))
                entry.extend(
                    ((eListboxPythonMultiContent.TYPE_TEXT, x, y, w, h, 0, 0,
                      help[0]), (eListboxPythonMultiContent.TYPE_TEXT, x1, y1,
                                 w1, h1, 1, 0, help[1])))
            else:
                x, y, w, h = skin.parameters.get(
                    "HelpMenuListHlp",
                    (skin.applySkinFactor(5), 0, skin.applySkinFactor(595),
                     skin.applySkinFactor(28)))
                entry.append((eListboxPythonMultiContent.TYPE_TEXT, x, y, w, h,
                              0, 0, help))

            l.append(entry)

        self.l.setList(l)
        if self.extendedHelp is True:
            font = skin.fonts.get("HelpMenuListExt0",
                                  ("Regular", skin.applySkinFactor(24),
                                   skin.applySkinFactor(56)))
            self.l.setFont(0, gFont(font[0], font[1]))
            self.l.setItemHeight(font[2])
            font = skin.fonts.get("HelpMenuListExt1",
                                  ("Regular", skin.applySkinFactor(18)))
            self.l.setFont(1, gFont(font[0], font[1]))
        else:
            font = skin.fonts.get("HelpMenuList",
                                  ("Regular", skin.applySkinFactor(24),
                                   skin.applySkinFactor(28)))
            self.l.setFont(0, gFont(font[0], font[1]))
            self.l.setItemHeight(font[2])
Ejemplo n.º 37
0
	def __init__(self, blinkTimer, listType, videoMode, piconLoader, bouquetList, currentIndex, piconSize, listStyle, epgList):
		self.blinkTimer = blinkTimer
		self.listType = listType
		self.videoMode = videoMode
		self.piconLoader = piconLoader
		self.piconSize = piconSize
		self.baseHeight = self.piconSize.height()
		self.listStyle = listStyle
		self.epgList = epgList
		
		GUIComponent.__init__(self)
		
		from Screens.InfoBar import InfoBar
		EpgCenterList.infoBarInstance = InfoBar.instance
		EpgCenterList.eServiceCenterInstance = eServiceCenter.getInstance()
		
		self.l = eListboxPythonMultiContent()
		self.l.setBuildFunc(self.buildEpgEntry)
		self.onSelectionChanged = [ ]
		
		if self.videoMode == MODE_SD or self.videoMode == MODE_XD:
			self.overallFontHeight = 36
		elif self.videoMode == MODE_HD:
			self.overallFontHeight = 44
			
		#initialize
		self.list = []
		self.mode = None
		self.similarShown = False
		
		config.plugins.merlinEpgCenter.listItemHeight.addNotifier(self.changeHeight, initial_call = True)
		
		if not EpgCenterList.initialised:
			EpgCenterList.bouquetList = bouquetList
			EpgCenterList.currentBouquetIndex = currentIndex
			EpgCenterList.updateBouquetServices()
			EpgCenterList.recordTimer = NavigationInstance.instance.RecordTimer
			EpgCenterList.initialised = True
			
		# zap timer pixmaps
		self.zap_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "Extensions/MerlinEPGCenter/images/zap.png"))
		self.zap_pre_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "Extensions/MerlinEPGCenter/images/zap_pre.png"))
		self.zap_post_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "Extensions/MerlinEPGCenter/images/zap_post.png"))
		self.zap_event_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "Extensions/MerlinEPGCenter/images/zap_event.png"))
		self.zap_repeated_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "Extensions/MerlinEPGCenter/images/zap_repeated.png"))
		self.zap_add_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "Extensions/MerlinEPGCenter/images/zap_add.png"))
		
		# record timer pixmaps
		self.timer_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "Extensions/MerlinEPGCenter/images/timer.png"))
		self.timer_pre_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "Extensions/MerlinEPGCenter/images/timer_pre.png"))
		self.timer_post_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "Extensions/MerlinEPGCenter/images/timer_post.png"))
		self.timer_event_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "Extensions/MerlinEPGCenter/images/timer_event.png"))
		self.timer_repeated_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "Extensions/MerlinEPGCenter/images/timer_repeated.png"))
		self.timer_add_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "Extensions/MerlinEPGCenter/images/timer_add.png"))
		
		# progress pixmaps
		self.progressPixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "Extensions/MerlinEPGCenter/images/Progress.png"))
		self.progressPixmap_0 = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "Extensions/MerlinEPGCenter/images/Progress_0.png"))
		self.progressPixmap_1 = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "Extensions/MerlinEPGCenter/images/Progress_1.png"))
		self.progressPixmap_2 = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "Extensions/MerlinEPGCenter/images/Progress_2.png"))
		self.progressPixmap_3 = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "Extensions/MerlinEPGCenter/images/Progress_3.png"))
		self.progressPixmap_4 = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "Extensions/MerlinEPGCenter/images/Progress_4.png"))
		
		self.epgcache = eEPGCache.getInstance()
		
		self.blinkTimer.callbacks.append(self.invalidateList)
Ejemplo n.º 38
0
    def __init__(self, min, max):
        VariableValue.__init__(self)
        GUIComponent.__init__(self)

        self.min = min
        self.max = max
Ejemplo n.º 39
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)
Ejemplo n.º 40
0
	def __init__(self):
		Element.__init__(self)
		GUIComponent.__init__(self)
Ejemplo n.º 41
0
 def __init__(self):
     GUIComponent.__init__(self)
     self.l = eListboxPythonMultiContent()
     self.l.setFont(0, gFont('Regular', 22))
     self.l.setItemHeight(30)
     self.l.setBuildFunc(self.buildList)
Ejemplo n.º 42
0
 def __init__(self):
     printDBG("IPTVListComponent.__init__ ----------------------------------------------------")
     GUIComponent.__init__(self)
     self.l = eListboxPythonMultiContent()
     self.l.setBuildFunc(self.buildEntry)
     self.onSelectionChanged = []
Ejemplo n.º 43
0
	def __init__(self):
		GUIComponent.__init__(self)
		self.blinking = False
		self.setBlinkTime(500)
		self.timer = eTimer()
		self.timer.callback.append(self.blink)
Ejemplo n.º 44
0
 def __init__(self):
     GUIComponent.__init__(self)
     self.rows_in_column = applySkinFactor(25)
Ejemplo n.º 45
0
	def __init__(self, list, enableWrapAround=None, content=eListboxPythonStringContent):  # enableWrapAround is deprecated as this is now controllable in the skin and windowstyle.
		GUIComponent.__init__(self)
		self.list = list
		self.l = content()
		self.l.setList(self.list)
		self.onSelectionChanged = []
Ejemplo n.º 46
0
    def __init__(self, eventList):
        GUIComponent.__init__(self)
        self.l = eListboxPythonMultiContent()
        self.l.setFont(0, gFont("Regular", 18))
        self.l.setBuildFunc(self.buildResultEntry)
        self.l.setItemHeight(150)
        self.onSelectionChanged = []

        self.resultlist = LoadPixmap(
            cached=True,
            path=resolveFilename(
                SCOPE_PLUGIN,
                'Extensions/PrimeTimeManager/images/resultlist.png'),
            desktop=getDesktop(0))
        self.favoritePixmap = LoadPixmap(
            cached=True,
            path=resolveFilename(
                SCOPE_PLUGIN,
                'Extensions/PrimeTimeManager/images/favorite.png'),
            desktop=getDesktop(0))
        self.clockPixmap = LoadPixmap(
            cached=True,
            path=resolveFilename(
                SCOPE_PLUGIN,
                'Extensions/PrimeTimeManager/images/epgclock.png'),
            desktop=getDesktop(0))
        self.clockOverlap = LoadPixmap(
            cached=True,
            path=resolveFilename(
                SCOPE_PLUGIN,
                'Extensions/PrimeTimeManager/images/clockOverlap.png'),
            desktop=getDesktop(0))
        self.clockNotrecord = LoadPixmap(
            cached=True,
            path=resolveFilename(
                SCOPE_PLUGIN,
                'Extensions/PrimeTimeManager/images/clockNotrecord.png'),
            desktop=getDesktop(0))
        self.noConflictPixmap = LoadPixmap(
            cached=True,
            path=resolveFilename(
                SCOPE_PLUGIN,
                'Extensions/PrimeTimeManager/images/noConflict.png'),
            desktop=getDesktop(0))
        self.arrowRightPixmap = LoadPixmap(
            cached=True,
            path=resolveFilename(
                SCOPE_PLUGIN, 'Extensions/PrimeTimeManager/images/right.png'),
            desktop=getDesktop(0))
        self.deletePixmap = LoadPixmap(
            cached=True,
            path=resolveFilename(
                SCOPE_PLUGIN, 'Extensions/PrimeTimeManager/images/delete.png'),
            desktop=getDesktop(0))
        if AUTOTIMER and config.plugins.PrimeTimeManager.UseAutotimer.value:
            self.autotimerPixmap = LoadPixmap(
                cached=True,
                path=resolveFilename(SCOPE_PLUGIN,
                                     'Extensions/AutoTimer/plugin.png'),
                desktop=getDesktop(0))

        self.l.setList(eventList)

        self.digitList = []
        i = 0
        while i <= 10:
            name = 'Extensions/PrimeTimeManager/images/digit_' + str(
                i) + '.png'
            digitPixmap = LoadPixmap(cached=True,
                                     path=resolveFilename(SCOPE_PLUGIN, name),
                                     desktop=getDesktop(0))
            self.digitList.append(digitPixmap)
            i += 1
Ejemplo n.º 47
0
    def __init__(self, type=EPG_TYPE_SINGLE, selChangedCB=None, timer=None):
        self.days = (_("Mon"), _("Tue"), _("Wed"), _("Thu"), _("Fri"),
                     _("Sat"), _("Sun"))
        self.timer = timer
        self.onSelChanged = []
        if selChangedCB is not None:
            self.onSelChanged.append(selChangedCB)
        GUIComponent.__init__(self)
        self.type = type
        self.l = eListboxPythonMultiContent()
        self.eventItemFont = gFont("Regular", 22)
        self.eventTimeFont = gFont("Regular", 16)
        self.iconSize = 21
        self.iconDistance = 2
        self.colGap = 10
        self.skinColumns = False
        self.tw = 120
        self.dy = 0

        if type is EPG_TYPE_SINGLE:
            self.l.setBuildFunc(self.buildSingleEntry)
        elif type is EPG_TYPE_MULTI:
            self.l.setBuildFunc(self.buildMultiEntry)
        else:
            assert (type is EPG_TYPE_SIMILAR)
            self.l.setBuildFunc(self.buildSimilarEntry)
        self.epgcache = eEPGCache.getInstance()
        self.clocks = [
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/epgclock_add.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/epgclock_pre.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/epgclock.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/epgclock_prepost.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/epgclock_post.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/zapclock_add.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/zapclock_pre.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/zapclock.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/zapclock_prepost.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/zapclock_post.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/zaprecclock_add.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/zaprecclock_pre.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/zaprecclock.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/zaprecclock_prepost.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/zaprecclock_post.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/repepgclock_add.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/repepgclock_pre.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/repepgclock.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/repepgclock_prepost.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/repepgclock_post.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/repzapclock_add.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/repzapclock_pre.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/repzapclock.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/repzapclock_prepost.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/repzapclock_post.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/repzaprecclock_add.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/repzaprecclock_pre.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/repzaprecclock.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(
                           SCOPE_CURRENT_SKIN,
                           'icons/repzaprecclock_prepost.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/repzaprecclock_post.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/pipclock_add.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/pipclock_pre.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/pipclock.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/pipclock_prepost.png')),
            LoadPixmap(cached=True,
                       path=resolveFilename(SCOPE_CURRENT_SKIN,
                                            'icons/pipclock_post.png'))
        ]
Ejemplo n.º 48
0
	def __init__(self):
		GUIComponent.__init__(self)
		self.picload = ePicLoad()
		self.l = eListboxPythonMultiContent()
		self.l.setBuildFunc(self.buildEntry)
		self.onSelChanged = [ ]
Ejemplo n.º 49
0
	def __init__(self,Bilder):
		GUIComponent.__init__(self)
Ejemplo n.º 50
0
 def __init__(self):
     VariableValue.__init__(self)
     GUIComponent.__init__(self)
Ejemplo n.º 51
0
 def __init__(self):
     GUIComponent.__init__(self)
     self.rows_in_column = 25
Ejemplo n.º 52
0
	def __init__(self):
		GUIComponent.__init__(self)
		self.l = eListboxPythonMultiContent()
		self.l.setSelectionClip(eRect(0,0,0,0))
		self.l.setItemHeight(24);
		self.l.setFont(0, gFont("Regular", 20))
Ejemplo n.º 53
0
 def __init__(self, path, type, update=True):
     GUIComponent.__init__(self)
     VariableText.__init__(self)
     self.type = type
     if update and path != '/media/autofs/':
         self.update(path)
Ejemplo n.º 54
0
	def __init__(self, selChangedCB = None, timer = None, time_epoch = 120, overjump_empty = True):
		GUIComponent.__init__(self)
		self.cur_event = None
		self.cur_service = None
		self.offs = 0
		self.timer = timer
		self.last_time = time()
		self.onSelChanged = [ ]
		if selChangedCB is not None:
			self.onSelChanged.append(selChangedCB)
		self.l = eListboxPythonMultiContent()
		self.l.setBuildFunc(self.buildEntry)
		self.setOverjump_Empty(overjump_empty)
		self.epgcache = eEPGCache.getInstance()
		self.clocks =  [ LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/epgclock_add.png')),
				 LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/epgclock_pre.png')),
				 LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/epgclock.png')),
				 LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/epgclock_prepost.png')),
				 LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/epgclock_post.png')),
				 LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/zapclock_add.png')),
				 LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/zapclock_pre.png')),
				 LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/zapclock.png')),
				 LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/zapclock_prepost.png')),
				 LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/zapclock_post.png')),
				 LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/zaprecclock_add.png')),
				 LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/zaprecclock_pre.png')),
				 LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/zaprecclock.png')),
				 LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/zaprecclock_prepost.png')),
				 LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/zaprecclock_post.png')) ]
		self.time_base = None
		self.time_epoch = time_epoch
		self.list = None
		self.select_rect = None
		self.event_rect = None
		self.service_rect = None
		self.picon_size = None
		self.currentlyPlaying = None
		self.showPicon = False
		self.showServiceTitle = True
		self.nowEvPix = None
		self.othEvPix = None
		self.selEvPix = None
		self.recEvPix = None
		self.curSerPix = None

		self.foreColor = 0xffffff
		self.foreColorSelected = 0xffc000
		self.borderColor = 0x464445
		self.backColor = 0x595959
		self.backColorSelected = 0x808080
		self.foreColorService = 0xffffff
		self.foreColorServiceSelected = 0xffffff
		self.backColorService = 0x000000
		self.backColorServiceSelected = 0x508050
		self.borderColorService = 0x000000
		self.foreColorNow = 0xffffff
		self.backColorNow = 0x505080
		self.foreColorRec = 0xffffff
		self.backColorRec = 0x805050
		self.serviceFont = gFont("Regular", 20)
		self.entryFontName = "Regular"
		self.entryFontSize = 18

		self.listHeight = None
		self.listWidth = None
		self.serviceBorderWidth = 1
		self.serviceNamePadding = 0
		self.eventBorderWidth = 1
		self.eventNamePadding = 0
Ejemplo n.º 55
0
 def __init__(self, path, type, update=True):
     GUIComponent.__init__(self)
     VariableText.__init__(self)
     self.type = type
     if update:
         self.update(path)
Ejemplo n.º 56
0
 def __init__(self, navcore, eventmap):
     GUIComponent.__init__(self)
     VariableText.__init__(self)
     PerServiceBase.__init__(self, navcore, eventmap)
Ejemplo n.º 57
0
	def __init__(self, text="", onClick=[]):
		GUIComponent.__init__(self)
		VariableText.__init__(self)
		self.setText(text)
		self.onClick = onClick