make popup message on record configurable. Patch by CuNoah.
[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 self.condition = config.misc.startwizard.doservicescan.value
77                         </condition>
78                         <code>
79 self.hideRc()
80                         </code>
81                         <list>
82                                 <listentry caption="Yes" step="startdefaultlists" />
83                                 <listentry caption="No" step="scanquestion" />
84                         </list>
85                 </step>
86
87                 <step id="scanquestion">
88                         <text value="Do you want to do a service scan?" />
89                         <condition>
90 self.condition = config.misc.startwizard.doservicescan.value
91                         </condition>
92                         <code>
93 self.hideRc()
94                         </code>
95                         <list>
96                                 <listentry caption="Yes, do an automatic scan now" step="scan" />
97                                 <listentry caption="Yes, do a manual scan now" step="manualscan" />
98                                 <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
99                         </list>
100                 </step>
101                 <step id="scan" nextstep="finisheddefaultsatlists">
102                         <condition>
103 self.condition = config.misc.startwizard.doservicescan.value
104                         </condition>                    
105                         <text value="What do you want to scan?" />
106                         <config screen="ScanSimple" module="ScanSetup" type="ConfigList" />
107                 </step>
108                 <step id="manualscan">
109                         <condition>
110 self.condition = config.misc.startwizard.doservicescan.value
111                         </condition>
112                         <text value="What do you want to scan?" />
113                         <config screen="ScanSetup" module="ScanSetup" type="ConfigList" />
114                 </step>
115                 <step id="nextscan">
116                         <condition>
117 self.condition = config.misc.startwizard.doservicescan.value
118                         </condition>
119                         <text value="Do you want to do another manual service scan?" />
120                         <list>
121                                 <listentry caption="Yes, do another manual scan now" step="manualscan" />
122                                 <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
123                         </list>
124                 </step>
125                 <step id="finisheddefaultsatlists">
126                         <text value="Do you want to enable the parental control feature on your dreambox?" />
127                         <list>
128                                 <listentry caption="Yes" step="parentalsetup" />
129                                 <listentry caption="No" step="end" />
130                         </list>
131                         <code pos="after">
132 if self["list"].index == 0:
133         config.ParentalControl.configured.value = True
134 else:
135         config.ParentalControl.configured.value = False
136 config.ParentalControl.configured.save()
137                         </code>
138                 </step>
139                 <step id="parentalsetup">
140                         <text value="You need to set a pin code and hide it from your children.\n\nDo you want to set the pin now?" />
141                         <list>
142                                 <listentry caption="Yes" step="finishparentalsetup" />
143                                 <listentry caption="No" step="finishparentalsetup" />
144                         </list>
145                         <code pos="after">
146 from ParentalControlSetup import ParentalControlChangePin
147 if self["list"].index == 0:
148         self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("parental control pin"))
149                         </code>
150                 </step>
151                 <step id="finishparentalsetup">
152                         <code>
153 config.ParentalControl.setuppinactive.value = True
154 config.ParentalControl.setuppinactive.save()
155 config.ParentalControl.servicepinactive.value = True
156 config.ParentalControl.servicepinactive.save()
157 config.ParentalControl.setuppin.value = config.ParentalControl.servicepin[0].value
158 config.ParentalControl.setuppin.save()
159                         </code>
160
161                         <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." />
162                 </step>
163                 <step id="end">
164                         <text value="Thank you for using the wizard. Your box is now ready to use.\nPlease press OK to start using your Dreambox." />
165                 </step>
166 </wizard>