Ejemplo n.º 1
0
    def __init__(self, session):
        Screen.__init__(self, session)
        Screen.setTitle(self, _("Plugin Browser"))

        self.firsttime = True

        self["key_red"] = Button(_("Remove plugins"))
        self["key_green"] = Button(_("Download plugins"))

        self.list = []
        self["list"] = PluginList(self.list)
        if config.usage.sort_pluginlist.value:
            self["list"].list.sort()

        self["actions"] = ActionMap(["WizardActions", "MenuActions"], {
            "ok": self.save,
            "back": self.close,
            "menu": self.openSetup,
        })
        self["PluginDownloadActions"] = ActionMap(["ColorActions"], {
            "red": self.delete,
            "green": self.download
        })

        self.onFirstExecBegin.append(self.checkWarnings)
        self.onShown.append(self.updateList)
        self.onChangedEntry = []
        self["list"].onSelectionChanged.append(self.selectionChanged)
        self.onLayoutFinish.append(self.saveListsize)
Ejemplo n.º 2
0
 def __init__(self, session):
     Screen.__init__(self, session)
     self.list = []
     self.entrylist = []  #List reset
     self.entrylist.append((
         _("TarGz packages installer"), "one",
         "/usr/lib/enigma2/python/Plugins/Extensions/OPDpanel/icons/File_Archive.png"
     ))
     self.entrylist.append((
         _("Ipk packages installer"), "two",
         "/usr/lib/enigma2/python/Plugins/Extensions/OPDpanel/icons/File_Archive.png"
     ))
     self.entrylist.append((
         _("Advanced ipk packages installer"), "tree",
         "/usr/lib/enigma2/python/Plugins/Extensions/OPDpanel/icons/File_Archive.png"
     ))
     self.entrylist.append((
         _("Ipk remove"), "four",
         "/usr/lib/enigma2/python/Plugins/Extensions/OPDpanel/icons/File_Archive.png"
     ))
     self['list'] = PluginList(self.list)
     self['actions'] = ActionMap(['WizardActions', 'ColorActions'], {
         "ok": self.OK,
         "back": self.exit,
     })
     self.onLayoutFinish.append(self.updateList)
Ejemplo n.º 3
0
    def __init__(self, session):
        Screen.__init__(self, session)
        self.list = []
        self.entrylist = []  #List reset
        self.entrylist.append(
            (_("Plugin"), "Plg",
             "/usr/lib/enigma2/python/OPENDROID/icons/Plugin.png"))
        self.entrylist.append(
            (_("Picons"), "Pcs",
             "/usr/lib/enigma2/python/OPENDROID/icons/Picons.png"))
        self.entrylist.append(
            (_("Setting"), "Stg",
             "/usr/lib/enigma2/python/OPENDROID/icons/Setting_list.png"))
        self.entrylist.append(
            (_("Skin"), "Sks",
             "/usr/lib/enigma2/python/OPENDROID/icons/Skins.png"))
        self.entrylist.append(
            (_("BootLogo"), "Logo",
             "/usr/lib/enigma2/python/OPENDROID/icons/BootLogo.png"))

        self['list'] = PluginList(self.list)
        self["key_red"] = Label(_("Exit"))
        self["key_green"] = Label(_("Remove"))
        self["key_yellow"] = Label(_("Restart E2"))
        self['actions'] = ActionMap(
            ['WizardActions', 'ColorActions'], {
                'ok': self.KeyOk,
                "red": self.close,
                'back': self.close,
                'green': self.Remove,
                'yellow': self.RestartE2,
            })
        self.onLayoutFinish.append(self.updateList)
