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

CTicTacToeGUIBoard Class Reference

CTicTacToeGUIBoard. More...

#include <TicTacToeGUIBoard.h>

List of all members.

Public Member Functions

 CTicTacToeGUIBoard (QWidget *parent=0, const char *name=0)
 CTicTacToeGUIBoard.
 ~CTicTacToeGUIBoard ()
 ~CTicTacToeGUIBoard
void NewBoard ()
 NewBoard.

Protected Member Functions

void contentsMousePressEvent (QMouseEvent *event)
 contentsMousePressEvent
void resizeEvent (QResizeEvent *event)
 resizeEvent
void BuildBoard ()
 BuildBoard.
void DestroyBoard ()
 DestroyBoard.


Detailed Description

CTicTacToeGUIBoard.

Description: Class is a QCanvasView derived class used for displaying the TicTacToe board on the screen.

Limitations: NONE


Constructor & Destructor Documentation

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

CTicTacToeGUIBoard.

Description: Class constructor

Limitations: NONE

CTicTacToeGUIBoard::~CTicTacToeGUIBoard  ) 
 

~CTicTacToeGUIBoard

Description: Class deconstructor

Limitations: NONE


Member Function Documentation

void CTicTacToeGUIBoard::BuildBoard  )  [protected]
 

BuildBoard.

Description: Creates the board object and all the COthelloPiece objects.

Returns:
void
Limitations: NONE

void CTicTacToeGUIBoard::contentsMousePressEvent QMouseEvent *  event  )  [protected]
 

contentsMousePressEvent

Description: Traps a mouse click event so that we can see if the user clicked one of the grid sqaures.

Returns:
void
Limitations: NONE

void CTicTacToeGUIBoard::DestroyBoard  )  [protected]
 

DestroyBoard.

Description: Deletes the board and all its contents.

Returns:
void
Limitations: NONE

void CTicTacToeGUIBoard::NewBoard  ) 
 

NewBoard.

Description: Resets all the game squares to the pre-game state.

Returns:
void
Limitations: NONE

void CTicTacToeGUIBoard::resizeEvent QResizeEvent *  event  )  [protected]
 

resizeEvent

Description: Handles the resize event to redraw the board to the correct size.

Returns:
void
Limitations: NONE


The documentation for this class was generated from the following files:
Copyright (c) 2005 Matt Bruns, Pat Hammond, Kevin Markussen, Travis Service, Brain Shaver

SourceForge.net Logo