diff options
author | John Fultz <jfultz@wolfram.com> | 2015-09-28 13:00:57 -0500 |
---|---|---|
committer | John Fultz <jfultz@wolfram.com> | 2015-09-28 13:00:57 -0500 |
commit | 81554a201cc5e0748110add6eca05cc16c18850c (patch) | |
tree | 75fcfd2b3c32befec1ec31435b731f84c9b48646 /quacker/lexicondialog.h | |
parent | 03b9132b3f540bfb3713400774a9bfb832b200b2 (diff) |
Now able to load text and dawg files.
Words are loaded and hashed. Duplicates are
discovered. Alphabets are dealt with. Merging
of multiple word lists works. This is good stuff.
Saving the resulting dictionaries has not been
tried, yet, and the gui code for saving needs to
be finished off, yet.
Diffstat (limited to 'quacker/lexicondialog.h')
-rw-r--r-- | quacker/lexicondialog.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/quacker/lexicondialog.h b/quacker/lexicondialog.h index 573d48b..4df6138 100644 --- a/quacker/lexicondialog.h +++ b/quacker/lexicondialog.h @@ -49,10 +49,12 @@ public: protected slots: void deleteLexicon(); void addWordsFromFile(); + void alphabetChanged(const QString &); protected: - void addWordsFromDawg(const string &dawgfile, const string &alphabetfile); + void addWordsFromDawgFile(const QString &dawgfile, const QString &alphabetfile); void addWordsFromDawgRecursive(const LexiconParameters &lexParams, Quackle::LetterString &word, int index); + void addWordsFromTextFile(const QString &textFile, const QString &alphabetfile); private: QLineEdit *m_lexiconName; @@ -66,6 +68,7 @@ private: QPushButton *m_deleteLexicon; QString m_originalName; + QString m_alphabetFileName; DawgFactory *m_wordFactory; }; |