Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/qt_gui/src/lib/gui/gui.h @ 7555

Last change on this file since 7555 was 7555, checked in by bensch, 18 years ago

orxonox/qt_gui: more elaborate Saveables

File size: 1.0 KB
RevLine 
[4838]1/*!
[7476]2 * @file gui.h
[4838]3 * @brief Definition of ...
[3245]4*/
[1853]5
[7476]6#ifndef _GUI_H
7#define _GUI_H
[1853]8
[3543]9#include "base_object.h"
[7549]10#include <vector>
[1853]11
[4838]12// FORWARD DECLARATION
[3543]13
[7476]14namespace OrxGui
15{
[7549]16  class SaveableGroup;
17
[7476]18  //! A class for ...
19  class Gui : public BaseObject
20  {
[7549]21  public:
22    typedef enum {
23      Null          = 0,
24      Quitting      = 1,
25      Starting      = 2,
26      Saving        = 4,
27    } State;
[3543]28
[7547]29
[7476]30  public:
31    Gui();
32    virtual ~Gui();
[2036]33
[7476]34    //! Start the Gui
35    virtual void startGui() = 0;
36    //! Stop the gui
37    virtual void stopGui() = 0;
38    //! Suspend the Gui.
39    virtual void suspend() = 0;
40    //! Update the Gui.
41    virtual void update() = 0;
[7547]42
43    unsigned int getState() const { return this->state; };
44
[7549]45
46    void addSaveableGroup(SaveableGroup* saveableGroup);
[7555]47    void removeSaveableGroup(SaveableGroup* saveableGroup);
[7549]48
[7547]49  protected:
50    void quitEvent();
[7548]51    void startEvent();
[7547]52
[7549]53  private:
54    unsigned int                  state; //!< The State the Gui is in.
55    std::vector<SaveableGroup*>   groups;
[7476]56  };
57}
58#endif /* _GUI_H */
Note: See TracBrowser for help on using the repository browser.