summaryrefslogtreecommitdiff
path: root/quacker/settings.h
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2015-11-02 13:35:10 -0600
committerJohn Fultz <jfultz@wolfram.com>2015-11-02 13:36:32 -0600
commit7d6f193908a0b277a5b44f0d22651dccec033b70 (patch)
tree73b8817e3e3ba2dc99eeec8c56c4d61e47bc09ac /quacker/settings.h
parent00a4b2a209ce4b90f4dca4d98b964853ce3196ff (diff)
Add interface for generating gaddags.
I wanted to throw this in a background thread, and I will, but for now, we need to get something out the door, and this seems sensible anyway. Couple of other bug fixes... * Add a copyright. * Popup menu says "Add new lexica..." but should say "Add new lexicon...". * Copyrights were refusing to wordwrap, thus forcing the settings pane to be wide.
Diffstat (limited to 'quacker/settings.h')
-rw-r--r--quacker/settings.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/quacker/settings.h b/quacker/settings.h
index ef3449e..74c819a 100644
--- a/quacker/settings.h
+++ b/quacker/settings.h
@@ -74,6 +74,7 @@ protected slots:
void editLexicon();
void editAlphabet();
void editTheme();
+ void buildGaddag();
void setQuackleToUseLexiconName(const QString &lexiconName);
void setQuackleToUseAlphabetName(const QString &alphabetName);
@@ -89,7 +90,9 @@ protected:
QPushButton *m_editAlphabet;
QPushButton *m_editTheme;
QPushButton *m_editBoard;
+ QPushButton *m_buildGaddag;
QLabel *m_copyrightLabel;
+ QLabel *m_buildGaddagLabel;
QString m_appDataDir;
QString m_userDataDir;
QString m_themeName;
@@ -98,8 +101,9 @@ private:
// populate the popup based on what's in QSettings
void loadBoardNameCombo();
- void buildGaddag(const string &filename);
- void pushIndex(GaddagFactory &factory, Quackle::LetterString &word, int index);
+ void setGaddagLabel();
+ void setGaddagLabel(const QString &label);
+ void pushIndex(GaddagFactory &factory, Quackle::LetterString &word, int index, int &wordCount);
static Settings *m_self;
int m_lastGoodLexiconValue;