Пример #1
0
    def __init__(self, session, newTimer):
        self.xmlfile = Directories.resolveFilename(
            Directories.SCOPE_PLUGINS, "Extensions/AutoTimer/autotimerwizard.xml"
        )

        WizardLanguage.__init__(self, session, showSteps=True, showStepSlider=True)
        AutoTimerEditorBase.__init__(self, newTimer)
        Rc.__init__(self)

        # self.skinName = ["AutoTimerWizard", "NetworkWizard"]
        self["wizard"] = Pixmap()
        self["HelpWindow"] = Pixmap()
        self["HelpWindow"].hide()
        self["VKeyIcon"] = Boolean(False)

        self.doCancel = False
        self.emptyMatch = False
        self.tailingWhitespacesMatch = False

        # We might need to change shown items, so add some notifiers
        self.timespan.addNotifier(self.regenTimespanList, initial_call=False)
        self.generateTimespanList()

        self.servicesDlg = self.session.instantiateDialog(
            AutoTimerServiceEditor, self.serviceRestriction, self.services, self.bouquets
        )

        self.filterDlg = self.session.instantiateDialog(
            AutoTimerFilterEditor, self.filterSet, self.excludes, self.includes
        )

        self["TextEntryActions"] = ActionMap(
            ["TextEntryActions"], {"deleteForward": self.deleteForward, "deleteBackward": self.deleteBackward}, -2
        )
Пример #2
0
	def __init__(self, session, interface = None):
		self.xmlfile = resolveFilename(SCOPE_PLUGINS, "SystemPlugins/NetworkWizard/networkwizard.xml")
		WizardLanguage.__init__(self, session, showSteps = False, showStepSlider = False)
		Rc.__init__(self)
		self.session = session
		self["wizard"] = Pixmap()

		self["VKeyIcon"] = Boolean(False)

		self.InstalledInterfaceCount = None
		self.Adapterlist = None
		self.InterfaceState = None
		self.isInterfaceUp = None
		self.WlanPluginInstalled = False
		self.ap = None
		self.w = None
		if interface is not None:
			self.selectedInterface = interface
		else:
			self.selectedInterface = None
		self.NextStep = None
		self.resetRef = None
		self.checkRef = None
		self.AdapterRef = None
		self.APList = None
		self.newAPlist = None
		self.oldlist = None

		self.originalInterfaceState = {}
		self.originalInterfaceStateChanged = False
		self.Text = None
		self.rescanTimer = eTimer()
		self.rescanTimer.callback.append(self.rescanTimerFired)
		self.getInstalledInterfaceCount()
		self.isWlanPluginInstalled()
Пример #3
0
	def __init__(self, session, silent = True, showSteps = False, neededTag = None):
		self.xmlfile = ["startwizard.xml", "defaultsatlists.xml"]
		DefaultWizard.__init__(self, session, silent, showSteps, neededTag = "services", default = True)
		WizardLanguage.__init__(self, session, showSteps = False, showMulticontentList = True)
		Rc.__init__(self)

		self["wizard"] = Pixmap()

		# needed for LanguageSelection
		self.png_cache = { }

		self["button_green"] = Boolean(False)
		self["button_green_text"] = Label()
		self["button_green_text"].hide()
		self["button_yellow"] = Boolean(False)
		self["button_yellow_text"] = Label()
		self["button_yellow_text"].hide()
		self["button_blue"] = Boolean(False)
		self["button_blue_text"] = Label()
		self["button_blue_text"].hide()

		self["state_label"] = Label()
		self["state"] = Label()
		self.showState(False)

		NetworkWizardNew.__init__(self)
		self.networkWizardAvailable = NetworkWizardNew not in emptyWizardList

		self["portpic"] = Pixmap()
		VideoWizard.__init__(self)
		self.videoWizardAvailable = VideoWizard not in emptyWizardList
Пример #4
0
	def __init__(self, session, interface = None):
		self.xmlfile = resolveFilename(SCOPE_PLUGINS, "SystemPlugins/NetworkManager/networkwizard.xml")

		WizardLanguage.__init__(self, session, showSteps = False, showStepSlider = False)
		Rc.__init__(self)
		NetworkConfigGeneral.__init__(self)

		self._services = self["list"]
		self._services.buildfunc = self._buildListEntry
		self._services.setStyle("default")

		self["wizard"] = Pixmap()
		self["HelpWindow"] = Pixmap()
		self["HelpWindow"].hide()
		self["VKeyIcon"] = Boolean(False)
		self["button_green"] = Boolean(False)
		self["button_green_text"] = Label(_("Connect"))
		self["button_green_text"].hide()
		self["button_yellow"] = Boolean(False)
		self["button_yellow_text"] = Label(_("Rescan"))
		self["button_yellow_text"].hide()
		self["state_label"] = Label(_("Connection State:"))
		self["state"] = Label( NetworkConfigGeneral.translateState(self._nm.state()) )

		self._ipconfig = None
		self._nsconfig = None
