GUI::MainWindow Class Reference

Main window. More...

#include <main_window.h>

List of all members.

Public Slots

void showHelpRules ()
 A method to be called when Help->Rules is clicked.
void showHelpAbout ()
 A method to be called when Help->About is clicked.
void showGameNew ()
 A method to be called when Game->New is clicked.
void startGameNew ()
 A method to be called when Game->New->Start is clicked.

Public Member Functions

 MainWindow (QWidget *parent=0, const char *name=0)
 Default constructor.
void changeMainWidget (QWidget *w)
 A method to be called when the mainWidget is changed.
void gameWin ()
 A method to be called when the player wins.
void gameLose ()
 A method to be called when the player loses.

Private Attributes

QGridLayout * _grid
 Grid pointer. Allows to chagne whats shown.
QWidget * _mainWidget
 The mainWidget is whats seen under the main menu.
GUI::GameMenu_gameMenu
 used to call gameMenu->getGameConfig().


Detailed Description

Main window.

This class is used to create the whole application window.


Constructor & Destructor Documentation

GUI::MainWindow::MainWindow ( QWidget *  parent = 0,
const char *  name = 0 
)

Default constructor.

Parameters:
[in] parent The parent widget.
[in] name The name of the new created widget.


Member Function Documentation

void GUI::MainWindow::changeMainWidget ( QWidget *  w  ) 

A method to be called when the mainWidget is changed.

Parameters:
[in] w The new widget to be seen in MainWindow.

void GUI::MainWindow::gameWin (  ) 

A method to be called when the player wins.

void GUI::MainWindow::gameLose (  ) 

A method to be called when the player loses.

void GUI::MainWindow::showHelpRules (  )  [slot]

A method to be called when Help->Rules is clicked.

void GUI::MainWindow::showHelpAbout (  )  [slot]

A method to be called when Help->About is clicked.

void GUI::MainWindow::showGameNew (  )  [slot]

A method to be called when Game->New is clicked.

void GUI::MainWindow::startGameNew (  )  [slot]

A method to be called when Game->New->Start is clicked.


Member Data Documentation

QGridLayout* GUI::MainWindow::_grid [private]

Grid pointer. Allows to chagne whats shown.

QWidget* GUI::MainWindow::_mainWidget [private]

The mainWidget is whats seen under the main menu.

used to call gameMenu->getGameConfig().


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

Generated on Sat Dec 20 19:21:24 2008 for PGR2008 by  doxygen 1.5.6