Qubet  1.0
The ultimate QGL addicting videogame!
 All Classes Functions Variables Pages
window.h
1 // Qubet - Copyright (C) 2011
2 // Enrico Bacis
3 // Daniele Ciriello
4 
5 // Qubet is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation, either version 3 of the License, or
8 // (at your option) any later version.
9 
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 
15 // You should have received a copy of the GNU General Public License
16 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 
18 
19 #ifndef MAINQUBET_H
20 #define MAINQUBET_H
21 
22 #include <QMainWindow>
23 
24 #include "qubet.h"
25 
32 class Window : public QMainWindow
33 {
34  Q_OBJECT
35 
36 public:
42  explicit Window(QWidget *parent = 0);
43 
47  ~Window();
48 
49 
50 private:
59  void closeEvent(QCloseEvent *event);
60 
61 };
62 
63 #endif // MAINQUBET_H
This class is the QMainWindow, it is used to contain Qubet widget.
Definition: window.h:32
void closeEvent(QCloseEvent *event)
This function is invoked when the user closes the Window. It is used to perform cleaning operations...
Definition: window.cpp:38
This class rapresents an instance of the QGLWidget Qubet. It is the game.
Definition: qubet.h:83
~Window()
Destroy the QMainWindow (for what it worths).
Definition: window.cpp:34
Qubet * qubetWidget
Definition: window.h:51
Window(QWidget *parent=0)
Create the QMainWindow.
Definition: window.cpp:22