1 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 configBoolean
8 def InitSetupDevices():
9 config.timezone = ConfigSubsection();
10 config.timezone.val = configElement("", configBoolean, 1, ("GMT", "GMT+1", "GMT+2", "GMT+3", "GMT+4", "GMT+5", "GMT+6", "GMT+7", "GMT+8", "GMT+9") );
12 config.rc = ConfigSubsection();
13 config.rc.map = configElement("", configBoolean, 0, ("Default", "Classic") );
15 config.av = ConfigSubsection();
16 config.av.colorformat = configElement("", configBoolean, 1, ("CVBS", "RGB", "S-Video") );
17 config.av.aspectratio = configElement("", configBoolean, 0, ("4:3 Letterbox", "4:3 PanScan", "16:9", "16:9 always") );
18 config.av.tvsystem = configElement("", configBoolean, 0, ("PAL", "PAL + PAL60", "Multi", "NTSC") );
19 config.av.wss = configElement("", configBoolean, 0, ("Enable", "Disable") );
20 config.av.defaultac3 = configElement("", configBoolean, 1, ("Enable", "Disable") );
21 config.av.vcrswitch = configElement("", configBoolean, 0, ("Enable", "Disable") );
23 config.rfmod = ConfigSubsection();
24 config.rfmod.enable = configElement("", configBoolean, 1, ("Enable", "Disable") );
25 config.rfmod.test = configElement("", configBoolean, 1, ("Enable", "Disable") );
26 config.rfmod.sound = configElement("", configBoolean, 0, ("Enable", "Disable") );
27 config.rfmod.soundcarrier = configElement("", configBoolean, 1, ("4.5 MHz", "5.5 MHz", "6.0 MHz", "6.5 MHz") );
28 config.rfmod.channel = configElement("", configBoolean, 6, ("30", "31", "32", "33", "34", "35", "36", "37", "38", "39") );
29 config.rfmod.finetune = configElement("", ConfigSlider, 5, "");
31 config.keyboard = ConfigSubsection();
32 config.keyboard.keymap = configElement("", configBoolean, 1, ("English", "German") );
34 config.osd = ConfigSubsection();
35 config.osd.alpha = configElement("", ConfigSlider, 0, "");
36 config.osd.bright = configElement("", ConfigSlider, 5, "");
37 config.osd.contrast = configElement("", ConfigSlider, 5, "");
38 config.osd.language = configElement("", configBoolean, 0, ("English", "English US") );
40 config.lcd = ConfigSubsection();
41 config.lcd.bright = configElement("", ConfigSlider, 7, "");
42 config.lcd.standby = configElement("", ConfigSlider, 1, "");
43 config.lcd.invert = configElement("", configBoolean, 1, ("Enable", "Disable") );
45 config.parental = ConfigSubsection();
46 config.parental.lock = configElement("", configBoolean, 1, ("Enable", "Disable") );
47 config.parental.setuplock = configElement("", configBoolean, 1, ("Enable", "Disable") );
49 config.expert = ConfigSubsection();
50 config.expert.splitsize = configElement("", configBoolean, 1, ("0.5Gbyte", "1.0 GByte", "1.5 GByte", "2.0 GByte") );
51 config.expert.satpos = configElement("", configBoolean, 1, ("Enable", "Disable") );
52 config.expert.fastzap = configElement("", configBoolean, 0, ("Enable", "Disable") );
53 config.expert.skipconfirm = configElement("", configBoolean, 1, ("Enable", "Disable") );
54 config.expert.hideerrors = configElement("", configBoolean, 1, ("Enable", "Disable") );
55 config.expert.autoinfo = configElement("", configBoolean, 1, ("Enable", "Disable") );
57 config.sat = ConfigSubsection();
58 config.sat.satA = configElement("", configBoolean, 1, ("Disabled" ,"Astra 19.2", "Hotbird 13.0") );
59 config.sat.satB = configElement("", configBoolean, 0, ("Disabled" ,"Astra 19.2", "Hotbird 13.0") );
60 config.sat.diseqcA = configElement("", configBoolean, 3, ("no DiSEqC", "DiSEqC 1.0", "DiSEqC 1.1", "DiSEqC 1.2") );
61 config.sat.diseqcB = configElement("", configBoolean, 0, ("no DiSEqC", "DiSEqC 1.0", "DiSEqC 1.1", "DiSEqC 1.2") );
62 config.sat.posA = configElement("", configBoolean, 0, ("DiSEqC A", "DiSEqC B", "DiSEqC C", "DiSEqC D") );
63 config.sat.posB = configElement("", configBoolean, 1, ("DiSEqC A", "DiSEqC B", "DiSEqC C", "DiSEqC D") );
65 #config.blasel = ConfigSubsection();
66 #config.blasel.val = configElement("", configBoolean, 0, ("bunt", "s/w", "gruen") );
67 #config.inputDevices.delay = configElement("config.inputDevices.delay", ConfigSlider, 3);
69 #this instance anywhere else needed?
70 #iDevices = inputDevices();
72 #def inputDevicesRepeatChanged(configElement):
73 # iDevices.setRepeat(configElement.value);
75 #def inputDevicesDelayChanged(configElement):
76 # iDevices.setDelay(configElement.value);
78 # this will call the "setup-val" initial
79 #config.inputDevices.repeat.addNotifier(inputDevicesRepeatChanged);
80 #config.inputDevices.delay.addNotifier(inputDevicesDelayChanged);