def __init__(self, directory, showDirectories = True, showFiles = True, showMountpoints = True, matchingPattern = None, useServiceRef = False, inhibitDirs = False, inhibitMounts = False, isTop = False, enableWrapAround = True, additionalExtensions = None):
		MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
		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
		self.matchingPattern = matchingPattern
		self.inhibitDirs = inhibitDirs or []
		self.inhibitMounts = inhibitMounts or []
		self.refreshMountpoints()
		direct = directory
		if directory.endswith("/"):
			se = directory
		else:
			se = os_path.basename(directory)
			direct = directory+"/"
#		print "direct,se",direct,se
		self.changeDir(direct,se)
		self.l.setFont(0, gFont("Regular", 18))
		self.l.setItemHeight(26)
		self.serviceHandler = eServiceCenter.getInstance()
 def __init__(self, enableWrapAround = False):
         MenuList.__init__(self, playlist, enableWrapAround, eListboxPythonMultiContent)
         self.l.setFont(0, gFont("Regular", 18))
         self.l.setItemHeight(23)
         MC_AudioPlayer.currPlaying = -1
         self.oldCurrPlaying = -1
         self.serviceHandler = eServiceCenter.getInstance()
Ejemplo n.º 3
0
	def __init__(self, getPlaylistEntriesCB):
		MenuList.__init__(self, list, False, eListboxPythonMultiContent)
		tlf = TemplatedListFonts()
		self.l.setFont(0, gFont(tlf.face(tlf.MEDIUM), tlf.size(tlf.MEDIUM)))
		self.l.setItemHeight(25)
		self.l.setBuildFunc(self.buildListboxEntry)
		self.getPlaylistEntriesCB = getPlaylistEntriesCB
Ejemplo n.º 4
0
 def __init__(self, list):
     MenuList.__init__(self, list, False, eListboxPythonMultiContent)
     self.l.setItemHeight(45)
     self.l.setFont(0, gFont('SetrixHD', 24))
     self.l.setFont(1, gFont('Regular', 22))
     if 1 == 2:
         cat = _('Education')
         cat = _('Movie & Media')
         cat = _('Network & Streaming')
         cat = _('News')
         cat = _('Program Guide')
         cat = _('Social')
         cat = _('Spinners')
         cat = _('Sports')
         cat = _('Radio')
         cat = _('Tweaks')
         cat = _('Recordings')
         cat = _('Communication')
         cat = _('System Extensions')
         cat = _('Utilities')
         cat = _('Development')
         cat = _('Picons')
         cat = _('Skin Extensions')
         cat = _('SkinParts Collections')
         cat = _('Drivers')
         cat = _('Channellists')
         cat = _('Kernel Modules')
         cat = _('Language Packs')
         cat = _('Weather')
         cat = _('Various')
         cat = _('My SkinParts')
         cat = _('Default Bugfixes')
         cat = _('VTI Specific')
         cat = _('OpenPLi Specific')
         cat = _('MetrixHD Default')
Ejemplo n.º 5
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.º 6
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, sort = "default"):
		MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
		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.sort = sort
		self.inhibitDirs = inhibitDirs or []
		self.inhibitMounts = inhibitMounts or []
		self.refreshMountpoints()
		self.changeDir(directory, sort = sort)
		if getDesktop(0).size().width() == 1920:
			self.l.setFont(0, gFont("Regular", 26))
			self.l.setItemHeight(36)
		else:
			self.l.setFont(0, gFont("Regular", 18))
			self.l.setItemHeight(21)
		self.serviceHandler = eServiceCenter.getInstance()
Ejemplo n.º 7
0
	def __init__(self, getPlaylistEntriesCB):
		MenuList.__init__(self, list, False, eListboxPythonMultiContent)
		self.font = gFont("Regular", 18)
		self.l.setFont(0, self.font)
		self.l.setItemHeight(23)
		self.l.setBuildFunc(self.buildListboxEntry)
		self.getPlaylistEntriesCB = getPlaylistEntriesCB
Ejemplo n.º 8
0
	def __init__(self, entries):
		MenuList.__init__(self, entries, False, content = eListboxPythonMultiContent)

		self.l.setFont(0, gFont("Regular", 22))
		self.l.setBuildFunc(self.buildListboxEntry)
		self.l.setItemHeight(25)
		self.colorDisabled = 12368828
