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
This commit is contained in:
Robert Bieber 2010-07-07 20:56:16 +00:00
parent 80fa0efd1f
commit de9ba10aab
7 changed files with 66 additions and 16 deletions

View file

@ -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()