diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-10-16 22:37:46 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-10-16 22:37:46 +0000 |
| commit | a27631694342ad6f77090743b5affddef5e155e0 (patch) | |
| tree | 8b43b8e765f21551c871d99b5191e9c6cb81a1f9 /data/startwizard.xml | |
| parent | d30355fd9062e6333af64e64a9a4847ac76ed73e (diff) | |
| download | enigma2-a27631694342ad6f77090743b5affddef5e155e0.tar.gz enigma2-a27631694342ad6f77090743b5affddef5e155e0.zip | |
add parental control setup to the start wizard
Diffstat (limited to 'data/startwizard.xml')
| -rw-r--r-- | data/startwizard.xml | 48 |
1 files changed, 43 insertions, 5 deletions
diff --git a/data/startwizard.xml b/data/startwizard.xml index eb1dc39c..eb16c263 100644 --- a/data/startwizard.xml +++ b/data/startwizard.xml @@ -1,5 +1,5 @@ <wizard> - <step id="welcome"> + <step id="welcome" nextstep="introduction"> <text value="Welcome.\n\nThis start wizard will guide you through the basic setup of your Dreambox.\nPress the OK button on your remote control to move to the next step." /> <code> self["arrowdown"].moveTo(557, 232, 1) @@ -10,7 +10,7 @@ self["rc"].moveTo(500, 50, 1) self["rc"].startMoving() </code> </step> - <step> + <step id="introduction" > <text value="Use the up/down keys on your remote control to select an option. After that, press OK." /> <list> <listentry caption="Use wizard to set up basic features" step="nima" /> @@ -112,10 +112,10 @@ self["arrowup2"].startMoving() <list> <listentry caption="Yes, do an automatic scan now" step="scan" /> <listentry caption="Yes, do a manual scan now" step="manualscan" /> - <listentry caption="No, scan later manually" step="end" /> + <listentry caption="No, scan later manually" step="parentalcontrol" /> </list> </step> - <step id="scan" nextstep="end"> + <step id="scan" nextstep="parentalcontrol"> <text value="What do you want to scan?" /> <config screen="ScanSimple" module="ScanSetup" type="ConfigList" /> </step> @@ -127,9 +127,47 @@ self["arrowup2"].startMoving() <text value="Do you want to do another manual service scan?" /> <list> <listentry caption="Yes, do another manual scan now" step="manualscan" /> - <listentry caption="No, scan later manually" step="end" /> + <listentry caption="No, scan later manually" step="parentalcontrol" /> </list> </step> + <step id="parentalcontrol"> + <text value="Do you want to enable the parental control feature or your dreambox?" /> + <list> + <listentry caption="Yes" step="parentalsetup" /> + <listentry caption="No" step="end" /> + </list> + <code pos="after"> +if self["list"].getSelectedIndex() == 0: + config.ParentalControl.configured.value = True +else: + config.ParentalControl.configured.value = False +config.ParentalControl.configured.save() + </code> + </step> + <step id="parentalsetup"> + <text value="You need to set a pin code and hide it from your children.\n\nDo you want to set the pin now?" /> + <list> + <listentry caption="Yes" step="finishparentalsetup" /> + <listentry caption="No" step="finishparentalsetup" /> + </list> + <code pos="after"> +from ParentalControlSetup import ParentalControlChangePin +if self["list"].getSelectedIndex() == 0: + self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("parental control pin")) + </code> + </step> + <step id="finishparentalsetup"> + <code> +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() + </code> + + <text value="After the start wizard is completed, you need to protect single services. Refer to your dreambox's manual on how to do that." /> + </step> <step id="end"> <text value="Thank you for using the wizard. Your box is now ready to use.\nPlease press OK to start using you Dreambox." /> </step> |
