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

Dice Class Reference

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

List of all members.

Signals

void selected ()

Public Member Functions

 Dice (QWidget *parent=0, const char *name=0)
const int hasValue () const
void roll ()

Public Attributes

bool isSelected

Protected Member Functions

void paintEvent (QPaintEvent *e)
void paintNumber (QPainter *p)
virtual void mousePressEvent (QMouseEvent *)

Private Slots

void slotSelected ()

Private Attributes

int Value


Constructor & Destructor Documentation

Dice::Dice QWidget *  parent = 0,
const char *  name = 0
 

Definition at line 426 of file oyatzee.cpp.

References QTime::currentTime(), QTime::hour(), QTime::minute(), QTime::second(), selected(), slotSelected(), and t.


Member Function Documentation

const int Dice::hasValue  )  const
 

Definition at line 443 of file oyatzee.cpp.

References Value.

Referenced by OYatzee::detectPosibilities(), and OYatzee::slotEndRound().

void Dice::mousePressEvent QMouseEvent *   )  [protected, virtual]
 

Definition at line 456 of file oyatzee.cpp.

References selected().

void Dice::paintEvent QPaintEvent *  e  )  [protected]
 

Definition at line 461 of file oyatzee.cpp.

References height, isSelected, p, and paintNumber().

void Dice::paintNumber QPainter *  p  )  [protected]
 

Definition at line 474 of file oyatzee.cpp.

References Qt::black, height, Value, and width.

Referenced by paintEvent().

void Dice::roll  ) 
 

Definition at line 448 of file oyatzee.cpp.

References Value.

Referenced by OYatzee::slotRollDices().

void Dice::selected  )  [signal]
 

Referenced by Dice(), and mousePressEvent().

void Dice::slotSelected  )  [private, slot]
 

Definition at line 434 of file oyatzee.cpp.

References isSelected.

Referenced by Dice().


Member Data Documentation

bool Dice::isSelected
 

Definition at line 94 of file oyatzee.h.

Referenced by paintEvent(), OYatzee::slotRollDices(), and slotSelected().

int Dice::Value [private]
 

Definition at line 100 of file oyatzee.h.

Referenced by hasValue(), paintNumber(), and roll().


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