menu.xml: added entryID("keyboard_setup" and "lcd_setup")
[openblackhole/openblackhole-enigma2.git] / data / menu.xml
1 <menu text="Main menu" title="Main menu">
2         <id val="mainmenu"/>
3 <!-- the following types are allowed:
4         <screen [module="mod"] [screen="classname"]>[arguments]</screen>
5                 executes Screen called "classname" from module "Screen.mod"
6                 if no module is given, Screen must be globally available.
7                 if no screen is given, module is used as screen class name.
8                 arguments must be comma seperated (will be fed to eval), and can
9                         use stuff from module
10                 (of course you must specify at least one of module, screen.)
11         <setup id="id"/>
12                 opens a setup with specified id
13         <code> .. code .. </code>
14                 "exec"s code
15 -->
16                 <item level="0" text="Timer" entryID="timer_edit"><screen module="TimerEdit" screen="TimerEditList"/></item>
17                 <item level="1" text="VCR scart" entryID="scart_switch" configcondition="config.usage.show_vcr_scart" requires="ScartSwitch"><code>self.session.scart.VCRSbChanged(3)</code></item>
18
19                 <menu level="0" text="Information" entryID="info_screen">
20                         <id val="information"/>
21                         <item level="1" text="Service" entryID="service_info_screen"><screen module="ServiceInfo" screen="ServiceInfo"/></item>
22                         <item level="0" text="About" entryID="about_screen"><screen module="About"/></item>
23                 </menu>
24
25                 <item level="1" text="Plugins" entryID="plugin_selection"><screen module="PluginBrowser" screen="PluginBrowser"/></item>
26                 <menu level="0" text="Setup" flushConfigOnClose="1" entryID="setup_selection" >
27                         <id val="setup"/>
28                         <menu weight="7" level="0" text="Service searching" entryID="service_searching_selection">
29                                 <id val="scan"/>
30                                 <item text="Tuner configuration" entryID="tuner_setup"><screen module="Satconfig" screen="NimSelection"/></item>
31                                 <item text="Automatic scan" entryID="auto_scan"><screen module="ScanSetup" screen="ScanSimple"/></item>
32                                 <item text="Manual scan" entryID="manual_scan"><screen module="ScanSetup"/></item>
33                         </menu>
34                         <menu weight="5" level="0" text="System" entryID="system_selection">
35                                 <id val="system"/>
36                                 <item level="0" entryID="usage_setup"><setup id="usage"/></item>
37                                 <item level="0" entryID="user_interface"><setup id="userinterface"/></item>
38                                 <item level="0" entryID="epg_settings"><setup id="epgsettings"/></item>
39                                 <item level="0" entryID="recording_setup"><setup id="recording"/></item>
40                                 <item level="2" entryID="subtitle_setup"><setup id="subtitlesetup"/></item>
41                                 <item level="1" entryID="autolanguage_setup"><setup id="autolanguagesetup"/></item>
42                                 <item level="0" entryID="av_setup"><setup id="avsetup"/></item>
43                                 <item level="1" entryID="rfmod_setup" requires="RfModulator"><setup id="RFmod"/></item>
44                                 <menu level="0" text="Harddisk" entryID="hardisk_selection" requires="Harddisk">
45                                         <id val="harddisk"/>
46                                         <item level="1" entryID="harddisk_setup"><setup id="harddisk"/></item>
47                                         <item level="0" text="Initialization" entryID="harddisk_init"><screen module="HarddiskSetup" screen="HarddiskSelection"/></item>
48                                         <item level="0" text="Filesystem check" entryID="harddisk_check"><screen module="HarddiskSetup" screen="HarddiskFsckSelection"/></item>
49                                         <item level="0" text="Convert ext3 filesystem to ext4" entryID="harddisk_convert" requires="ext4"><screen module="HarddiskSetup" screen="HarddiskConvertExt4Selection"/></item>
50                                 </menu>
51                                 <item level="0" text="Network" entryID="network_setup"><screen module="NetworkSetup" screen="NetworkAdapterSelection"/></item>
52                                 <item level="1" text="Input devices" entryID="input_device_setup"><screen module="InputDeviceSetup" screen="InputDeviceSelection"/></item>
53                                 <item entryID="lcd_setup" requires="Display"><setup level="1" id="lcd"/></item>
54                                 <item entryID="keyboard_setup" text="Keyboard"><setup id="keyboard"/></item>
55                                 <item level="2" text="Recording paths" entryID="RecordPaths"><screen module="RecordPaths" screen="RecordPathsSettings"/></item>
56                                 <item level="0" text="Language" entryID="language_setup"><screen module="LanguageSelection"/></item>
57                                 <item level="0" entryID="timezone_setup"><setup id="timezone"/></item>
58                                 <item level="0" text="Hotkey" entryID="hotkey_setup"><screen module="Hotkey" screen="HotkeySetup"/></item>
59                         </menu>
60                         <menu weight="10" text="SoftCam / CI" entryID="cam_setup">
61                                 <id val="cam"/>
62                                 <item weight="10" level="1" text="Common Interface" entryID="ci_setup" requires="CommonInterface"><screen module="Ci" screen="CiSelection"/></item>
63                         </menu>
64                         <item weight="15" level="0" text="Parental control" entryID="parental_setup"><screen module="ParentalControlSetup" screen="ParentalControlSetup"/></item>
65                         <item weight="15" level="0" text="Factory reset" entryID="factory_reset">
66                                 <code>
67 from Screens.FactoryReset import FactoryReset
68 def msgClosed(ret):
69         if ret:
70                 from os import system, _exit
71                 system("rm -R /etc/enigma2")
72                 _exit(0)
73 self.session.openWithCallback(msgClosed, FactoryReset)
74 </code>
75                         </item>
76                         <item weight="15" level="0" text="Software update" entryID="software_update"><screen module="SoftwareUpdate" screen="UpdatePlugin"/></item>
77                 </menu>
78                 <menu text="Standby / restart" entryID="standby_restart_list">
79                         <id val="shutdown"/>
80                         <item text="Sleep timer" entryID="sleep"><screen module="SleepTimerEdit" screen="SleepTimerEdit"/></item>
81                         <item text="Standby" entryID="standby"><screen module="Standby" screen="Standby"/></item>
82                         <item text="Restart" entryID="restart"><screen module="Standby" screen="TryQuitMainloop">2</screen></item>
83                         <item text="Restart enigma" entryID="restart_enigma"><screen module="Standby" screen="TryQuitMainloop">3</screen></item>
84                         <item text="Deep standby" requires="DeepstandbySupport" entryID="deep_standby"><screen module="Standby" screen="TryQuitMainloop">1</screen></item>
85                         <item text="Shutdown" requires="!DeepstandbySupport" entryID="deep_standby"><screen module="Standby" screen="TryQuitMainloop">1</screen></item>
86                 </menu>
87 </menu>