store video setup after finishing video wizard
[enigma2.git] / 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["portpic"].show()
8 self["arrowdown"].moveTo(557, 232, 1)
9 self["arrowdown"].startMoving()
10 self["arrowup"].moveTo(800, 232, 1)
11 self["arrowup"].startMoving()
12 self["rc"].moveTo(500, 50, 1)
13 self["rc"].startMoving()
14                 </code>
15         </step>
16         <step id="modeselection" nextstep="rateselection" timeout="10" timeoutaction="selectnext">
17                 <text value="Video mode selection." />
18                 <displaytext value="Select video mode" />
19                 <list type="dynamic" source="listModes" evaluation="modeSelectionMade" onselect="modeSelectionMoved" />
20                 <code>
21 self["arrowup2"].moveTo(800, 320, 1)
22 self["arrowup2"].startMoving()
23 self["arrowdown"].moveTo(557, 200, 1)
24 self["arrowup"].moveTo(557, 355, 1)
25 self["arrowdown"].startMoving()
26 self["arrowup"].startMoving()
27 self["rc"].moveTo(500, 50, 1)
28 self["rc"].startMoving()
29 self["portpic"].hide()
30                 </code>
31         </step>
32         <step id="rateselection" nextstep="dvirateintroduction" timeout="10" timeoutaction="selectnext">
33                 <condition>
34 self.condition = (self.port != "DVI")
35                 </condition>            
36                 <text value="Refresh rate selection." />
37                 <displaytext value="Select refresh rate" />
38                 <list type="dynamic" source="listRates" evaluation="rateSelectionMade" onselect="rateSelectionMoved" />
39                 <code>
40 self["arrowup2"].moveTo(800, 320, 1)
41 self["arrowup2"].startMoving()
42 self["arrowdown"].moveTo(557, 200, 1)
43 self["arrowup"].moveTo(557, 355, 1)
44 self["arrowdown"].startMoving()
45 self["arrowup"].startMoving()
46 self["rc"].moveTo(500, 50, 1)
47 self["rc"].startMoving()
48                 </code>
49         </step>
50         <step id="dvirateintroduction" nextstep="dvirateselection">
51                 <condition>
52 self.condition = (self.port == "DVI")
53                 </condition>
54                 <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." />
55                 <displaytext value="Please follow the instructions on the TV" />
56                 <code>
57 self["arrowdown"].moveTo(557, 232, 1)
58 self["arrowdown"].startMoving()
59 self["arrowup"].moveTo(800, 232, 1)
60 self["arrowup"].startMoving()
61 self["rc"].moveTo(500, 50, 1)
62 self["rc"].startMoving()
63 self.rateSelect("60Hz")
64                 </code>
65         </step>
66         <step id="dvirateselection" timeout="10" timeoutaction="changestep" timeoutstep="notworking50Hz">
67                 <condition>
68 self.condition = (self.port == "DVI")
69                 </condition>
70                 <text value="If you can see this page, please press OK." />
71                 <displaytext value="" />
72                 <list>
73                         <listentry caption="50 Hz" step="working50Hz" />
74                 </list>
75                 <code>
76 self["arrowdown"].moveTo(557, 232, 1)
77 self["arrowdown"].startMoving()
78 self["arrowup"].moveTo(800, 232, 1)
79 self["arrowup"].startMoving()
80 self["rc"].moveTo(500, 50, 1)
81 self["rc"].startMoving()
82 self.rateSelect("50Hz")
83                 </code>
84                 <code pos="after">
85 self.rateSelect("60Hz")                 
86                 </code>
87         </step>
88         <step id="notworking50Hz" nextstep="end">
89                 <condition>
90 self.condition = (self.port == "DVI")
91                 </condition>
92                 <text value="No 50 Hz, sorry. :(" />
93                 <displaytext value="" />
94                 <code>
95 self["arrowdown"].moveTo(557, 232, 1)
96 self["arrowdown"].startMoving()
97 self["arrowup"].moveTo(800, 232, 1)
98 self["arrowup"].startMoving()
99 self["rc"].moveTo(500, 50, 1)
100 self["rc"].startMoving()
101                 </code>
102         </step>
103         <step id="working50Hz" nextstep="end" timeout="10" timeoutaction="nextstep">
104                 <condition>
105 self.condition = (self.port == "DVI")
106                 </condition>
107                 <text value="Your TV works with 50 Hz. Good!" />
108                 <displaytext value="" />
109                 <code>
110 self["arrowdown"].moveTo(557, 232, 1)
111 self["arrowdown"].startMoving()
112 self["arrowup"].moveTo(800, 232, 1)
113 self["arrowup"].startMoving()
114 self["rc"].moveTo(500, 50, 1)
115 self["rc"].startMoving()
116 self.rateSelect("50Hz")
117                 </code>
118         </step>
119         <step id="end">
120                 <code>
121 self.hw.saveMode(self.port, self.mode, self.rate)
122                 </code>
123                 <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?" />
124                 <!--text value="You have successfully finished the video setup. If you want to change the settings later, you can do this in the settings menu."/-->
125                 <displaytext value="No picture on TV? Press EXIT and retry." />
126                 <list evaluation="showTestCard" onselect="showTestCard">
127                         <listentry caption="Yes" step="yes" />
128                         <listentry caption="No" step="no" />
129                 </list>
130                 </step>
131 </wizard>