Add type of Children in SimGroup and GuiControl

This commit is contained in:
Lukas Aldershaab 2020-10-18 02:25:44 +02:00
parent 55f459cf2d
commit 763c205451
4 changed files with 4 additions and 2 deletions

View file

@ -37,7 +37,7 @@
#include "math/mMathFn.h" #include "math/mMathFn.h"
IMPLEMENT_CONOBJECT( SimSet ); IMPLEMENT_CONOBJECT_CHILDREN( SimSet );
IMPLEMENT_CONOBJECT( SimGroup ); IMPLEMENT_CONOBJECT( SimGroup );
ConsoleDocClass( SimSet, ConsoleDocClass( SimSet,

View file

@ -95,6 +95,7 @@ class SimSet : public SimObject, public TamlChildren
public: public:
typedef SimObject Parent; typedef SimObject Parent;
typedef SimObject Children;
enum SetModification enum SetModification
{ {

View file

@ -44,7 +44,7 @@
//#define DEBUG_SPEW //#define DEBUG_SPEW
IMPLEMENT_CONOBJECT( GuiControl ); IMPLEMENT_CONOBJECT_CHILDREN( GuiControl );
ConsoleDocClass( GuiControl, ConsoleDocClass( GuiControl,
"@brief Base class for all Gui control objects.\n\n" "@brief Base class for all Gui control objects.\n\n"

View file

@ -107,6 +107,7 @@ class GuiControl : public SimGroup
public: public:
typedef SimGroup Parent; typedef SimGroup Parent;
typedef GuiControl Children;
friend class GuiWindowCtrl; // mCollapseGroupVec friend class GuiWindowCtrl; // mCollapseGroupVec
friend class GuiCanvas; friend class GuiCanvas;