diff options
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.cpp')
-rw-r--r-- | rbutil/rbutilqt/rbutilqt.cpp | 20 |
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); |