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

TicTacToe Class Reference

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

Collaboration diagram for TicTacToe:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TicTacToe (QWidget *parent=0, const char *name=0, WFlags fl=0)

Static Public Member Functions

static QString appName ()

Private Slots

void newGameClicked ()
void gameOver ()

Private Member Functions

void newState ()

Private Attributes

QComboBox * whoStarts
QPushButton * newGame
QPushButton * quit
QLabel * message
TicTacGameBoardboard
int boardSize

Constructor & Destructor Documentation

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

Definition at line 288 of file tictac.cpp.

References board, boardSize, gameOver(), l, message, newGame, newGameClicked(), newState(), qApp, quit, QPEApplication::showWidget(), tr, and whoStarts.


Member Function Documentation

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

Definition at line 95 of file tictac.h.

References QString::fromLatin1().

void TicTacToe::gameOver  )  [private, slot]
 

Definition at line 360 of file tictac.cpp.

References newState().

Referenced by TicTacToe().

void TicTacToe::newGameClicked  )  [private, slot]
 

Definition at line 345 of file tictac.cpp.

References board, TicTacGameBoard::computerStarts(), TicTacGameBoard::newGame(), newState(), and whoStarts.

Referenced by TicTacToe().

void TicTacToe::newState  )  [private]
 

Definition at line 370 of file tictac.cpp.

References board, message, TicTacGameBoard::state(), and tr.

Referenced by gameOver(), newGameClicked(), and TicTacToe().


Member Data Documentation

TicTacGameBoard* TicTacToe::board [private]
 

Definition at line 106 of file tictac.h.

Referenced by newGameClicked(), newState(), and TicTacToe().

int TicTacToe::boardSize [private]
 

Definition at line 107 of file tictac.h.

Referenced by TicTacToe().

QLabel* TicTacToe::message [private]
 

Definition at line 105 of file tictac.h.

Referenced by newState(), and TicTacToe().

QPushButton* TicTacToe::newGame [private]
 

Definition at line 103 of file tictac.h.

Referenced by TicTacToe().

QPushButton* TicTacToe::quit [private]
 

Definition at line 104 of file tictac.h.

Referenced by TicTacToe().

QComboBox* TicTacToe::whoStarts [private]
 

Definition at line 102 of file tictac.h.

Referenced by newGameClicked(), and TicTacToe().


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