enigma2 (20101216 rel31 -> 20110928 rel32)
[enigma2.git] / usr / lib / enigma2 / python / Plugins / SystemPlugins / SoftwareManager / imagewizard.xml
1 <wizard>
2         <step id="restorequestion">
3                 <condition>
4 from Plugins.SystemPlugins.SoftwareManager.ImageWizard import checkConfigBackup
5 self.backuppath = checkConfigBackup()
6 self.condition = (self.backuppath is not None and config.misc.firstrun.value)
7                 </condition>
8                 <text value="Do you want to restore your settings?" />
9                 <list>
10                         <listentry caption="Yes, restore the settings now" step="restore" />
11                         <listentry caption="No, just start my dreambox" step="end" />
12                 </list>
13                 <code>
14 self.clearSelectedKeys()
15 self.selectKey("OK")
16                 </code>
17         </step>
18
19         <step id="welcome">
20                 <text value="Welcome to the Image upgrade wizard. The wizard will assist you in upgrading the firmware of your Dreambox by providing a backup facility for your current settings and a short explanation of how to upgrade your firmware." />
21                 <list>
22                         <listentry caption="OK, guide me through the upgrade process" step="backupquestion" />
23                         <listentry caption="Exit the wizard" step="end" />
24                 </list>
25         </step>
26
27         <step id="backupquestion">
28                 <text value="The wizard can backup your current settings. Do you want to do a backup now?" />
29                 <list>
30                         <listentry caption="Yes, backup my settings!" step="backupwhere" />
31                         <listentry caption="No backup needed" step="upgrade" />
32                 </list>
33         </step>
34
35         <step id="backupwhere" nextstep="backup">
36                 <text value="Where do you want to backup your settings?" />
37                 <list type="dynamic" source="listDevices" evaluation="deviceSelectionMade" onselect="deviceSelectionMoved" />
38         </step>
39
40         <step id="backup" nextstep="backupresult">
41                 <text value="You have chosen to backup your settings. Please press OK to start the backup now." />
42                 <config screen="BackupScreen" module="Plugins.SystemPlugins.SoftwareManager.BackupRestore" type="ConfigList" />
43                 <code pos="after" async="yes">
44 self.currStep = self.getStepWithID('backupresult')
45 self.afterAsyncCode()
46                 </code>
47         </step>
48
49         <step id="backupresult" nextstep="upgrade">
50                 <condition>
51 from Plugins.SystemPlugins.SoftwareManager.ImageWizard import checkBackupFile
52 self.backuppath = checkBackupFile()
53 self.condition = (self.backuppath is True)
54                 </condition>
55                 <text value="Your backup succeeded. We will now continue to explain the further upgrade process." />
56         </step>
57
58         <step id="backupresult" nextstep="backupwhere">
59                 <condition>
60 from Plugins.SystemPlugins.SoftwareManager.ImageWizard import checkBackupFile
61 self.backuppath = checkBackupFile()
62 self.condition = (self.backuppath is False)
63                 </condition>
64                 <text value="The backup failed. Please choose a different backup location." />
65         </step>
66
67         <step id="restore" nextstep="backupresult">
68                 <text value="You have chosen to restore your settings. Enigma2 will restart after restore. Please press OK to start the restore now." />
69                 <config screen="RestoreScreen" module="Plugins.SystemPlugins.SoftwareManager.BackupRestore" type="ConfigList" />
70         </step>
71
72         <step id="upgradehow">
73                 <text value="The wizard can backup your current settings. Do you want to do a backup now?" />
74                 <list>
75                         <listentry caption="Install a new image with your web browser" step="upgrade" />
76                         <listentry caption="Install a new image with a USB stick" step="upgradeUSB" />
77                 </list>
78         </step>
79
80         <step id="upgrade">
81                 <text value="You need a PC connected to your dreambox. If you need further instructions, please visit the website http://www.dm7025.de.\nYour dreambox will now be halted. After you have performed the update instructions from the website, your new firmware will ask you to restore your settings." />
82                 <list>
83                         <listentry caption="Yes, perform a shutdown now." step="shutdown" />
84                         <listentry caption="No, do nothing." step="end" />
85                 </list>
86         </step>
87
88         <step id="shutdown" nextstep="shutdown">
89                 <code>
90 from enigma import quitMainloop
91 quitMainloop(1)
92                 </code>
93                 <text value="Your dreambox is shutting down. Please stand by..." />
94         </step>
95
96         <step id="end" laststep="true">
97                 <condition>
98 self.condition = self.isLastWizard
99                 </condition>
100                 <text value="The wizard is finished now." />
101         </step>
102 </wizard>