Support Uno4k/Ultimo4k
[vuplus_dvbapp] / 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 STB.\nPress the OK button on your remote control to move to the next step." />                        
4
5                         <code>
6 self.clearSelectedKeys()
7 self.selectKey("OK")
8                         </code>
9                 </step>
10                 <step id="introduction" >
11                         <text value="Use the up/down keys on your remote control to select an option. After that, press OK." />
12                         <list>
13                                 <listentry caption="Use wizard to set up basic features" step="nima" />
14                                 <listentry caption="Exit wizard" step="end" />
15                         </list>
16                         <code>
17 self.clearSelectedKeys()
18 self.selectKey("UP")
19 self.selectKey("DOWN")
20                         </code>
21                 </step>
22                 <step id="nima">
23                         <condition>
24 from Components.NimManager import nimmanager
25 self.condition = len(nimmanager.nim_slots) > 0 and not nimmanager.nim_slots[0].empty and config.misc.startwizard.shownimconfig.value
26                         </condition>
27                         <text value="Use the left and right buttons to change an option.\n\nPlease set up tuner A" />
28                         <config screen="NimSetup" module="Satconfig" args="0" type="ConfigList" />
29                         <code>
30 self.clearSelectedKeys()
31 self.selectKey("LEFT")
32 self.selectKey("RIGHT")
33                         </code>
34                 </step>
35                 <step id="nimb">
36                         <condition>
37 from Components.NimManager import nimmanager
38 self.condition = len(nimmanager.nim_slots) > 1 and not nimmanager.nim_slots[1].empty and config.misc.startwizard.shownimconfig.value
39                         </condition>
40                         <text value="Please set up tuner B" />
41                         <config screen="NimSetup" module="Satconfig" args="1" type="ConfigList" />
42                         <code>
43 self.clearSelectedKeys()
44 self.selectKey("LEFT")
45 self.selectKey("RIGHT")
46                         </code>
47                 </step>
48                 <step id="nimc">
49                         <condition>
50 from Components.NimManager import nimmanager
51 from enigma import isFBCLink
52 self.condition = len(nimmanager.nim_slots) > 2 and not nimmanager.nim_slots[2].empty and config.misc.startwizard.shownimconfig.value and not isFBCLink(nimmanager.nim_slots[2].slot)
53                         </condition>
54                         <text value="Please set up tuner C" />
55                         <config screen="NimSetup" module="Satconfig" args="2" type="ConfigList" />
56                         <code>
57 self.clearSelectedKeys()
58 self.selectKey("LEFT")
59 self.selectKey("RIGHT")
60                         </code>
61                 </step>
62                 <step id="nimd">
63                         <condition>
64 from Components.NimManager import nimmanager
65 from enigma import isFBCLink
66 self.condition = len(nimmanager.nim_slots) > 3 and not nimmanager.nim_slots[3].empty and config.misc.startwizard.shownimconfig.value and not isFBCLink(nimmanager.nim_slots[3].slot)
67                         </condition>
68                         <text value="Please set up tuner D" />
69                         <config screen="NimSetup" module="Satconfig" args="3" type="ConfigList" />
70                         <code>
71 self.clearSelectedKeys()
72 self.selectKey("LEFT")
73 self.selectKey("RIGHT")
74                         </code>
75                 </step>
76                 <step id="nime">
77                         <condition>
78 from Components.NimManager import nimmanager
79 from enigma import isFBCLink
80 self.condition = len(nimmanager.nim_slots) > 4 and not nimmanager.nim_slots[4].empty and config.misc.startwizard.shownimconfig.value and not isFBCLink(nimmanager.nim_slots[4].slot)
81                         </condition>
82                         <text value="Please set up tuner E" />
83                         <config screen="NimSetup" module="Satconfig" args="4" type="ConfigList" />
84                         <code>
85 self.clearSelectedKeys()
86 self.selectKey("LEFT")
87 self.selectKey("RIGHT")
88                         </code>
89                 </step>
90                 <step id="nimf">
91                         <condition>
92 from Components.NimManager import nimmanager
93 from enigma import isFBCLink
94 self.condition = len(nimmanager.nim_slots) > 5 and not nimmanager.nim_slots[5].empty and config.misc.startwizard.shownimconfig.value and not isFBCLink(nimmanager.nim_slots[5].slot)
95                         </condition>
96                         <text value="Please set up tuner F" />
97                         <config screen="NimSetup" module="Satconfig" args="5" type="ConfigList" />
98                         <code>
99 self.clearSelectedKeys()
100 self.selectKey("LEFT")
101 self.selectKey("RIGHT")
102                         </code>
103                 </step>
104                 <step id="nimg">
105                         <condition>
106 from Components.NimManager import nimmanager
107 from enigma import isFBCLink
108 self.condition = len(nimmanager.nim_slots) > 6 and not nimmanager.nim_slots[6].empty and config.misc.startwizard.shownimconfig.value and not isFBCLink(nimmanager.nim_slots[6].slot)
109                         </condition>
110                         <text value="Please set up tuner G" />
111                         <config screen="NimSetup" module="Satconfig" args="6" type="ConfigList" />
112                         <code>
113 self.clearSelectedKeys()
114 self.selectKey("LEFT")
115 self.selectKey("RIGHT")
116                         </code>
117                 </step>
118                 <step id="nimh">
119                         <condition>
120 from Components.NimManager import nimmanager
121 from enigma import isFBCLink
122 self.condition = len(nimmanager.nim_slots) > 7 and not nimmanager.nim_slots[7].empty and config.misc.startwizard.shownimconfig.value and not isFBCLink(nimmanager.nim_slots[7].slot)
123                         </condition>
124                         <text value="Please set up tuner H" />
125                         <config screen="NimSetup" module="Satconfig" args="7" type="ConfigList" />
126                         <code>
127 self.clearSelectedKeys()
128 self.selectKey("LEFT")
129 self.selectKey("RIGHT")
130                         </code>
131                 </step>
132                 <step id="nimi">
133                         <condition>
134 from Components.NimManager import nimmanager
135 from enigma import isFBCLink
136 self.condition = len(nimmanager.nim_slots) > 8 and not nimmanager.nim_slots[8].empty and config.misc.startwizard.shownimconfig.value and not isFBCLink(nimmanager.nim_slots[8].slot)
137                         </condition>
138                         <text value="Please set up tuner I" />
139                         <config screen="NimSetup" module="Satconfig" args="8" type="ConfigList" />
140                         <code>
141 self.clearSelectedKeys()
142 self.selectKey("LEFT")
143 self.selectKey("RIGHT")
144                         </code>
145                 </step>
146                 <step id="nimj">
147                         <condition>
148 from Components.NimManager import nimmanager
149 from enigma import isFBCLink
150 self.condition = len(nimmanager.nim_slots) > 9 and not nimmanager.nim_slots[9].empty and config.misc.startwizard.shownimconfig.value and not isFBCLink(nimmanager.nim_slots[9].slot)
151                         </condition>
152                         <text value="Please set up tuner J" />
153                         <config screen="NimSetup" module="Satconfig" args="9" type="ConfigList" />
154                         <code>
155 self.clearSelectedKeys()
156 self.selectKey("LEFT")
157 self.selectKey("RIGHT")
158                         </code>
159                 </step>
160                 <step id="nimq">
161                         <condition>
162 from Components.NimManager import nimmanager
163 from enigma import isFBCLink
164 self.condition = len(nimmanager.nim_slots) > 16 and not nimmanager.nim_slots[16].empty and config.misc.startwizard.shownimconfig.value and not isFBCLink(nimmanager.nim_slots[16].slot)
165                         </condition>
166                         <text value="Please set up tuner Q" />
167                         <config screen="NimSetup" module="Satconfig" args="16" type="ConfigList" />
168                         <code>
169 self.clearSelectedKeys()
170 self.selectKey("LEFT")
171 self.selectKey("RIGHT")
172                         </code>
173                 </step>
174                 <step id="nimr">
175                         <condition>
176 from Components.NimManager import nimmanager
177 from enigma import isFBCLink
178 self.condition = len(nimmanager.nim_slots) > 17 and not nimmanager.nim_slots[17].empty and config.misc.startwizard.shownimconfig.value and not isFBCLink(nimmanager.nim_slots[17].slot)
179                         </condition>
180                         <text value="Please set up tuner R" />
181                         <config screen="NimSetup" module="Satconfig" args="17" type="ConfigList" />
182                         <code>
183 self.clearSelectedKeys()
184 self.selectKey("LEFT")
185 self.selectKey("RIGHT")
186                         </code>
187                 </step>
188                 <step id="satlistsquestion">
189                         <text value="Do you want to install default sat lists?" />
190                         <condition>
191 from Components.NimManager import nimmanager
192 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
193                         </condition>
194                         <code>
195 self.hideRc()
196                         </code>
197                         <list>
198                                 <listentry caption="Yes" step="startdefaultlists" />
199                                 <listentry caption="No" step="scanquestion" />
200                         </list>
201                 </step>
202
203                 <step id="scanquestion">
204                         <text value="Do you want to do a service scan?" />
205                         <condition>
206 from Components.NimManager import nimmanager
207 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
208                         </condition>
209                         <code>
210 self.hideRc()
211                         </code>
212                         <list>
213                                 <listentry caption="Yes, do an automatic scan now" step="scan" />
214                                 <listentry caption="Yes, do a manual scan now" step="manualscan" />
215                                 <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
216                         </list>
217                 </step>
218                 <step id="scan" nextstep="finisheddefaultsatlists">
219                         <condition>
220 from Components.NimManager import nimmanager
221 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
222                         </condition>                    
223                         <text value="What do you want to scan?" />
224                         <config screen="ScanSimple" module="ScanSetup" type="ConfigList" />
225                 </step>
226                 <step id="manualscan">
227                         <condition>
228 from Components.NimManager import nimmanager
229 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
230                         </condition>
231                         <text value="What do you want to scan?" />
232                         <config screen="ScanSetup" module="ScanSetup" type="ConfigList" />
233                 </step>
234                 <step id="nextscan">
235                         <condition>
236 from Components.NimManager import nimmanager
237 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
238                         </condition>
239                         <text value="Do you want to do another manual service scan?" />
240                         <list>
241                                 <listentry caption="Yes, do another manual scan now" step="manualscan" />
242                                 <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
243                         </list>
244                 </step>
245                 <step id="finisheddefaultsatlists">
246                         <text value="Do you want to enable the parental control feature on your STB?" />                        
247
248                         <list>
249                                 <listentry caption="Yes" step="parentalsetup" />
250                                 <listentry caption="No" step="end" />
251                         </list>
252                         <code pos="after">
253 if self["list"].index == 0:
254         config.ParentalControl.configured.value = True
255 else:
256         config.ParentalControl.configured.value = False
257 config.ParentalControl.configured.save()
258                         </code>
259                 </step>
260                 <step id="parentalsetup">
261                         <text value="You need to set a PIN code and hide it from your children.\n\nDo you want to set the pin now?" />
262                         <list>
263                                 <listentry caption="Yes" step="finishparentalsetup" />
264                                 <listentry caption="No" step="warnpin" />
265                         </list>
266                         <code pos="after">
267 from ParentalControlSetup import ParentalControlChangePin
268 if self["list"].index == 0:
269         self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("parental control pin"))
270                         </code>
271                 </step>
272                 <step id="warnpin">
273                         <text value="Please be aware, that anyone can disable the parental control, if you have not set a PIN." />
274                 </step>
275                 <step id="finishparentalsetup">
276                         <code>
277 if config.ParentalControl.setuppin.value == "aaaa":
278         config.ParentalControl.setuppinactive.value = False
279 else:
280         config.ParentalControl.setuppinactive.value = True
281 config.ParentalControl.setuppinactive.save()
282 config.ParentalControl.servicepinactive.value = True
283 config.ParentalControl.servicepinactive.save()
284 config.ParentalControl.setuppin.value = config.ParentalControl.servicepin[0].value
285 config.ParentalControl.setuppin.save()
286                         </code>
287
288                         <text value="After the start wizard is completed, you need to protect single services. Refer to your STB's manual on how to do that." />
289
290                 </step>
291                 <step id="end" laststep="true">
292                         <condition>
293 self.condition = self.isLastWizard
294                         </condition>
295                         <text value="Thank you for using the wizard. Your box is now ready to use.\nPlease press OK to start using your STB." />
296
297                 </step>
298 </wizard>