summaryrefslogtreecommitdiff
path: root/quacker/lexicondialog.h
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2015-10-13 12:00:13 -0500
committerJohn Fultz <jfultz@wolfram.com>2015-10-13 12:00:13 -0500
commitef4273ba47a2da9cea0aed59235e2d0a86bb8d7e (patch)
treeac58ba972ceee9f3c0079e17e8288a2d7eef8913 /quacker/lexicondialog.h
parent6339dec22e2190fd341500206c80425593324bdc (diff)
Saving custom dictionaries now really works.
* Fix a number of remaining bugs in the lexicon dialog. * Fix an error reading the v1 DAWG. * Improve the word counting mechanism. * Make sure the lexicn dialog properly selects and loads its dictionary after it's done. * Implement deleting of user dictionaries. * Clean up dictionary info text in lexicon dialog. * Disable gaddag generation...still have to fix that up to happen at sensible times and with user notification.
Diffstat (limited to 'quacker/lexicondialog.h')
-rw-r--r--quacker/lexicondialog.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/quacker/lexicondialog.h b/quacker/lexicondialog.h
index fa80ec1..1f1605b 100644
--- a/quacker/lexicondialog.h
+++ b/quacker/lexicondialog.h
@@ -45,6 +45,9 @@ public:
~LexiconDialog();
virtual void accept();
+ bool itemWasDeleted() { return m_deleted; };
+ const QString &lexiconName() { return m_finalLexiconName; };
+
void updateLexiconInformation(bool firstTime = false);
protected slots:
@@ -52,6 +55,7 @@ protected slots:
void deleteLexicon();
void addWordsFromFile();
void alphabetChanged(const QString &);
+ void loadOriginalDictionary();
protected:
void addWordsFromDawgFile(const QString &dawgfile);
@@ -73,7 +77,8 @@ private:
QString m_originalName;
QString m_alphabetFileName;
QByteArray m_originalHash;
- QByteArray m_previousHash;
+ QString m_finalLexiconName;
+ bool m_deleted;
DawgFactory *m_wordFactory;
};