summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/configure.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-10-01 19:48:58 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-10-01 19:48:58 +0000
commit4f56b50df45cf81370c3a29bd443b91cf5fca1b0 (patch)
tree92b105d056a47401949c9db6b5529570a63cb3f9 /rbutil/rbutilqt/configure.cpp
parent7f2defc453045e037cccf50456753d310c7d7e88 (diff)
downloadrockbox-4f56b50df45cf81370c3a29bd443b91cf5fca1b0.tar.gz
rockbox-4f56b50df45cf81370c3a29bd443b91cf5fca1b0.tar.bz2
rockbox-4f56b50df45cf81370c3a29bd443b91cf5fca1b0.zip
Voicefile generation: implement string corrections.
Voicefile generation now can correct strings for the TTS system similar to what voice.pl does. The current implementation has some limitations: - only implemented for voicefile creation. - the corrections file is built in and can't get changed. - string corrections can be disabled in the configuration dialog. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30628 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/configure.cpp')
-rw-r--r--rbutil/rbutilqt/configure.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp
index 9e1978974f..4a6fb67a43 100644
--- a/rbutil/rbutilqt/configure.cpp
+++ b/rbutil/rbutilqt/configure.cpp
@@ -205,6 +205,7 @@ void Config::accept()
RbSettings::setValue(RbSettings::CacheOffline, ui.cacheOfflineMode->isChecked());
// tts settings
+ RbSettings::setValue(RbSettings::UseTtsCorrections, ui.ttsCorrections->isChecked());
int i = ui.comboTts->currentIndex();
RbSettings::setValue(RbSettings::Tts, ui.comboTts->itemData(i).toString());
@@ -288,6 +289,9 @@ void Config::setUserSettings()
ui.cacheDisable->setChecked(RbSettings::value(RbSettings::CacheDisabled).toBool());
ui.cacheOfflineMode->setChecked(RbSettings::value(RbSettings::CacheOffline).toBool());
updateCacheInfo(RbSettings::value(RbSettings::CachePath).toString());
+
+ // TTS tab
+ ui.ttsCorrections->setChecked(RbSettings::value(RbSettings::UseTtsCorrections).toBool());
}