Ejemplo n.º 4
0
    def __init__(self, session, type=0, needupdate=True, skin_name=None):
        Screen.__init__(self, session)
        self.type = type
        self.needupdate = needupdate
        self.skinName = ["PluginDownloadBrowser"]
        if isinstance(skin_name, str):
            self.skinName.insert(0, skin_name)

        if self.type == self.DOWNLOAD:
            config.misc.pluginbrowser.po.value = True
            self.setTitle(_("Install Plugins"))
        elif self.type == self.REMOVE:
            config.misc.pluginbrowser.po.value = False
            self.setTitle(_("Remove Plugins"))
        self.createPluginFilter()
        self.LanguageList = language.getLanguageListSelection()
        self.container = eConsoleAppContainer()
        self.container.appClosed.append(self.runFinished)
        self.container.dataAvail.append(self.dataAvail)
        self.onLayoutFinish.append(self.startRun)

        self.list = []
        self["list"] = PluginList(self.list)
        self.pluginlist = []
        self.expanded = []
        self.installedplugins = []
        self.plugins_changed = False
        self.reload_settings = False
        self.check_settings = False
        self.check_bootlogo = False
        self.install_settings_name = ''
        self.remove_settings_name = ''
        self.onChangedEntry = []
        self["list"].onSelectionChanged.append(self.selectionChanged)

        if self.type == self.DOWNLOAD:
            self["text"] = Label(
                _("Downloading plugin information. Please wait..."))
        elif self.type == self.REMOVE:
            self["text"] = Label(
                _("Getting plugin information. Please wait..."))

        self.run = 0
        self.remainingdata = ""
        self["actions"] = ActionMap(["WizardActions"], {
            "ok": self.go,
            "back": self.requestClose,
        })
        if os.path.isfile('/usr/bin/opkg'):
            self.ipkg = '/usr/bin/opkg'
            self.ipkg_install = self.ipkg + ' install'
            self.ipkg_remove = self.ipkg + ' remove --autoremove'
        else:
            self.ipkg = 'ipkg'
            self.ipkg_install = 'ipkg install -force-defaults'
            self.ipkg_remove = self.ipkg + ' remove'
Ejemplo n.º 5
0
	def __init__(self, session):
		Screen.__init__(self, session)
		self.setTitle(_("Plugin Browser"))
		ProtectedScreen.__init__(self)

		self.firsttime = True

		self["key_red"] = Button(_("Remove plugins"))
		self["key_green"] = Button(_("Download plugins"))
		self["key_menu"] = StaticText(_("MENU"))

		self.list = []
		self["list"] = PluginList(self.list)
		if config.usage.sort_pluginlist.value:
			self["list"].list.sort()

		self["actions"] = ActionMap(["WizardActions", "MenuActions"],
		{
			"ok": self.save,
			"back": self.close,
			"menu": self.openSetup,
		})
		self["PluginDownloadActions"] = ActionMap(["ColorActions"],
		{
			"red": self.delete,
			"green": self.download
		})
		self["DirectionActions"] = ActionMap(["DirectionActions"],
		{
			"shiftUp": self.moveUp,
			"shiftDown": self.moveDown
		})
		self["NumberActions"] = NumberActionMap(["NumberActions"],
		{
			"1": self.keyNumberGlobal,
			"2": self.keyNumberGlobal,
			"3": self.keyNumberGlobal,
			"4": self.keyNumberGlobal,
			"5": self.keyNumberGlobal,
			"6": self.keyNumberGlobal,
			"7": self.keyNumberGlobal,
			"8": self.keyNumberGlobal,
			"9": self.keyNumberGlobal,
			"0": self.keyNumberGlobal
		})

		self.number = 0
		self.nextNumberTimer = eTimer()
		self.nextNumberTimer.callback.append(self.okbuttonClick)

		self.onFirstExecBegin.append(self.checkWarnings)
		self.onShown.append(self.updateList)
		self.onChangedEntry = []
		self["list"].onSelectionChanged.append(self.selectionChanged)
		self.onLayoutFinish.append(self.saveListsize)
    def __init__(self, session):
        Screen.__init__(self, session)
        Screen.setTitle(self, _("Plugin Browser"))
        ProtectedScreen.__init__(self)
        self.firsttime = True

        self["key_red"] = Button(_("Remove plugins"))
        self["key_green"] = Button(_("Download plugins"))
        self["key_yellow"] = Button(_("PluginInstallWizard"))
        self["key_blue"] = Button(_("PluginDeinstallWizard"))

        self.list = []
        self["list"] = PluginList(self.list)
        if config.usage.sort_pluginlist.value:
            self["list"].list.sort()

        self["actions"] = ActionMap(["WizardActions", "MenuActions"], {
            "ok": self.save,
            "back": self.close,
            "menu": self.openSetup,
        })
        self["PluginDownloadActions"] = ActionMap(
            ["ColorActions"], {
                "red": self.delete,
                "green": self.download,
                "yellow": self.wizardinstall,
                "blue": self.wizarddeinstall
            })
        self["DirectionActions"] = ActionMap(["DirectionActions"], {
            "moveUp": self.moveUp,
            "moveDown": self.moveDown
        })

        self.onFirstExecBegin.append(self.checkWarnings)
        self.onShown.append(self.updateList)
        self.onChangedEntry = []
        self["list"].onSelectionChanged.append(self.selectionChanged)
        self.onLayoutFinish.append(self.saveListsize)
        if self.isProtected() and config.ParentalControl.servicepin[0].value:
            self.onFirstExecBegin.append(
                boundFunction(
                    self.session.openWithCallback,
                    self.pinEntered,
                    PinInput,
                    pinList=[
                        x.value for x in config.ParentalControl.servicepin
                    ],
                    triesEntry=config.ParentalControl.retries.servicepin,
                    title=_("Please enter the correct pin code"),
                    windowTitle=_("Enter pin code")))
