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

LinesPrompt Class Reference

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

Collaboration diagram for LinesPrompt:

Collaboration graph
[legend]
List of all members.

Signals

void PromptPressed ()

Public Member Functions

 LinesPrompt (BallPainter *abPainter, QWidget *parent=0, const char *name=0)
 ~LinesPrompt ()
void setPrompt (bool enabled)
bool getState ()
void SetBalls (int *pcb)
int width ()
int height ()
int wPrompt ()
int hPrompt ()

Private Member Functions

void paintEvent (QPaintEvent *)
void mousePressEvent (QMouseEvent *)

Private Attributes

BallPainterbPainter
bool PromptEnabled
int cb [BALLSDROP]

Constructor & Destructor Documentation

LinesPrompt::LinesPrompt BallPainter abPainter,
QWidget *  parent = 0,
const char *  name = 0
 

Definition at line 22 of file prompt.cpp.

References bPainter, cb, FALSE, hPrompt(), NOBALL, PromptEnabled, and wPrompt().

LinesPrompt::~LinesPrompt  ) 
 

Definition at line 40 of file prompt.cpp.


Member Function Documentation

bool LinesPrompt::getState  ) 
 

Definition at line 81 of file prompt.cpp.

References PromptEnabled.

Referenced by KLines::addScore(), KLines::KLines(), and KLines::switchPrompt().

int LinesPrompt::height  ) 
 

Definition at line 45 of file prompt.cpp.

References CELLSIZE.

int LinesPrompt::hPrompt  ) 
 

Definition at line 48 of file prompt.cpp.

References CELLSIZE.

Referenced by LinesPrompt().

void LinesPrompt::mousePressEvent QMouseEvent *   )  [private]
 

Definition at line 68 of file prompt.cpp.

References PromptPressed().

void LinesPrompt::paintEvent QPaintEvent *   )  [private]
 

Definition at line 50 of file prompt.cpp.

References bPainter, cb, CELLSIZE, BallPainter::GetBackgroundPix(), BallPainter::GetNormalBall(), and PromptEnabled.

void LinesPrompt::PromptPressed  )  [signal]
 

Referenced by mousePressEvent().

void LinesPrompt::SetBalls int *  pcb  ) 
 

Definition at line 73 of file prompt.cpp.

References BALLSDROP, cb, and i.

Referenced by KLines::generateRandomBalls(), and KLines::undo().

void LinesPrompt::setPrompt bool  enabled  ) 
 

Definition at line 85 of file prompt.cpp.

References PromptEnabled.

Referenced by KLines::switchPrompt().

int LinesPrompt::width  ) 
 

Definition at line 44 of file prompt.cpp.

References CELLSIZE.

int LinesPrompt::wPrompt  ) 
 

Definition at line 47 of file prompt.cpp.

References CELLSIZE.

Referenced by LinesPrompt().


Member Data Documentation

BallPainter* LinesPrompt::bPainter [private]
 

Definition at line 27 of file prompt.h.

Referenced by LinesPrompt(), and paintEvent().

int LinesPrompt::cb[BALLSDROP] [private]
 

Definition at line 31 of file prompt.h.

Referenced by LinesPrompt(), paintEvent(), and SetBalls().

bool LinesPrompt::PromptEnabled [private]
 

Definition at line 30 of file prompt.h.

Referenced by getState(), LinesPrompt(), paintEvent(), and setPrompt().


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