Ejemplo n.º 9
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):
        MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
        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
        if isTop:
            self.topDirectory = directory
        else:
            self.topDirectory = "/"
        # example: matching .nfi and .ts files: "^.*\.(nfi|ts)"
        if matchingPattern:
            self.matchingPattern = re.compile(matchingPattern)
        else:
            self.matchingPattern = None
        self.inhibitDirs = inhibitDirs or []
        self.inhibitMounts = inhibitMounts or []

        self.refreshMountpoints()
        self.changeDir(directory)
        self.l.setFont(0, gFont("Regular", 18))
        self.l.setItemHeight(23)
        self.serviceHandler = eServiceCenter.getInstance()
	def __init__(self, list, enableWrapAround = True):
		MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
		font = skin.fonts.get("PartnerBoxEntryList0", ("Regular", 20, 20))
		self.l.setFont(0, gFont(font[0], font[1]))
		self.ItemHeight = int(font[2])
		font = skin.fonts.get("PartnerBoxEntryList1", ("Regular", 18))
		self.l.setFont(1, gFont(font[0], font[1]))
Ejemplo n.º 11
0
 def __init__(
     self,
     directory,
     showDirectories=True,
     showFiles=True,
     showMountpoints=True,
     matchingPattern=None,
     useServiceRef=False,
     inhibitDirs=False,
     inhibitMounts=False,
     isTop=False,
     enableWrapAround=True,
     additionalExtensions=None,
 ):
     MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
     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
     self.matchingPattern = matchingPattern
     self.inhibitDirs = inhibitDirs or []
     self.inhibitMounts = inhibitMounts or []
     self.refreshMountpoints()
     self.changeDir(directory)
     font = skin.fonts.get("Dreamexplorer", ("Regular", 18, 26))
     self.l.setFont(0, gFont(font[0], font[1]))
     self.l.setItemHeight(font[2])
     self.serviceHandler = eServiceCenter.getInstance()
Ejemplo n.º 12
0
 def __init__(self, list, itemHeight=29):
     MenuList.__init__(self, list, False, eListboxPythonMultiContent)
     self.l.setItemHeight(itemHeight)
     self.l.setFont(0, gFont("Regular", 21))
     self.l.setFont(1, gFont("Regular", 23))
     self.l.setFont(2, gFont("Regular", 18))
     self.l.setFont(3, gFont("Regular", 19))
Ejemplo n.º 13
0
	def __init__(self):
		MenuList.__init__(self, [], False, eListboxPythonMultiContent)
		self.l.setItemHeight(20)
		self.l.setFont(0, gFont("Regular", 18))
		self.menu = []
		self.active = True
		self.current = 0
Ejemplo n.º 14
0
	def __init__(self, list):
		MenuList.__init__(self, list, False, content=eListboxPythonMultiContent)

		l = self.l
		l.setFont(0, gFont("Regular", 22))
		l.setBuildFunc(self.buildListboxEntry)
		self.selected = None
		self.selectedColor = 8388608
	def __init__(self, tree = None, enableWrapAround = False):
		'tree is expected to be a list of categories'
		MenuList.__init__(self, [], enableWrapAround, content = eListboxPythonMultiContent)
		font = skin.fonts.get("SelectionList", ("Regular", 20, 30))
		self.l.setFont(0, gFont(font[0], font[1]))
		self.l.setItemHeight(font[2])
		self.tree = tree or []
		self.updateFlatList()
Ejemplo n.º 16
0
	def __init__(self, list, enableWrapAround = True):
		MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
		if getDesktop(0).size().width() == 1920:
			self.l.setFont(0, gFont("Regular", 28))
			self.l.setFont(1, gFont("Regular", 26))
		else:
			self.l.setFont(0, gFont("Regular", 20))
			self.l.setFont(1, gFont("Regular", 18))
	def __init__(self, list):
		MenuList.__init__(self, list, False, eListboxPythonMultiContent)
		self.l.setFont(0, gFont("Regular", 14))
		self.l.setFont(1, gFont("Regular", 16))
		self.l.setFont(2, gFont("Regular", 18))
		self.l.setFont(3, gFont("Regular", 20))
		self.l.setFont(4, gFont("Regular", 22))
		self.l.setFont(5, gFont("Regular", 24))
