update Videomode plugin.
[vuplus_dvbapp] / lib / python / Plugins / SystemPlugins / Videomode / videowizard.xml
index b4b9faf..84b1e62 100644 (file)
@@ -1,49 +1,47 @@
 <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" />
+       <step id="portselection" nextstep="modeselection" timeout="20" timeoutaction="selectnext">
+               <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 20 seconds" />
+               <displaytext value="Select video port" />
+               <list type="dynamic" source="portList" evaluation="portSelectionMade" onselect="portSelectionMoved" />
                <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.clearSelectedKeys()
+self.selectKey("OK")
                </code>
        </step>
-       <step id="modeselection" nextstep="rateselection" timeout="10" timeoutaction="selectnext">
-               <text value="Video mode selection." />
+       <step id="modeselection" nextstep="rateselection" timeout="20" timeoutaction="selectnext">
+               <text value="Video mode selection" />
                <displaytext value="Select video mode" />
-               <list type="dynamic" source="listModes" evaluation="modeSelectionMade" onselect="modeSelectionMoved" />
+               <list type="dynamic" source="modeList" 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.clearSelectedKeys()
+self.selectKey("UP")
+self.selectKey("DOWN")
                </code>
        </step>
-       <step id="rateselection" nextstep="end" timeout="10" timeoutaction="selectnext">
-               <text value="Rate selection." />
-               <displaytext value="Select video mode rate" />
-               <list type="dynamic" source="listRates" evaluation="rateSelectionMade" onselect="rateSelectionMoved" />
+       <step id="rateselection" nextstep="end" timeout="20" timeoutaction="selectnext">
+               <condition>
+self.condition = (self.port != "DVI")
+               </condition>
+               <text value="Refresh rate selection" />
+               <displaytext value="Select refresh rate" />
+               <list type="dynamic" source="rateList" 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()
+self.clearSelectedKeys()
+self.selectKey("UP")
+self.selectKey("DOWN")
                </code>
        </step>
        <step id="end">
-                       <text value="The input port should be configured now." />
-                       <displaytext value="No picture on TV? Press EXIT and retry." />
-               </step>
+               <code>
+self.video_cfg.saveVideomode(self.port, self.mode, self.rate)
+from Components.config import configfile
+configfile.save()
+               </code>
+               <text value="The input port should be configured now.\nYou can now configure the screen by displaying some test picture. Do you want to do that now?" />
+               <displaytext value="video tune" />
+               <list evaluation="showVideoTune" onselect="showVideoTune">
+                       <listentry caption="Yes" step="yes" />
+                       <listentry caption="No" step="no" />
+               </list>
+       </step>
 </wizard>