update dvbapp.
[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 Screens.Satconfig 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])
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 Screens.Satconfig 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])
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 Screens.Satconfig 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])
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 Screens.Satconfig 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])
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 Screens.Satconfig 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])
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 Screens.Satconfig 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])
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 Screens.Satconfig 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])
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 Screens.Satconfig 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])
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="satlistsquestion">
161                         <text value="Do you want to install default sat lists?" />
162                         <condition>
163 from Components.NimManager import nimmanager
164 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
165                         </condition>
166                         <code>
167 self.hideRc()
168                         </code>
169                         <list>
170                                 <listentry caption="Yes" step="startdefaultlists" />
171                                 <listentry caption="No" step="scanquestion" />
172                         </list>
173                 </step>
174
175                 <step id="scanquestion">
176                         <text value="Do you want to do a service scan?" />
177                         <condition>
178 from Components.NimManager import nimmanager
179 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
180                         </condition>
181                         <code>
182 self.hideRc()
183                         </code>
184                         <list>
185                                 <listentry caption="Yes, do an automatic scan now" step="scan" />
186                                 <listentry caption="Yes, do a manual scan now" step="manualscan" />
187                                 <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
188                         </list>
189                 </step>
190                 <step id="scan" nextstep="finisheddefaultsatlists">
191                         <condition>
192 from Components.NimManager import nimmanager
193 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
194                         </condition>                    
195                         <text value="What do you want to scan?" />
196                         <config screen="ScanSimple" module="ScanSetup" type="ConfigList" />
197                 </step>
198                 <step id="manualscan">
199                         <condition>
200 from Components.NimManager import nimmanager
201 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
202                         </condition>
203                         <text value="What do you want to scan?" />
204                         <config screen="ScanSetup" module="ScanSetup" type="ConfigList" />
205                 </step>
206                 <step id="nextscan">
207                         <condition>
208 from Components.NimManager import nimmanager
209 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
210                         </condition>
211                         <text value="Do you want to do another manual service scan?" />
212                         <list>
213                                 <listentry caption="Yes, do another manual scan now" step="manualscan" />
214                                 <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
215                         </list>
216                 </step>
217                 <step id="finisheddefaultsatlists">
218                         <text value="Do you want to enable the parental control feature on your STB?" />                        
219
220                         <list>
221                                 <listentry caption="Yes" step="parentalsetup" />
222                                 <listentry caption="No" step="end" />
223                         </list>
224                         <code pos="after">
225 if self["list"].index == 0:
226         config.ParentalControl.configured.value = True
227 else:
228         config.ParentalControl.configured.value = False
229 config.ParentalControl.configured.save()
230                         </code>
231                 </step>
232                 <step id="parentalsetup">
233                         <text value="You need to set a PIN code and hide it from your children.\n\nDo you want to set the pin now?" />
234                         <list>
235                                 <listentry caption="Yes" step="finishparentalsetup" />
236                                 <listentry caption="No" step="warnpin" />
237                         </list>
238                         <code pos="after">
239 from ParentalControlSetup import ParentalControlChangePin
240 if self["list"].index == 0:
241         self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("parental control pin"))
242                         </code>
243                 </step>
244                 <step id="warnpin">
245                         <text value="Please be aware, that anyone can disable the parental control, if you have not set a PIN." />
246                 </step>
247                 <step id="finishparentalsetup">
248                         <code>
249 if config.ParentalControl.setuppin.value == "aaaa":
250         config.ParentalControl.setuppinactive.value = False
251 else:
252         config.ParentalControl.setuppinactive.value = True
253 config.ParentalControl.setuppinactive.save()
254 config.ParentalControl.servicepinactive.value = True
255 config.ParentalControl.servicepinactive.save()
256 config.ParentalControl.setuppin.value = config.ParentalControl.servicepin[0].value
257 config.ParentalControl.setuppin.save()
258                         </code>
259
260                         <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." />
261
262                 </step>
263                 <step id="end" laststep="true">
264                         <condition>
265 self.condition = self.isLastWizard
266                         </condition>
267                         <text value="Thank you for using the wizard. Your box is now ready to use.\nPlease press OK to start using your STB." />
268
269                 </step>
270 </wizard>