25 friend class uiObjectBody;
37 if ( children_.isPresent(&child ) )
return;
56 virtual void finalise() { finaliseChildren(); }
57 void finaliseChildren();
61 inline const mQtclass(QWidget*) managewidg()
const {
return managewidg_();}
64 {
return const_cast<mQtclass(QWidget*)
>( managewidg_() ); }
78 uiBaseObject* obj =
static_cast<uiBaseObject*
>( cb );
79 if ( obj ) children_ -= obj;
82 virtual const mQtclass(QWidget*) managewidg_()
const = 0;
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
ObjectSet< uiBaseObject > children_
Definition: uiparentbody.h:85
#define mQtclass(cls)
Definition: commondefs.h:229
virtual void addChild(uiBaseObject &child)
Definition: uiparentbody.h:35
void manageChld(uiBaseObject &child, uiObjectBody &b)
child becomes mine.
Definition: uiparentbody.h:43
void deleteAllChildren()
Definition: uiparentbody.h:67
bool finalised() const
Definition: uiparentbody.h:55
The base class for most UI elements.
Definition: uiobj.h:38
virtual ~uiParentBody()
Definition: uiparentbody.h:33
void childDel(CallBacker *cb)
Definition: uiparentbody.h:76
const ObjectSet< uiBaseObject > * childList() const
Definition: uiparentbody.h:53
bool finalised_
Definition: uiparentbody.h:89
virtual void finalise()
Definition: uiparentbody.h:56
#define mCB(obj, clss, fn)
To make your CallBack. Used in many places, especially the UI.
Definition: callback.h:42
virtual void manageChld_(uiBaseObject &, uiObjectBody &)
Definition: uiparentbody.h:83
uiParentBody(const char *nm)
Definition: uiparentbody.h:28
Definition: uiparentbody.h:23
Object with a name.
Definition: namedobj.h:35
constraintType
Definition: uilayout.h:19
virtual void erase()
Definition: objectset.h:84
const mQtclass(QWidget *) managewidg() const
widget to be used as parent for QWidgets
Definition: uiparentbody.h:61
#define mClass(module)
Definition: commondefs.h:164
mQtclass(QWidget *) managewidg()
widget to be used as parent for QWidgets
Definition: uiparentbody.h:63
void deepErase(ObjectSet< T > &os)
empty the ObjectSet deleting all objects pointed to.
Definition: objectset.h:118