1
0
Fork 0
forked from len0rd/rockbox

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

@ -40,6 +40,7 @@
#include "ziputil.h"
#include "manualwidget.h"
#include "infowidget.h"
#include "backupdialog.h"
#include "progressloggerinterface.h"
@ -152,6 +153,7 @@ RbUtilQt::RbUtilQt(QWidget *parent) : QMainWindow(parent)
connect(ui.buttonRemoveBootloader, SIGNAL(clicked()), this, SLOT(uninstallBootloader()));
connect(ui.buttonSmall, SIGNAL(clicked()), this, SLOT(smallInstall()));
connect(ui.buttonComplete, SIGNAL(clicked()), this, SLOT(completeInstall()));
connect(ui.buttonBackup, SIGNAL(clicked()), this, SLOT(backup()));
// actions accessible from the menu
connect(ui.actionComplete_Installation, SIGNAL(triggered()), this, SLOT(completeInstall()));
@ -386,6 +388,13 @@ void RbUtilQt::updateDevice()
}
void RbUtilQt::backup(void)
{
backupdialog = new BackupDialog(this);
backupdialog->show();
}
void RbUtilQt::completeInstall()
{
if(chkConfig(this)) return;