Ejemplo n.º 18
0
	def __init__(self):
		MenuList.__init__(self, [], False, eListboxPythonMultiContent)
		self.l.setFont(0, gFont("Regular", 18))
		self.l.setFont(1, gFont("Regular", 16))
		self.listCompleted = []
		self.callback = None
		self.idx = 0
		self.thumb = ""
Ejemplo n.º 19
0
	def __init__(self, menuList, enableWrapAround = True):
		printl("", self, "S")
		
		MenuList.__init__(self, menuList, enableWrapAround, eListboxPythonMultiContent)
		self.l.setFont(0, gFont("Regular", 20))
		self.l.setFont(1, gFont("Regular", 18))
		
		printl("", self, "C")
Ejemplo n.º 20
0
	def __init__(self, list, itemH = 30):
		MenuList.__init__(self, list, False, eListboxPythonMultiContent)
		self.l.setItemHeight(int(itemH*f))
		self.l.setFont(0, gFont("Regular", int(20*f)))
		self.l.setFont(1, gFont("Regular", int(18*f)))
		self.clientFont = gFont("Regular", int(16*f))
		self.l.setFont(2, self.clientFont)
		self.l.setFont(3, gFont("Regular", int(12*f)))
Ejemplo n.º 21
0
	def __init__(self, list, itemH = 25):
		MenuList.__init__(self, list, False, eListboxPythonMultiContent)
		self.l.setItemHeight(itemH)
		self.l.setFont(0, gFont("Regular", 18))
		self.l.setFont(1, gFont("Regular", 16))
		self.clientFont = gFont("Regular", 14)
		self.l.setFont(2, self.clientFont)
		self.l.setFont(3, gFont("Regular", 12))
Ejemplo n.º 22
0
	def __init__(self, directory, matchingPattern = None, enableWrapAround = False):
		MenuList.__init__(self, None, enableWrapAround, eListboxPythonMultiContent)
		self.showDirectories = True
		self.showFiles = True
		self.isTop = False
		self.matchingPattern = matchingPattern
		self.changeDir(directory)
		self.l.setFont(0, gFont("Regular", 18))
		self.currentDir = directory
Ejemplo n.º 23
0
	def __init__(self):
		MenuList.__init__(self, [], False, eListboxPythonMultiContent)
		self.l.setItemHeight(75)
		if WIDTH == 720:
			self.l.setFont(0, gFont("Regular", 30))
			self.center_up = 22
		else:
			self.l.setFont(0, gFont("Regular", 40))
			self.center_up = 15
Ejemplo n.º 24
0
	def __init__(self, getFilesAndDirsCB, baseDir, matchingPattern):
		MenuList.__init__(self, list, False, eListboxPythonMultiContent)
		tlf = TemplatedListFonts()
		self.l.setFont(0, gFont(tlf.face(tlf.MEDIUM), tlf.size(tlf.MEDIUM)))
		self.l.setItemHeight(25)
		self.l.setBuildFunc(self.buildListboxEntry)
		self.currentDirectory = baseDir
		self.getFilesAndDirsCB = getFilesAndDirsCB
		self.changeRegex(matchingPattern)
Ejemplo n.º 25
0
 def __init__(self, getFilesAndDirsCB, baseDir, matchingPattern):
     MenuList.__init__(self, list, False, eListboxPythonMultiContent)
     self.font = gFont("Regular", 18)
     self.l.setFont(0, self.font)
     self.l.setItemHeight(23)
     self.l.setBuildFunc(self.buildListboxEntry)
     self.currentDirectory = baseDir
     self.getFilesAndDirsCB = getFilesAndDirsCB
     self.changeRegex(matchingPattern)
Ejemplo n.º 26
0
	def __init__(self, entries):
		MenuList.__init__(self, entries, False, content = eListboxPythonMultiContent)

		self.l.setFont(0, gFont("Regular", 22))
		self.l.setBuildFunc(self.buildListboxEntry)
		self.l.setItemHeight(25)
		self.colorDisabled = 12368828
		tlf = TemplatedListFonts()
		self.l.setFont(0, gFont(tlf.face(tlf.BIG), tlf.size(tlf.BIG)))
