Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ScoreInfo Class Reference

#include </home/clem/local/src/opie/noncore/games/wordgame/wordgame.h>

Collaboration diagram for ScoreInfo:

Collaboration graph
[legend]
List of all members.

Public Slots

void showTemporaryScore (int amount)

Public Member Functions

 ScoreInfo (QWidget *parent=0, const char *name=0, WFlags fl=0)
 ~ScoreInfo ()
void init (const QStringList &)
void addScore (int player, int change)
int playerScore (int player) const
void setShowWinner (bool)
void setBoldOne (int)
void readConfig (Config &)
void writeConfig (Config &)

Protected Member Functions

QSize sizeHint () const

Private Slots

void showScores ()

Private Attributes

QStringList names
int * score
QTimer * msgtimer
bool showwinner
int boldone

Constructor & Destructor Documentation

ScoreInfo::ScoreInfo QWidget *  parent = 0,
const char *  name = 0,
WFlags  fl = 0
 

Definition at line 1429 of file wordgame.cpp.

References msgtimer, score, and showScores().

ScoreInfo::~ScoreInfo  ) 
 

Definition at line 1438 of file wordgame.cpp.

References score.


Member Function Documentation

void ScoreInfo::addScore int  player,
int  change
 

Definition at line 1476 of file wordgame.cpp.

References score, and showScores().

Referenced by WordGame::endGame(), and WordGame::endTurn().

void ScoreInfo::init const QStringList  ) 
 

Definition at line 1466 of file wordgame.cpp.

References boldone, QValueList< T >::count(), names, score, and showScores().

Referenced by WordGame::startGame().

int ScoreInfo::playerScore int  player  )  const [inline]
 

Definition at line 281 of file wordgame.h.

References score.

Referenced by WordGame::endGame().

void ScoreInfo::readConfig Config  ) 
 

Definition at line 1451 of file wordgame.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), i, l, Config::readListEntry(), score, and showScores().

Referenced by WordGame::readConfig().

void ScoreInfo::setBoldOne int   ) 
 

Definition at line 1482 of file wordgame.cpp.

References boldone, and showScores().

Referenced by WordGame::endGame(), and WordGame::nextPlayer().

void ScoreInfo::setShowWinner bool   ) 
 

void ScoreInfo::showScores  )  [private, slot]
 

Definition at line 1488 of file wordgame.cpp.

References QValueList< T >::begin(), boldone, QValueList< T >::end(), i, names, QString::number(), QString::replace(), and score.

Referenced by addScore(), init(), readConfig(), ScoreInfo(), and setBoldOne().

void ScoreInfo::showTemporaryScore int  amount  )  [slot]
 

Definition at line 1510 of file wordgame.cpp.

References msgtimer, QString::number(), tr, and TRUE.

QSize ScoreInfo::sizeHint  )  const [protected]
 

Definition at line 1461 of file wordgame.cpp.

References height, and width.

void ScoreInfo::writeConfig Config  ) 
 

Definition at line 1443 of file wordgame.cpp.

References QValueList< T >::append(), QValueList< T >::count(), i, l, names, QString::number(), and score.

Referenced by WordGame::writeConfig().


Member Data Documentation

int ScoreInfo::boldone [private]
 

Definition at line 302 of file wordgame.h.

Referenced by init(), setBoldOne(), and showScores().

QTimer* ScoreInfo::msgtimer [private]
 

Definition at line 300 of file wordgame.h.

Referenced by ScoreInfo(), and showTemporaryScore().

QStringList ScoreInfo::names [private]
 

Definition at line 298 of file wordgame.h.

Referenced by init(), showScores(), and writeConfig().

int* ScoreInfo::score [private]
 

Definition at line 299 of file wordgame.h.

Referenced by addScore(), init(), playerScore(), readConfig(), ScoreInfo(), showScores(), writeConfig(), and ~ScoreInfo().

bool ScoreInfo::showwinner [private]
 

Definition at line 301 of file wordgame.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:51:15 2005 for OPIE by  doxygen 1.4.2