From 32c211a5487e0148a438b8c9d109e918e69e1ffa Mon Sep 17 00:00:00 2001 From: John Fultz Date: Mon, 30 Dec 2013 03:15:50 -0600 Subject: 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. --- quacker/settings.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'quacker/settings.h') 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; }; -- cgit v1.2.3