diff options
author | John Fultz <jfultz@wolfram.com> | 2013-12-30 03:15:50 -0600 |
---|---|---|
committer | John Fultz <jfultz@wolfram.com> | 2013-12-30 03:15:50 -0600 |
commit | 32c211a5487e0148a438b8c9d109e918e69e1ffa (patch) | |
tree | 5fef6001ff965ff887fdc429f1afdea6fbd414ac /quacker/settings.h | |
parent | f3f60195ba3500c7d12b73f18343273e364025a1 (diff) |
Add color theme feature.
This allows you to choose between preset themes stored in .ini files
in the layout. While I was at it, I changed other things in the
Settings panel to auto-populate from the layout rather than have
hard-coded versions. So there's no longer a need to recompile
Quackle to add new languages or alphabets to get it to show up in
the popup menu.
Diffstat (limited to 'quacker/settings.h')
-rw-r--r-- | quacker/settings.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/quacker/settings.h b/quacker/settings.h index d741921..1796753 100644 --- a/quacker/settings.h +++ b/quacker/settings.h @@ -61,6 +61,7 @@ public slots: protected slots: void lexiconChanged(const QString &lexiconName); void alphabetChanged(const QString &alphabetName); + void themeChanged(const QString &themeName); void boardChanged(const QString &boardName); void addBoard(); @@ -69,19 +70,26 @@ protected slots: void setQuackleToUseLexiconName(const string &lexiconName); void setQuackleToUseAlphabetName(const string &alphabetName); + void setQuackleToUseThemeName(const QString &themeName); void setQuackleToUseBoardName(const QString &lexiconName); protected: QComboBox *m_lexiconNameCombo; QComboBox *m_alphabetNameCombo; + QComboBox *m_themeNameCombo; QComboBox *m_boardNameCombo; QPushButton *m_addBoard; QPushButton *m_editBoard; QPushButton *m_deleteBoard; + QString m_dataDir; + QString m_themeName; private: // populate the popup based on what's in QSettings void loadBoardNameCombo(); + + // load up an item list based on a list of filenames + void populateListFromFilenames(QStringList& list, const QString &path); static Settings *m_self; }; |