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

kblackbox

  • sources
  • kde-4.14
  • kdegames
  • kblackbox
kbbprefs.h
Go to the documentation of this file.
1 // This file is generated by kconfig_compiler from kblackbox.kcfg.
2 // All changes you do to this file will be lost.
3 #ifndef KBBPREFS_H
4 #define KBBPREFS_H
5 
6 #include <kconfigskeleton.h>
7 #include <kdebug.h>
8 
9 class KBBPrefs : public KConfigSkeleton
10 {
11  public:
12 
13  static KBBPrefs *self();
14  ~KBBPrefs();
15 
19  static
20  void setTheme( const QString & v )
21  {
22  if (!self()->isImmutable( QString::fromLatin1( "theme" ) ))
23  self()->mTheme = v;
24  }
25 
29  static
30  QString theme()
31  {
32  return self()->mTheme;
33  }
34 
38  static
39  void setBalls( int v )
40  {
41  if (!self()->isImmutable( QString::fromLatin1( "balls" ) ))
42  self()->mBalls = v;
43  }
44 
48  static
49  int balls()
50  {
51  return self()->mBalls;
52  }
53 
57  static
58  void setColumns( int v )
59  {
60  if (!self()->isImmutable( QString::fromLatin1( "columns" ) ))
61  self()->mColumns = v;
62  }
63 
67  static
68  int columns()
69  {
70  return self()->mColumns;
71  }
72 
76  static
77  void setRows( int v )
78  {
79  if (!self()->isImmutable( QString::fromLatin1( "rows" ) ))
80  self()->mRows = v;
81  }
82 
86  static
87  int rows()
88  {
89  return self()->mRows;
90  }
91 
92  protected:
93  KBBPrefs();
94  friend class KBBPrefsHelper;
95 
96 
97  // KBlackBox Setup
98  QString mTheme;
99  int mBalls;
100  int mColumns;
101  int mRows;
102 
103  private:
104 };
105 
106 #endif
107 
KBBPrefs::setTheme
static void setTheme(const QString &v)
Set File of the current theme of the graphic elements.
Definition: kbbprefs.h:20
KBBPrefs::setRows
static void setRows(int v)
Set Number of rows of the board for custom difficuty level.
Definition: kbbprefs.h:77
KConfigSkeleton
KBBPrefs::KBBPrefs
KBBPrefs()
Definition: kbbprefs.cpp:29
KBBPrefs::setBalls
static void setBalls(int v)
Set Number of balls for custom difficulty level.
Definition: kbbprefs.h:39
KBBPrefs
Definition: kbbprefs.h:9
KBBPrefs::balls
static int balls()
Get Number of balls for custom difficulty level.
Definition: kbbprefs.h:49
KBBPrefs::columns
static int columns()
Get Number of columns of the board for custom difficulty level.
Definition: kbbprefs.h:68
KBBPrefs::~KBBPrefs
~KBBPrefs()
Definition: kbbprefs.cpp:54
QString
KBBPrefs::mTheme
QString mTheme
Definition: kbbprefs.h:98
KBBPrefs::mRows
int mRows
Definition: kbbprefs.h:101
KBBPrefs::mBalls
int mBalls
Definition: kbbprefs.h:99
KBBPrefs::KBBPrefsHelper
friend class KBBPrefsHelper
Definition: kbbprefs.h:94
KBBPrefs::theme
static QString theme()
Get File of the current theme of the graphic elements.
Definition: kbbprefs.h:30
KBBPrefs::mColumns
int mColumns
Definition: kbbprefs.h:100
KBBPrefs::rows
static int rows()
Get Number of rows of the board for custom difficuty level.
Definition: kbbprefs.h:87
QString::fromLatin1
QString fromLatin1(const char *str, int size)
KBBPrefs::setColumns
static void setColumns(int v)
Set Number of columns of the board for custom difficulty level.
Definition: kbbprefs.h:58
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kblackbox

Skip menu "kblackbox"
  • 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