kanagram
#include <kanagramgame.h>
Public Slots | |
void | loadDefaultVocabulary () |
void | nextAnagram () |
void | nextVocabulary () |
void | previousVocabulary () |
bool | refreshVocabularyList () |
void | restoreWord () |
void | setCurrentCategory (int index) |
void | useVocabulary (const QString &vocabularyname) |
void | useVocabulary (int index) |
Signals | |
void | dataLanguageChanged () |
void | fileError (const QString &filename) |
Public Member Functions | |
KanagramGame () | |
~KanagramGame () | |
QString | anagram () const |
KUrl | audioFile () |
Q_INVOKABLE int | currentCategory () const |
Q_INVOKABLE QString | dataLanguage () const |
Q_INVOKABLE int | dataLanguageSelectedIndex () const |
QString | documentTitle () const |
QString | filename () const |
Q_INVOKABLE QString | hint () const |
Q_INVOKABLE QStringList | languageNames () |
KUrl | picHint () |
QString | sanitizedDataLanguage () const |
Q_INVOKABLE void | setDataLanguage (const QString &dataLanguage) |
Q_INVOKABLE QStringList | vocabularyList () const |
QString | word () const |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Properties | |
QString | dataLanguage |
Properties inherited from QObject | |
objectName | |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Detailed Description
game api
Definition at line 41 of file kanagramgame.h.
Constructor & Destructor Documentation
KanagramGame::KanagramGame | ( | ) |
Default constructor.
Definition at line 42 of file kanagramgame.cpp.
KanagramGame::~KanagramGame | ( | ) |
Default destructor.
Definition at line 51 of file kanagramgame.cpp.
Member Function Documentation
QString KanagramGame::anagram | ( | ) | const |
Get the anagram to show.
Definition at line 242 of file kanagramgame.cpp.
KUrl KanagramGame::audioFile | ( | ) |
Get this anagram's audio URL.
function to return the audio url
Definition at line 367 of file kanagramgame.cpp.
int KanagramGame::currentCategory | ( | ) | const |
Get the index of the current category in the list.
Definition at line 346 of file kanagramgame.cpp.
Q_INVOKABLE QString KanagramGame::dataLanguage | ( | ) | const |
Get the data language for the kvtml and other strings.
|
signal |
Signal the ui that the data language has changed.
int KanagramGame::dataLanguageSelectedIndex | ( | ) | const |
Get the selected index of the data language in the language list.
Definition at line 338 of file kanagramgame.cpp.
QString KanagramGame::documentTitle | ( | ) | const |
Get the current vocabulary file's title.
Definition at line 286 of file kanagramgame.cpp.
|
signal |
Signal the ui that a there's a file error of some kind.
QString KanagramGame::filename | ( | ) | const |
Get the current vocabulary file's filename.
Definition at line 237 of file kanagramgame.cpp.
QString KanagramGame::hint | ( | ) | const |
Get this anagram's hint.
Definition at line 247 of file kanagramgame.cpp.
QStringList KanagramGame::languageNames | ( | ) |
Return the language names found available in the system.
Definition at line 296 of file kanagramgame.cpp.
|
slot |
Load the default vocabulary file.
- Todo:
- open returns KEduVocDocument::ErrorCode
Definition at line 85 of file kanagramgame.cpp.
|
slot |
Set the index to the next word.
Definition at line 181 of file kanagramgame.cpp.
|
slot |
Use the next vocabulary file in the list.
- Todo:
- open returns KEduVocDocument::ErrorCode
Definition at line 162 of file kanagramgame.cpp.
KUrl KanagramGame::picHint | ( | ) |
Get this anagram's picture hint URL.
Definition at line 361 of file kanagramgame.cpp.
|
slot |
Use the previous vocabulary file in the list.
- Todo:
- open returns KEduVocDocument::ErrorCode
Definition at line 146 of file kanagramgame.cpp.
|
slot |
Refresh the list of vocabulary files available from what we find on disk.
- Returns
- true if the current vocabulary has changed so the ui can refresh
Definition at line 105 of file kanagramgame.cpp.
|
slot |
Restore the word, set the anagram to the answer.
Definition at line 257 of file kanagramgame.cpp.
QString KanagramGame::sanitizedDataLanguage | ( | ) | const |
Get the sanitized data language used.
Definition at line 68 of file kanagramgame.cpp.
|
slot |
Set the index of the current category in the list as the current active one.
Definition at line 351 of file kanagramgame.cpp.
void KanagramGame::setDataLanguage | ( | const QString & | dataLanguage | ) |
Set the data language for the kvtml and other strings.
Definition at line 332 of file kanagramgame.cpp.
|
slot |
Set the vocabulary to use according to the vocabulary name.
Definition at line 120 of file kanagramgame.cpp.
|
slot |
Set the vocabulary to use according to the desired index value.
- Todo:
- open returns KEduVocDocument::ErrorCode
Definition at line 125 of file kanagramgame.cpp.
QStringList KanagramGame::vocabularyList | ( | ) | const |
Get the list of vocabularies.
Definition at line 115 of file kanagramgame.cpp.
QString KanagramGame::word | ( | ) | const |
Get this anagram's answer.
Definition at line 252 of file kanagramgame.cpp.
Property Documentation
|
readwrite |
Definition at line 44 of file kanagramgame.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.