#include <main_window.h>
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(). |
This class is used to create the whole application window.
GUI::MainWindow::MainWindow | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 | |||
) |
Default constructor.
[in] | parent | The parent widget. |
[in] | name | The name of the new created widget. |
void GUI::MainWindow::changeMainWidget | ( | QWidget * | w | ) |
A method to be called when the mainWidget is changed.
[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.
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.
GUI::GameMenu* GUI::MainWindow::_gameMenu [private] |
used to call gameMenu->getGameConfig().