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