Ejemplo n.º 7
0
 def __init__(self, session):
     Screen.__init__(self, session)
     self.setTitle(_("Add/remove plugin"))
     plugins.readPluginList(resolveFilename(SCOPE_PLUGINS))
     self.session = session
     self.list = []
     self["pluginlist"] = PluginList(self.list)
     #self.updateList()
     self.pluginlist = []
     self["actions"] = ActionMap(["WizardActions"], {
         "ok": self.save,
         "back": self.close
     }, -1)
     self.onExecBegin.append(self.checkWarnings)
     self.onShown.append(self.updateList)
Ejemplo n.º 8
0
    def __init__(self, session, type=1, needupdate=True):
        Screen.__init__(self, session)
        global pluginfiles
        self.type = type
        self.needupdate = needupdate
        self.container = eConsoleAppContainer()
        self.container.appClosed.append(self.runFinished)
        self.container.dataAvail.append(self.dataAvail)
        self.onLayoutFinish.append(self.startRun)
        self.onShown.append(self.setWindowTitle)
        self.setuplist = []

        self.list = []
        self["list"] = PluginList(self.list)
        self.pluginlist = []
        self.expanded = []
        self.installedplugins = []
        self.plugins_changed = False
        self.reload_settings = False
        self.check_settings = False
        self.check_bootlogo = False
        self.install_settings_name = ''
        self.remove_settings_name = ''
        self['spaceused'] = ProgressBar()
        self["status"] = ScrollLabel()
        self['key_green'] = Label(_('Remove'))
        self['key_red'] = Label(_('Exit'))

        if self.type == self.DOWNLOAD:
            self["text"] = Label(
                _("Downloading plugin information. Please wait..."))
        self.run = 0
        self.remainingdata = ""
        self["actions"] = ActionMap(
            ["WizardActions", "ColorActions"], {
                "ok": self.go,
                "back": self.requestClose,
                "green": self.install,
                "red": self.close,
            })
        if os.path.isfile('/usr/bin/opkg'):
            self.ipkg = '/usr/bin/opkg'
            self.ipkg_install = self.ipkg + ' install --force-overwrite'
            self.ipkg_remove = self.ipkg + ' remove --autoremove --force-depends'
        else:
            self.ipkg = 'ipkg'
            self.ipkg_install = 'ipkg install --force-overwrite -force-defaults'
            self.ipkg_remove = self.ipkg + ' remove --autoremove --force-depends'
Ejemplo n.º 9
0
    def __init__(self, session, type=0, needupdate=True):
        Screen.__init__(self, session)

        self.type = type
        self.needupdate = needupdate

        self.container = eConsoleAppContainer()
        self.container.appClosed.append(self.runFinished)
        self.container.dataAvail.append(self.dataAvail)
        self.onLayoutFinish.append(self.startRun)
        self.onShown.append(self.setWindowTitle)

        self.list = []
        self["list"] = PluginList(self.list)
        self.pluginlist = []
        self.expanded = []
        self.installedplugins = []
        self.plugins_changed = False
        self.reload_settings = False
        self.check_settings = False
        self.check_bootlogo = False
        self.install_settings_name = ''
        self.remove_settings_name = ''

        if self.type == self.DOWNLOAD:
            self["text"] = Label(
                _("Downloading plugin information. Please wait..."))
        elif self.type == self.REMOVE:
            self["text"] = Label(
                _("Getting plugin information. Please wait..."))

        self.run = 0
        self.remainingdata = ""
        self["actions"] = ActionMap(["WizardActions"], {
            "ok": self.go,
            "back": self.requestClose,
        })
        if os.path.isfile('/usr/bin/opkg'):
            self.ipkg = '/usr/bin/opkg'
            self.ipkg_install = self.ipkg + ' install'
            self.ipkg_remove = self.ipkg + ' remove --autoremove'
        else:
            self.ipkg = 'ipkg'
            self.ipkg_install = 'ipkg install -force-defaults'
            self.ipkg_remove = self.ipkg + ' remove'
