return None (instead of crash) when list is empty, and getCurrent is called
[enigma2.git] / data / menu.xml
1 <menu text="Mainmenu" title="Mainmenu">
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">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 text="Subtitles"><screen module="Subtitles" screen="Subtitles" /></item>
21                 <item text="Media player"><screen module="MediaPlayer" screen="MediaPlayer" /></item>
22                 <item text="Timer"><screen module="TimerEdit" screen="TimerEditList" /></item>
23                 <item text="VCR scart"><code>self.session.scart.VCRSbChanged(3)</code></item>
24
25                 <menu text="Information">
26                         <id val="information" />
27                         <item text="Service"><screen module="ServiceInfo" screen="ServiceInfo"/></item>
28                         <item text="About..."><screen module="About" /></item>
29                 </menu>
30
31                 <item text="Games / Plugins"><screen module="PluginBrowser" screen="PluginBrowser" /></item>
32                 <menu text="Setup" flushConfigOnClose="1" >
33                         <id val="setup" />
34                         <!--<menu text="Service Organising">
35                                 <item text="New Bouquets"></item>
36                                 <item text="Add to Bouquets"></item>
37                                 <item text="Edit Bouquets"></item>
38                         </menu>-->
39                         <menu text="Service Searching">
40                                 <id val="scan" />
41                                 <item text="Tuner configuration"><screen module="Satconfig" screen="NimSelection" /></item>
42                                 <item text="Automatic Scan"><screen module="ScanSetup" screen="ScanSimple" /></item>
43                                 <!--<item text="Automatic Scan"><screen module="ServiceScan" /></item>-->
44                                 <item text="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 text="System">
50                                 <id val="system" />
51                                 <item text="Language..."><screen module="LanguageSelection" /></item>
52                                 <item><setup id="usage" /></item>
53                                 <item><setup id="timezone" /></item>
54                                 <item><setup id="avsetup" /></item>
55                                 <item><setup id="RFmod" /></item>
56                                 <menu text="Harddisk">
57                                         <id val="harddisk" />
58                                         <item><setup id="harddisk" /></item>
59                                         <item text="Initialization..."><screen module="HarddiskSetup" screen="HarddiskSelection"/></item>
60                                 </menu>
61                                 <!--<item text="Remote Control"><setup id="rc" /></item>-->
62                                 <!--<item text="Keyboard"><setup id="keyboard" /></item>-->
63                                 <!--<item text="OSD"><setup id="osd" /></item>-->
64                                 <item><setup id="lcd" /></item>
65                                 <menu text="Network...">
66                                         <id val="network" />
67                                         <item text="Device Setup..."><screen module="NetworkSetup" screen="NetworkAdapterSelection"/></item>
68                                         <item text="Nameserver Setup..."><screen module="NetworkSetup" screen="NameserverSetup"/></item>
69                                 </menu>
70                         </menu>
71                         <item text="Common Interface"><screen module="Ci" screen="CiSelection" /></item>
72                         <item text="Parental control"><screen module="ParentalControlSetup" screen="ParentalControlSetup" /></item>
73                         <item text="Startwizard"><screen module="StartWizard" screen="StartWizard" /></item>
74                         <!--<item text="Parental Control"><setup id="parental" /></item>-->
75                         <!--<item text="Expert -disabled-"><setup id="expert" /></item>-->
76                 </menu>
77                 <!--<item text="Unser Setup">self.openSetup("Blaselfasel")</item>-->
78                 <menu text="Standby / Restart">
79                         <id val="shutdown" />
80                         <!--<item text="Standby"><code>quitMainloop(0)</code></item>-->
81                         <item text="Standby"><screen module="Standby" screen="Standby"/></item>
82                         <item text="Restart"><screen module="Standby" screen="TryQuitMainloop">2</screen></item>
83                         <item text="Deep Standby"><screen module="Standby" screen="TryQuitMainloop">1</screen></item>
84                 </menu>
85 </menu>