Пример #5
0
	def __init__(self, session):
		self.xmlfile = resolveFilename(SCOPE_PLUGINS, "SystemPlugins/SoftwareManager/imagewizard.xml")
		WizardLanguage.__init__(self, session, showSteps = False, showStepSlider = False)
		Rc.__init__(self)
		self.session = session
		self["wizard"] = Pixmap()
		self.selectedDevice = None
Пример #6
0
	def __init__(self, session, silent = True, showSteps = False, neededTag = None):
		self.xmlfile = ["startwizard.xml"]
		WizardLanguage.__init__(self, session, showSteps = False)
		Rc.__init__(self)
		self["wizard"] = Pixmap()
		#Screen.setTitle(self, _("Welcome..."))
		Screen.setTitle(self, _("StartWizard"))
Пример #7
0
	def back(self):
		self.stopScan()
		self.ap = None
		WizardLanguage.back(self)
		if len(self.stepHistory) <= 1:
			if self.originalSelectedInterface is None:
				self.selectedInterface = None		
Пример #8
0
	def __init__(self, session, silent = True, showSteps = False, neededTag = None):
		self.xmlfile = ["startwizard.xml", "defaultsatlists.xml"]
		DefaultWizard.__init__(self, session, silent, showSteps, neededTag = "services", default = True)
		WizardLanguage.__init__(self, session, showSteps = False, showMulticontentList = True)
		Rc.__init__(self)
		self["wizard"] = Pixmap()

		# needed for LanguageSelection
		self.png_cache = { }
	def keyNumberGlobal(self, number):
		if number in (1,2,3):
			if number == 1:
				self.hw.saveMode("DVI", "720p", "multi")
			elif number == 2:
				self.hw.saveMode("DVI", "1080i", "multi")
			self.hw.setConfiguredMode()
			self.close()

		WizardLanguage.keyNumberGlobal(self, number)
Пример #10
0
 def keyNumberGlobal(self, number):
     if number in (1, 2, 3):
         if number == 1:
             self.hw.saveMode('HDMI', '720p', 'multi')
         elif number == 2:
             self.hw.saveMode('HDMI', '1080i', 'multi')
         elif number == 3:
             self.hw.saveMode('Scart', 'Multi', 'multi')
         self.hw.setConfiguredMode()
         self.close()
     WizardLanguage.keyNumberGlobal(self, number)
Пример #11
0
	def __init__(self, session):
		self.xmlfile = resolveFilename(SCOPE_PLUGINS, "SystemPlugins/SoftwareManager/imagewizard.xml")
		WizardLanguage.__init__(self, session, showSteps = False, showStepSlider = False)
		Rc.__init__(self)
		self.session = session
		self["wizard"] = Pixmap()
		self["HelpWindow"] = Pixmap()
		self["HelpWindow"].hide()
		#Screen.setTitle(self, _("Welcome..."))
		Screen.setTitle(self, _("ImageWizard"))
		self.selectedDevice = None
Пример #12
0
 def __init__(self, session):
     self.xmlfile = resolveFilename(SCOPE_SKIN, 'videowizard.xml')
     self.hw = iAVSwitch
     WizardLanguage.__init__(self, session, showSteps=False, showStepSlider=False)
     Rc.__init__(self)
     self['wizard'] = Pixmap()
     self['portpic'] = Pixmap()
     Screen.setTitle(self, _('Welcome...'))
     self.port = None
     self.mode = None
     self.rate = None
Пример #13
0
	def __init__(self, session, silent = True, showSteps = False, neededTag = None):
		DreamInfoHandler.__init__(self, self.statusCallback, neededTag = neededTag)
		self.silent = silent
		self.setDirectory()
        
		WizardLanguage.__init__(self, session, showSteps = False)
		self["wizard"] = Pixmap()
		self["rc"] = MovingPixmap()
		self["arrowdown"] = MovingPixmap()
		self["arrowup"] = MovingPixmap()
		self["arrowup2"] = MovingPixmap()
Пример #14
0
	def __init__(self, session, silent = True, showSteps = False, neededTag = None):
		if config.misc.iptvmode.value in ('normal'):
			self.xmlfile = ["startwizard.xml"]
		else:
			self.xmlfile = ["startwizard_iptv.xml"]
		WizardLanguage.__init__(self, session, showSteps = False)
		Rc.__init__(self)
		self["wizard"] = Pixmap()
		self["HelpWindow"] = Pixmap()
		self["HelpWindow"].hide()
		#Screen.setTitle(self, _("Welcome..."))
		Screen.setTitle(self, _("StartWizard"))
