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

Status Class Reference

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

Collaboration diagram for Status:

Collaboration graph
[legend]
List of all members.

Public Slots

void setScheme (int scheme, int mode)
void setLevel (int level)
void setLifes (int lifes)

Public Member Functions

 Status (QWidget *parent=0, const char *name=0, int scheme=-1, int mode=-1)
 ~Status ()

Protected Member Functions

void paintEvent (QPaintEvent *)
int minHeight ()
int minWidth ()
QString decodeHexOctString (QString str)
void fillArray (QArray< int > &, QString, int)
void fillStrList (QStrList &, QString, int)
void fillPixmapName (QStrList &)
void confScheme ()
void confLevels (bool defGroup=TRUE)
void confMisc (bool defGroup=TRUE)
void initPixmaps ()

Private Member Functions

QList< QPixmap > * loadPixmap (QWidget *parent, QString pixmapName, QList< QPixmap > *pixmaps=0)

Private Attributes

QArray< int > levelPos
int actualLifes
int actualLevel
QString pixmapDirectory
QStrList lifesPixmapName
QStrList levelPixmapName
QString lastLifesPixmapName
QString lastLevelPixmapName
QList< QPixmap > * lifesPix
QList< QPixmap > * levelPix
int maxLevel
int level
int scheme
int mode

Constructor & Destructor Documentation

Status::Status QWidget *  parent = 0,
const char *  name = 0,
int  scheme = -1,
int  mode = -1
 

Definition at line 23 of file status.cpp.

References actualLevel, actualLifes, confScheme(), level, levelPix, lifesPix, mode, NULL, oendl, owarn, and scheme.

Status::~Status  )  [inline]
 

Definition at line 28 of file status.h.


Member Function Documentation

void Status::confLevels bool  defGroup = TRUE  )  [protected]
 

Definition at line 223 of file status.cpp.

References APP_CONFIG_BEGIN, APP_CONFIG_END, and maxLevel.

Referenced by confScheme().

void Status::confMisc bool  defGroup = TRUE  )  [protected]
 

Definition at line 231 of file status.cpp.

References APP_CONFIG_BEGIN, APP_CONFIG_END, QString::append(), fillArray(), fillStrList(), QString::insert(), QString::left(), levelPixmapName, levelPos, lifesPixmapName, maxLevel, pixmapDirectory, and QString::right().

Referenced by confScheme().

void Status::confScheme  )  [protected]
 

Definition at line 255 of file status.cpp.

References APP_CONFIG_BEGIN, APP_CONFIG_END, confLevels(), confMisc(), FALSE, fillPixmapName(), initPixmaps(), levelPixmapName, lifesPixmapName, minHeight(), mode, RESTORE_CONFIG_GROUP, SAVE_CONFIG_GROUP, scheme, and QString::sprintf().

Referenced by setScheme(), and Status().

QString Status::decodeHexOctString QString  str  )  [protected]
 

Definition at line 113 of file status.cpp.

References FALSE, QString::fill(), QString::find(), len, QString::length(), QString::mid(), pos, and v.

Referenced by fillStrList().

void Status::fillArray QArray< int > &  ,
QString  ,
int 
[protected]
 

Definition at line 151 of file status.cpp.

References QString::find(), i, QString::left(), QString::length(), QString::remove(), and QString::toInt().

Referenced by confMisc().

void Status::fillPixmapName QStrList  )  [protected]
 

Definition at line 198 of file status.cpp.

References QString::append(), QPtrList< type >::at(), QPtrList< type >::count(), FIND_APP_DATA, i, QFileInfo::isFile(), QFileInfo::isReadable(), QString::left(), list, pixmapDirectory, and QFileInfo::setFile().

Referenced by confScheme().

void Status::fillStrList QStrList ,
QString  ,
int 
[protected]
 

Definition at line 175 of file status.cpp.

References decodeHexOctString(), QString::find(), i, QString::isEmpty(), QString::left(), QString::length(), and QString::remove().

Referenced by confMisc().

void Status::initPixmaps  )  [protected]
 

Definition at line 101 of file status.cpp.

References QPtrList< type >::at(), lastLevelPixmapName, lastLifesPixmapName, level, levelPix, levelPixmapName, lifesPix, lifesPixmapName, and loadPixmap().

Referenced by confScheme(), and setLevel().

QList< QPixmap > * Status::loadPixmap QWidget *  parent,
QString  pixmapName,
QList< QPixmap > *  pixmaps = 0
[private]
 

Definition at line 40 of file status.cpp.

References bitBlt(), height, NULL, QString::replace(), tr, TRUE, width, and Opie::MM::x.

Referenced by initPixmaps().

int Status::minHeight  )  [protected]
 

Definition at line 331 of file status.cpp.

References levelPix, and lifesPix.

Referenced by confScheme().

int Status::minWidth  )  [protected]
 

Definition at line 343 of file status.cpp.

References levelPix, and lifesPix.

void Status::paintEvent QPaintEvent *   )  [protected]
 

Definition at line 82 of file status.cpp.

References bitBlt(), height, levelPix, levelPos, lifesPix, width, and Opie::MM::x.

void Status::setLevel int  level  )  [slot]
 

Definition at line 361 of file status.cpp.

References actualLevel, initPixmaps(), level, and levelPix.

void Status::setLifes int  lifes  )  [slot]
 

Definition at line 355 of file status.cpp.

References actualLifes.

void Status::setScheme int  scheme,
int  mode
[slot]
 

Definition at line 321 of file status.cpp.

References confScheme(), mode, and scheme.

Referenced by KpacmanWidget::setScheme().


Member Data Documentation

int Status::actualLevel [private]
 

Definition at line 55 of file status.h.

Referenced by setLevel(), and Status().

int Status::actualLifes [private]
 

Definition at line 54 of file status.h.

Referenced by setLifes(), and Status().

QString Status::lastLevelPixmapName [private]
 

Definition at line 63 of file status.h.

Referenced by initPixmaps().

QString Status::lastLifesPixmapName [private]
 

Definition at line 62 of file status.h.

Referenced by initPixmaps().

int Status::level [private]
 

Definition at line 72 of file status.h.

Referenced by initPixmaps(), setLevel(), and Status().

QList<QPixmap>* Status::levelPix [private]
 

Definition at line 69 of file status.h.

Referenced by initPixmaps(), minHeight(), minWidth(), paintEvent(), setLevel(), and Status().

QStrList Status::levelPixmapName [private]
 

Definition at line 60 of file status.h.

Referenced by confMisc(), confScheme(), and initPixmaps().

QArray<int> Status::levelPos [private]
 

Definition at line 53 of file status.h.

Referenced by confMisc(), and paintEvent().

QList<QPixmap>* Status::lifesPix [private]
 

Definition at line 68 of file status.h.

Referenced by initPixmaps(), minHeight(), minWidth(), paintEvent(), and Status().

QStrList Status::lifesPixmapName [private]
 

Definition at line 59 of file status.h.

Referenced by confMisc(), confScheme(), and initPixmaps().

int Status::maxLevel [private]
 

Definition at line 71 of file status.h.

Referenced by confLevels(), and confMisc().

int Status::mode [private]
 

Definition at line 75 of file status.h.

Referenced by confScheme(), setScheme(), and Status().

QString Status::pixmapDirectory [private]
 

Definition at line 57 of file status.h.

Referenced by confMisc(), and fillPixmapName().

int Status::scheme [private]
 

Definition at line 74 of file status.h.

Referenced by confScheme(), setScheme(), and Status().


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