Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/gui/gui.h @ 10635

Last change on this file since 10635 was 7661, checked in by bensch, 19 years ago

orxonox/trunk: merged the QT_GUI back to the trunk
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/qt_gui . -r7607:HEAD

absolutely no conflicts :)

File size: 1.1 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; };
[7598]44    void loadAll();
45    void saveAll();
[7547]46
[7549]47    void addSaveableGroup(SaveableGroup* saveableGroup);
[7555]48    void removeSaveableGroup(SaveableGroup* saveableGroup);
[7549]49
[7547]50  protected:
51    void quitEvent();
[7548]52    void startEvent();
[7547]53
[7549]54  private:
55    unsigned int                  state; //!< The State the Gui is in.
56    std::vector<SaveableGroup*>   groups;
[7476]57  };
58}
59#endif /* _GUI_H */
Note: See TracBrowser for help on using the repository browser.