Пример #15
0
	def __init__(self, session):
		self.xmlfile = resolveFilename(SCOPE_PLUGINS, "SystemPlugins/SoftwareManager/restorewizard.xml")
		WizardLanguage.__init__(self, session, showSteps = False, showStepSlider = False)
		Rc.__init__(self)
		self.session = session
		self.skinName = "StartWizard"
		self.skin = "StartWizard.skin"
		self["wizard"] = Pixmap()
		self.selectedAction = None
		self.NextStep = None
		self.Text = None
		self.buildListRef = None
		self.fullbackupfilename = None
Пример #16
0
	def __init__(self, session):
		# FIXME anyone knows how to use relative paths from the plugin's directory?
		self.xmlfile = resolveFilename(SCOPE_PLUGINS, "SystemPlugins/Videomode/videowizard.xml")
		self.hw = video_hw
		
		WizardLanguage.__init__(self, session, showSteps = False, showStepSlider = False)
		Rc.__init__(self)
		self["wizard"] = Pixmap()
		self["portpic"] = Pixmap()
		
		self.port = None
		self.mode = None
		self.rate = None
Пример #17
0
	def __init__(self, session):
		# FIXME anyone knows how to use relative paths from the plugin's directory?
		self.xmlfile = resolveFilename(SCOPE_SKIN, "videowizard.xml")
		self.hw = iAVSwitch

		WizardLanguage.__init__(self, session, showSteps = False, showStepSlider = False)
		Rc.__init__(self)
		self["wizard"] = Pixmap()
		self["portpic"] = Pixmap()
		Screen.setTitle(self, _("Welcome..."))

		self.port = None
		self.mode = None
		self.rate = None
Пример #18
0
	def keyNumberGlobal(self, number):
		if number in (1,2,3,4) and self.isCurrentStepID("modeselection"):
			if number == 1:
				self.hw.saveMode("DVI", "720p", "multi")
			elif number == 2:
				self.hw.saveMode("DVI", "1080i", "multi")
			elif SystemInfo["AnalogOutput"] and number == 3:
				self.hw.saveMode("Scart", "Multi", "multi")
			elif number == 4:
				self.hw.saveMode("DVI", "1080p", "multi")
			self.hw.setConfiguredMode()
			self.close()

		WizardLanguage.keyNumberGlobal(self, number)
Пример #19
0
	def updateValues(self):
		WizardLanguage.updateValues(self)
		if self.currStep == self.STEP_ID_SVCS:
			self._services.setStyle("service")
			self["button_green"].boolean = True
			self["button_green_text"].show()
			self["button_yellow"].boolean = True
			self["button_yellow_text"].show()
			self._services.buildfunc = self._buildServiceListEntry
		else:
			self._services.setStyle("default")
			self["button_green"].boolean = False
			self["button_green_text"].hide()
			self["button_yellow"].boolean = False
			self["button_yellow_text"].hide()
			self._services.buildfunc = self._buildListEntry
Пример #20
0
    def __init__(self, session):
        if environ["LANGUAGE"] == "de":
            self.xmlfile = config.plugins.pvmc.pluginfolderpath.value + "DMC_Wizard_DE.xml"
        else:
            if environ["LANGUAGE"] == "de_DE":
                self.xmlfile = config.plugins.pvmc.pluginfolderpath.value + "DMC_Wizard_DE.xml"
            else:
                self.xmlfile = config.plugins.pvmc.pluginfolderpath.value + "DMC_Wizard.xml"

        WizardLanguage.__init__(self, session, showSteps=False, showStepSlider=False)
        self["wizard"] = Pixmap()
        self["textTop"] = Label()
        self["textCenter"] = Label()
        self["textBottom"] = Label()

        self["showiframe"] = StillPicture(session)
Пример #21
0
 def __init__(self, session, interface = None):
     self.xmlfile = resolveFilename(SCOPE_SKIN, 'userinterfacepositionerwizard.xml')
     WizardLanguage.__init__(self, session, showSteps=False, showStepSlider=False)
     Rc.__init__(self)
     self.skinName = 'StartWizard'
     self.session = session
     Screen.setTitle(self, _('Welcome...'))
     self.Console = Console()
     self['wizard'] = Pixmap()
     self['HelpWindow'] = Pixmap()
     self['HelpWindow'].hide()
     self['VKeyIcon'] = Boolean(False)
     self.NextStep = None
     self.Text = None
     self.onLayoutFinish.append(self.layoutFinished)
     self.onClose.append(self.__onClose)
