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