Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5364 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_container.cc


Ignore:
Timestamp:
Oct 11, 2005, 11:48:19 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: some more definition of the GUI

File:
1 edited

Legend:

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

    r5360 r5364  
    1616#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GUI
    1717
    18 #include "glgui_.h"
     18#include "glgui_container.h"
     19
     20#include "list.h"
     21
    1922
    2023using namespace std;
     
    2326 * standard constructor
    2427*/
    25 GLGui::GLGui ()
     28GLGuiContainer::GLGuiContainer ()
    2629{
    2730  this->init();
    28 
     31  this->children = new tList<GLGuiWidget>;
    2932}
    3033
     
    3336 * standard deconstructor
    3437*/
    35 GLGui::~GLGui()
     38GLGuiContainer::~GLGuiContainer()
    3639{
    37 
     40  delete this->children;
    3841}
    3942
     
    4144 * initializes the GUI-element
    4245 */
    43 GLGui::init()
     46void GLGuiContainer::init()
    4447{
    45   this->setClassID(CL_GLGUI_, "GLGui");
     48  this->setClassID(CL_GLGUI_CONTAINER, "GLGuiContainer");
    4649
    4750}
    4851
    49 /**
    50  * draws the GLGui
    51  */
    52 void GLGui::draw()
     52void 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
     71void GLGuiContainer::hideAll()
    5372{
    5473
    5574}
     75
     76
     77/**
     78 * draws the GLGuiContainer
     79 */
     80void GLGuiContainer::draw()
     81{
     82
     83}
Note: See TracChangeset for help on using the changeset viewer.