Create dedicated backup dialog.

The "Installation" dialog allows backing up the current installation by
creating a zip file from the .rockbox folder since quite a while. However, this
has the drawback that you need to update your build to create a backup, but
creating a backup might be desireable in other cases as well (before updating
themes, or just for backup reasons). Since the functionality is somewhat hidden
it's also not obvious to users such a functionality exists (most users are
likely to use the "Quick Start" instead).

Implement backup functionality as dedicated dialog placed on the Uninstall tab.
Rename the Uninstall tab to accommodate this.

Change-Id: I1d2c6c8f646672d1b66bb442408fbfc2eeec700d
This commit is contained in:
Dominik Riebeling 2012-06-26 00:24:58 +02:00
parent 8cc46fb01c
commit 362f447ede
10 changed files with 376 additions and 13 deletions

View file

@ -282,9 +282,6 @@
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="buddy">
<cstring>buttonRockbox</cstring>
</property>
</widget>
</item>
<item row="2" column="0">
@ -549,12 +546,12 @@
</widget>
<widget class="QWidget" name="uninstall">
<attribute name="title">
<string>&amp;Uninstallation</string>
<string>Backup &amp;&amp; &amp;Uninstallation</string>
</attribute>
<attribute name="toolTip">
<string>Uninstall Rockbox</string>
</attribute>
<layout class="QGridLayout">
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QToolButton" name="buttonRemoveBootloader">
<property name="text">
@ -616,19 +613,36 @@
</widget>
</item>
<item row="2" column="0">
<spacer>
<property name="orientation">
<enum>Qt::Vertical</enum>
<widget class="QToolButton" name="buttonBackup">
<property name="text">
<string>Backup</string>
</property>
<property name="sizeHint" stdset="0">
<property name="icon">
<iconset resource="rbutilqt.qrc">
<normaloff>:/icons/package-x-generic.png</normaloff>:/icons/package-x-generic.png</iconset>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>40</height>
<width>56</width>
<height>46</height>
</size>
</property>
</spacer>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="labelBackup">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Backup current installation.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Create a backup by archiving the contents of the Rockbox installation folder.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="0">
<spacer>
<property name="orientation">
<enum>Qt::Vertical</enum>