forked from len0rd/rockbox
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
This commit is contained in:
parent
53fbd6d01d
commit
653b996828
9 changed files with 527 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue