aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/SetupDevices.py
blob: cb2badb08167103520d807e3ff63a3cf619d51e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#import os
from config import config				#global config instance
from config import configElement
from config import ConfigSubsection
from config import ConfigSlider
from config import configSelection
from config import configText

def InitSetupDevices():
	config.timezone = ConfigSubsection();
	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") );

	config.rc = ConfigSubsection();
	config.rc.map = configElement("config.rc.map", configSelection, 0, ("Default", "Classic") );

	config.keyboard = ConfigSubsection();
	config.keyboard.keymap = configElement("config.keyboard.keymap", configSelection, 1, ("English", "German") );

	config.osd = ConfigSubsection();
	config.osd.alpha = configElement("config.osd.alpha", ConfigSlider, 0, "");
	config.osd.bright = configElement("config.osd.bright", ConfigSlider, 5, "");
	config.osd.contrast = configElement("config.osd.contrast", ConfigSlider, 5, "");
	config.osd.language = configElement("config.osd.language", configSelection, 0, ("English", "English US") );

	config.parental = ConfigSubsection();
	config.parental.lock = configElement("config.parental.lock", configSelection, 1, ("Enable", "Disable") );
	config.parental.setuplock = configElement("config.parental.setuplock", configSelection, 1, ("Enable", "Disable") );

	config.expert = ConfigSubsection();
	config.expert.splitsize = configElement("config.expert.splitsize", configSelection, 1, ("0.5Gbyte", "1.0 GByte", "1.5 GByte", "2.0 GByte") );
	config.expert.satpos = configElement("config.expert.satpos", configSelection, 1, ("Enable", "Disable") );
	config.expert.fastzap = configElement("config.expert.fastzap", configSelection, 0, ("Enable", "Disable") );
	config.expert.skipconfirm = configElement("config.expert.skipconfirm", configSelection, 1, ("Enable", "Disable") );
	config.expert.hideerrors = configElement("config.expert.hideerrors", configSelection, 1, ("Enable", "Disable") );
	config.expert.autoinfo = configElement("config.expert.autoinfo", configSelection, 1, ("Enable", "Disable") );