Ejemplo n.º 27
0
	def __init__(self, entries):
		MenuList.__init__(self, entries, False, content = eListboxPythonMultiContent)

		l = self.l
		l.setFont(0, gFont("Regular", 22))
		self.descriptionFont = gFont("Regular", 18)
		l.setFont(1, self.descriptionFont)
		l.setItemHeight(100)
		l.setBuildFunc(self.buildListboxEntry)
Ejemplo n.º 28
0
 def __init__(self, list):
     MenuList.__init__(self, list, True, eListboxPythonMultiContent)
     try:
         font = skin.fonts.get('fstabMenuList', ('Regular', 20, 220))
         self.l.setFont(0, gFont(font[0], font[1]))
         self.l.setItemHeight(font[2])
     except:
         self.l.setFont(0, gFont('Regular', 20))
         self.l.setItemHeight(220)
Ejemplo n.º 29
0
	def __init__(self, entries):
		MenuList.__init__(self, entries, False, content = eListboxPythonMultiContent)
		self.l.setBuildFunc(self.buildListboxEntry)
		self.l.setFont(0, gFont("Regular", 20))
		self.l.setFont(1, gFont("Regular", 17))
		self.l.setItemHeight(70)
		self.iconDisabled = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "skin_default/icons/lock_off.png"))
		self.iconEnabled = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "skin_default/icons/lock_on.png"))
		self.iconRecording = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "skin_default/icons/timer_rec.png"))
		self.iconZapped = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "skin_default/icons/timer_zap.png"))
Ejemplo n.º 30
0
	def __init__(self, list):
		MenuList.__init__(self, list, True, eListboxPythonMultiContent)
		# skin.xml <alias name="RSList" font="Regular" size="28" height="50"/>
		try:
			font = skin.fonts.get("RSList", ("Regular", 20, 30))
			self.l.setFont(0, gFont(font[0], font[1]))
			self.l.setItemHeight(font[2])
		except:
			self.l.setFont(0, gFont("Regular", 20))
			self.l.setItemHeight(30)
Ejemplo n.º 31
0
 def __init__(self, list):
     MenuList.__init__(self, list, True, eListboxPythonMultiContent)
     font, size = skin.parameters.get("KoalaIsettingsListFont",
                                      ('Regular', 25))
     self.l.setFont(0, gFont(font, size))
Ejemplo n.º 32
0
	def __init__(self, list, enableWrapAround=False):
		MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
		font = skin.fonts.get("VirtualKeyboard", ("Regular", 28, 45))
		self.l.setFont(0, gFont(font[0], font[1]))
		self.l.setItemHeight(font[2])
 def __init__(self):
     self.menuList = []
     MenuList.__init__(self, self.menuList)
Ejemplo n.º 34
0
 def __init__(self, list):
     MenuList.__init__(self, list, True, eListboxPythonMultiContent)
     font, size = skin.parameters.get("ProgrammlistenUpdaterListFont",
                                      ('Regular', 25))
     self.l.setFont(0, gFont(font, size))
Ejemplo n.º 35
0
 def __init__(self, list):
     MenuList.__init__(self, list, False, eListboxPythonMultiContent)
     self.l.setItemHeight(56)
     self.l.setFont(Font.REGULAR_MEDIUM, gFont("Regular", 21))
     self.l.setFont(Font.REGULAR_BIG, gFont("Regular", 23))
     self.l.setFont(Font.REGULAR_SMALL, gFont("Regular", 17))
Ejemplo n.º 36
0
 def __init__(self, list):
     MenuList.__init__(self, list, False, eListboxPythonMultiContent)
     self.l.setItemHeight(30)
     self.l.setFont(0, gFont('Regular', 20))
Ejemplo n.º 37
0
                def __init__(self, list, font0 = 24, font1 = 16, itemHeight = 50, enableWrapAround = True):	        
		        MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
                        self.l.setFont(0, gFont("Regular", font0))
		        self.l.setFont(1, gFont("Regular", font1))
		        self.l.setItemHeight(itemHeight)
