Last change
on this file since 7548 was
7548,
checked in by bensch, 18 years ago
|
orxonox/qt_gui: start-stop-events
|
File size:
852 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file gui.h |
---|
3 | * @brief Definition of ... |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _GUI_H |
---|
7 | #define _GUI_H |
---|
8 | |
---|
9 | #include "base_object.h" |
---|
10 | |
---|
11 | // FORWARD DECLARATION |
---|
12 | |
---|
13 | namespace OrxGui |
---|
14 | { |
---|
15 | //! A class for ... |
---|
16 | class Gui : public BaseObject |
---|
17 | { |
---|
18 | public: |
---|
19 | typedef enum { |
---|
20 | Null = 0, |
---|
21 | Quitting = 1, |
---|
22 | Starting = 2, |
---|
23 | Saving = 4, |
---|
24 | } State; |
---|
25 | |
---|
26 | |
---|
27 | public: |
---|
28 | Gui(); |
---|
29 | virtual ~Gui(); |
---|
30 | |
---|
31 | //! Start the Gui |
---|
32 | virtual void startGui() = 0; |
---|
33 | //! Stop the gui |
---|
34 | virtual void stopGui() = 0; |
---|
35 | //! Suspend the Gui. |
---|
36 | virtual void suspend() = 0; |
---|
37 | //! Update the Gui. |
---|
38 | virtual void update() = 0; |
---|
39 | |
---|
40 | unsigned int getState() const { return this->state; }; |
---|
41 | |
---|
42 | protected: |
---|
43 | void quitEvent(); |
---|
44 | void startEvent(); |
---|
45 | |
---|
46 | private: |
---|
47 | unsigned int state; //!< The State the Gui is in. |
---|
48 | }; |
---|
49 | } |
---|
50 | #endif /* _GUI_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.