Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5388 in orxonox.OLD for trunk/src/lib/gui


Ignore:
Timestamp:
Oct 16, 2005, 2:05:26 AM (19 years ago)
Author:
bensch
Message:

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

Location:
trunk/src/lib/gui/gl_gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gl_gui/glgui_handler.cc

    r5366 r5388  
    1717
    1818#include "glgui_handler.h"
     19#include "event_handler.h"
    1920
    2021using namespace std;
     
    2829   this->setName("GLGuiHandler");
    2930
    30    /* If you make a new class, what is most probably the case when you write this file
    31       don't forget to:
    32        1. Add the new file new_class.cc to the ./src/Makefile.am
    33        2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS
    34    !!!!!!!!!! IMPORTANT FOR SINGLETON !!!!!!!!!!!!!!!!
    35         3. SingleTon MUST be CL_NEW_CLASS = 0x00000fxx
    36 
    37       Advanced Topics:
    38       - if you want to let your object be managed via the ObjectManager make sure to read
    39         the object_manager.h header comments. You will use this most certanly only if you
    40         make many objects of your class, like a weapon bullet.
    41    */
    4231}
    4332
     
    5443  GLGuiHandler::singletonRef = NULL;
    5544}
     45
     46void GLGuiHandler::activate()
     47{
     48//  EventHandler::getInstance()->setState(ES_MENU);
     49
     50}
     51
     52void GLGuiHandler::deactivate()
     53{
     54
     55}
     56
     57
     58void GLGuiHandler::process(const Event &event)
     59{
     60
     61
     62
     63}
  • trunk/src/lib/gui/gl_gui/glgui_handler.h

    r5366 r5388  
    77#define _GLGUI_HANDLER_H
    88
    9 #include "base_object.h"
     9#include "event_listener.h"
    1010
    1111// FORWARD DEFINITION
    1212
    1313//! A default singleton class.
    14 class GLGuiHandler : public BaseObject {
     14class GLGuiHandler : public EventListener {
    1515
    1616 public:
     
    1919  inline static GLGuiHandler* getInstance(void) { if (!singletonRef) singletonRef = new GLGuiHandler();  return singletonRef; };
    2020
     21  void activate();
     22  void deactivate();
     23
     24
     25  virtual void process(const Event &event);
     26
    2127 private:
    2228  GLGuiHandler(void);
    2329  static GLGuiHandler* singletonRef;
     30
     31
     32  bool                 isActive;
    2433};
    2534
Note: See TracChangeset for help on using the changeset viewer.