kanagram
kanagramenginehelper.cpp
Go to the documentation of this file.
390 m_configDialog->addPage(mainSettingsPage , i18nc("@title:group main settings page name", "General" ), "preferences-other" );
471 QDBusReply<bool> reply = QDBusConnection::sessionBus().interface()->isServiceRegistered( "org.kde.kttsd" );
480 QMessageBox::warning(NULL, i18n("Speech System Failure"), i18n( "Starting Jovie Text-to-Speech service Failed: %1", error ) );
490 m_kspeech = new org::kde::KSpeech( "org.kde.kttsd", "/KSpeech", QDBusConnection::sessionBus() );
static bool enablePronunciation()
Get Turns pronunciations on/off.
Definition: kanagramsettings.h:222
~KanagramEngineHelper()
Definition: kanagramenginehelper.cpp:65
void clear()
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
QString & append(QChar ch)
Q_INVOKABLE void kanagramHandbook()
Definition: kanagramenginehelper.cpp:463
Q_INVOKABLE int hintHideTime()
Definition: kanagramenginehelper.cpp:522
void play(const QString &filename)
Definition: kanagramenginehelper.cpp:342
Q_INVOKABLE bool compareWords() const
Definition: kanagramenginehelper.cpp:374
void play()
QDBusConnectionInterface * interface() const
static QString resolveTime()
Get This setting allows you to set in seconds how much time is available for resolving the anagram...
Definition: kanagramsettings.h:70
bool isDigit() const
int size() const
Q_INVOKABLE QString categoryName() const
Definition: kanagramenginehelper.cpp:133
Q_INVOKABLE int totalScore()
Definition: kanagramenginehelper.cpp:416
bool contains(const QString &str, Qt::CaseSensitivity cs) const
int getNumericSetting(QString settingString)
Definition: kanagramenginehelper.cpp:222
bool refreshVocabularyList()
Refresh the list of vocabulary files available from what we find on disk.
Definition: kanagramgame.cpp:105
int digitValue() const
bool isValid() const
KanagramEngineHelper(KanagramGame *kanagramGame, QObject *parent=0)
Definition: kanagramenginehelper.cpp:48
static QString scoreTime()
Get This setting allows you to set in seconds the time interval of the score timer.
Definition: kanagramsettings.h:89
QDBusConnection sessionBus()
Q_INVOKABLE void resetTotalScore()
Definition: kanagramenginehelper.cpp:406
QString stripAccents(QString &original)
Definition: kanagramenginehelper.cpp:362
QString join(const QString &separator) const
QString & remove(int position, int n)
MediaObject * createPlayer(Phonon::Category category, const MediaSource &source)
Q_INVOKABLE QString createNextAnagram()
Definition: kanagramenginehelper.cpp:74
QDBusReply< bool > isServiceRegistered(const QString &serviceName) const
void refreshView()
reload the list of vocabularies from what's on disk
Definition: vocabsettings.cpp:53
static void setHintHideTime(const QString &v)
Set This setting allows you to set in seconds how long Kanagram's hint bubble is shown.
Definition: kanagramsettings.h:41
int size() const
QString normalized(NormalizationForm mode) const
Q_INVOKABLE QString anagramOriginalWord()
Definition: kanagramenginehelper.cpp:112
Q_INVOKABLE QString previousVocabulary()
Definition: kanagramenginehelper.cpp:149
QString sanitizedDataLanguage() const
Get the sanitized data language used.
Definition: kanagramgame.cpp:68
Q_INVOKABLE int correctAnswerScore()
Definition: kanagramenginehelper.cpp:421
QString number(int n, int base)
void append(const T &value)
Q_INVOKABLE int incorrectAnswerScore()
Definition: kanagramenginehelper.cpp:429
Q_INVOKABLE bool checkWord(QString answer)
Definition: kanagramenginehelper.cpp:160
Q_INVOKABLE QString showHint() const
Definition: kanagramenginehelper.cpp:127
Q_INVOKABLE void reloadSettings()
Definition: kanagramenginehelper.cpp:336
Type value() const
void previousVocabulary()
Use the previous vocabulary file in the list.
Definition: kanagramgame.cpp:146
int toInt(bool *ok, int base) const
bool isEmpty() const
QString trimmed() const
Q_INVOKABLE void slotSettingsCancelled()
Definition: kanagramenginehelper.cpp:513
static void setDataLanguage(const QString &v)
Set Set the default translation.
Definition: kanagramsettings.h:250
void setUseSounds(bool useSounds)
Definition: kanagramenginehelper.cpp:563
void setHintHideTime(int hintHideTime)
Definition: kanagramenginehelper.cpp:533
static QString incorrectAnswerScore()
Get This setting allows you to set the score associated with an incorrect answer. ...
Definition: kanagramsettings.h:127
static QString revealAnswerScore()
Get This setting allows you to set the score associated with reveal answer.
Definition: kanagramsettings.h:146
Q_INVOKABLE int revealAnswerScore()
Definition: kanagramenginehelper.cpp:437
QString defaultVocabulary()
Definition: kanagramenginehelper.cpp:569
QString toLower() const
void setCurrentSource(const MediaSource &source)
Q_INVOKABLE void increaseScore(int points)
Definition: kanagramenginehelper.cpp:411
void setDefaultVocabulary(const QString &defaultVocabulary)
Definition: kanagramenginehelper.cpp:574
Q_INVOKABLE QString nextVocabulary()
Definition: kanagramenginehelper.cpp:139
Q_INVOKABLE QStringList insertInCurrentOriginalWord(int index, const QString &letter)
Definition: kanagramenginehelper.cpp:86
void defaultVocabularyChanged()
const QChar at(int position) const
void refreshVocabularies()
Definition: kanagramenginehelper.cpp:315
void hintHideTimeChanged()
int length() const
static QString skippedWordScore()
Get This setting allows you to set the score associated with a skipped word.
Definition: kanagramsettings.h:165
QString left(int n) const
Q_INVOKABLE void slotEnableApplyButton()
Definition: kanagramenginehelper.cpp:517
StandardButton warning(QWidget *parent, const QString &title, const QString &text, QFlags< QMessageBox::StandardButton > buttons, StandardButton defaultButton)
Q_INVOKABLE void slotShowSettings()
invoke the settings dialog
Definition: kanagramenginehelper.cpp:379
Q_INVOKABLE int skippedWordScore()
Definition: kanagramenginehelper.cpp:445
Q_INVOKABLE void aboutKanagram()
Definition: kanagramenginehelper.cpp:453
void useSoundsToggled()
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
Q_INVOKABLE QStringList removeInCurrentOriginalWord(int index)
Definition: kanagramenginehelper.cpp:105
user preferences page of the config dialog allows choosing a hint hide time, the language, and the sound settings
Definition: mainsettings.h:33
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
static QString correctAnswerScore()
Get This setting allows you to set the score associated with a correct answer.
Definition: kanagramsettings.h:108
bool isAnagram(QString &enteredword, QString &word)
Definition: kanagramenginehelper.cpp:196
void resolveTimeChanged()
void setResolveTime(int resolveTime)
Definition: kanagramenginehelper.cpp:544
Q_INVOKABLE void slotSaveSettings()
Definition: kanagramenginehelper.cpp:508
static QString defaultVocabulary()
Get Set the default vocabulary.
Definition: kanagramsettings.h:241
static void setDefaultVocabulary(const QString &v)
Set Set the default vocabulary.
Definition: kanagramsettings.h:231
static QString hintHideTime()
Get This setting allows you to set in seconds how long Kanagram's hint bubble is shown.
Definition: kanagramsettings.h:51
static void setResolveTime(const QString &v)
Set This setting allows you to set in seconds how much time is available for resolving the anagram...
Definition: kanagramsettings.h:60
void replace(int i, const T &value)
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.