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

CanvasCardWindow Class Reference

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

Collaboration diagram for CanvasCardWindow:

Collaboration graph
[legend]
List of all members.

Public Slots

void setCardBacks ()
void changeCardBacks ()
void snapToggle ()
void drawnToggle ()

Public Member Functions

 CanvasCardWindow (QWidget *parent=0, const char *name=0, WFlags f=0)
virtual ~CanvasCardWindow ()

Static Public Member Functions

static QString appName ()

Protected Member Functions

virtual void resizeEvent (QResizeEvent *e)
void updateDraw ()

Private Slots

void initFreecell ()
void initPatience ()
void initChicane ()
void initHarp ()
void initTeeclub ()

Private Attributes

QCanvas canvas
bool snapOn
bool drawThree
int drawId
int cardBack
int gameType
CanvasCardGamecardGame
QPopupMenu * options
QPopupMenu * settings
int dbf_id
int snap_id

Constructor & Destructor Documentation

CanvasCardWindow::CanvasCardWindow QWidget *  parent = 0,
const char *  name = 0,
WFlags  f = 0
 

Definition at line 29 of file canvascardwindow.cpp.

References canvas, cardGame, changeCardBacks(), dbf_id, drawId, drawnToggle(), drawThree, FALSE, gameType, initChicane(), initFreecell(), initHarp(), initPatience(), initTeeclub(), Key_F, Key_F1, Key_F2, Key_F3, Opie::Core::OResource::loadImage(), Opie::Core::OResource::loadPixmap(), Config::readBoolEntry(), CanvasCardGame::readConfig(), Config::readNumEntry(), setCardBacks(), Config::setGroup(), CanvasCardGame::setNumberToDraw(), settings, snap_id, snapOn, snapToggle(), tr, TRUE, and updateDraw().

CanvasCardWindow::~CanvasCardWindow  )  [virtual]
 

Definition at line 159 of file canvascardwindow.cpp.

References cardGame, drawThree, gameType, Config::setGroup(), snapOn, Config::write(), CanvasCardGame::writeConfig(), and Config::writeEntry().


Member Function Documentation

static QString CanvasCardWindow::appName  )  [inline, static]
 

Definition at line 36 of file canvascardwindow.h.

References QString::fromLatin1().

void CanvasCardWindow::changeCardBacks  )  [slot]
 

Definition at line 299 of file canvascardwindow.cpp.

References cardBack, and setCardBacks().

Referenced by CanvasCardWindow().

void CanvasCardWindow::drawnToggle  )  [slot]
 

Definition at line 268 of file canvascardwindow.cpp.

References cardGame, drawThree, Config::setGroup(), CanvasCardGame::toggleCardsDrawn(), updateDraw(), Config::write(), and Config::writeEntry().

Referenced by CanvasCardWindow().

void CanvasCardWindow::initChicane  )  [private, slot]
 

Definition at line 213 of file canvascardwindow.cpp.

References canvas, cardGame, gameType, CardGame::newGame(), setCardBacks(), CanvasCardGame::setNumberToDraw(), snapOn, and tr.

Referenced by CanvasCardWindow().

void CanvasCardWindow::initFreecell  )  [private, slot]
 

Definition at line 198 of file canvascardwindow.cpp.

References canvas, cardGame, gameType, CardGame::newGame(), setCardBacks(), snapOn, and tr.

Referenced by CanvasCardWindow().

void CanvasCardWindow::initHarp  )  [private, slot]
 

Definition at line 228 of file canvascardwindow.cpp.

References canvas, cardGame, gameType, CardGame::newGame(), setCardBacks(), CanvasCardGame::setNumberToDraw(), snapOn, and tr.

Referenced by CanvasCardWindow().

void CanvasCardWindow::initPatience  )  [private, slot]
 

Definition at line 182 of file canvascardwindow.cpp.

