source:
orxonox.OLD/trunk/src/lib/gui/qt/qt_gui.h
@
10146
Last change on this file since 10146 was 8145, checked in by bensch, 18 years ago | |
---|---|
File size: 821 bytes |
Rev | Line | |
---|---|---|
[4838] | 1 | /*! |
[7140] | 2 | * @file qt_gui.h |
[4838] | 3 | * @brief Definition of ... |
[3245] | 4 | */ |
[1853] | 5 | |
[7140] | 6 | #ifndef __QT_GUI_H |
7 | #define __QT_GUI_H | |
[1853] | 8 | |
[7472] | 9 | #include "../gui.h" |
[7489] | 10 | #include "../gui_element.h" |
[7534] | 11 | #include <QtGui/QApplication> |
12 | #include <QtGui/QMainWindow> | |
[7478] | 13 | |
[7447] | 14 | namespace OrxGui |
[7149] | 15 | { |
[7543] | 16 | class QtGui : public QApplication, public OrxGui::Gui |
[7473] | 17 | { |
[7543] | 18 | Q_OBJECT |
[7473] | 19 | public: |
[7478] | 20 | QtGui(int argc, char** argv); |
[7473] | 21 | virtual ~QtGui(); |
22 | ||
23 | //! Start the Gui | |
24 | virtual void startGui(); | |
25 | //! Stop the gui | |
26 | virtual void stopGui(); | |
27 | //! Suspend the Gui. | |
28 | virtual void suspend(); | |
29 | //! Update the Gui. | |
30 | virtual void update(); | |
31 | ||
[7548] | 32 | public slots: |
33 | void quitApp(); | |
34 | void startApp(); | |
[7473] | 35 | |
36 | private: | |
[7479] | 37 | QMainWindow* mainWindow; |
[7493] | 38 | std::list<Element*> elements; //!< A List of Elements within the QTGui |
[7473] | 39 | }; |
[7447] | 40 | } |
41 | ||
[7140] | 42 | #endif /* __QT_GUI_H */ |
Note: See TracBrowser
for help on using the repository browser.