Exemple #1
0
    def __init__(self, list):
        TemplatedMultiContentComponent.__init__(self)
        self.l.setBuildFunc(self.buildTimerEntry)
        self.list = list

        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"))
Exemple #2
0
	def __init__(self, root, list_type=None, sort_type=None, descr_state=None):
		TemplatedMultiContentComponent.__init__(self)
		self.list = []

		self.descr_state = descr_state or self.HIDE_DESCRIPTION
		self.sort_type = sort_type or self.SORT_RECORDED
		self.setListType(list_type or self.LISTTYPE_ORIGINAL)
		self.tags = set()
		if root is not None:
			self.reload(root)

		self.l.setBuildFunc(self.buildMovieListEntry)
		self.onSelectionChanged = [ ]
Exemple #3
0
    def __init__(self, root, list_type=None, sort_type=None, descr_state=None):
        TemplatedMultiContentComponent.__init__(self)
        self.list = []

        self.descr_state = descr_state or self.HIDE_DESCRIPTION
        self.sort_type = sort_type or self.SORT_RECORDED
        self.setListType(list_type or self.LISTTYPE_ORIGINAL)
        self.tags = set()
        if root is not None:
            self.reload(root)

        self.l.setBuildFunc(self.buildMovieListEntry)
        self.onSelectionChanged = []
Exemple #4
0
	def __init__(self, root, list_type=None, sort_type=None, descr_state=None):
		TemplatedMultiContentComponent.__init__(self)
		self.virtualList = []
		self.list = []
		self._vlist = []

		self.descr_state = descr_state or self.HIDE_DESCRIPTION
		self.sort_type = sort_type or self.SORT_RECORDED
		self.setListType(list_type or self.LISTTYPE_ORIGINAL)
		self.tags = set()
		self.root = root
		self.filter_tags = []

		self.l.setBuildFunc(self.buildMovieListEntry)
		self.onSelectionChanged = [ ]
		self.__mediaDbScanFinished_conn = eMediaDatabase.getInstance().scanFinished.connect(self._onMediaDbScanFinished)
    def __init__(self,
                 list_type=None,
                 sortType=None,
                 directory=None,
                 showDirectories=True,
                 showFiles=True,
                 showMountpoints=True,
                 matchingPattern=None,
                 inhibitDirs=False,
                 inhibitMounts=False,
                 isTop=False,
                 enableWrapAround=True,
                 additionalExtensions=None,
                 showDetails=True):
        TemplatedMultiContentComponent.__init__(self)
        self.list = []
        self.setListType(list_type or self.LIST_TYPE_FULL)
        self.sortType = sortType or self.SORT_NAME_ASC

        self.mountpoints = []
        self.current_directory = None
        self.current_mountpoint = None
        self.showDirectories = showDirectories
        self.showFiles = showFiles
        self.showMountpoints = showMountpoints
        self.matchingPattern = matchingPattern
        self.inhibitDirs = inhibitDirs or []
        self.inhibitMounts = inhibitMounts or []
        self.isTop = isTop
        self.additional_extensions = additionalExtensions
        self.showDetails = showDetails
        self.iconSet = "/usr/lib/enigma2/python/Plugins/Extensions/DreamExplorer/icons"

        self.serviceHandler = eServiceCenter.getInstance()

        self.refreshMountpoints()
        if directory is not None:
            self.changeDirectory(directory)

        self.l.setBuildFunc(self.buildEntry)

        self.onSelectionChanged = []
    def __init__(self, current_sort_mode):
        logger.debug("...")
        self.current_sort_mode = current_sort_mode
        self.file_list = []
        self.selection_list = []
        self.lock_list = {}
        self.list_styles = {}
        self.file_list_index = {}
        self.skinAttributes = None
        TemplatedMultiContentComponent.__init__(self)
        self.l.setBuildFunc(self.buildMovieListEntry)

        self.color = parseColor(config.plugins.moviecockpit.color.value).argb()
        self.color_sel = parseColor(
            config.plugins.moviecockpit.color_sel.value).argb()
        self.recording_color = parseColor(
            config.plugins.moviecockpit.recording_color.value).argb()
        self.recording_color_sel = parseColor(
            config.plugins.moviecockpit.recording_color_sel.value).argb()
        self.selection_color = parseColor(
            config.plugins.moviecockpit.selection_color.value).argb()
        self.selection_color_sel = parseColor(
            config.plugins.moviecockpit.selection_color_sel.value).argb()

        skin_path = getSkinPath("images/")
        self.pic_back = LoadPixmap(skin_path + "back.svg",
                                   cached=True,
                                   size=eSize(24, 24))
        self.pic_directory = LoadPixmap(skin_path + "dir.svg",
                                        cached=True,
                                        size=eSize(24, 24))
        self.pic_link = LoadPixmap(skin_path + "link.svg",
                                   cached=True,
                                   size=eSize(24, 24))
        self.pic_movie_default = LoadPixmap(skin_path + "movie_default.svg",
                                            cached=True,
                                            size=eSize(24, 24))
        self.pic_movie_watching = LoadPixmap(skin_path + "movie_watching.svg",
                                             cached=True,
                                             size=eSize(24, 24))
        self.pic_movie_finished = LoadPixmap(skin_path + "movie_finished.svg",
                                             cached=True,
                                             size=eSize(24, 24))
        self.pic_movie_rec = LoadPixmap(skin_path + "movie_rec.svg",
                                        cached=True,
                                        size=eSize(24, 24))
        self.pic_movie_cut = LoadPixmap(skin_path + "movie_cut.svg",
                                        cached=True,
                                        size=eSize(24, 24))
        self.pic_bookmark = LoadPixmap(skin_path + "bookmark.svg",
                                       cached=True,
                                       size=eSize(24, 24))
        self.pic_trashcan = LoadPixmap(skin_path + "trashcan.svg",
                                       cached=True,
                                       size=eSize(24, 24))
        self.pic_progress_bar = LoadPixmap(skin_path + "progcl.svg",
                                           cached=True)
        self.pic_rec_progress_bar = LoadPixmap(skin_path + "rec_progcl.svg",
                                               cached=True)

        self.onSelectionChanged = []