- allow multiple xml control files for one wizard (to combine wizards, that should...
[enigma2.git] / data / startwizard.xml
1 <wizard>
2                 <step id="start" nextstep="introduction">
3                         <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." />
4                         <code>
5 self["arrowdown"].moveTo(557, 232, 1)
6 self["arrowdown"].startMoving()
7 self["arrowup"].moveTo(800, 232, 1)
8 self["arrowup"].startMoving()
9 self["rc"].moveTo(500, 50, 1)
10 self["rc"].startMoving()
11                         </code>
12                 </step>
13                 <step id="introduction" >
14                         <text value="Use the up/down keys on your remote control to select an option. After that, press OK." />
15                         <list>
16                                 <listentry caption="Use wizard to set up basic features" step="nima" />
17                                 <listentry caption="Exit wizard" step="end" />
18                         </list>
19                         <code>
20 self["arrowup2"].moveTo(800, 320, 1)
21 self["arrowup2"].startMoving()
22 self["arrowdown"].moveTo(557, 200, 1)
23 self["arrowup"].moveTo(557, 355, 1)
24 self["arrowdown"].startMoving()
25 self["arrowup"].startMoving()
26 self["rc"].moveTo(500, 50, 1)
27 self["rc"].startMoving()
28                         </code>
29                 </step>
30                 <step id="nima">
31                         <condition>
32 from Components.NimManager import nimmanager
33 self.condition = len(nimmanager.nim_slots) > 0 and not nimmanager.nim_slots[0].empty and config.misc.startwizard.shownimconfig.value
34                         </condition>
35                         <text value="Use the left and right buttons to change an option.\n\nPlease set up tuner A" />
36                         <config screen="NimSetup" module="Satconfig" args="0" type="ConfigList" />
37                         <code>
38 self["rc"].moveTo(500, 50, 1)
39 self["rc"].startMoving()
40 self["arrowup"].moveTo(525, 320, 1)
41 self["arrowup"].startMoving()
42 self["arrowup2"].moveTo(590, 320, 1)
43 self["arrowup2"].startMoving()
44 self["arrowdown"].moveTo(740, 355, 1)
45 self["arrowdown"].startMoving()
46                         </code>
47                 </step>
48                 <step id="nimb">
49                         <condition>
50 from Components.NimManager import nimmanager
51 self.condition = len(nimmanager.nim_slots) > 1 and not nimmanager.nim_slots[1].empty and config.misc.startwizard.shownimconfig.value
52                         </condition>
53                         <text value="Please set up tuner B" />
54                         <config screen="NimSetup" module="Satconfig" args="1" type="ConfigList" />
55                         <code>
56 self["rc"].moveTo(500, 50, 1)
57 self["rc"].startMoving()
58 self["arrowup"].moveTo(525, 320, 1)
59 self["arrowup"].startMoving()
60 self["arrowup2"].moveTo(590, 320, 1)
61 self["arrowup2"].startMoving()
62 self["arrowdown"].moveTo(740, 355, 1)
63 self["arrowdown"].startMoving()
64                         </code>
65                 </step>
66                 <step id="nimc">
67                         <condition>
68 from Components.NimManager import nimmanager
69 self.condition = len(nimmanager.nim_slots) > 2 and not nimmanager.nim_slots[2].empty and config.misc.startwizard.shownimconfig.value
70                         </condition>
71                         <text value="Please set up tuner C" />
72                         <config screen="NimSetup" module="Satconfig" args="2" type="ConfigList" />
73                         <code>
74 self["rc"].moveTo(500, 50, 1)
75 self["rc"].startMoving()
76 self["arrowup"].moveTo(525, 320, 1)
77 self["arrowup"].startMoving()
78 self["arrowup2"].moveTo(590, 320, 1)
79 self["arrowup2"].startMoving()
80 self["arrowdown"].moveTo(740, 355, 1)
81 self["arrowdown"].startMoving()
82                         </code>
83                 </step>
84                 <step id="nimd">
85                         <condition>
86 from Components.NimManager import nimmanager
87 self.condition = len(nimmanager.nim_slots) > 3 and not nimmanager.nim_slots[3].empty and config.misc.startwizard.shownimconfig.value
88                         </condition>
89                         <text value="Please set up tuner D" />
90                         <config screen="NimSetup" module="Satconfig" args="3" type="ConfigList" />
91                         <code>
92 self["rc"].moveTo(500, 50, 1)
93 self["rc"].startMoving()
94 self["arrowup"].moveTo(525, 320, 1)
95 self["arrowup"].startMoving()
96 self["arrowup2"].moveTo(590, 320, 1)
97 self["arrowup2"].startMoving()
98 self["arrowdown"].moveTo(740, 355, 1)
99 self["arrowdown"].startMoving()
100                         </code>
101                 </step>
102                 <step id="satlistsquestion">
103                         <text value="Do you want to install default sat lists?" />
104                         <condition>
105 self.condition = config.misc.startwizard.doservicescan.value
106                         </condition>
107                         <code>
108 self["rc"].moveTo(800, 50, 1)
109 self["rc"].startMoving()
110 self["arrowup"].moveTo(800, 310, 1)
111 self["arrowup"].startMoving()
112 self["arrowup2"].moveTo(800, 310, 1)
113 self["arrowup2"].startMoving()
114                         </code>
115                         <list>
116                                 <listentry caption="Yes" step="startdefaultlists" />
117                                 <listentry caption="No" step="scanquestion" />
118                         </list>
119                 </step>
120
121                 <step id="scanquestion">
122                         <text value="Do you want to do a service scan?" />
123                         <condition>
124 self.condition = config.misc.startwizard.doservicescan.value
125                         </condition>
126                         <code>
127 self["rc"].moveTo(800, 50, 1)
128 self["rc"].startMoving()
129 self["arrowup"].moveTo(800, 310, 1)
130 self["arrowup"].startMoving()
131 self["arrowup2"].moveTo(800, 310, 1)
132 self["arrowup2"].startMoving()
133                         </code>
134                         <list>
135                                 <listentry caption="Yes, do an automatic scan now" step="scan" />
136                                 <listentry caption="Yes, do a manual scan now" step="manualscan" />
137                                 <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
138                         </list>
139                 </step>
140                 <step id="scan" nextstep="finisheddefaultsatlists">
141                         <condition>
142 self.condition = config.misc.startwizard.doservicescan.value
143                         </condition>                    
144                         <text value="What do you want to scan?" />
145                         <config screen="ScanSimple" module="ScanSetup" type="ConfigList" />
146                 </step>
147                 <step id="manualscan">
148                         <condition>
149 self.condition = config.misc.startwizard.doservicescan.value
150                         </condition>
151                         <text value="What do you want to scan?" />
152                         <config screen="ScanSetup" module="ScanSetup" type="ConfigList" />
153                 </step>
154                 <step id="nextscan">
155                         <condition>
156 self.condition = config.misc.startwizard.doservicescan.value
157                         </condition>
158                         <text value="Do you want to do another manual service scan?" />
159                         <list>
160                                 <listentry caption="Yes, do another manual scan now" step="manualscan" />
161                                 <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
162                         </list>
163                 </step>
164                 <step id="finisheddefaultsatlists">
165                         <text value="Do you want to enable the parental control feature on your dreambox?" />
166                         <list>
167                                 <listentry caption="Yes" step="parentalsetup" />
168                                 <listentry caption="No" step="end" />
169                         </list>
170                         <code pos="after">
171 if self["list"].index == 0:
172         config.ParentalControl.configured.value = True
173 else:
174         config.ParentalControl.configured.value = False
175 config.ParentalControl.configured.save()
176                         </code>
177                 </step>
178                 <step id="parentalsetup">
179                         <text value="You need to set a pin code and hide it from your children.\n\nDo you want to set the pin now?" />
180                         <list>
181                                 <listentry caption="Yes" step="finishparentalsetup" />
182                                 <listentry caption="No" step="finishparentalsetup" />
183                         </list>
184                         <code pos="after">
185 from ParentalControlSetup import ParentalControlChangePin
186 if self["list"].index == 0:
187         self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("parental control pin"))
188                         </code>
189                 </step>
190                 <step id="finishparentalsetup">
191                         <code>
192 config.ParentalControl.setuppinactive.value = True
193 config.ParentalControl.setuppinactive.save()
194 config.ParentalControl.servicepinactive.value = True
195 config.ParentalControl.servicepinactive.save()
196 config.ParentalControl.setuppin.value = config.ParentalControl.servicepin[0].value
197 config.ParentalControl.setuppin.save()
198                         </code>
199
200                         <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." />
201                 </step>
202                 <step id="end">
203                         <text value="Thank you for using the wizard. Your box is now ready to use.\nPlease press OK to start using you Dreambox." />
204                 </step>
205 </wizard>