From de9ba10aabdbc3224194f6859f2e4f60ac98ceb5 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Wed, 7 Jul 2010 20:56:16 +0000 Subject: Theme Editor: Made auto-expand/highlight of parse tree optional (through preferences dialog), added Simulation Time variable to device config panel, subline alternation is now dependent on that rather than time in song git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27342 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/gui/preferencesdialog.cpp | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'utils/themeeditor/gui/preferencesdialog.cpp') diff --git a/utils/themeeditor/gui/preferencesdialog.cpp b/utils/themeeditor/gui/preferencesdialog.cpp index f8c71f4..dbb3249 100644 --- a/utils/themeeditor/gui/preferencesdialog.cpp +++ b/utils/themeeditor/gui/preferencesdialog.cpp @@ -44,7 +44,7 @@ void PreferencesDialog::loadSettings() { loadColors(); loadFont(); - loadFontDir(); + loadRender(); } void PreferencesDialog::loadColors() @@ -107,7 +107,7 @@ void PreferencesDialog::loadFont() } -void PreferencesDialog::loadFontDir() +void PreferencesDialog::loadRender() { QSettings settings; settings.beginGroup("RBFont"); @@ -115,13 +115,22 @@ void PreferencesDialog::loadFontDir() ui->fontBox->setText(settings.value("fontDir", "/").toString()); settings.endGroup(); + + settings.beginGroup("EditorWindow"); + + ui->autoExpandBox->setChecked(settings.value("autoExpandTree", + false).toBool()); + ui->autoHighlightBox->setChecked(settings.value("autoHighlightTree", + false).toBool()); + + settings.endGroup(); } void PreferencesDialog::saveSettings() { saveColors(); saveFont(); - saveFontDir(); + saveRender(); } void PreferencesDialog::saveColors() @@ -159,7 +168,7 @@ void PreferencesDialog::saveFont() settings.endGroup(); } -void PreferencesDialog::saveFontDir() +void PreferencesDialog::saveRender() { QSettings settings; settings.beginGroup("RBFont"); @@ -167,6 +176,13 @@ void PreferencesDialog::saveFontDir() settings.setValue("fontDir", ui->fontBox->text()); settings.endGroup(); + + settings.beginGroup("EditorWindow"); + + settings.setValue("autoExpandTree", ui->autoExpandBox->isChecked()); + settings.setValue("autoHighlightTree", ui->autoHighlightBox->isChecked()); + + settings.endGroup(); } void PreferencesDialog::setupUI() -- cgit v1.1