Changeset 5384 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_mainwidget.cc
- Timestamp:
- Oct 15, 2005, 9:58:59 PM (19 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/glgui_mainwidget.cc
r5382 r5384 10 10 11 11 ### File Specific: 12 main-programmer: ...12 main-programmer: Benjamin Grauer 13 13 co-programmer: ... 14 14 */ 15 15 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GUI 17 17 18 #include " proto_singleton.h"18 #include "glgui_mainwidget.h" 19 19 20 20 using namespace std; … … 24 24 * standard constructor 25 25 */ 26 ProtoSingleton::ProtoSingleton()26 GLGuiMainWidget::GLGuiMainWidget() 27 27 { 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"); 43 30 } 44 31 … … 46 33 * the singleton reference to this class 47 34 */ 48 ProtoSingleton* ProtoSingleton::singletonRef = NULL;35 GLGuiMainWidget* GLGuiMainWidget::singletonRef = NULL; 49 36 50 37 /** 51 @briefstandard deconstructor38 * standard deconstructor 52 39 */ 53 ProtoSingleton::~ProtoSingleton()40 GLGuiMainWidget::~GLGuiMainWidget () 54 41 { 55 ProtoSingleton::singletonRef = NULL;42 GLGuiMainWidget::singletonRef = NULL; 56 43 }
Note: See TracChangeset
for help on using the changeset viewer.