aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml
blob: cb7d41edfed447eb7326660eaa636ad61c8d7189 (plain)
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
<wizard>
	<step id="inputselection" nextstep="modeselection" timeout="10" timeoutaction="selectnext">
		<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." />
		<displaytext value="Select video input" />
		<list type="dynamic" source="listInputChannels" evaluation="inputSelectionMade" onselect="inputSelectionMoved" />
		<code>
self["portpic"].show()
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="modeselection" nextstep="rateselection" timeout="10" timeoutaction="selectnext">
		<text value="Video mode selection." />
		<displaytext value="Select video mode" />
		<list type="dynamic" source="listModes" evaluation="modeSelectionMade" onselect="modeSelectionMoved" />
		<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()
self["portpic"].hide()
		</code>
	</step>
	<step id="rateselection" nextstep="dvirateintroduction" timeout="10" timeoutaction="selectnext">
		<condition>
self.condition = (self.port != "DVI")
		</condition>		
		<text value="Refresh rate selection." />
		<displaytext value="Select refresh rate" />
		<list type="dynamic" source="listRates" evaluation="rateSelectionMade" onselect="rateSelectionMoved" />
		<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="dvirateintroduction" nextstep="dvirateselection">
		<condition>
self.condition = (self.port == "DVI")
		</condition>
		<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." />
		<displaytext value="Please follow the instructions on the TV" />
		<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()
self.rateSelect("60Hz")
		</code>
	</step>
	<step id="dvirateselection" timeout="10" timeoutaction="changestep" timeoutstep="notworking50Hz">
		<condition>
self.condition = (self.port == "DVI")
		</condition>
		<text value="If you can see this page, please press OK." />
		<displaytext value="" />
		<list>
			<listentry caption="50 Hz" step="working50Hz" />
		</list>
		<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()
self.rateSelect("50Hz")
		</code>
		<code pos="after">
self.rateSelect("60Hz")			
		</code>
	</step>
	<step id="notworking50Hz" nextstep="end">
		<condition>
self.condition = (self.port == "DVI")
		</condition>
		<text value="No 50 Hz, sorry. :(" />
		<displaytext value="" />
		<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="working50Hz" nextstep="end" timeout="10" timeoutaction="nextstep">
		<condition>
self.condition = (self.port == "DVI")
		</condition>
		<text value="Your TV works with 50 Hz. Good!" />
		<displaytext value="" />
		<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()
self.rateSelect("50Hz")
		</code>
	</step>
	<step id="end">
		<code>
self.hw.saveMode(self.port, self.mode, self.rate)
		</code>
		<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?" />
		<!--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."/-->
		<displaytext value="No picture on TV? Press EXIT and retry." />
		<list evaluation="showTestCard" onselect="showTestCard">
			<listentry caption="Yes" step="yes" />
			<listentry caption="No" step="no" />
		</list>
		</step>
</wizard>