diff options
| author | acid-burn <acidburn@opendreambox.org> | 2009-09-25 16:35:43 +0200 |
|---|---|---|
| committer | acid-burn <acidburn@opendreambox.org> | 2009-09-25 16:35:43 +0200 |
| commit | a6db6ed10bd1e49fc009554d7a5db2f573491736 (patch) | |
| tree | 06d5a56e6ea716c6bd00a596a179b779563395f7 /lib/python/Plugins/SystemPlugins/VideoEnhancement/VideoEnhancement.py | |
| parent | 8ae591d34f97a331f3eab0823211ee99cd02a520 (diff) | |
| download | enigma2-a6db6ed10bd1e49fc009554d7a5db2f573491736.tar.gz enigma2-a6db6ed10bd1e49fc009554d7a5db2f573491736.zip | |
SystemPlugins/VideoEnhancement: - add support for dm500hd
- replace Buttons and Lables through StaticText for better skinablity
- refresh current value in main config screen on change
- add current value display to preview screen
- add option to increase the increment value for the slider entries.
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/VideoEnhancement/VideoEnhancement.py')
| -rwxr-xr-x | lib/python/Plugins/SystemPlugins/VideoEnhancement/VideoEnhancement.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/python/Plugins/SystemPlugins/VideoEnhancement/VideoEnhancement.py b/lib/python/Plugins/SystemPlugins/VideoEnhancement/VideoEnhancement.py index f7c5cfb9..7db02556 100755 --- a/lib/python/Plugins/SystemPlugins/VideoEnhancement/VideoEnhancement.py +++ b/lib/python/Plugins/SystemPlugins/VideoEnhancement/VideoEnhancement.py @@ -1,5 +1,5 @@ from enigma import eTimer -from Components.config import config, ConfigSubsection, ConfigSlider, ConfigSelection,ConfigYesNo +from Components.config import config, ConfigSubsection, ConfigSlider, ConfigSelection, ConfigYesNo, NoSave from Tools.CList import CList from Tools.HardwareInfo import HardwareInfo import os @@ -18,6 +18,8 @@ class VideoEnhancement: hw_type = HardwareInfo().get_device_name() config.pep = ConfigSubsection() + config.pep.configsteps = NoSave(ConfigSelection(choices=[1, 5, 10, 25], default = 1)) + def setContrast(config): myval = int(config.value*256) try: @@ -116,7 +118,7 @@ class VideoEnhancement: config.pep.digital_contour_removal = ConfigSlider(default=0, limits=(0,5)) config.pep.digital_contour_removal.addNotifier(setDigital_contour_removal) - if hw_type == 'dm8000': + if hw_type in ( 'dm8000', 'dm500hd' ): def setSplitMode(config): try: print "--> setting splitmode to:",str(config.value) @@ -217,7 +219,7 @@ class VideoEnhancement: if config.usage.setup_level.index >= 2: # expert+ hw_type = HardwareInfo().get_device_name() - if hw_type == 'dm8000' or hw_type == 'dm800': + if hw_type in ( 'dm8000', 'dm800', 'dm500hd' ): video_enhancement = VideoEnhancement() if video_enhancement.firstRun == True: video_enhancement.setConfiguredValues() |
