• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kanagram

  • sources
  • kde-4.14
  • kdeedu
  • kanagram
  • src
kanagramsettings.h
Go to the documentation of this file.
1 // This file is generated by kconfig_compiler from kanagram.kcfg.
2 // All changes you do to this file will be lost.
3 #ifndef KANAGRAMSETTINGS_H
4 #define KANAGRAMSETTINGS_H
5 
6 #include "kanagram_engine_export.h"
7 
8 #include <kcoreconfigskeleton.h>
9 #include <kdebug.h>
10 
11 class KANAGRAM_ENGINE_EXPORT KanagramSettings : public KCoreConfigSkeleton
12 {
13  public:
14 
15  static KanagramSettings *self();
16  ~KanagramSettings();
17 
21  static
22  void setCurrentCategory( int v )
23  {
24  if (!self()->isImmutable( QString::fromLatin1( "currentCategory" ) ))
25  self()->mCurrentCategory = v;
26  }
27 
31  static
32  int currentCategory()
33  {
34  return self()->mCurrentCategory;
35  }
36 
40  static
41  void setHintHideTime( const QString & v )
42  {
43  if (!self()->isImmutable( QString::fromLatin1( "hintHideTime" ) ))
44  self()->mHintHideTime = v;
45  }
46 
50  static
51  QString hintHideTime()
52  {
53  return self()->mHintHideTime;
54  }
55 
59  static
60  void setResolveTime( const QString & v )
61  {
62  if (!self()->isImmutable( QString::fromLatin1( "resolveTime" ) ))
63  self()->mResolveTime = v;
64  }
65 
69  static
70  QString resolveTime()
71  {
72  return self()->mResolveTime;
73  }
74 
78  static
79  void setScoreTime( const QString & v )
80  {
81  if (!self()->isImmutable( QString::fromLatin1( "scoreTime" ) ))
82  self()->mScoreTime = v;
83  }
84 
88  static
89  QString scoreTime()
90  {
91  return self()->mScoreTime;
92  }
93 
97  static
98  void setCorrectAnswerScore( const QString & v )
99  {
100  if (!self()->isImmutable( QString::fromLatin1( "correctAnswerScore" ) ))
101  self()->mCorrectAnswerScore = v;
102  }
103 
107  static
108  QString correctAnswerScore()
109  {
110  return self()->mCorrectAnswerScore;
111  }
112 
116  static
117  void setIncorrectAnswerScore( const QString & v )
118  {
119  if (!self()->isImmutable( QString::fromLatin1( "incorrectAnswerScore" ) ))
120  self()->mIncorrectAnswerScore = v;
121  }
122 
126  static
127  QString incorrectAnswerScore()
128  {
129  return self()->mIncorrectAnswerScore;
130  }
131 
135  static
136  void setRevealAnswerScore( const QString & v )
137  {
138  if (!self()->isImmutable( QString::fromLatin1( "revealAnswerScore" ) ))
139  self()->mRevealAnswerScore = v;
140  }
141 
145  static
146  QString revealAnswerScore()
147  {
148  return self()->mRevealAnswerScore;
149  }
150 
154  static
155  void setSkippedWordScore( const QString & v )
156  {
157  if (!self()->isImmutable( QString::fromLatin1( "skippedWordScore" ) ))
158  self()->mSkippedWordScore = v;
159  }
160 
164  static
165  QString skippedWordScore()
166  {
167  return self()->mSkippedWordScore;
168  }
169 
173  static
174  void setUseSounds( bool v )
175  {
176  if (!self()->isImmutable( QString::fromLatin1( "useSounds" ) ))
177  self()->mUseSounds = v;
178  }
179 
183  static
184  bool useSounds()
185  {
186  return self()->mUseSounds;
187  }
188 
192  static
193  void setUppercaseOnly( bool v )
194  {
195  if (!self()->isImmutable( QString::fromLatin1( "uppercaseOnly" ) ))
196  self()->mUppercaseOnly = v;
197  }
198 
202  static
203  bool uppercaseOnly()
204  {
205  return self()->mUppercaseOnly;
206  }
207 
211  static
212  void setEnablePronunciation( bool v )
213  {
214  if (!self()->isImmutable( QString::fromLatin1( "enablePronunciation" ) ))
215  self()->mEnablePronunciation = v;
216  }
217 
221  static
222  bool enablePronunciation()
223  {
224  return self()->mEnablePronunciation;
225  }
226 
230  static
231  void setDefaultVocabulary( const QString & v )
232  {
233  if (!self()->isImmutable( QString::fromLatin1( "defaultVocabulary" ) ))
234  self()->mDefaultVocabulary = v;
235  }
236 
240  static
241  QString defaultVocabulary()
242  {
243  return self()->mDefaultVocabulary;
244  }
245 
249  static
250  void setDataLanguage( const QString & v )
251  {
252  if (!self()->isImmutable( QString::fromLatin1( "dataLanguage" ) ))
253  self()->mDataLanguage = v;
254  }
255 
259  static
260  QString dataLanguage()
261  {
262  return self()->mDataLanguage;
263  }
264 
265  protected:
266  KanagramSettings();
267  friend class KanagramSettingsHelper;
268 
269 
270  // kanagram
271  int mCurrentCategory;
272  QString mHintHideTime;
273  QString mResolveTime;
274  QString mScoreTime;
275  QString mCorrectAnswerScore;
276  QString mIncorrectAnswerScore;
277  QString mRevealAnswerScore;
278  QString mSkippedWordScore;
279  bool mUseSounds;
280  bool mUppercaseOnly;
281  bool mEnablePronunciation;
282  QString mDefaultVocabulary;
283  QString mDataLanguage;
284 
285  private:
286 };
287 
288 #endif
289 
KanagramSettings::mIncorrectAnswerScore
QString mIncorrectAnswerScore
Definition: kanagramsettings.h:276
KanagramSettings::mDefaultVocabulary
QString mDefaultVocabulary
Definition: kanagramsettings.h:282
KanagramSettings::uppercaseOnly
static bool uppercaseOnly()
Get Use uppercase.
Definition: kanagramsettings.h:203
KanagramSettings::enablePronunciation
static bool enablePronunciation()
Get Turns pronunciations on/off.
Definition: kanagramsettings.h:222
KanagramSettings::mRevealAnswerScore
QString mRevealAnswerScore
Definition: kanagramsettings.h:277
KANAGRAM_ENGINE_EXPORT
#define KANAGRAM_ENGINE_EXPORT
Definition: kanagram_engine_export.h:29
KanagramSettings::resolveTime
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
KanagramSettings::setUppercaseOnly
static void setUppercaseOnly(bool v)
Set Use uppercase.
Definition: kanagramsettings.h:193
KanagramSettings::scoreTime
static QString scoreTime()
Get This setting allows you to set in seconds the time interval of the score timer.
Definition: kanagramsettings.h:89
KanagramSettings::mScoreTime
QString mScoreTime
Definition: kanagramsettings.h:274
KanagramSettings::mResolveTime
QString mResolveTime
Definition: kanagramsettings.h:273
KanagramSettings::setUseSounds
static void setUseSounds(bool v)
Set Turns sounds on/off.
Definition: kanagramsettings.h:174
KanagramSettings::setHintHideTime
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
KanagramSettings::useSounds
static bool useSounds()
Get Turns sounds on/off.
Definition: kanagramsettings.h:184
KanagramSettings::setCurrentCategory
static void setCurrentCategory(int v)
Set This setting stores the currently selected Category.
Definition: kanagramsettings.h:22
KanagramSettings::setSkippedWordScore
static void setSkippedWordScore(const QString &v)
Set This setting allows you to set the score associated with a skipped word.
Definition: kanagramsettings.h:155
KanagramSettings::mSkippedWordScore
QString mSkippedWordScore
Definition: kanagramsettings.h:278
KanagramSettings::setIncorrectAnswerScore
static void setIncorrectAnswerScore(const QString &v)
Set This setting allows you to set the score associated with an incorrect answer. ...
Definition: kanagramsettings.h:117
KCoreConfigSkeleton
KanagramSettings::mDataLanguage
QString mDataLanguage
Definition: kanagramsettings.h:283
KanagramSettings::currentCategory
static int currentCategory()
Get This setting stores the currently selected Category.
Definition: kanagramsettings.h:32
KanagramSettings::setDataLanguage
static void setDataLanguage(const QString &v)
Set Set the default translation.
Definition: kanagramsettings.h:250
QString
KanagramSettings::incorrectAnswerScore
static QString incorrectAnswerScore()
Get This setting allows you to set the score associated with an incorrect answer. ...
Definition: kanagramsettings.h:127
KanagramSettings::mEnablePronunciation
bool mEnablePronunciation
Definition: kanagramsettings.h:281
KanagramSettings::revealAnswerScore
static QString revealAnswerScore()
Get This setting allows you to set the score associated with reveal answer.
Definition: kanagramsettings.h:146
KanagramSettings::mHintHideTime
QString mHintHideTime
Definition: kanagramsettings.h:272
KanagramSettings::setScoreTime
static void setScoreTime(const QString &v)
Set This setting allows you to set in seconds the time interval of the score timer.
Definition: kanagramsettings.h:79
KanagramSettings::setRevealAnswerScore
static void setRevealAnswerScore(const QString &v)
Set This setting allows you to set the score associated with reveal answer.
Definition: kanagramsettings.h:136
kanagram_engine_export.h
KanagramSettings
Definition: kanagramsettings.h:11
KanagramSettings::setEnablePronunciation
static void setEnablePronunciation(bool v)
Set Turns pronunciations on/off.
Definition: kanagramsettings.h:212
KanagramSettings::setCorrectAnswerScore
static void setCorrectAnswerScore(const QString &v)
Set This setting allows you to set the score associated with a correct answer.
Definition: kanagramsettings.h:98
KanagramSettings::skippedWordScore
static QString skippedWordScore()
Get This setting allows you to set the score associated with a skipped word.
Definition: kanagramsettings.h:165
KanagramSettings::mCorrectAnswerScore
QString mCorrectAnswerScore
Definition: kanagramsettings.h:275
QString::fromLatin1
QString fromLatin1(const char *str, int size)
KanagramSettings::mUseSounds
bool mUseSounds
Definition: kanagramsettings.h:279
KanagramSettings::dataLanguage
static QString dataLanguage()
Get Set the default translation.
Definition: kanagramsettings.h:260
KanagramSettings::mCurrentCategory
int mCurrentCategory
Definition: kanagramsettings.h:271
KanagramSettings::correctAnswerScore
static QString correctAnswerScore()
Get This setting allows you to set the score associated with a correct answer.
Definition: kanagramsettings.h:108
KanagramSettings::mUppercaseOnly
bool mUppercaseOnly
Definition: kanagramsettings.h:280
KanagramSettings::defaultVocabulary
static QString defaultVocabulary()
Get Set the default vocabulary.
Definition: kanagramsettings.h:241
KanagramSettings::setDefaultVocabulary
static void setDefaultVocabulary(const QString &v)
Set Set the default vocabulary.
Definition: kanagramsettings.h:231
KanagramSettings::hintHideTime
static QString hintHideTime()
Get This setting allows you to set in seconds how long Kanagram's hint bubble is shown.
Definition: kanagramsettings.h:51
KanagramSettings::setResolveTime
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
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

KDE's Doxygen guidelines are available online.

kanagram

Skip menu "kanagram"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal