Merge remote branch 'origin/bug_306_sort_by_date'
[enigma2.git] / lib / python / Plugins / SystemPlugins / Videomode / videowizard.xml
1 <wizard>
2         <step id="inputselection" nextstep="modeselection" timeout="20" timeoutaction="selectnext">
3                 <text value="Video input selection\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 with up/down buttons" />
5                 <list type="dynamic" source="listInputChannels" evaluation="inputSelectionMade" onselect="inputSelectionMoved" />
6                 <code>
7 self["portpic"].show()
8 self.clearSelectedKeys()
9 self.selectKey("OK")
10                 </code>
11         </step>
12         <step id="modeselection" nextstep="rateselection" timeout="20" timeoutaction="selectnext">
13                 <text value="Video mode selection." />
14                 <displaytext value="Select video mode" />
15                 <list type="dynamic" source="listModes" evaluation="modeSelectionMade" onselect="modeSelectionMoved" />
16                 <code>
17 self.clearSelectedKeys()
18 self.selectKey("UP")
19 self.selectKey("DOWN")
20 self["portpic"].hide()
21                 </code>
22         </step>
23         <step id="rateselection" nextstep="end" timeout="20" timeoutaction="selectnext">
24                 <condition>
25 self.condition = (self.port != "DVI" or self.mode == "PC")
26                 </condition>            
27                 <text value="Refresh rate selection." />
28                 <displaytext value="Select refresh rate" />
29                 <list type="dynamic" source="listRates" evaluation="rateSelectionMade" onselect="rateSelectionMoved" />
30                 <code>
31 self.clearSelectedKeys()
32 self.selectKey("UP")
33 self.selectKey("DOWN")
34                 </code>
35         </step>
36         <!--step id="dvirateintroduction" nextstep="dvirateselection">
37                 <condition>
38 self.condition = (self.port == "DVI" and self.mode in ["720p", "1080i"])
39                 </condition>
40                 <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." />
41                 <displaytext value="Please follow the instructions on the TV" />
42                 <code>
43 self.clearSelectedKeys()
44 self.selectKey("UP")
45 self.selectKey("DOWN")
46 self.rateSelect("60Hz")
47                 </code>
48         </step>
49         <step id="dvirateselection" timeout="20" timeoutaction="changestep" timeoutstep="notworking50Hz">
50                 <condition>
51 self.condition = (self.port == "DVI" and self.mode in ["720p", "1080i"])
52                 </condition>
53                 <text value="If you can see this page, please press OK." />
54                 <displaytext value="" />
55                 <list>
56                         <listentry caption="50 Hz" step="working50Hz" />
57                 </list>
58                 <code>
59 self.clearSelectedKeys()
60 self.selectKey("UP")
61 self.selectKey("DOWN")
62 self.rateSelect("50Hz")
63                 </code>
64                 <code pos="after">
65 self.rateSelect("60Hz")                 
66                 </code>
67         </step>
68         <step id="notworking50Hz" nextstep="end">
69                 <condition>
70 self.condition = (self.port == "DVI" and self.mode in ["720p", "1080i"])
71                 </condition>
72                 <text value="No 50 Hz, sorry. :(" />
73                 <displaytext value="" />
74                 <code>
75 self.clearSelectedKeys()
76 self.selectKey("UP")
77 self.selectKey("DOWN")
78                 </code>
79         </step>
80         <step id="working50Hz" nextstep="end" timeout="20" timeoutaction="nextstep">
81                 <condition>
82 self.condition = (self.port == "DVI" and self.mode in ["720p", "1080i"])
83                 </condition>
84                 <text value="Your TV works with 50 Hz. Good!" />
85                 <displaytext value="" />
86                 <code>
87 self.clearSelectedKeys()
88 self.selectKey("UP")
89 self.selectKey("DOWN")
90 self.rateSelect("50Hz")
91                 </code>
92         </step-->
93         <step id="end">
94                 <code>
95 self.hw.saveMode(self.port, self.mode, self.rate)
96 from Components.config import configfile
97 configfile.save() 
98                 </code>
99                 <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?" />
100                 <!--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."/-->
101                 <displaytext value="No picture on TV? Press EXIT and retry." />
102                 <list evaluation="showTestCard" onselect="showTestCard">
103                         <listentry caption="Yes" step="yes" />
104                         <listentry caption="No" step="no" />
105                 </list>
106                 </step>
107 </wizard>