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