summaryrefslogtreecommitdiff
path: root/quacker/lexicondialog.h
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2015-09-26 10:47:07 -0500
committerJohn Fultz <jfultz@wolfram.com>2015-09-26 10:47:07 -0500
commit1214533715a1acfbc35ebe29ff78afee2f850226 (patch)
tree8c4c9a5280cfbb48b48dff2ae1c567364ea97e89 /quacker/lexicondialog.h
parented46987403dd923d3ba14df6eb676e1e163d1d8d (diff)
Work on DAWG generation.
V1 DAWGs now include an alphabet. Begin creating DAWGs which extend other DAWGs. In general, laying the groundwork for plain text import to DAWG.
Diffstat (limited to 'quacker/lexicondialog.h')
-rw-r--r--quacker/lexicondialog.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/quacker/lexicondialog.h b/quacker/lexicondialog.h
index cdc0a59..573d48b 100644
--- a/quacker/lexicondialog.h
+++ b/quacker/lexicondialog.h
@@ -20,17 +20,20 @@
#define QUACKER_LEXICONDIALOG_H
#include <string>
-#include <game.h>
+#include "game.h"
+#include "lexiconparameters.h"
#include <QWidget>
#include <QDialog>
using namespace std;
+using namespace Quackle;
class QComboBox;
class QLabel;
class QLineEdit;
class QPushButton;
+class DawgFactory;
class LexiconDialog : public QDialog
{
@@ -47,6 +50,10 @@ protected slots:
void deleteLexicon();
void addWordsFromFile();
+protected:
+ void addWordsFromDawg(const string &dawgfile, const string &alphabetfile);
+ void addWordsFromDawgRecursive(const LexiconParameters &lexParams, Quackle::LetterString &word, int index);
+
private:
QLineEdit *m_lexiconName;
QComboBox *m_alphabetCombo;
@@ -59,6 +66,8 @@ private:
QPushButton *m_deleteLexicon;
QString m_originalName;
+
+ DawgFactory *m_wordFactory;
};
#endif