diff options
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.cpp')
-rw-r--r-- | rbutil/rbutilqt/rbutilqt.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp index 7d0a887849..a28defc413 100644 --- a/rbutil/rbutilqt/rbutilqt.cpp +++ b/rbutil/rbutilqt/rbutilqt.cpp | |||
@@ -26,6 +26,7 @@ | |||
26 | #include "configure.h" | 26 | #include "configure.h" |
27 | #include "install.h" | 27 | #include "install.h" |
28 | #include "installtalkwindow.h" | 28 | #include "installtalkwindow.h" |
29 | #include "createvoicewindow.h" | ||
29 | #include "httpget.h" | 30 | #include "httpget.h" |
30 | #include "installbootloader.h" | 31 | #include "installbootloader.h" |
31 | #include "installthemes.h" | 32 | #include "installthemes.h" |
@@ -89,6 +90,7 @@ RbUtilQt::RbUtilQt(QWidget *parent) : QMainWindow(parent) | |||
89 | connect(ui.buttonFonts, SIGNAL(clicked()), this, SLOT(installFontsBtn())); | 90 | connect(ui.buttonFonts, SIGNAL(clicked()), this, SLOT(installFontsBtn())); |
90 | connect(ui.buttonGames, SIGNAL(clicked()), this, SLOT(installDoomBtn())); | 91 | connect(ui.buttonGames, SIGNAL(clicked()), this, SLOT(installDoomBtn())); |
91 | connect(ui.buttonTalk, SIGNAL(clicked()), this, SLOT(createTalkFiles())); | 92 | connect(ui.buttonTalk, SIGNAL(clicked()), this, SLOT(createTalkFiles())); |
93 | connect(ui.buttonCreateVoice, SIGNAL(clicked()), this, SLOT(createVoiceFile())); | ||
92 | connect(ui.buttonVoice, SIGNAL(clicked()), this, SLOT(installVoice())); | 94 | connect(ui.buttonVoice, SIGNAL(clicked()), this, SLOT(installVoice())); |
93 | connect(ui.buttonThemes, SIGNAL(clicked()), this, SLOT(installThemes())); | 95 | connect(ui.buttonThemes, SIGNAL(clicked()), this, SLOT(installThemes())); |
94 | connect(ui.buttonRemoveRockbox, SIGNAL(clicked()), this, SLOT(uninstall())); | 96 | connect(ui.buttonRemoveRockbox, SIGNAL(clicked()), this, SLOT(uninstall())); |
@@ -106,6 +108,7 @@ RbUtilQt::RbUtilQt(QWidget *parent) : QMainWindow(parent) | |||
106 | connect(ui.actionInstall_Themes, SIGNAL(triggered()), this, SLOT(installThemes())); | 108 | connect(ui.actionInstall_Themes, SIGNAL(triggered()), this, SLOT(installThemes())); |
107 | connect(ui.actionInstall_Game_Files, SIGNAL(triggered()), this, SLOT(installDoomBtn())); | 109 | connect(ui.actionInstall_Game_Files, SIGNAL(triggered()), this, SLOT(installDoomBtn())); |
108 | connect(ui.actionInstall_Voice_File, SIGNAL(triggered()), this, SLOT(installVoice())); | 110 | connect(ui.actionInstall_Voice_File, SIGNAL(triggered()), this, SLOT(installVoice())); |
111 | connect(ui.actionCreate_Voice_File, SIGNAL(triggered()), this, SLOT(createVoiceFile())); | ||
109 | connect(ui.actionCreate_Talk_Files, SIGNAL(triggered()), this, SLOT(createTalkFiles())); | 112 | connect(ui.actionCreate_Talk_Files, SIGNAL(triggered()), this, SLOT(createTalkFiles())); |
110 | connect(ui.actionRemove_bootloader, SIGNAL(triggered()), this, SLOT(uninstallBootloader())); | 113 | connect(ui.actionRemove_bootloader, SIGNAL(triggered()), this, SLOT(uninstallBootloader())); |
111 | connect(ui.actionUninstall_Rockbox, SIGNAL(triggered()), this, SLOT(uninstall())); | 114 | connect(ui.actionUninstall_Rockbox, SIGNAL(triggered()), this, SLOT(uninstall())); |
@@ -753,6 +756,19 @@ void RbUtilQt::createTalkFiles(void) | |||
753 | 756 | ||
754 | } | 757 | } |
755 | 758 | ||
759 | void RbUtilQt::createVoiceFile(void) | ||
760 | { | ||
761 | if(chkConfig(true)) return; | ||
762 | CreateVoiceWindow *installWindow = new CreateVoiceWindow(this); | ||
763 | installWindow->setUserSettings(userSettings); | ||
764 | installWindow->setDeviceSettings(devices); | ||
765 | installWindow->setProxy(proxy()); | ||
766 | |||
767 | installWindow->show(); | ||
768 | connect(installWindow, SIGNAL(settingsUpdated()), this, SLOT(downloadInfo())); | ||
769 | connect(installWindow, SIGNAL(settingsUpdated()), this, SLOT(updateSettings())); | ||
770 | } | ||
771 | |||
756 | void RbUtilQt::uninstall(void) | 772 | void RbUtilQt::uninstall(void) |
757 | { | 773 | { |
758 | if(chkConfig(true)) return; | 774 | if(chkConfig(true)) return; |