summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/rbutilqt.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2007-08-15 21:54:15 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2007-08-15 21:54:15 +0000
commit653b996828428370d21ea5fad92ca5790f017019 (patch)
treed38d92cf9f682b034990bebb0f6a1be0cb3e64cf /rbutil/rbutilqt/rbutilqt.cpp
parent53fbd6d01dc921c203860523649df59033751ca9 (diff)
Add theme installation. This relies on a modified server script so the themes site need to incorporate the changes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14363 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.cpp')
-rw-r--r--rbutil/rbutilqt/rbutilqt.cpp20
1 files changed, 18 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp
index fc03ba754e..39bac3bc36 100644
--- a/rbutil/rbutilqt/rbutilqt.cpp
+++ b/rbutil/rbutilqt/rbutilqt.cpp
@@ -28,6 +28,7 @@
#include "installtalkwindow.h"
#include "httpget.h"
#include "installbootloader.h"
+#include "installthemes.h"
#include "uninstallwindow.h"
#include "browseof.h"
@@ -81,11 +82,10 @@ RbUtilQt::RbUtilQt(QWidget *parent) : QMainWindow(parent)
connect(ui.buttonGames, SIGNAL(clicked()), this, SLOT(installDoom()));
connect(ui.buttonTalk, SIGNAL(clicked()), this, SLOT(createTalkFiles()));
connect(ui.buttonVoice, SIGNAL(clicked()), this, SLOT(installVoice()));
+ connect(ui.buttonThemes, SIGNAL(clicked()), this, SLOT(installThemes()));
connect(ui.buttonRemoveRockbox, SIGNAL(clicked()), this, SLOT(uninstall()));
connect(ui.buttonRemoveBootloader, SIGNAL(clicked()), this, SLOT(uninstallBootloader()));
-
// disable unimplemented stuff
- ui.buttonThemes->setEnabled(false);
ui.buttonSmall->setEnabled(false);
ui.buttonComplete->setEnabled(false);
@@ -439,6 +439,22 @@ void RbUtilQt::installDoom()
}
+void RbUtilQt::installThemes()
+{
+ ThemesInstallWindow* tw = new ThemesInstallWindow(this);
+ tw->setDeviceSettings(devices);
+ tw->setUserSettings(userSettings);
+ if(userSettings->value("defaults/proxytype") == "manual")
+ tw->setProxy(QUrl(userSettings->value("defaults/proxy").toString()));
+#ifdef __linux
+ else if(userSettings->value("defaults/proxytype") == "system")
+ tw->setProxy(QUrl(getenv("http_proxy")));
+#endif
+ tw->setModal(true);
+ tw->show();
+}
+
+
void RbUtilQt::createTalkFiles(void)
{
InstallTalkWindow *installWindow = new InstallTalkWindow(this);