Пример #22
0
	def __init__(self, session):
		self.xmlfile = resolveFilename(SCOPE_PLUGINS, "SystemPlugins/CleanupWizard/cleanupwizard.xml")
		WizardLanguage.__init__(self, session, showSteps = False, showStepSlider = False)
		Rc.__init__(self)
		self.session = session
		self["wizard"] = Pixmap()
		self.selectedAction = None
		self.selectedPackage = None
		self.NextStep = None
		self.Text = None
		self.buildListRef = None
		self.RemoveRef = None
		self.excluded_extensions = ('-skins', '-streamproxy', '-frontprocessorupgrade', '-crashlogautosubmit', '-hotplug', '-webinterface', '-mediascanner', '-genuinedreambox', '-mediaplayer', '-pictureplayer', '-dvdplayer', '-dvdburn', '-videotune', '-videomode', '-softwaremanager', '-skinselector', '-satfinder' )
		self.Console = Console()
		self.installed_packetlist = []
		self.ipkg = IpkgComponent()
		self.ipkg.addCallback(self.ipkgCallback)
	def __init__(self, session, interface = None):
		self.xmlfile = resolveFilename(SCOPE_SKIN, "userinterfacepositionerwizard.xml")
		WizardLanguage.__init__(self, session, showSteps = False, showStepSlider = False)
		Rc.__init__(self)
		self.skinName = "StartWizard"
		self.session = session
		self.Console = Console()
		self["wizard"] = Pixmap()
		self["HelpWindow"] = Pixmap()
		self["HelpWindow"].hide()
		self["VKeyIcon"] = Boolean(False)

		self.NextStep = None
		self.Text = None

		self.onLayoutFinish.append(self.layoutFinished)
		self.onClose.append(self.__onClose)
Пример #24
0
	def __init__(self, session, packagesAvailable, packagesMissing):
		self.xmlfile = "restorewizard.xml"
		WizardLanguage.__init__(self, session)
		self.skinName = "DefaultWizard"
		self._packagesAvailable = packagesAvailable
		self._packagesMissing = packagesMissing
		self._commands = []

		self["wizard"] = Pixmap()
		self["rc"] = MovingPixmap()
		self["arrowdown"] = MovingPixmap()
		self["arrowup"] = MovingPixmap()
		self["arrowup2"] = MovingPixmap()

		self._packages = []
		for p in self._packagesAvailable:
			self._packages.append(getConfigListEntry(p, ConfigYesNo(default=True)))
Пример #25
0
	def __init__(self, session):
		self.xmlfile = resolveFilename(SCOPE_PLUGINS, "SystemPlugins/AtemioCore/restorewizard.xml")
		WizardLanguage.__init__(self, session, showSteps = False, showStepSlider = False)
		Rc.__init__(self)
		self.session = session
		self.skinName = "StartWizard"
#		self.skin = "StartWizard.skin"
		self["wizard"] = Pixmap()
		self.selectedAction = None
		self.NextStep = None
		self.Text = None
		self.buildListRef = None
		self.didSettingsRestore = False
		self.didPluginRestore = False
		self.PluginsRestore = False
		self.fullbackupfilename = None
		self.delaymess = None
		self.Console = Console()
Пример #26
0
 def __init__(self, session):
     self.xmlfile = resolveFilename(SCOPE_PLUGINS, 'SystemPlugins/ItalyCore/restorewizard.xml')
     WizardLanguage.__init__(self, session, showSteps=False, showStepSlider=False)
     Rc.__init__(self)
     self.session = session
     self.skinName = 'StartWizard'
     self.skin = 'StartWizard.skin'
     self['wizard'] = Pixmap()
     self.selectedAction = None
     self.NextStep = None
     self.Text = None
     self.buildListRef = None
     self.didSettingsRestore = False
     self.didPluginRestore = False
     self.PluginsRestore = False
     self.fullbackupfilename = None
     self.delaymess = None
     self.selectedDevice = None
     self.Console = Console()
     return
Пример #27
0
	def back(self):
		self.stopScan()
		self.ap = None
		WizardLanguage.back(self)
	def close(self, *args, **kwargs):
		if self.doCancel:
			WizardLanguage.close(self, None)
		else:
			WizardLanguage.close(self, self.timer)
	def keyNumberGlobal(self, number):
		if self.currStep == AutoTimerWizard.STEP_ID_BASIC or self.currStep == AutoTimerWizard.STEP_ID_TIMESPAN:
			self["config"].handleKey(KEY_0 + number)
		else:
			WizardLanguage.keyNumberGlobal(self, number)
 def back(self):
     WizardLanguage.back(self)