From 7d6f193908a0b277a5b44f0d22651dccec033b70 Mon Sep 17 00:00:00 2001 From: John Fultz Date: Mon, 2 Nov 2015 13:35:10 -0600 Subject: 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. --- quacker/settings.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'quacker/settings.h') 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; -- cgit v1.2.3