kanagram
kanagramgame.cpp
Go to the documentation of this file.
195 KEduVocTranslation *translation = m_document->lesson()->entries(KEduVocLesson::Recursive).at(randomWordIndex)->translation(0);
201 translation = m_document->lesson()->entries(KEduVocLesson::Recursive).at(randomWordIndex)->translation(0);
Q_INVOKABLE int dataLanguageSelectedIndex() const
Get the selected index of the data language in the language list.
Definition: kanagramgame.cpp:323
Q_INVOKABLE QStringList vocabularyList() const
Get the list of vocabularies.
Definition: kanagramgame.cpp:115
Q_INVOKABLE QStringList languageNames()
Return the language names found available in the system.
Definition: kanagramgame.cpp:281
bool refreshVocabularyList()
Refresh the list of vocabulary files available from what we find on disk.
Definition: kanagramgame.cpp:105
Q_INVOKABLE void setDataLanguage(const QString &dataLanguage)
Set the data language for the kvtml and other strings.
Definition: kanagramgame.cpp:317
void setCurrentCategory(int index)
Set the index of the current category in the list as the current active one.
Definition: kanagramgame.cpp:336
static void setCurrentCategory(int v)
Set This settings stores the currently selected Category.
Definition: kanagramsettings.h:22
QString sanitizedDataLanguage() const
Get the sanitized data language used.
Definition: kanagramgame.cpp:68
void previousVocabulary()
Use the previous vocabulary file in the list.
Definition: kanagramgame.cpp:146
static int currentCategory()
Get This settings stores the currently selected Category.
Definition: kanagramsettings.h:32
static void setDataLanguage(const QString &v)
Set Set the default translation.
Definition: kanagramsettings.h:117
static const KCatalogLoader engineCatalogLoader("kanagram-engine")
void dataLanguageChanged()
Signal the ui that the data language has changed.
void fileError(const QString &filename)
Signal the ui that a there's a file error of some kind.
Q_INVOKABLE int currentCategory() const
Get the index of the current category in the list.
Definition: kanagramgame.cpp:331
Q_INVOKABLE QString dataLanguage() const
Get the data language for the kvtml and other strings.
QString documentTitle() const
Get the current vocabulary file's title.
Definition: kanagramgame.cpp:271
QString filename() const
Get the current vocabulary file's filename.
Definition: kanagramgame.cpp:227
void useVocabulary(const QString &vocabularyname)
Set the vocabulary to use according to the vocabulary name.
Definition: kanagramgame.cpp:120
static QString defaultVocabulary()
Get Set the default vocabulary.
Definition: kanagramsettings.h:108
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
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.