15 #include "uibasemod.h" 29 friend class uiObjectBody;
33 void addChild(uiBaseObject&);
34 void manageChld(uiBaseObject&,uiObjectBody&);
45 {
return const_cast<uiParent*
>(
this)->mainobject();}
49 {
return const_cast<uiParent*
>(
this)->pbody(); }
52 #define mIfMO() if ( mainObject() ) mainObject() 53 #define mRetMO(fn,val) return mainObject() ? mainObject()->fn() : val; 56 {
mIfMO()->attach(t,margin); }
59 { attach(t,oth->
mainObject(),margin,reciprocal); }
62 { attach_(t,oth,margin,reciprocal); }
65 virtual void display(
bool yn,
bool shrk=
false,
67 { finalise();
mIfMO()->display(yn,shrk,maximize); }
84 return mainObject()->actualsize(include_border);
93 {
mIfMO()->setPrefWidthInChar(h); }
95 {
mIfMO()->setPrefHeightInChar(h); }
97 {
mIfMO()->setPrefWidthInChar(w); }
99 {
mIfMO()->setPrefWidthInChar(w); }
107 Color backgroundColor()
const;
108 Color roBackgroundColor()
const;
110 {
mIfMO()->setBackgroundColor(c); }
112 void translateText();
117 bool reciprocal=
true)
118 {
mIfMO()->attach(t,oth,margin,reciprocal); }
void shallowRedraw(CallBacker *=0)
Definition: uiparent.h:102
#define mExpClass(module)
Definition: commondefs.h:160
User interface main window.
Definition: uimainwin.h:36
int prefVNrPics() const
Definition: uiparent.h:89
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
bool sensitive() const
Definition: uiparent.h:74
void attach(constraintType t, int margin=-1)
Definition: uiparent.h:55
Definition of a mouse cursor, can be either a predefined shape (from the enum, or a file...
Definition: mousecursor.h:26
bool hasFocus() const
Definition: uiparent.h:71
const uiParentBody * pbody() const
Definition: uiparent.h:48
The base class for most UI elements.
Definition: uiobj.h:38
Definition: uistring.h:89
Definition: uiparent.h:26
void setBackgroundColor(const Color &c)
Definition: uiparent.h:109
uiSize actualsize(bool include_border) const
Definition: uiparent.h:81
virtual void attach_(constraintType t, uiObject *oth, int margin=-1, bool reciprocal=true)
Definition: uiparent.h:116
void setFocus()
Definition: uiparent.h:70
void setCaption(const uiString &c)
Definition: uiparent.h:78
#define mRetMO(fn, val)
Definition: uiparent.h:53
virtual void reDraw(bool deep)
Definition: uiparent.h:101
const uiFont * font() const
Definition: uiparent.h:76
void setPrefWidthInChar(int w)
Definition: uiparent.h:98
bool isDisplayed() const
Definition: uiparent.h:68
void setPrefHeightInChar(float h)
Definition: uiparent.h:94
void setPrefHeight(int h)
Definition: uiparent.h:90
void deepRedraw(CallBacker *=0)
Definition: uiparent.h:103
virtual uiMainWin * mainwin()
Definition: uiparent.h:41
void setFont(const uiFont &f)
Definition: uiparent.h:77
Definition: uiparentbody.h:23
void setPrefWidthInChar(float w)
Definition: uiparent.h:96
uiObject * mainObject()
Definition: uiparent.h:43
#define mIfMO()
Definition: uiparent.h:52
void attach(constraintType t, uiParent *oth, int margin=-1, bool reciprocal=true)
Definition: uiparent.h:57
constraintType
Definition: uilayout.h:19
int prefHNrPics() const
Definition: uiparent.h:88
virtual uiObject * mainobject()
Definition: uiparent.h:123
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
const uiObject * mainObject() const
Definition: uiparent.h:44
void setPrefWidth(int w)
Definition: uiparent.h:91
void setCursor(const MouseCursor &c)
Definition: uiparent.h:79
void setStretch(int h, int v)
Definition: uiparent.h:105
void attach(constraintType t, uiObject *oth, int margin=-1, bool reciprocal=true)
Definition: uiparent.h:60
void setSensitive(bool yn=true)
Definition: uiparent.h:73
virtual void display(bool yn, bool shrk=false, bool maximize=false)
Definition: uiparent.h:65
void setPrefHeightInChar(int h)
Definition: uiparent.h:92