Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/gui/gl_gui/glgui_handler.h @ 5403

Last change on this file since 5403 was 5388, checked in by bensch, 19 years ago

orxonox/trunk: implemented a t-Stack, for dynamic stacks, and integrated it into the Shell.

File size: 718 bytes
Line 
1/*!
2 * @file proto_singleton.h
3 * @brief Definition of the ... singleton Class
4*/
5
6#ifndef _GLGUI_HANDLER_H
7#define _GLGUI_HANDLER_H
8
9#include "event_listener.h"
10
11// FORWARD DEFINITION
12
13//! A default singleton class.
14class GLGuiHandler : public EventListener {
15
16 public:
17  virtual ~GLGuiHandler(void);
18  /** @returns a Pointer to the only object of this Class */
19  inline static GLGuiHandler* getInstance(void) { if (!singletonRef) singletonRef = new GLGuiHandler();  return singletonRef; };
20
21  void activate();
22  void deactivate();
23
24
25  virtual void process(const Event &event);
26
27 private:
28  GLGuiHandler(void);
29  static GLGuiHandler* singletonRef;
30
31
32  bool                 isActive;
33};
34
35#endif /* _GLGUI_HANDLER_H */
Note: See TracBrowser for help on using the repository browser.