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

kmahjongg

  • sources
  • kde-4.14
  • kdegames
  • kmahjongg
prefs.h
Go to the documentation of this file.
1 // This file is generated by kconfig_compiler from kmahjongg.kcfg.
2 // All changes you do to this file will be lost.
3 #ifndef PREFS_H
4 #define PREFS_H
5 
6 #include <kconfigskeleton.h>
7 #include <kdebug.h>
8 
9 class Prefs : public KConfigSkeleton
10 {
11  public:
12 
13  static Prefs *self();
14  ~Prefs();
15 
19  static
20  void setTileSet( const QString & v )
21  {
22  if (!self()->isImmutable( QString::fromLatin1( "TileSet" ) ))
23  self()->mTileSet = v;
24  }
25 
29  static
30  QString tileSet()
31  {
32  return self()->mTileSet;
33  }
34 
38  static
39  void setBackground( const QString & v )
40  {
41  if (!self()->isImmutable( QString::fromLatin1( "Background" ) ))
42  self()->mBackground = v;
43  }
44 
48  static
49  QString background()
50  {
51  return self()->mBackground;
52  }
53 
57  static
58  void setLayout( const QString & v )
59  {
60  if (!self()->isImmutable( QString::fromLatin1( "Layout" ) ))
61  self()->mLayout = v;
62  }
63 
67  static
68  QString layout()
69  {
70  return self()->mLayout;
71  }
72 
76  static
77  void setAngle( int v )
78  {
79  if (!self()->isImmutable( QString::fromLatin1( "Angle" ) ))
80  self()->mAngle = v;
81  }
82 
86  static
87  int angle()
88  {
89  return self()->mAngle;
90  }
91 
95  static
96  void setRandomLayout( bool v )
97  {
98  if (!self()->isImmutable( QString::fromLatin1( "RandomLayout" ) ))
99  self()->mRandomLayout = v;
100  }
101 
105  static
106  bool randomLayout()
107  {
108  return self()->mRandomLayout;
109  }
110 
114  static
115  void setSolvableGames( bool v )
116  {
117  if (!self()->isImmutable( QString::fromLatin1( "SolvableGames" ) ))
118  self()->mSolvableGames = v;
119  }
120 
124  static
125  bool solvableGames()
126  {
127  return self()->mSolvableGames;
128  }
129 
133  static
134  void setShowMatchingTiles( bool v )
135  {
136  if (!self()->isImmutable( QString::fromLatin1( "ShowMatchingTiles" ) ))
137  self()->mShowMatchingTiles = v;
138  }
139 
143  static
144  bool showMatchingTiles()
145  {
146  return self()->mShowMatchingTiles;
147  }
148 
152  static
153  void setEditorGeometry( const QRect & v )
154  {
155  if (!self()->isImmutable( QString::fromLatin1( "EditorGeometry" ) ))
156  self()->mEditorGeometry = v;
157  }
158 
162  static
163  QRect editorGeometry()
164  {
165  return self()->mEditorGeometry;
166  }
167 
168  protected:
169  Prefs();
170  friend class PrefsHelper;
171 
172 
173  // General
174  QString mTileSet;
175  QString mBackground;
176  QString mLayout;
177  int mAngle;
178  bool mRandomLayout;
179  bool mSolvableGames;
180  bool mShowMatchingTiles;
181  QRect mEditorGeometry;
182 
183  private:
184 };
185 
186 #endif
187 
Prefs::showMatchingTiles
static bool showMatchingTiles()
Get Whether matching tiles are shown.
Definition: prefs.h:144
Prefs::setBackground
static void setBackground(const QString &v)
Set The background to use.
Definition: prefs.h:39
Prefs::mShowMatchingTiles
bool mShowMatchingTiles
Definition: prefs.h:180
Prefs::setSolvableGames
static void setSolvableGames(bool v)
Set Whether all games should be solvable.
Definition: prefs.h:115
Prefs
Definition: prefs.h:9
KConfigSkeleton
Prefs::mBackground
QString mBackground
Definition: prefs.h:175
Prefs::mEditorGeometry
QRect mEditorGeometry
Definition: prefs.h:181
QRect
Prefs::randomLayout
static bool randomLayout()
Get Whether a random layout is chosen on startup.
Definition: prefs.h:106
Prefs::PrefsHelper
friend class PrefsHelper
Definition: prefs.h:170
Prefs::mAngle
int mAngle
Definition: prefs.h:177
Prefs::setTileSet
static void setTileSet(const QString &v)
Set The tile-set to use.
Definition: prefs.h:20
Prefs::solvableGames
static bool solvableGames()
Get Whether all games should be solvable.
Definition: prefs.h:125
Prefs::mRandomLayout
bool mRandomLayout
Definition: prefs.h:178
QString
Prefs::setLayout
static void setLayout(const QString &v)
Set The layout of the tiles.
Definition: prefs.h:58
Prefs::setAngle
static void setAngle(int v)
Set Angle.
Definition: prefs.h:77
Prefs::setEditorGeometry
static void setEditorGeometry(const QRect &v)
Set EditorGeometry.
Definition: prefs.h:153
Prefs::tileSet
static QString tileSet()
Get The tile-set to use.
Definition: prefs.h:30
Prefs::Prefs
Prefs()
Definition: prefs.cpp:27
Prefs::mSolvableGames
bool mSolvableGames
Definition: prefs.h:179
Prefs::editorGeometry
static QRect editorGeometry()
Get EditorGeometry.
Definition: prefs.h:163
Prefs::angle
static int angle()
Get Angle.
Definition: prefs.h:87
Prefs::~Prefs
~Prefs()
Definition: prefs.cpp:60
Prefs::mLayout
QString mLayout
Definition: prefs.h:176
Prefs::mTileSet
QString mTileSet
Definition: prefs.h:174
QString::fromLatin1
QString fromLatin1(const char *str, int size)
Prefs::setShowMatchingTiles
static void setShowMatchingTiles(bool v)
Set Whether matching tiles are shown.
Definition: prefs.h:134
Prefs::background
static QString background()
Get The background to use.
Definition: prefs.h:49
Prefs::setRandomLayout
static void setRandomLayout(bool v)
Set Whether a random layout is chosen on startup.
Definition: prefs.h:96
Prefs::layout
static QString layout()
Get The layout of the tiles.
Definition: prefs.h:68
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmahjongg

Skip menu "kmahjongg"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

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