References canvas, cardGame, drawThree, gameType, CardGame::newGame(), setCardBacks(), CanvasCardGame::setNumberToDraw(), snapOn, tr, and updateDraw().

Referenced by CanvasCardWindow().

void CanvasCardWindow::initTeeclub  )  [private, slot]
 

Definition at line 244 of file canvascardwindow.cpp.

References canvas, cardGame, gameType, CardGame::newGame(), setCardBacks(), CanvasCardGame::setNumberToDraw(), snapOn, and tr.

Referenced by CanvasCardWindow().

void CanvasCardWindow::resizeEvent QResizeEvent *  e  )  [protected, virtual]
 

Definition at line 174 of file canvascardwindow.cpp.

References canvas, and s.

void CanvasCardWindow::setCardBacks  )  [slot]
 

Definition at line 288 of file canvascardwindow.cpp.

References canvas, canvasCardId, cardBack, and l.

Referenced by CanvasCardWindow(), changeCardBacks(), initChicane(), initFreecell(), initHarp(), initPatience(), and initTeeclub().

void CanvasCardWindow::snapToggle  )  [slot]
 

Definition at line 260 of file canvascardwindow.cpp.

References cardGame, settings, snap_id, snapOn, and CanvasCardGame::toggleSnap().

Referenced by CanvasCardWindow().

void CanvasCardWindow::updateDraw  )  [protected]
 

Definition at line 279 of file canvascardwindow.cpp.

References cardGame, CanvasCardGame::cardsDrawn(), drawId, settings, and tr.

Referenced by CanvasCardWindow(), drawnToggle(), and initPatience().


Member Data Documentation

QCanvas CanvasCardWindow::canvas [private]
 

Definition at line 58 of file canvascardwindow.h.

Referenced by CanvasCardWindow(), initChicane(), initFreecell(), initHarp(), initPatience(), initTeeclub(), resizeEvent(), and setCardBacks().

int CanvasCardWindow::cardBack [private]
 

Definition at line 62 of file canvascardwindow.h.

Referenced by changeCardBacks(), and setCardBacks().

CanvasCardGame* CanvasCardWindow::cardGame [private]
 

Definition at line 64 of file canvascardwindow.h.

Referenced by CanvasCardWindow(), drawnToggle(), initChicane(), initFreecell(), initHarp(), initPatience(), initTeeclub(), snapToggle(), updateDraw(), and ~CanvasCardWindow().

int CanvasCardWindow::dbf_id [private]
 

Definition at line 68 of file canvascardwindow.h.

Referenced by CanvasCardWindow().

int CanvasCardWindow::drawId [private]
 

Definition at line 61 of file canvascardwindow.h.

Referenced by CanvasCardWindow(), and updateDraw().

bool CanvasCardWindow::drawThree [private]
 

Definition at line 60 of file canvascardwindow.h.

Referenced by CanvasCardWindow(), drawnToggle(), initPatience(), and ~CanvasCardWindow().

int CanvasCardWindow::gameType [private]
 

Definition at line 63 of file canvascardwindow.h.

Referenced by CanvasCardWindow(), initChicane(), initFreecell(), initHarp(), initPatience(), initTeeclub(), and ~CanvasCardWindow().

QPopupMenu* CanvasCardWindow::options [private]
 

Definition at line 66 of file canvascardwindow.h.

QPopupMenu* CanvasCardWindow::settings [private]
 

Definition at line 67 of file canvascardwindow.h.

Referenced by CanvasCardWindow(), snapToggle(), and updateDraw().

int CanvasCardWindow::snap_id [private]
 

Definition at line 69 of file canvascardwindow.h.

Referenced by CanvasCardWindow(), and snapToggle().

bool CanvasCardWindow::snapOn [private]
 

Definition at line 59 of file canvascardwindow.h.

Referenced by CanvasCardWindow(), initChicane(), initFreecell(), initHarp(), initPatience(), initTeeclub(), snapToggle(), and ~CanvasCardWindow().


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