better dvi rate selection (testing for 50 Hz)
[vuplus_dvbapp] / lib / python / Plugins / SystemPlugins / Videomode / videowizard.xml
1 <wizard>
2         <step id="inputselection" nextstep="modeselection" timeout="10" timeoutaction="selectnext">
3                 <text value="Video input selction\n\nPlease press OK if you can see this page on your TV (or select a different input port).\n\nThe next input port will be automatically probed in 10 seconds." />
4                 <displaytext value="Select video input" />
5                 <list type="dynamic" source="listInputChannels" evaluation="inputSelectionMade" onselect="inputSelectionMoved" />
6                 <code>
7 self["arrowdown"].moveTo(557, 232, 1)
8 self["arrowdown"].startMoving()
9 self["arrowup"].moveTo(800, 232, 1)
10 self["arrowup"].startMoving()
11 self["rc"].moveTo(500, 50, 1)
12 self["rc"].startMoving()
13                 </code>
14         </step>
15         <step id="modeselection" nextstep="rateselection" timeout="10" timeoutaction="selectnext">
16                 <text value="Video mode selection." />
17                 <displaytext value="Select video mode" />
18                 <list type="dynamic" source="listModes" evaluation="modeSelectionMade" onselect="modeSelectionMoved" />
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 id="rateselection" nextstep="dvirateintroduction" timeout="10" timeoutaction="selectnext">
31                 <condition>
32 self.condition = (self.port != "DVI")
33                 </condition>            
34                 <text value="Refresh rate selection." />
35                 <displaytext value="Select video mode rate" />
36                 <list type="dynamic" source="listRates" evaluation="rateSelectionMade" onselect="rateSelectionMoved" />
37                 <code>
38 self["arrowup2"].moveTo(800, 320, 1)
39 self["arrowup2"].startMoving()
40 self["arrowdown"].moveTo(557, 200, 1)
41 self["arrowup"].moveTo(557, 355, 1)
42 self["arrowdown"].startMoving()
43 self["arrowup"].startMoving()
44 self["rc"].moveTo(500, 50, 1)
45 self["rc"].startMoving()
46                 </code>
47         </step>
48         <step id="dvirateintroduction" nextstep="dvirateselection">
49                 <condition>
50 self.condition = (self.port == "DVI")
51                 </condition>
52                 <text value="We will now test if your TV can also display this resolution at 50hz. If your screen goes black, wait 20 seconds and it will switch back to 60hz.\nPlease press OK to begin." />
53                 <displaytext value="Please follow the instructions on the TV" />
54                 <code>
55 self["arrowdown"].moveTo(557, 232, 1)
56 self["arrowdown"].startMoving()
57 self["arrowup"].moveTo(800, 232, 1)
58 self["arrowup"].startMoving()
59 self["rc"].moveTo(500, 50, 1)
60 self["rc"].startMoving()
61                 </code>
62         </step>
63         <step id="dvirateselection" timeout="10" timeoutaction="changestep" timeoutstep="notworking50Hz">
64                 <condition>
65 self.condition = (self.port == "DVI")
66                 </condition>
67                 <text value="If you can see this page, please press OK." />
68                 <displaytext value="" />
69                 <list>
70                         <listentry caption="50 Hz" step="working50Hz" />
71                 </list>
72                 <code>
73 self["arrowdown"].moveTo(557, 232, 1)
74 self["arrowdown"].startMoving()
75 self["arrowup"].moveTo(800, 232, 1)
76 self["arrowup"].startMoving()
77 self["rc"].moveTo(500, 50, 1)
78 self["rc"].startMoving()
79                 </code>
80         </step>
81         <step id="notworking50Hz" nextstep="end">
82                 <condition>
83 self.condition = (self.port == "DVI")
84                 </condition>
85                 <text value="No 50 Hz, sorry. :(" />
86                 <displaytext value="" />
87                 <code>
88 self["arrowdown"].moveTo(557, 232, 1)
89 self["arrowdown"].startMoving()
90 self["arrowup"].moveTo(800, 232, 1)
91 self["arrowup"].startMoving()
92 self["rc"].moveTo(500, 50, 1)
93 self["rc"].startMoving()
94                 </code>
95         </step>
96         <step id="working50Hz" nextstep="end" timeout="10" timeoutaction="nextstep">
97                 <condition>
98 self.condition = (self.port == "DVI")
99                 </condition>
100                 <text value="Your TV works with 50 Hz. Good!" />
101                 <displaytext value="" />
102                 <code>
103 self["arrowdown"].moveTo(557, 232, 1)
104 self["arrowdown"].startMoving()
105 self["arrowup"].moveTo(800, 232, 1)
106 self["arrowup"].startMoving()
107 self["rc"].moveTo(500, 50, 1)
108 self["rc"].startMoving()
109                 </code>
110         </step>
111         <step id="end">
112                 <text value="The input port should be configured now.\nYou can now configure the screen by displaying some test pictures. Do you want to do that now?" />
113                 <displaytext value="No picture on TV? Press EXIT and retry." />
114                 <list evaluation="rateSelectionMade" onselect="rateSelectionMoved">
115                         <listentry caption="Yes" step="yes" />
116                         <listentry caption="No" step="no" />
117                 </list>
118                 </step>
119 </wizard>