summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/installtalkwindow.cpp
diff options
context:
space:
mode:
authorAntoine Cellerier <dionoea@videolan.org>2007-09-15 22:57:07 +0000
committerAntoine Cellerier <dionoea@videolan.org>2007-09-15 22:57:07 +0000
commit1464c9b5d03c105d985320083fd36788036a0dd6 (patch)
treeeaa039f5632d5d8eb5065fb81fe462a95031c149 /rbutil/rbutilqt/installtalkwindow.cpp
parent76ea412d5f8ea786b60aaf773e44b997f36aaa01 (diff)
downloadrockbox-1464c9b5d03c105d985320083fd36788036a0dd6.tar.gz
rockbox-1464c9b5d03c105d985320083fd36788036a0dd6.tar.bz2
rockbox-1464c9b5d03c105d985320083fd36788036a0dd6.zip
Cosmetics: remove trailing spaces.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14723 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/installtalkwindow.cpp')
-rw-r--r--rbutil/rbutilqt/installtalkwindow.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/rbutil/rbutilqt/installtalkwindow.cpp b/rbutil/rbutilqt/installtalkwindow.cpp
index f273721437..4324f693a9 100644
--- a/rbutil/rbutilqt/installtalkwindow.cpp
+++ b/rbutil/rbutilqt/installtalkwindow.cpp
@@ -26,7 +26,7 @@ InstallTalkWindow::InstallTalkWindow(QWidget *parent) : QDialog(parent)
{
ui.setupUi(this);
talkcreator = new TalkFileCreator(this);
-
+
connect(ui.buttonBrowse, SIGNAL(clicked()), this, SLOT(browseFolder()));
ui.OverwriteWav->setChecked(true);
@@ -40,7 +40,7 @@ void InstallTalkWindow::browseFolder()
{
BrowseDirtree browser(this);
browser.setFilter(QDir::AllDirs | QDir::NoDotAndDotDot | QDir::NoSymLinks);
-
+
if(QFileInfo(ui.lineTalkFolder->text()).isDir())
{
browser.setDir(ui.lineTalkFolder->text());
@@ -67,7 +67,7 @@ void InstallTalkWindow::accept()
logger = new ProgressLoggerGui(this);
logger->show();
connect(logger,SIGNAL(closed()),this,SLOT(close()));
-
+
QString folderToTalk = ui.lineTalkFolder->text();
QString pathEncoder = userSettings->value("encbin").toString();
QString pathTTS = userSettings->value("ttsbin").toString();
@@ -78,23 +78,23 @@ void InstallTalkWindow::accept()
logger->abort();
return;
}
-
+
if(!QFileInfo(pathEncoder).isExecutable())
{
logger->addItem(tr("Path to Encoder is wrong!"),LOGERROR);
logger->abort();
return;
}
-
+
if(!QFileInfo(pathTTS).isExecutable())
{
logger->addItem(tr("Path to TTS is wrong!"),LOGERROR);
logger->abort();
return;
}
-
+
userSettings->setValue("last_talked_folder", folderToTalk);
-
+
userSettings->sync();
talkcreator->setDir(folderToTalk);
@@ -102,7 +102,7 @@ void InstallTalkWindow::accept()
talkcreator->setEncexe(pathEncoder);
talkcreator->setEncOpts(userSettings->value("encopts").toString());
talkcreator->setTTsOpts(userSettings->value("ttsopts").toString());
-
+
devices->beginGroup(userSettings->value("ttspreset").toString());
talkcreator->setTTsType(devices->value("tts").toString());
talkcreator->setTTsOpts(devices->value("options").toString());
@@ -113,7 +113,7 @@ void InstallTalkWindow::accept()
talkcreator->setEncOpts(devices->value("options").toString());
talkcreator->setEncTemplate(devices->value("template").toString());
devices->endGroup();
-
+
talkcreator->setOverwriteTalk(ui.OverwriteTalk->isChecked());
talkcreator->setOverwriteWav(ui.OverwriteWav->isChecked());
talkcreator->setRemoveWav(ui.RemoveWav->isChecked());
@@ -128,7 +128,7 @@ void InstallTalkWindow::setDeviceSettings(QSettings *dev)
{
devices = dev;
qDebug() << "Install::setDeviceSettings:" << devices;
-
+
QString profile;
profile = userSettings->value("ttspreset", "none").toString();
@@ -151,9 +151,9 @@ void InstallTalkWindow::setDeviceSettings(QSettings *dev)
void InstallTalkWindow::setUserSettings(QSettings *user)
{
userSettings = user;
-
+
talkcreator->setMountPoint(userSettings->value("mountpoint").toString());
-
+
setTalkFolder(userSettings->value("last_talked_folder").toString());
}