summaryrefslogtreecommitdiff
path: root/lexiconparameters.cpp
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2015-10-10 19:09:36 -0500
committerJohn Fultz <jfultz@wolfram.com>2015-10-10 19:09:36 -0500
commit69e3dcefb882c743b136df8e5c81b4182b135f6b (patch)
treefaabb8c691da11067297df8d870c0393a91c8a7f /lexiconparameters.cpp
parent81554a201cc5e0748110add6eca05cc16c18850c (diff)
Progress on the lexicon dialog.
Now prints better stats. Now loads the dictionary you're editing. Now disables the Delete button at appropriate times.
Diffstat (limited to 'lexiconparameters.cpp')
-rw-r--r--lexiconparameters.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lexiconparameters.cpp b/lexiconparameters.cpp
index 9da3b70..bc10773 100644
--- a/lexiconparameters.cpp
+++ b/lexiconparameters.cpp
@@ -224,6 +224,11 @@ string LexiconParameters::findDictionaryFile(const string &lexicon)
return QUACKLE_DATAMANAGER->findDataFile("lexica", lexicon);
}
+bool LexiconParameters::hasUserDictionaryFile(const string &lexicon)
+{
+ return QUACKLE_DATAMANAGER->hasUserDataFile("lexica", lexicon);
+}
+
UVString LexiconParameters::hashString(bool shortened) const
{
const char hex[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };