38 explicit Tree(T* parent);
47 void addChild(T* newChild,
int parentPostion = -1,
int parentPosition = -1);
119 pParent->addChild((T*)(
this));
136 if (std::uncaught_exception()) {
137 std::cout <<
"ERROR: Hook destructed during stack rewind because of an uncaught exception." << std::endl;
229 (*it)->enableFamily();
238 (*it)->disableFamily();
245 if ((parentPosition == -1) || (childPosition >= static_cast<int>(
mpMyChildrenList->size()))) {
251 if (cnt >= childPosition) {
296 #endif // MUDLET_TREE_H void setTemporary(bool state)
void setModuleName(const QString &n)
QString getPackageName() const
std::list< T * > * getChildrenList() const
virtual bool canBeActivated() const
std::list< T * > * mpMyChildrenList
bool popChild(T *removeChild)
bool shouldBeActive() const
int getChildCount() const
bool ancestorsActive() const
void addChild(T *newChild, int parentPostion=-1, int parentPosition=-1)
void setPackageName(const QString &n)
void setShouldBeActive(bool b)
QString getModuleName() const
void setParent(T *parent)