c7fb8897eb03d0a55fde27560fbad6a383b31e7a
[enigma2.git] / data / menu.xml
1 <menu text="Mainmenu" 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 text="Standby debug">quitMainloop(0)</item>
17                 <item text="Network setup" entryID="network_setup">self.openSetup("network")</item>-->
18                 <!--<item text="CI"><screen module="Ci" screen="CiSelection" /></item>-->
19                 <!--<item text="Radio"><code>print "radio mode"</code></item>-->
20                 <item level="0" text="Subtitles" entryID="subtitle_selection" weight="40"><screen module="Subtitles" screen="Subtitles" /></item>
21                 <item level="0" text="Timer" entryID="timer_edit"><screen module="TimerEdit" screen="TimerEditList" /></item>
22                 <item level="1" text="VCR scart" entryID="scart_switch" requires="ScartSwitch"><code>self.session.scart.VCRSbChanged(3)</code></item>
23
24                 <menu level="0" text="Information" entryID="info_screen">
25                         <id val="information" />
26                         <item level="1" text="Service" entryID="service_info_screen"><screen module="ServiceInfo" screen="ServiceInfo"/></item>
27                         <item level="0" text="About..." entryID="about_screen"><screen module="About" /></item>
28                 </menu>
29
30                 <item level="1" text="Plugins" entryID="plugin_selection"><screen module="PluginBrowser" screen="PluginBrowser" /></item>
31                 <menu level="0" text="Setup" flushConfigOnClose="1" entryID="setup_selection" >
32                         <id val="setup" />
33                         <!--<menu text="Service Organising">
34                                 <item text="New Bouquets"></item>
35                                 <item text="Add to Bouquets"></item>
36                                 <item text="Edit Bouquets"></item>
37                         </menu>-->
38                         <menu weight="0" level="0" text="Service Searching" entryID="service_searching_selection">
39                                 <id val="scan" />
40                                 <item text="Tuner configuration" entryID="tuner_setup"><screen module="Satconfig" screen="NimSelection" /></item>
41                                 <item text="Default services lists" entryID="default_lists"><screen module="ScanSetup" screen="DefaultSatLists" /></item>
42                                 <item text="Automatic Scan" entryID="auto_scan"><screen module="ScanSetup" screen="ScanSimple" /></item>
43                                 <!--<item text="Automatic Scan"><screen module="ServiceScan" /></item>-->
44                                 <item text="Manual Scan" entryID="manual_scan"><screen module="ScanSetup" /></item>
45                                 <!--<item text="Rotor Control"></item>
46                                 <item text="Edit Transponder"></item>
47                                 <item text="Satfinder"></item>-->
48                         </menu>
49                         <menu weight="5" level="0" text="System" entryID="system_selection">
50                                 <id val="system" />
51                                 <item level="0" text="Language..." entryID="language_setup"><screen module="LanguageSelection" /></item>
52                                 <item level="0" entryID="usage_setup"><setup id="usage" /></item>
53                                 <item level="0" entryID="timezone_setup"><setup id="timezone"/></item>
54                                 <item level="0" entryID="av_setup"><setup id="avsetup"/></item>
55                                 <!--<item level="0" text="Video Setup" entryID="video_setup"><screen module="VideoSetup" /></item>-->
56                                 <item level="1" entryID="rfmod_setup" requires="RfModulator"><setup id="RFmod"/></item>
57                                 <menu level="0" text="Harddisk" entryID="hardisk_selection" requires="Harddisk">
58                                         <id val="harddisk" />
59                                         <item level="1" entryID="harddisk_setup"><setup id="harddisk"/></item>
60                                         <item level="0" text="Initialization..." entryID="harddisk_init"><screen module="HarddiskSetup" screen="HarddiskSelection"/></item>
61                                         <item level="0" text="Filesystem Check..." entryID="harddisk_check"><screen module="HarddiskSetup" screen="HarddiskFsckSelection"/></item>
62                                 </menu>
63                                 <!--<item text="Remote Control"><setup id="rc" /></item>-->
64                                 <!--<item text="OSD"><setup id="osd" /></item>-->
65                                 <item requires="Display"><setup level="1" id="lcd" /></item>
66                                 <item level="0" text="Network..." entryID="network_setup"><screen module="NetworkSetup" screen="NetworkAdapterSelection" /></item>
67                                 <item text="Keyboard"><setup id="keyboard" /></item>
68                                 <!--<menu level="1" text="Network..." entryID="network_setup">
69                                         <id val="network" />
70                                         <item level="1" text="Device Setup..." entryID="device_setup"><screen module="NetworkSetup" screen="NetworkAdapterSelection"/></item>
71                                         <item level="1" text="Nameserver Setup..." entryID="dns_setup"><screen module="NetworkSetup" screen="NameserverSetup"/></item>
72                                 </menu>-->
73                                 <item level="2" text="Timeshift path..." entryId="timeshift_path"><screen module="LocationBox" screen="TimeshiftLocationBox" /></item>
74                         </menu>
75                         <item weight="10" level="1" text="Common Interface" entryID="ci_setup" requires="CommonInterface"><screen module="Ci" screen="CiSelection" /></item>
76                         <item weight="15" level="0" text="Parental control" entryID="parental_setup"><screen module="ParentalControlSetup" screen="ParentalControlSetup" /></item>
77                         <!--item level="0" text="Startwizard" entryID="startwizzard"><screen module="StartWizard" screen="StartWizard" /></item-->
78                         <item weight="20" level="0" text="Default settings" entryID="default_wizard">
79                                 <code>
80 from Screens.DefaultWizard import DefaultWizard
81 self.session.open(DefaultWizard, silent = False)
82 </code>
83                         </item>
84                         <item weight="25" level="0" text="Factory reset" entryID="factory_reset">
85                                 <code>
86 from Screens.FactoryReset import FactoryReset
87 def msgClosed(ret):
88         if ret:
89                 from os import system, _exit
90                 system("rm -R /etc/enigma2")
91                 system("cp -R /usr/share/enigma2/defaults /etc/enigma2")
92                 _exit(0)
93 self.session.openWithCallback(msgClosed, FactoryReset)
94 </code>
95                         </item>
96                         <!--<item text="Parental Control"><setup id="parental" /></item>-->
97                         <!--<item text="Expert -disabled-"><setup id="expert" /></item>-->
98                 </menu>
99                 <!--<item text="Unser Setup">self.openSetup("Blaselfasel")</item>-->
100                 <menu text="Standby / Restart" entryID="standby_restart_list">
101                         <id val="shutdown" />
102                         <!--<item text="Standby"><code>quitMainloop(0)</code></item>-->
103                         <item text="Sleep Timer" entryID="sleep"><screen module="SleepTimerEdit" screen="SleepTimerEdit" /></item>
104                         <item text="Standby" entryID="standby"><screen module="Standby" screen="Standby"/></item>
105                         <item text="Restart" entryID="restart"><screen module="Standby" screen="TryQuitMainloop">2</screen></item>
106                         <item level="2" text="Restart GUI" entryID="restart_enigma"><screen module="Standby" screen="TryQuitMainloop">3</screen></item>
107                         <item text="Deep Standby" entryID="deep_standby"><screen module="Standby" screen="TryQuitMainloop">1</screen></item>
108                 </menu>
109 </menu>