some ipkg changes.. (done by ritzmo)
[enigma2.git] / lib / python / Components / UsageConfig.py
index 393dbbc404c73b981dd17716241a8b33926f170a..581e7cea6ac4b8f7c9fad98414e1209451b2531c 100644 (file)
@@ -1,4 +1,4 @@
-from config import ConfigSubsection, ConfigYesNo, config, ConfigSelection
+from config import ConfigSubsection, ConfigYesNo, config, ConfigSelection, ConfigText, ConfigInteger
 from enigma import Misc_Options
 import os
 
@@ -23,6 +23,16 @@ def InitUsageConfig():
                ("248", "4 " + _("hours")) ])
        config.usage.output_12V = ConfigSelection(default = "do not change", choices = [
                ("do not change", _("do not change")), ("off", _("off")), ("on", _("on")) ])
+       config.usage.self_defined_seek = ConfigInteger(default=10, limits=(1,9999))
+
+       config.usage.pip_zero_button = ConfigSelection(default = "standard", choices = [
+               ("standard", _("standard")), ("swap", _("swap PiP and main picture")),
+               ("swapstop", _("move PiP to main picture")), ("stop", _("stop PiP")) ])
+
+       config.usage.setup_level = ConfigSelection(default = "intermediate", choices = [
+               ("simple", _("Simple")),
+               ("intermediate", _("Intermediate")),
+               ("expert", _("Expert")) ])
 
        def setHDDStandby(configElement):
                os.system("hdparm -S" + configElement.value + " /dev/ide/host0/bus0/target0/lun0/disc")
@@ -34,3 +44,5 @@ def InitUsageConfig():
                elif configElement.value == "off":
                        Misc_Options.getInstance().set_12V_output(0)
        config.usage.output_12V.addNotifier(set12VOutput)
+
+       config.usage.keymap = ConfigText(default = "/usr/share/enigma2/keymap.xml")