parsing for /etc/timezone.xml added
[enigma2.git] / lib / python / Components / SetupDevices.py
1 #import os
2 from config import config                               #global config instance
3 from config import configElement
4 from config import ConfigSubsection
5 from config import ConfigSlider
6 from config import configSelection
7 from config import configText
8 from Components.Timezones import timezones
9
10 def InitSetupDevices():
11         config.timezone = ConfigSubsection();
12         config.timezone.val = configElement("config.timezone.val", configSelection, 1, ("GMT", "GMT+1", "GMT+2", "GMT+3", "GMT+4", "GMT+5", "GMT+6", "GMT+7", "GMT+8", "GMT+9") );
13
14         config.rc = ConfigSubsection();
15         config.rc.map = configElement("config.rc.map", configSelection, 0, ("Default", "Classic") );
16
17         config.keyboard = ConfigSubsection();
18         config.keyboard.keymap = configElement("config.keyboard.keymap", configSelection, 1, ("English", "German") );
19
20         config.osd = ConfigSubsection();
21         config.osd.alpha = configElement("config.osd.alpha", ConfigSlider, 0, "");
22         config.osd.bright = configElement("config.osd.bright", ConfigSlider, 5, "");
23         config.osd.contrast = configElement("config.osd.contrast", ConfigSlider, 5, "");
24         config.osd.language = configElement("config.osd.language", configSelection, 0, ("English", "English US") );
25
26         config.parental = ConfigSubsection();
27         config.parental.lock = configElement("config.parental.lock", configSelection, 1, ("Enable", "Disable") );
28         config.parental.setuplock = configElement("config.parental.setuplock", configSelection, 1, ("Enable", "Disable") );
29
30         config.expert = ConfigSubsection();
31         config.expert.splitsize = configElement("config.expert.splitsize", configSelection, 1, ("0.5Gbyte", "1.0 GByte", "1.5 GByte", "2.0 GByte") );
32         config.expert.satpos = configElement("config.expert.satpos", configSelection, 1, ("Enable", "Disable") );
33         config.expert.fastzap = configElement("config.expert.fastzap", configSelection, 0, ("Enable", "Disable") );
34         config.expert.skipconfirm = configElement("config.expert.skipconfirm", configSelection, 1, ("Enable", "Disable") );
35         config.expert.hideerrors = configElement("config.expert.hideerrors", configSelection, 1, ("Enable", "Disable") );
36         config.expert.autoinfo = configElement("config.expert.autoinfo", configSelection, 1, ("Enable", "Disable") );