Ejemplo n.º 38
0
 def __init__(self, list):
     MenuList.__init__(self, list, False, eListboxPythonMultiContent)
     self.l.setItemHeight(50)
     self.l.setFont(0, gFont('SetrixHD', 26))
     self.l.setFont(1, gFont('Regular', 22))
Ejemplo n.º 39
0
	def __init__(self):
		MenuList.__init__(self, [], False, eListboxPythonMultiContent)
		self.l.setItemHeight(25)
		self.l.setFont(0, gFont("Regular", 20))
Ejemplo n.º 40
0
 def __init__(self, list, enableWrapAround=True):
     MenuList.__init__(self, list, enableWrapAround,
                       eListboxPythonMultiContent)
     tlf = TemplatedListFonts()
     self.l.setFont(0, gFont(tlf.face(tlf.SMALL), tlf.size(tlf.SMALL)))
     self.configVA = None
Ejemplo n.º 41
0
	def __init__(self, list, enableWrapAround = True):
		MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
		self.l.setFont(0, gFont("Regular", 20))
		self.l.setFont(1, gFont("Regular", 18))
		self.configPSR = None
Ejemplo n.º 42
0
 def __init__(self, list, enableWrapAround=True):
     MenuList.__init__(self, list, enableWrapAround,
                       eListboxPythonMultiContent)
     self.l.setFont(0, gFont('Regular', 20))
     self.l.setFont(1, gFont('Regular', 18))
Ejemplo n.º 43
0
 def __init__(self, enableWrapAround=False):
     MenuList.__init__(self, [], enableWrapAround,
                       eListboxPythonMultiContent)
     self.l.setFont(0, gFont('Regular', 24))
     self.l.setItemHeight(106)
Ejemplo n.º 44
0
 def __init__(self, list):
     MenuList.__init__(self, list, True, eListboxPythonMultiContent)
     self.l.setFont(0, gFont("Regular", 25))
     self.l.setItemHeight(45)
Ejemplo n.º 45
0
 def __init__(self, items, enableWrapAround=False):
     MenuList.__init__(self, items, enableWrapAround,
                       eListboxPythonMultiContent)
     self.l.setFont(0, gFont("Regular", 20))
     self.l.setFont(1, gFont("Regular", 18))
Ejemplo n.º 46
0
	def __init__(self, list, font0 = 24, font1 = 16, itemHeight = 50, enableWrapAround = True):
		MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
		sf = getSkinFactor()
		self.l.setFont(0, gFont("Regular", int(font0 * sf)))
		self.l.setFont(1, gFont("Regular", int(font1 * sf)))
		self.l.setItemHeight(int(itemHeight*sf))
Ejemplo n.º 47
0
	def __init__(self, list, enableWrapAround = False):
		MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
		self.l.setFont(0, gFont("Regular", 22))
		self.l.setFont(1, gFont("Regular", 14))
		self.l.setItemHeight(50)
Ejemplo n.º 48
0
 def __init__(self, menulist=None, length=10):
     if not menulist:
         menulist = []
     self.list = menulist
     self.len = length
     MenuList.__init__(self, self.list)
Ejemplo n.º 49
0
 def __init__(self, list, selection=0, enableWrapAround=True):
     MenuList.__init__(self, list, enableWrapAround,
                       eListboxPythonMultiContent)
     self.l.setFont(0, gFont('Regular', 30))
     self.l.setItemHeight(50)
     self.selection = selection
Ejemplo n.º 50
0
 def __init__(self, list):
     MenuList.__init__(self, list, False, eListboxPythonMultiContent)
     self.l.setFont(0, gFont("Regular", 22))
     self.l.setFont(1, gFont("Regular", 18))
     self.l.setItemHeight(220)
Ejemplo n.º 51
0
	def __init__(self):
		MenuList.__init__(self, list, False, eListboxPythonMultiContent)
		self.font = gFont("Regular", 18)
		self.l.setFont(0, self.font)
		self.l.setItemHeight(23)
		self.l.setBuildFunc(self.buildListboxEntry)
Ejemplo n.º 52
0
	def __init__(self, list, selection = 0, enableWrapAround=False):
		MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
		self.l.setFont(0, gFont("Regular", 20))
		self.l.setItemHeight(25)
		self.selection = selection