KardsGTInterface Class Reference

#include <kardsgtinterface.h>

Collaboration diagram for KardsGTInterface:

Collaboration graph
[legend]

List of all members.


Detailed Description

This is the primary interface for the KardsGT card game. From this widget you can start a game, modify settings, and exit the programme.
Note:
On the first run, the user name will be required to be entered.
Author:
John Schneiderman

Public Member Functions

 KardsGTInterface (QString fileName="", QWidget *parent=0)
virtual ~KardsGTInterface ()

Protected Slots

void changeName ()
void closeOpenGame ()
void helpAbout ()
void helpAboutQT ()
void helpHandbook ()
void loadGame ()
void newGame ()
void saveGame ()
void settingsConfigureKardsGT ()
void setupGame ()
void turnOnCrazyEights ()
void turnOnCribbage ()
void turnOnEuchre ()
void turnOnHearts ()
void turnOnOldMaid ()
void turnOnSpades ()
void turnOnWar ()

Constructor & Destructor Documentation

KardsGTInterface::KardsGTInterface ( QString  fileName = "",
QWidget *  parent = 0 
)

This is the default widget constructor.

Parameters:
fileName is the name of the game file we want to load.
parent is the parent of the widget.

KardsGTInterface::~KardsGTInterface (  )  [virtual]

This is the default widget destructor.


Member Function Documentation

void KardsGTInterface::changeName (  )  [protected, slot]

This slot opens a dialogue for the user to change their name.

void KardsGTInterface::closeOpenGame (  )  [protected, slot]

This slot closes the current open game.

void KardsGTInterface::helpAbout (  )  [protected, slot]

This slot opens the about information for the programme.

void KardsGTInterface::helpAboutQT (  )  [protected, slot]

This slot displays the about information for the QT system.

void KardsGTInterface::helpHandbook (  )  [protected, slot]

This slot opens the QAssistantClient and displays the handbook for KardsGT.

void KardsGTInterface::loadGame (  )  [protected, slot]

This slot opens a dialogue requesting the user to enter a filename for the programme to load.

void KardsGTInterface::newGame (  )  [protected, slot]

This slot re-starts the current game running.

void KardsGTInterface::saveGame (  )  [protected, slot]

This slot saves the game running.

void KardsGTInterface::settingsConfigureKardsGT (  )  [protected, slot]

This slot opens a dialogue for the user to change the the programme settings.

void KardsGTInterface::setupGame (  )  [protected, slot]

This slot sets up the game set in m_gamePlayed, and activates the game.

Exceptions:
KardsGTError if we fail to create the game.

void KardsGTInterface::turnOnCrazyEights (  )  [protected, slot]

This slot starts the Crazy Eights game.

void KardsGTInterface::turnOnCribbage (  )  [protected, slot]

This slot starts the Cribbage game.

void KardsGTInterface::turnOnEuchre (  )  [protected, slot]

This slot starts the Euchre game.

void KardsGTInterface::turnOnHearts (  )  [protected, slot]

This slot starts the Hearts game.

void KardsGTInterface::turnOnOldMaid (  )  [protected, slot]

This slot starts the Old Maid game.

void KardsGTInterface::turnOnSpades (  )  [protected, slot]

This slot starts the Spades game.

void KardsGTInterface::turnOnWar (  )  [protected, slot]

This slot starts the War game.


The documentation for this class was generated from the following files:

Generated on Tue Aug 12 23:24:02 2008 for KardsGT by  doxygen 1.5.5