Ejemplo n.º 10
0
    def __init__(self, session):
        Screen.__init__(self, session)

        self["red"] = Label(_("Manage extensions"))
        self["green"] = Label()

        self.list = []
        self["pluginlist"] = PluginList(self.list)
        self.pluginlist = []

        self["actions"] = ActionMap(["WizardActions"], {
            "ok": self.save,
            "back": self.close,
        })
        self["SoftwareActions"] = ActionMap(["ColorActions"],
                                            {"red": self.openExtensionmanager})
        self["SoftwareActions"].setEnabled(True)
        self.updateList()
        self.onFirstExecBegin.append(self.checkWarnings)
Ejemplo n.º 11
0
 def __init__(self, session):
     Screen.__init__(self, session)
     self.list = []
     self.entrylist = []
     self.entrylist.append((
         _('Plugin'), 'Plg',
         '/usr/lib/enigma2/python/Plugins/Extensions/OPDpanel/icons/Plugin.png'
     ))
     self.entrylist.append((
         _('Picons'), 'Pcs',
         '/usr/lib/enigma2/python/Plugins/Extensions/OPDpanel/icons/Picons.png'
     ))
     self.entrylist.append((
         _('Setting'), 'Stg',
         '/usr/lib/enigma2/python/Plugins/Extensions/OPDpanel/icons/Setting_list.png'
     ))
     self.entrylist.append((
         _('Skin'), 'Sks',
         '/usr/lib/enigma2/python/Plugins/Extensions/OPDpanel/icons/Skins.png'
     ))
     self.entrylist.append((
         _('BootLogo'), 'Logo',
         '/usr/lib/enigma2/python/Plugins/Extensions/OPDpanel/icons/BootLogo.png'
     ))
     self['list'] = PluginList(self.list)
     self['key_red'] = Label(_('Exit'))
     self['key_green'] = Label(_('Remove'))
     self['key_yellow'] = Label(_('Restart E2'))
     self['actions'] = ActionMap(
         ['WizardActions', 'ColorActions'], {
             'ok': self.KeyOk,
             'red': self.close,
             'back': self.close,
             'green': self.Remove,
             'yellow': self.RestartE2
         })
     self.onLayoutFinish.append(self.updateList)
Ejemplo n.º 12
0
	def __init__(self, session, menu_path = ""):
		Screen.__init__(self, session)
		self.menu_path = menu_path
		screentitle = _("Plugin Browser")
		if config.usage.show_menupath.value == 'large':
			self.menu_path += screentitle
			title = self.menu_path
			self["menu_path_compressed"] = StaticText("")
			self.menu_path += ' / '
		elif config.usage.show_menupath.value == 'small':
			title = screentitle
			condtext = ""
			if self.menu_path and not self.menu_path.endswith(' / '):
				condtext = self.menu_path + " >"
			elif self.menu_path:
				condtext = self.menu_path[:-3] + " >"
			self["menu_path_compressed"] = StaticText(condtext)
			self.menu_path += screentitle + ' / '
		else:
			title = screentitle
			self["menu_path_compressed"] = StaticText("")
		Screen.setTitle(self, title)
		ProtectedScreen.__init__(self)

		self.firsttime = True

		self["key_red"] = Button(_("Remove plugins"))
		self["key_green"] = Button(_("Download plugins"))

		self.list = []
		self["list"] = PluginList(self.list)
		if config.usage.sort_pluginlist.value:
			self["list"].list.sort()

		self["actions"] = ActionMap(["WizardActions", "MenuActions"],
		{
			"ok": self.save,
			"back": self.close,
			"menu": self.openSetup,
		})
		self["PluginDownloadActions"] = ActionMap(["ColorActions"],
		{
			"red": self.delete,
			"green": self.download
		})
		self["DirectionActions"] = ActionMap(["DirectionActions"],
		{
			"shiftUp": self.moveUp,
			"shiftDown": self.moveDown
		})
		self["NumberActions"] = NumberActionMap(["NumberActions"],
		{
			"1": self.keyNumberGlobal,
			"2": self.keyNumberGlobal,
			"3": self.keyNumberGlobal,
			"4": self.keyNumberGlobal,
			"5": self.keyNumberGlobal,
			"6": self.keyNumberGlobal,
			"7": self.keyNumberGlobal,
			"8": self.keyNumberGlobal,
			"9": self.keyNumberGlobal,
			"0": self.keyNumberGlobal
		})

		self.number = 0
		self.nextNumberTimer = eTimer()
		self.nextNumberTimer.callback.append(self.okbuttonClick)

		self.onFirstExecBegin.append(self.checkWarnings)
		self.onShown.append(self.updateList)
		self.onChangedEntry = []
		self["list"].onSelectionChanged.append(self.selectionChanged)
		self.onLayoutFinish.append(self.saveListsize)
