TranscodingSetup : change bitrate range (solo2, 50k ~ 1M)
[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 self.condition = len(nimmanager.nim_slots) > 2 and not nimmanager.nim_slots[2].empty and config.misc.startwizard.shownimconfig.value
52                         </condition>
53                         <text value="Please set up tuner C" />
54                         <config screen="NimSetup" module="Satconfig" args="2" type="ConfigList" />
55                         <code>
56 self.clearSelectedKeys()
57 self.selectKey("LEFT")
58 self.selectKey("RIGHT")
59                         </code>
60                 </step>
61                 <step id="nimd">
62                         <condition>
63 from Components.NimManager import nimmanager
64 self.condition = len(nimmanager.nim_slots) > 3 and not nimmanager.nim_slots[3].empty and config.misc.startwizard.shownimconfig.value
65                         </condition>
66                         <text value="Please set up tuner D" />
67                         <config screen="NimSetup" module="Satconfig" args="3" type="ConfigList" />
68                         <code>
69 self.clearSelectedKeys()
70 self.selectKey("LEFT")
71 self.selectKey("RIGHT")
72                         </code>
73                 </step>
74                 <step id="satlistsquestion">
75                         <text value="Do you want to install default sat lists?" />
76                         <condition>
77 from Components.NimManager import nimmanager
78 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
79                         </condition>
80                         <code>
81 self.hideRc()
82                         </code>
83                         <list>
84                                 <listentry caption="Yes" step="startdefaultlists" />
85                                 <listentry caption="No" step="scanquestion" />
86                         </list>
87                 </step>
88
89                 <step id="scanquestion">
90                         <text value="Do you want to do a service scan?" />
91                         <condition>
92 from Components.NimManager import nimmanager
93 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
94                         </condition>
95                         <code>
96 self.hideRc()
97                         </code>
98                         <list>
99                                 <listentry caption="Yes, do an automatic scan now" step="scan" />
100                                 <listentry caption="Yes, do a manual scan now" step="manualscan" />
101                                 <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
102                         </list>
103                 </step>
104                 <step id="scan" nextstep="finisheddefaultsatlists">
105                         <condition>
106 from Components.NimManager import nimmanager
107 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
108                         </condition>                    
109                         <text value="What do you want to scan?" />
110                         <config screen="ScanSimple" module="ScanSetup" type="ConfigList" />
111                 </step>
112                 <step id="manualscan">
113                         <condition>
114 from Components.NimManager import nimmanager
115 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
116                         </condition>
117                         <text value="What do you want to scan?" />
118                         <config screen="ScanSetup" module="ScanSetup" type="ConfigList" />
119                 </step>
120                 <step id="nextscan">
121                         <condition>
122 from Components.NimManager import nimmanager
123 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
124                         </condition>
125                         <text value="Do you want to do another manual service scan?" />
126                         <list>
127                                 <listentry caption="Yes, do another manual scan now" step="manualscan" />
128                                 <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
129                         </list>
130                 </step>
131                 <step id="finisheddefaultsatlists">
132                         <text value="Do you want to enable the parental control feature on your STB?" />                        
133
134                         <list>
135                                 <listentry caption="Yes" step="parentalsetup" />
136                                 <listentry caption="No" step="end" />
137                         </list>
138                         <code pos="after">
139 if self["list"].index == 0:
140         config.ParentalControl.configured.value = True
141 else:
142         config.ParentalControl.configured.value = False
143 config.ParentalControl.configured.save()
144                         </code>
145                 </step>
146                 <step id="parentalsetup">
147                         <text value="You need to set a PIN code and hide it from your children.\n\nDo you want to set the pin now?" />
148                         <list>
149                                 <listentry caption="Yes" step="finishparentalsetup" />
150                                 <listentry caption="No" step="warnpin" />
151                         </list>
152                         <code pos="after">
153 from ParentalControlSetup import ParentalControlChangePin
154 if self["list"].index == 0:
155         self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("parental control pin"))
156                         </code>
157                 </step>
158                 <step id="warnpin">
159                         <text value="Please be aware, that anyone can disable the parental control, if you have not set a PIN." />
160                 </step>
161                 <step id="finishparentalsetup">
162                         <code>
163 if config.ParentalControl.setuppin.value == "aaaa":
164         config.ParentalControl.setuppinactive.value = False
165 else:
166         config.ParentalControl.setuppinactive.value = True
167 config.ParentalControl.setuppinactive.save()
168 config.ParentalControl.servicepinactive.value = True
169 config.ParentalControl.servicepinactive.save()
170 config.ParentalControl.setuppin.value = config.ParentalControl.servicepin[0].value
171 config.ParentalControl.setuppin.save()
172                         </code>
173
174                         <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." />
175
176                 </step>
177                 <step id="end" laststep="true">
178                         <condition>
179 self.condition = self.isLastWizard
180                         </condition>
181                         <text value="Thank you for using the wizard. Your box is now ready to use.\nPlease press OK to start using your STB." />
182
183                 </step>
184 </wizard>