summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/themesinstallwindow.h
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-06-23 11:15:46 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2012-06-26 18:30:27 +0200
commit9b783bc1050d9288e5392cb1eb90dcde2401f8bb (patch)
treed4b8e7590fc9ef522cc89370cf2737b054098010 /rbutil/rbutilqt/themesinstallwindow.h
parentf419128a6b371d2752553ef3850f10c2cdf46912 (diff)
downloadrockbox-9b783bc1050d9288e5392cb1eb90dcde2401f8bb.tar.gz
rockbox-9b783bc1050d9288e5392cb1eb90dcde2401f8bb.zip
Separate select and install parts in themes install window.
Allow using the themes installation dialog as selection dialog separately from installing themes. For this the installation is now triggered separately and can be told to not to do the installation on Ok button. In this case the dialog is selection only, and the Ok button is changed to Select. The installation itself is still done in the class but started by calling the install() method separately. Change-Id: I856db8204788302b2b539e6d8283f73cb354f033
Diffstat (limited to 'rbutil/rbutilqt/themesinstallwindow.h')
-rw-r--r--rbutil/rbutilqt/themesinstallwindow.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/themesinstallwindow.h b/rbutil/rbutilqt/themesinstallwindow.h
index 7b48d8bcce..9214e5ccbf 100644
--- a/rbutil/rbutilqt/themesinstallwindow.h
+++ b/rbutil/rbutilqt/themesinstallwindow.h
@@ -38,10 +38,16 @@ class ThemesInstallWindow : public QDialog
~ThemesInstallWindow();
void downloadInfo(void);
void show(void);
+ void setLogger(ProgressLoggerGui* l) { logger = l; }
+ void setSelectOnly(bool state) { windowSelectOnly = state; }
+ void install(void);
public slots:
void accept(void);
+ signals:
+ void done(bool);
+
private:
Ui::ThemeInstallFrm ui;
HttpGet *getter;
@@ -56,6 +62,7 @@ class ThemesInstallWindow : public QDialog
QString fileName;
QString infocachedir;
+ bool windowSelectOnly;
private slots:
void downloadDone(bool);