Ejemplo n.º 13
0
	def __init__(self, session, type = 0, needupdate = True, menu_path="", skin_name=None):
		Screen.__init__(self, session)
		self.menu_path = menu_path
		self.type = type
		self.needupdate = needupdate
		self.skinName = ["PluginDownloadBrowser"]
		if isinstance(skin_name, str):
			self.skinName.insert(0,skin_name)

		self["menu_path_compressed"] = StaticText("")
		if self.type == self.DOWNLOAD:
			screentitle = _("Install plugins")
			if config.usage.show_menupath.value == 'large':
				self.menu_path += screentitle
				title = self.menu_path
				self["menu_path_compressed"].setText("")
			elif config.usage.show_menupath.value == 'small':
				title = screentitle
				self["menu_path_compressed"].setText(self.menu_path + " >" if not self.menu_path.endswith(' / ') else self.menu_path[:-3] + " >" or "")
			else:
				title = screentitle
				self["menu_path_compressed"].setText("")
		elif self.type == self.REMOVE:
			screentitle = _("Remove plugins")
			if config.usage.show_menupath.value == 'large':
				self.menu_path += screentitle
				title = self.menu_path
				self["menu_path_compressed"].setText("")
			elif config.usage.show_menupath.value == 'small':
				title = screentitle
				self["menu_path_compressed"].setText(self.menu_path + " >" if not self.menu_path.endswith(' / ') else self.menu_path[:-3] + " >" or "")
			else:
				title = screentitle
				self["menu_path_compressed"].setText("")
		self.setTitle(title)

		self.container = eConsoleAppContainer()
		self.container.appClosed.append(self.runFinished)
		self.container.dataAvail.append(self.dataAvail)
		self.onLayoutFinish.append(self.startRun)

		self.list = []
		self["list"] = PluginList(self.list)
		self.pluginlist = []
		self.expanded = []
		self.installedplugins = []
		self.plugins_changed = False
		self.reload_settings = False
		self.check_settings = False
		self.check_bootlogo = False
		self.install_settings_name = ''
		self.remove_settings_name = ''

		if self.type == self.DOWNLOAD:
			self["text"] = Label(_("Downloading plugin information. Please wait..."))
		elif self.type == self.REMOVE:
			self["text"] = Label(_("Getting plugin information. Please wait..."))

		self.run = 0
		self.remainingdata = ""
		self["actions"] = ActionMap(["WizardActions"],
		{
			"ok": self.go,
			"back": self.requestClose,
		})
		if os.path.isfile('/usr/bin/opkg'):
			self.ipkg = '/usr/bin/opkg'
			self.ipkg_install = self.ipkg + ' install'
			self.ipkg_remove =  self.ipkg + ' remove --autoremove'
		else:
			self.ipkg = 'ipkg'
			self.ipkg_install = 'ipkg install -force-defaults'
			self.ipkg_remove =  self.ipkg + ' remove'
Ejemplo n.º 14
0
 def __init__(self, *args, **kwargs):
     PluginList.__init__(self, *args, **kwargs)
     self.__inst = None
Ejemplo n.º 15
0
	def __init__(self, *args, **kwargs):
		PluginList.__init__(self, *args, **kwargs)
		self.__inst = None
Ejemplo n.º 16
0
 def updateList(self, list):
     PluginList.updateList(self, list)
     # to refresh the plugin-description if show in a different widget
     # like TemplatedMultiContent or StringListSelection-Converter
     self.selectionChanged(self.index)