From 3861923553aad99f8b1a5ce5d81e7d9b035b65bb Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Fri, 25 Jan 2008 01:08:58 +0000 Subject: [PATCH 1/1] use special refresh rate selection for DVI ports --- .../Plugins/SystemPlugins/Videomode/VideoWizard.py | 3 +- .../SystemPlugins/Videomode/videowizard.xml | 41 ++++++++++++++++++++-- 2 files changed, 41 insertions(+), 3 deletions(-) diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py index 45ff6f0..8fffa5a 100644 --- a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py +++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py @@ -48,7 +48,8 @@ class VideoWizard(Wizard): list = [] for port in self.hw.getPortList(): - list.append((port, port)) + if self.hw.isPortUsed(port): + list.append((port, port)) return list def inputSelectionMade(self, index): diff --git a/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml b/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml index b4b9faf..933d534 100644 --- a/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml +++ b/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml @@ -27,8 +27,11 @@ self["rc"].moveTo(500, 50, 1) self["rc"].startMoving() - - + + +self.condition = (self.port != "DVI") + + @@ -42,6 +45,40 @@ self["rc"].moveTo(500, 50, 1) self["rc"].startMoving() + + +self.condition = (self.port == "DVI") + + + + +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.condition = (self.port == "DVI") + + + + + + + + +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() + + -- 2.7.4