Changeset 5364 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_container.cc
- Timestamp:
- Oct 11, 2005, 11:48:19 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/glgui_container.cc
r5360 r5364 16 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GUI 17 17 18 #include "glgui_.h" 18 #include "glgui_container.h" 19 20 #include "list.h" 21 19 22 20 23 using namespace std; … … 23 26 * standard constructor 24 27 */ 25 GLGui ::GLGui()28 GLGuiContainer::GLGuiContainer () 26 29 { 27 30 this->init(); 28 31 this->children = new tList<GLGuiWidget>; 29 32 } 30 33 … … 33 36 * standard deconstructor 34 37 */ 35 GLGui ::~GLGui()38 GLGuiContainer::~GLGuiContainer() 36 39 { 37 40 delete this->children; 38 41 } 39 42 … … 41 44 * initializes the GUI-element 42 45 */ 43 GLGui::init()46 void GLGuiContainer::init() 44 47 { 45 this->setClassID(CL_GLGUI_ , "GLGui");48 this->setClassID(CL_GLGUI_CONTAINER, "GLGuiContainer"); 46 49 47 50 } 48 51 49 /** 50 * draws the GLGui 51 */ 52 void GLGui::draw() 52 void GLGuiContainer::showAll() 53 { 54 55 tIterator<GLGuiWidget>* itC = this->children->getIterator(); 56 GLGuiWidget* enumC = itC->firstElement(); 57 while (enumC != NULL) 58 { 59 if (enumC->isA(CL_GLGUI_CONTAINER)) 60 static_cast<GLGuiContainer*>(enumC)->showAll(); 61 else 62 enumC->show(); 63 enumC = itC->nextElement(); 64 } 65 delete itC; 66 67 this->show(); 68 69 } 70 71 void GLGuiContainer::hideAll() 53 72 { 54 73 55 74 } 75 76 77 /** 78 * draws the GLGuiContainer 79 */ 80 void GLGuiContainer::draw() 81 { 82 83 }
Note: See TracChangeset
for help on using the changeset viewer.