summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/gui/selectiveinstallwidget.h
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-06-26 18:41:25 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2012-06-26 20:11:41 +0200
commitfa17cb904c270e8227c0446bee4b51789eb5bb8c (patch)
tree97069aa4d4062ed710442cb119a10cae6d2e1351 /rbutil/rbutilqt/gui/selectiveinstallwidget.h
parent9b783bc1050d9288e5392cb1eb90dcde2401f8bb (diff)
downloadrockbox-fa17cb904c270e8227c0446bee4b51789eb5bb8c.tar.gz
rockbox-fa17cb904c270e8227c0446bee4b51789eb5bb8c.tar.bz2
rockbox-fa17cb904c270e8227c0446bee4b51789eb5bb8c.zip
Rework Installation and remove Quick Start tab.
The Quick Start tab turned out to be used a lot but not explaining what its functionality actually does, leading to various amount of confusion. The Quick Start tab and its functionality have been completely removed. As replacement the reworked Installation tab now includes both the entries from the old Installation tab (Bootloader and Rockbox) and the Extras tab (Fonts, Themes, Game files). Each of the items can be enabled or disabled individually, and the selection is saved in the configuration. The only exception is the bootloader option, since installing the bootloader is only needed once. To help with this the bootloader checkbox is automatically enabled if no Rockbox installation is found, and disabled if one is found. While it would be nicer to check if the bootloader is actually installed this is not possible for various players so the implementation simply relies on a Rockbox installation. This should also make it much easier to update an existing installation. Current limitations: - the selected themes are not saved. - it is not possible to detect if the target has the plugins that require additional game files prior to installation. Thus the "Game files" option is available for all targets but simply skipped if the plugins are not found. Change-Id: I1929bb7045e382fcbba431cca057d3121607d3a9
Diffstat (limited to 'rbutil/rbutilqt/gui/selectiveinstallwidget.h')
-rw-r--r--rbutil/rbutilqt/gui/selectiveinstallwidget.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/gui/selectiveinstallwidget.h b/rbutil/rbutilqt/gui/selectiveinstallwidget.h
new file mode 100644
index 0000000000..72820b23d4
--- /dev/null
+++ b/rbutil/rbutilqt/gui/selectiveinstallwidget.h
@@ -0,0 +1,66 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ *
+ * Copyright (C) 2012 by Dominik Riebeling
+ *
+ * All files in this archive are subject to the GNU General Public License.
+ * See the file COPYING in the source tree root for full license agreement.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ****************************************************************************/
+
+#ifndef SELECTIVEINSTALLWIDGET_H
+#define SELECTIVEINSTALLWIDGET_H
+
+#include <QWidget>
+#include "ui_selectiveinstallwidgetfrm.h"
+#include "progressloggergui.h"
+#include "zipinstaller.h"
+#include "themesinstallwindow.h"
+
+class SelectiveInstallWidget : public QWidget
+{
+ Q_OBJECT
+ public:
+ SelectiveInstallWidget(QWidget* parent = 0);
+
+ public slots:
+ void updateVersion(void);
+ void saveSettings(void);
+ void startInstall(void);
+
+ private slots:
+ void continueInstall(bool);
+ void installBootloader(void);
+ void installRockbox(void);
+ void installFonts(void);
+ void installThemes(void);
+ void installGamefiles(void);
+ void installBootloaderPost(void);
+ void customizeThemes(void);
+ void selectedVersionChanged(int);
+
+ signals:
+ void installSkipped(bool);
+
+ private:
+ Ui::SelectiveInstallWidget ui;
+ QString m_target;
+ QString m_blmethod;
+ QString m_mountpoint;
+ ProgressLoggerGui *m_logger;
+ int m_installStage;
+ ZipInstaller *m_zipinstaller;
+ QMap<QString, QString> m_versions;
+ ThemesInstallWindow *m_themesinstaller;
+};
+
+#endif
+