13 #include "uibasemod.h" 27 friend class uiObjectBody;
31 void addChild(uiBaseObject&);
32 void manageChld(uiBaseObject&,uiObjectBody&);
43 {
return const_cast<uiParent*
>(
this)->mainobject();}
47 {
return const_cast<uiParent*
>(
this)->pbody(); }
50 #define mIfMO() if ( mainObject() ) mainObject() 51 #define mRetMO(fn,val) return mainObject() ? mainObject()->fn() : val; 54 {
mIfMO()->attach(t,margin); }
57 { attach(t,oth->
mainObject(),margin,reciprocal); }
60 { attach_(t,oth,margin,reciprocal); }
63 virtual void display(
bool yn,
bool shrk=
false,
65 { finalise();
mIfMO()->display(yn,shrk,maximize); }
82 return mainObject()->actualsize(include_border);
91 {
mIfMO()->setPrefWidthInChar(h); }
93 {
mIfMO()->setPrefHeightInChar(h); }
95 {
mIfMO()->setPrefWidthInChar(w); }
97 {
mIfMO()->setPrefWidthInChar(w); }
105 Color backgroundColor()
const;
106 Color roBackgroundColor()
const;
108 {
mIfMO()->setBackgroundColor(c); }
110 void translateText();
115 bool reciprocal=
true)
116 {
mIfMO()->attach(t,oth,margin,reciprocal); }
void shallowRedraw(CallBacker *=0)
Definition: uiparent.h:100
#define mExpClass(module)
Definition: commondefs.h:157
User interface main window.
Definition: uimainwin.h:34
int prefVNrPics() const
Definition: uiparent.h:87
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
bool sensitive() const
Definition: uiparent.h:72
void attach(constraintType t, int margin=-1)
Definition: uiparent.h:53
Definition of a mouse cursor, can be either a predefined shape (from the enum, or a file...
Definition: mousecursor.h:24
bool hasFocus() const
Definition: uiparent.h:69
const uiParentBody * pbody() const
Definition: uiparent.h:46
The base class for most UI elements.
Definition: uiobj.h:35
Definition: uistring.h:88
Definition: uiparent.h:24
void setBackgroundColor(const Color &c)
Definition: uiparent.h:107
uiSize actualsize(bool include_border) const
Definition: uiparent.h:79
virtual void attach_(constraintType t, uiObject *oth, int margin=-1, bool reciprocal=true)
Definition: uiparent.h:114
void setFocus()
Definition: uiparent.h:68
void setCaption(const uiString &c)
Definition: uiparent.h:76
#define mRetMO(fn, val)
Definition: uiparent.h:51
virtual void reDraw(bool deep)
Definition: uiparent.h:99
const uiFont * font() const
Definition: uiparent.h:74
void setPrefWidthInChar(int w)
Definition: uiparent.h:96
bool isDisplayed() const
Definition: uiparent.h:66
void setPrefHeightInChar(float h)
Definition: uiparent.h:92
void setPrefHeight(int h)
Definition: uiparent.h:88
void deepRedraw(CallBacker *=0)
Definition: uiparent.h:101
virtual uiMainWin * mainwin()
Definition: uiparent.h:39
void setFont(const uiFont &f)
Definition: uiparent.h:75
Definition: uiparentbody.h:21
void setPrefWidthInChar(float w)
Definition: uiparent.h:94
uiObject * mainObject()
Definition: uiparent.h:41
#define mIfMO()
Definition: uiparent.h:50
void attach(constraintType t, uiParent *oth, int margin=-1, bool reciprocal=true)
Definition: uiparent.h:55
constraintType
Definition: uilayout.h:17
int prefHNrPics() const
Definition: uiparent.h:86
virtual uiObject * mainobject()
Definition: uiparent.h:121
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:24
const uiObject * mainObject() const
Definition: uiparent.h:42
void setPrefWidth(int w)
Definition: uiparent.h:89
void setCursor(const MouseCursor &c)
Definition: uiparent.h:77
void setStretch(int h, int v)
Definition: uiparent.h:103
void attach(constraintType t, uiObject *oth, int margin=-1, bool reciprocal=true)
Definition: uiparent.h:58
void setSensitive(bool yn=true)
Definition: uiparent.h:71
virtual void display(bool yn, bool shrk=false, bool maximize=false)
Definition: uiparent.h:63
void setPrefHeightInChar(int h)
Definition: uiparent.h:90