4.4.2r2
[enigma2.git] / usr / share / enigma2 / defaultwizard.xml
1 <wizard>
2         <step id="welcome" nextstep="nothingtoinstall">
3                 <condition>
4 packagelist = self.fillPackagesList()
5 self.runWizard = (len(packagelist) > 0)
6 self.condition = self.runWizard
7                 </condition>
8                 <text value="You can choose some default settings now. Please select the settings you want to be installed." />
9                 <short_title value="Default settings" />
10                 <!--list type="dynamic" source="listDefaults" evaluation="selectionMade" /-->
11                 <config type="dynamic" source="getConfigList" evaluation="selectionMade" />
12                 <code pos="after">
13 self.disableKeys = True
14                 </code>
15         </step>
16         <step id="nopackages" nextstep="install">
17                 <condition>
18 self.condition = self.runWizard or not self.silent
19                 </condition>
20                 <text value="There are no default settings in your image." />
21                 <short_title value="No default settings" />
22         </step>
23         
24         <step id="nothingtoinstall" nextstep="install">
25                 <condition>
26 if self.runWizard:
27         self.condition = True
28         for x in self.packagesConfig:
29                 if x.value:
30                         self.condition = False
31                         break
32 else:
33         self.condition = False
34                 </condition>
35                 <text value="You chose not to install any default settings. You can however install the default settings later in the settings menu." />
36                 <short_title value="Skip default settings" />
37                 <!--list type="dynamic" source="listDefaults" evaluation="selectionMade" /-->
38                 <code>
39 self.disableKeys = False
40                 </code>
41                 <code pos="after">
42 self.markDone()
43                 </code>
44         </step>
45         
46         <step id="install">
47                 <condition>
48 self.condition = False
49 if self.runWizard:
50         for x in self.packagesConfig:
51                 if x.value:
52                         self.condition = True
53                         break 
54                 </condition>
55                 <code>
56 self.disableKeys = True         
57 self.installPackages(self.indexList)
58                 </code>
59                 <code>
60 #print "len of packageslist", len(self.packageslist)
61 #if (len(self.packageslist) == 1):
62         #self.installPackage(0)
63                 </code>
64                 <text value="Installing defaults... Please wait..." />
65                 <short_title value="Installing defaults..." />
66         </step>
67 </wizard>