Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5384 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_mainwidget.cc


Ignore:
Timestamp:
Oct 15, 2005, 9:58:59 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: introducing the GLGuiMainWidget-class, that is the topmost of all widgets

File:
1 copied

Legend:

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

    r5382 r5384  
    1010
    1111   ### File Specific:
    12    main-programmer: ...
     12   main-programmer: Benjamin Grauer
    1313   co-programmer: ...
    1414*/
    1515
    16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
     16#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GUI
    1717
    18 #include "proto_singleton.h"
     18#include "glgui_mainwidget.h"
    1919
    2020using namespace std;
     
    2424 * standard constructor
    2525 */
    26 ProtoSingleton::ProtoSingleton ()
     26GLGuiMainWidget::GLGuiMainWidget()
    2727{
    28    this->setClassID(CL_PROTO_ID, "ProtoSingleton");
    29    this->setName("ProtoSingleton");
    30 
    31    /* If you make a new class, what is most probably the case when you write this file
    32       don't forget to:
    33        1. Add the new file new_class.cc to the ./src/Makefile.am
    34        2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS
    35    !!!!!!!!!! IMPORTANT FOR SINGLETON !!!!!!!!!!!!!!!!
    36         3. SingleTon MUST be CL_NEW_CLASS = 0x00000fxx
    37 
    38       Advanced Topics:
    39       - if you want to let your object be managed via the ObjectManager make sure to read
    40         the object_manager.h header comments. You will use this most certanly only if you
    41         make many objects of your class, like a weapon bullet.
    42    */
     28  this->setClassID(CL_GLGUI_MAIN_WIDGET, "GLGuiMainWidget");
     29  this->setName("GLGuiMainWidget");
    4330}
    4431
     
    4633 *  the singleton reference to this class
    4734 */
    48 ProtoSingleton* ProtoSingleton::singletonRef = NULL;
     35GLGuiMainWidget* GLGuiMainWidget::singletonRef = NULL;
    4936
    5037/**
    51    @brief standard deconstructor
     38 * standard deconstructor
    5239 */
    53 ProtoSingleton::~ProtoSingleton ()
     40GLGuiMainWidget::~GLGuiMainWidget ()
    5441{
    55   ProtoSingleton::singletonRef = NULL;
     42  GLGuiMainWidget::singletonRef = NULL;
    5643}
Note: See TracChangeset for help on using the changeset viewer.