kanagram
Go to the documentation of this file.
22 #ifndef KANAGRAMGAME_H
23 #define KANAGRAMGAME_H
27 #include <QtCore/QObject>
28 #include <QtCore/QStringList>
29 #include <QtCore/QHash>
32 #include <krandomsequence.h>
35 class KEduVocDocument;
44 Q_PROPERTY(QString dataLanguage READ dataLanguage WRITE setDataLanguage NOTIFY dataLanguageChanged)
54 QString sanitizedDataLanguage()
const;
57 QString anagram()
const;
60 Q_INVOKABLE QString hint()
const;
69 QString documentTitle()
const;
72 QString filename()
const;
75 Q_INVOKABLE QStringList vocabularyList()
const;
78 Q_INVOKABLE QStringList languageNames();
81 Q_INVOKABLE QString dataLanguage()
const;
84 Q_INVOKABLE
void setDataLanguage(
const QString& dataLanguage);
87 Q_INVOKABLE
int dataLanguageSelectedIndex()
const;
90 Q_INVOKABLE
int currentCategory()
const;
96 void useVocabulary(
const QString &vocabularyname);
99 void useVocabulary(
int index);
105 bool refreshVocabularyList();
108 void loadDefaultVocabulary();
114 void nextVocabulary();
117 void previousVocabulary();
123 void setCurrentCategory(
int index);
128 void fileError(
const QString &filename);
131 void dataLanguageChanged();
136 void createAnagram();
142 KRandomSequence m_random;
154 QString m_originalWord;
160 QStringList m_fileList;
163 QStringList m_answeredWords;
169 KEduVocDocument* m_document;
172 QHash<QString, QString> m_languageCodeNameHash;
#define KANAGRAM_ENGINE_EXPORT
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:35 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.