X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/a4332bd8d55eb4b54972f64c91aefd42f388de52..36b4f5eccf81cc7a650d3bbfcc975d42b3d905c4:/data/startwizard.xml diff --git a/data/startwizard.xml b/data/startwizard.xml index de999de1..a6b773e1 100644 --- a/data/startwizard.xml +++ b/data/startwizard.xml @@ -1,71 +1,180 @@ - - + + -self["arrowdown"].moveTo(557, 232, 10) -self["rc"].moveTo(500, 50, 10) -self["arrowdown"].startMoving() -self["rc"].startMoving() +self.clearSelectedKeys() +self.selectKey("OK") - - + + - - + + -self["arrowdown"].moveTo(557, 200, 10) -self["arrowup"].moveTo(557, 355, 10) -self["arrowdown"].startMoving() -self["arrowup"].startMoving() +self.clearSelectedKeys() +self.selectKey("UP") +self.selectKey("DOWN") - - - + + +from Components.NimManager import nimmanager +self.condition = len(nimmanager.nim_slots) > 0 and not nimmanager.nim_slots[0].empty and config.misc.startwizard.shownimconfig.value + + + -self["arrowup"].moveTo(740, 355, 10) -self["arrowup"].startMoving() -self["arrowdown"].clearPath(True) -self["arrowdown"].addMovePoint(510, 300, 10) -self["arrowdown"].addMovePoint(610, 300, 10) -self["arrowdown"].startMoving() +self.clearSelectedKeys() +self.selectKey("LEFT") +self.selectKey("RIGHT") - + + +from Components.NimManager import nimmanager +self.condition = len(nimmanager.nim_slots) > 1 and not nimmanager.nim_slots[1].empty and config.misc.startwizard.shownimconfig.value + - + -self["arrowup"].moveTo(740, 355, 10) -self["arrowup"].startMoving() -self["arrowdown"].clearPath(True) -self["arrowdown"].addMovePoint(510, 300, 10) -self["arrowdown"].addMovePoint(610, 300, 10) -self["arrowdown"].startMoving() +self.clearSelectedKeys() +self.selectKey("LEFT") +self.selectKey("RIGHT") - - - - + + + +from Components.NimManager import nimmanager +self.condition = len(nimmanager.nim_slots) > 2 and not nimmanager.nim_slots[2].empty and config.misc.startwizard.shownimconfig.value + + + + +self.clearSelectedKeys() +self.selectKey("LEFT") +self.selectKey("RIGHT") + + + + +from Components.NimManager import nimmanager +self.condition = len(nimmanager.nim_slots) > 3 and not nimmanager.nim_slots[3].empty and config.misc.startwizard.shownimconfig.value + + + -self["arrowup"].moveTo(740, 355, 10) -self["arrowup"].startMoving() -self["arrowdown"].clearPath(True) -self["arrowdown"].addMovePoint(510, 300, 10) -self["arrowdown"].addMovePoint(610, 300, 10) -self["arrowdown"].startMoving() +self.clearSelectedKeys() +self.selectKey("LEFT") +self.selectKey("RIGHT") + + + + + +from Components.NimManager import nimmanager +self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected() + + +self.hideRc() + + + + + + + + + + +from Components.NimManager import nimmanager +self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected() + + +self.hideRc() + + + + + + + + + +from Components.NimManager import nimmanager +self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected() + + + + + + +from Components.NimManager import nimmanager +self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected() + + + + + + +from Components.NimManager import nimmanager +self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected() + + + + + + + + + + + + + + +if self["list"].index == 0: + config.ParentalControl.configured.value = True +else: + config.ParentalControl.configured.value = False +config.ParentalControl.configured.save() - - + + + + + + + +from ParentalControlSetup import ParentalControlChangePin +if self["list"].index == 0: + self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("parental control pin")) + + + + + + -self["arrowdown"].moveTo(740, 200, 10) -self["arrowup"].moveTo(740, 355, 10) -self["arrowdown"].startMoving() -self["arrowup"].startMoving() -self["rc"].moveTo(500, 600, 5) -self["rc"].startMoving() +if config.ParentalControl.setuppin.value == "aaaa": + config.ParentalControl.setuppinactive.value = False +else: + config.ParentalControl.setuppinactive.value = True +config.ParentalControl.setuppinactive.save() +config.ParentalControl.servicepinactive.value = True +config.ParentalControl.servicepinactive.save() +config.ParentalControl.setuppin.value = config.ParentalControl.servicepin[0].value +config.ParentalControl.setuppin.save() - + + + + + +self.condition = self.isLastWizard + + +