• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

ksquares

Settings Class Reference

#include <settings.h>

Inheritance diagram for Settings:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 9 of file settings.h.


Public Member Functions

 ~Settings ()

Static Public Member Functions

static Settings * self ()
static void setNumOfPlayers (int v)
static int numOfPlayers ()
static void setPlayerNames (const QStringList &v)
static QStringList playerNames ()
static void setHumanList (const QList< int > &v)
static QList< int > humanList ()
static void setBoardWidth (int v)
static int boardWidth ()
static void setBoardHeight (int v)
static int boardHeight ()
static void setQuickStart (int v)
static int quickStart ()
static void setDifficulty (int v)
static int difficulty ()
static void setLineColor (const QColor &v)
static QColor lineColor ()
static void setIndicatorLineColor (const QColor &v)
static QColor indicatorLineColor ()

Protected Member Functions

 Settings ()

Protected Attributes

int mNumOfPlayers
QStringList mPlayerNames
QList< int > mHumanList
int mBoardWidth
int mBoardHeight
int mQuickStart
int mDifficulty
QColor mLineColor
QColor mIndicatorLineColor

Friends

class SettingsHelper

Constructor & Destructor Documentation

Settings::~Settings (  ) 

Definition at line 75 of file settings.cpp.

Settings::Settings (  )  [protected]

Definition at line 27 of file settings.cpp.


Member Function Documentation

Settings * Settings::self (  )  [static]

Definition at line 17 of file settings.cpp.

static void Settings::setNumOfPlayers ( int  v  )  [inline, static]

Set Number of Players.

Definition at line 20 of file settings.h.

static int Settings::numOfPlayers (  )  [inline, static]

Get Number of Players.

Definition at line 30 of file settings.h.

static void Settings::setPlayerNames ( const QStringList &  v  )  [inline, static]

Set Player Names.

Definition at line 39 of file settings.h.

static QStringList Settings::playerNames (  )  [inline, static]

Get Player Names.

Definition at line 49 of file settings.h.

static void Settings::setHumanList ( const QList< int > &  v  )  [inline, static]

Set Human or AI.

Definition at line 58 of file settings.h.

static QList<int> Settings::humanList (  )  [inline, static]

Get Human or AI.

Definition at line 68 of file settings.h.

static void Settings::setBoardWidth ( int  v  )  [inline, static]

Set Width of board.

Definition at line 77 of file settings.h.

static int Settings::boardWidth (  )  [inline, static]

Get Width of board.

Definition at line 87 of file settings.h.

static void Settings::setBoardHeight ( int  v  )  [inline, static]

Set Height of board.

Definition at line 96 of file settings.h.

static int Settings::boardHeight (  )  [inline, static]

Get Height of board.

Definition at line 106 of file settings.h.

static void Settings::setQuickStart ( int  v  )  [inline, static]

Set Quick start the game.

Definition at line 115 of file settings.h.

static int Settings::quickStart (  )  [inline, static]

Get Quick start the game.

Definition at line 125 of file settings.h.

static void Settings::setDifficulty ( int  v  )  [inline, static]

Set Difficulty.

Definition at line 134 of file settings.h.

static int Settings::difficulty (  )  [inline, static]

Get Difficulty.

Definition at line 144 of file settings.h.

static void Settings::setLineColor ( const QColor &  v  )  [inline, static]

Set Line Color.

Definition at line 153 of file settings.h.

static QColor Settings::lineColor (  )  [inline, static]

Get Line Color.

Definition at line 163 of file settings.h.

static void Settings::setIndicatorLineColor ( const QColor &  v  )  [inline, static]

Set Indicator Line Color.

Definition at line 172 of file settings.h.

static QColor Settings::indicatorLineColor (  )  [inline, static]

Get Indicator Line Color.

Definition at line 182 of file settings.h.


Friends And Related Function Documentation

friend class SettingsHelper [friend]

Definition at line 189 of file settings.h.


Member Data Documentation

int Settings::mNumOfPlayers [protected]

Definition at line 193 of file settings.h.

QStringList Settings::mPlayerNames [protected]

Definition at line 194 of file settings.h.

QList<int> Settings::mHumanList [protected]

Definition at line 195 of file settings.h.

int Settings::mBoardWidth [protected]

Definition at line 196 of file settings.h.

int Settings::mBoardHeight [protected]

Definition at line 197 of file settings.h.

int Settings::mQuickStart [protected]

Definition at line 198 of file settings.h.

int Settings::mDifficulty [protected]

Definition at line 201 of file settings.h.

QColor Settings::mLineColor [protected]

Definition at line 204 of file settings.h.

QColor Settings::mIndicatorLineColor [protected]

Definition at line 205 of file settings.h.


The documentation for this class was generated from the following files:
  • settings.h
  • settings.cpp

ksquares

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

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal