Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

qt_gui:more gui work

File size: 692 bytes
Line 
1/*!
2 * @file gui_saveable.h
3 * @brief Definition of ...
4*/
5
6#ifndef _GUI_SAVEABLE_H
7#define _GUI_SAVEABLE_H
8
9#include "base_object.h"
10#include "multi_type.h"
11#include <list>
12
13// FORWARD DECLARATION
14
15
16//! A class for ...
17class GuiSaveable : virtual public BaseObject
18{
19
20public:
21
22
23protected:
24  GuiSaveable();
25  virtual ~GuiSaveable();
26
27  virtual void load(const MultiType& value) = 0;
28  virtual const MultiType& save() = 0;
29
30protected:
31  MultiType       value;
32};
33
34
35
36class GuiGroup : virtual public BaseObject
37{
38public:
39  GuiGroup(const char* name);
40  ~GuiGroup();
41
42  void addSaveable(GuiSaveable* saveable);
43
44private:
45  std::list<GuiSaveable*>     saveables;
46};
47
48
49#endif /* _GUI_SAVEABLE_H */
Note: See TracBrowser for help on using the repository browser.