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);
void clear()
QString & append(QChar ch)
iterator insert(const Key &key, const T &value)
QString toUpper() const
Q_INVOKABLE int dataLanguageSelectedIndex() const
Get the selected index of the data language in the language list.
Definition: kanagramgame.cpp:338
const Key key(const T &value) const
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:296
const T & at(int i) const
int size() const
bool contains(const QString &str, Qt::CaseSensitivity cs) const
bool refreshVocabularyList()
Refresh the list of vocabulary files available from what we find on disk.
Definition: kanagramgame.cpp:105
bool exists() const
Q_INVOKABLE void setDataLanguage(const QString &dataLanguage)
Set the data language for the kvtml and other strings.
Definition: kanagramgame.cpp:332
QString & remove(int position, int n)
void setCurrentCategory(int index)
Set the index of the current category in the list as the current active one.
Definition: kanagramgame.cpp:351
static void setCurrentCategory(int v)
Set This setting stores the currently selected Category.
Definition: kanagramsettings.h:22
int size() const
void clear()
QString sanitizedDataLanguage() const
Get the sanitized data language used.
Definition: kanagramgame.cpp:68
int count(const T &value) const
void append(const T &value)
bool empty() const
void previousVocabulary()
Use the previous vocabulary file in the list.
Definition: kanagramgame.cpp:146
bool isEmpty() const
bool isEmpty() const
static int currentCategory()
Get This setting stores the currently selected Category.
Definition: kanagramsettings.h:32
static void setDataLanguage(const QString &v)
Set Set the default translation.
Definition: kanagramsettings.h:250
static const KCatalogLoader engineCatalogLoader("kanagram-engine")
T & first()
QString toLower() const
bool exists() const
void dataLanguageChanged()
Signal the ui that the data language has changed.
int count() const
const QChar at(int position) const
void fileError(const QString &filename)
Signal the ui that a there's a file error of some kind.
QList< T > values() const
Q_INVOKABLE int currentCategory() const
Get the index of the current category in the list.
Definition: kanagramgame.cpp:346
int indexOf(const QRegExp &rx, int from) const
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:286
QString filename() const
Get the current vocabulary file's filename.
Definition: kanagramgame.cpp:237
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:241
This file is part of the KDE documentation.
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
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.