Changeset 7130 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Feb 13, 2006, 2:59:17 PM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/glgui_box.cc
r6287 r7130 18 18 #include "glgui_box.h" 19 19 20 #include "list.h"21 22 20 using namespace std; 23 21 … … 38 36 GLGuiBox::~GLGuiBox() 39 37 { 40 delete this->children;41 38 } 42 39 … … 47 44 { 48 45 this->setClassID(CL_GLGUI_BOX, "GLGuiBox"); 49 this->children = new tList<GLGuiWidget>;50 46 } 51 47 … … 55 51 return; 56 52 57 this->children ->add(widget);53 this->children.push_back(widget); 58 54 } 59 55 … … 63 59 if (widget == NULL) 64 60 { 65 delete this->children; 66 this->children = new tList<GLGuiWidget>; 61 this->children.clear(); 67 62 } 68 63 else 69 64 { 70 this->children ->remove(widget);65 this->children.remove(widget); 71 66 } 72 67 } … … 74 69 void GLGuiBox::showAll() 75 70 { 76 tIterator<GLGuiWidget>* itC = this->children->getIterator(); 77 GLGuiWidget* enumC = itC->firstElement(); 78 while (enumC != NULL) 71 std::list<GLGuiWidget*>::iterator itC = this->children.begin(); 72 while (itC != this->children.end()) 79 73 { 80 if ( enumC->isA(CL_GLGUI_CONTAINER))81 static_cast<GLGuiContainer*>( enumC)->showAll();74 if ((*itC)->isA(CL_GLGUI_CONTAINER)) 75 static_cast<GLGuiContainer*>(*itC)->showAll(); 82 76 else 83 enumC->show();84 enumC = itC->nextElement();77 (*itC)->show(); 78 itC++; 85 79 } 86 delete itC;87 80 88 81 this->show(); … … 92 85 void GLGuiBox::hideAll() 93 86 { 94 tIterator<GLGuiWidget>* itC = this->children->getIterator(); 95 GLGuiWidget* enumC = itC->firstElement(); 96 while (enumC != NULL) 87 std::list<GLGuiWidget*>::iterator itC = this->children.begin(); 88 while (itC != this->children.end()) 97 89 { 98 if ( enumC->isA(CL_GLGUI_CONTAINER))99 static_cast<GLGuiContainer*>( enumC)->showAll();90 if ((*itC)->isA(CL_GLGUI_CONTAINER)) 91 static_cast<GLGuiContainer*>(*itC)->hideAll(); 100 92 else 101 enumC->hide();102 enumC = itC->nextElement();93 (*itC)->hide(); 94 itC++; 103 95 } 104 delete itC;105 96 106 97 this->hide(); -
trunk/src/lib/gui/gl_gui/glgui_box.h
r6287 r7130 11 11 12 12 // FORWARD DECLARATION 13 template<class T> class tList;14 13 15 14 typedef enum … … 41 40 private: 42 41 GLGuiBoxType type; 43 tList<GLGuiWidget>* children; 44 42 std::list<GLGuiWidget*> children; 45 43 }; 46 44 -
trunk/src/lib/particles/engine/particle_engine.cc
r6619 r7130 20 20 #include "class_list.h" 21 21 22 #include "list.h"23 22 #include "debug.h" 24 23 #include "stdlibincl.h" -
trunk/src/lib/particles/engine/particle_engine.h
r6619 r7130 11 11 #include "particle_system.h" 12 12 #include "particle_emitter.h" 13 #include <list> 13 14 14 15 #include "parser/tinyxml/tinyxml.h" 15 16 16 17 // FORWARD DECLARATION 17 template<class T> class tList;18 18 19 19 //! A ParticleConnection enables us to emitt from any emitter into any other particleSystem … … 64 64 static ParticleEngine* singletonRef; //!< The reference to the engine. 65 65 66 tList<ParticleSystem>*systemList; //!< A list of Systems handled by the ParticleEngine.67 tList<ParticleEmitter>*emitterList; //!< A list of Emitters handled by the ParticleEngine.66 std::list<ParticleSystem> systemList; //!< A list of Systems handled by the ParticleEngine. 67 std::list<ParticleEmitter> emitterList; //!< A list of Emitters handled by the ParticleEngine. 68 68 69 69 tList<ParticleConnection>* connectionList; //!< A list of Connections between Systems and Emitters. -
trunk/src/lib/physics/physics_engine.cc
r5982 r7130 19 19 20 20 #include "class_list.h" 21 #include "list.h"22 21 #include "parser/tinyxml/tinyxml.h" 23 22 #include "factory.h" -
trunk/src/lib/physics/physics_interface.cc
r5257 r7130 26 26 #include "p_node.h" 27 27 28 #include "list.h"29 28 #include "string.h" 30 29 #include "stdincl.h"
Note: See TracChangeset
for help on using the changeset viewer.