add a condition to the wizard-parser
[vuplus_dvbapp] / data / startwizard.xml
1 <wizard>
2                 <step number="1">
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["arrowdown"].moveTo(557, 232, 1)
6 self["arrowdown"].startMoving()
7 self["arrowup"].moveTo(800, 232, 1)
8 self["arrowup"].startMoving()
9 self["rc"].moveTo(500, 50, 1)
10 self["rc"].startMoving()
11                         </code>
12                 </step>
13                 <step number="2">
14                         <text value="Use the up/down keys on your remote control to select an option. After that, press OK." />
15                         <list>
16                                 <listentry caption="Use wizard to set up basic features" step="next" />
17                                 <listentry caption="Exit wizard" step="end" />
18                         </list>
19                         <code>
20 self["arrowup2"].moveTo(800, 320, 1)
21 self["arrowup2"].startMoving()
22 self["arrowdown"].moveTo(557, 200, 1)
23 self["arrowup"].moveTo(557, 355, 1)
24 self["arrowdown"].startMoving()
25 self["arrowup"].startMoving()
26 self["rc"].moveTo(500, 50, 1)
27 self["rc"].startMoving()
28                         </code>
29                 </step>
30                 <step number="3">
31                         <condition>
32 from Components.NimManager import nimmanager
33 self.condition = nimmanager.nimCount > 0
34                         </condition>
35                         <text value="Use the left and right buttons to change an option.\n\nPlease set up tuner A" />
36                         <config screen="NimSetup" module="Satconfig" args="0" type="ConfigList" />
37                         <code>
38 self["rc"].moveTo(500, 50, 1)
39 self["rc"].startMoving()
40 self["arrowup"].moveTo(525, 320, 1)
41 self["arrowup"].startMoving()
42 self["arrowup2"].moveTo(590, 320, 1)
43 self["arrowup2"].startMoving()
44 self["arrowdown"].moveTo(740, 355, 1)
45 self["arrowdown"].startMoving()
46
47                         </code>
48                 </step>
49                 <step number="4">
50                         <condition>
51 from Components.NimManager import nimmanager
52 self.condition = nimmanager.nimCount > 1
53                         </condition>
54                         <text value="Please set up tuner B" />
55                         <config screen="NimSetup" module="Satconfig" args="1" type="ConfigList" />
56                         <code>
57 self["rc"].moveTo(800, 50, 1)
58 self["rc"].startMoving()
59 self["arrowup"].moveTo(800, 310, 1)
60 self["arrowup"].startMoving()
61 self["arrowup2"].moveTo(800, 310, 1)
62 self["arrowup2"].startMoving()
63                         </code>
64                 </step>
65                 <step number="5">
66                         <text value="Do you want to do a service scan?" />
67                         <list>
68                                 <listentry caption="Yes, scan now" step="next" />
69                                 <listentry caption="No, scan later manually" step="7" />
70                         </list>
71                 </step>
72                 <step number="6">
73                         <text value="What do you want to scan?" />
74                         <config screen="ScanSimple" module="ScanSetup" type="ConfigList" />
75                 </step>
76                 <step number="7">
77                         <text value="Thanx for using the wizard. Your box is now ready to use." />
78                 </step> 
79 </wizard>