![]() |
OpendTect
6.6
|
The base class for most UI elements. More...
Public Types | |
| enum | SzPolicy { Undef , Small , Medium , Wide , SmallVar , MedVar , WideVar , SmallMax , MedMax , WideMax } |
| How should the object's size behave? Undef : use default. Small : 1 base sz. Medium : 2* base sz + 1. Wide : 4* base sz + 3. The xxVar options specify that the element may have a bigger internal preferred size. In that case, the maximum is taken. The xxMax options specify that the element should take all available space ( stretch = 2 ) More... | |
Public Types inherited from ObjectWithName | |
| typedef OD::String | name_type |
Public Member Functions | |
| ~uiObject () | |
| uiSize | actualsize (bool inclborder=true) const |
| uiSize | actualSize (bool include_border=true) const |
| void | attach (constraintType, int margin=-1) |
| attaches object to another In case the stretched... options are used, margin=-1 (default) stretches the object not to cross the border. margin=-2 stretches the object to fill the parent's border. This looks nice with separators. More... | |
| void | attach (constraintType, uiObject *, int margin=-1, bool reciprocal=true) |
| void | attach (constraintType, uiParent *, int margin=-1, bool reciprocal=true) |
| virtual Color | backgroundColor () const |
| virtual const ObjectSet< uiBaseObject > * | childList () const |
| void | close () |
| void | deepRedraw (CallBacker *=0) |
| void | disabFocus () |
| void | display (bool yn, bool shrink=false, bool maximized=false) |
| const uiFont * | font () const |
| QWidget * | getWidget () |
| virtual bool | handleLongTabletPress () |
| bool | hasFocus () const |
| virtual int | height () const |
| Actual size in pixels. More... | |
| bool | isCursorInside () const |
| bool | isDisplayed () const |
| virtual bool | isEmpty () const |
| bool | isSensitive () const |
| uiMainWin * | mainwin () |
| uiParent * | parent () |
| const uiParent * | parent () const |
| int | prefHNrPics () const |
| int | prefVNrPics () const |
| QWidget * | qwidget () |
| const QWidget * | qwidget () const |
| void | reDraw (bool deep) |
| void | reParent (uiParent *) |
| Color | roBackgroundColor () const |
| bool | sensitive () const |
| virtual void | setBackgroundColor (const Color &) |
| virtual void | setBackgroundPixmap (const uiPixmap &) |
| void | setCaption (const uiString &) |
| virtual void | setCursor (const MouseCursor &) |
| void | setFocus () |
| void | setFont (const uiFont &) |
| void | setHSzPol (SzPolicy) |
| void | setMaximumHeight (int) |
| void | setMaximumHeightInChar (int) |
| void | setMaximumWidth (int) |
| void | setMaximumWidthInChar (int) |
| void | setMinimumHeight (int) |
| void | setMinimumHeightInChar (int) |
| void | setMinimumWidth (int) |
| void | setMinimumWidthInChar (int) |
| virtual void | setName (const char *) |
| virtual void | setPrefHeight (int) |
| void | setPrefHeightInChar (float) |
| void | setPrefHeightInChar (int) |
| virtual void | setPrefWidth (int) |
| void | setPrefWidthInChar (float) |
| void | setPrefWidthInChar (int) |
| void | setSensitive (bool yn=true) |
| void | setStretch (int hor, int ver) |
| Sets stretch factors for object If stretch factor is > 1, then object will already grow at pop-up. More... | |
| virtual void | setStyleSheet (const char *) |
| virtual void | setTextColor (const Color &) |
| void | setToolTip (const char *txt) |
| void | setToolTip (const uiString &) |
| void | setVSzPol (SzPolicy) |
| void | shallowRedraw (CallBacker *=0) |
| int | stretch (bool hor) const |
| SzPolicy | szPol (bool hor=true) const |
| const uiString & | toolTip () const |
| void | translateText () |
| bool | visible () const |
| virtual int | width () const |
| Actual size in pixels. More... | |
Public Member Functions inherited from uiBaseObject | |
| uiBaseObject (const char *nm, uiBody *=0) | |
| virtual | ~uiBaseObject () |
| int | beginCmdRecEvent (const char *msg=0) |
| int | beginCmdRecEvent (od_uint64 id, const char *msg=0) |
| uiBody * | body () |
| const uiBody * | body () const |
| void | clear () |
| void | endCmdRecEvent (int refnr, const char *msg=0) |
| void | endCmdRecEvent (od_uint64 id, int refnr, const char *msg=0) |
| void | finalise () |
| bool | finalised () const |
| const QWidget * | getWidget () const |
| virtual Notifier< uiBaseObject > & | postFinalise () |
| virtual Notifier< uiBaseObject > & | preFinalise () |
Public Member Functions inherited from NamedCallBacker | |
| NamedCallBacker (const char *nm=0) | |
| NamedCallBacker (const NamedCallBacker &) | |
| virtual Notifier< NamedCallBacker > & | objectToBeDeleted () const |
| bool | operator== (const NamedCallBacker &oth) const |
| bool | operator== (const NamedObject &oth) const |
Public Member Functions inherited from CallBacker | |
| CallBacker () | |
| CallBacker (const CallBacker &) | |
| virtual | ~CallBacker () |
| bool | attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const |
| bool | attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const |
| void | detachAllNotifiers () const |
| Call from the destructor of your inherited object. More... | |
| void | detachCB (const NotifierAccess &, const CallBack &) const |
| void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
| virtual bool | isCapsule () const |
| bool | isNotifierAttached (const NotifierAccess *) const |
| Only for debugging purposes, don't use. More... | |
| void | stopReceivingNotifications () const |
Public Member Functions inherited from NamedObject | |
| NamedObject (const char *nm=nullptr) | |
| NamedObject (const NamedObject &oth) | |
| virtual | ~NamedObject () |
| virtual BufferString | getName () const |
| bool | getNameFromPar (const IOPar &) |
| virtual const name_type & | name () const |
| NamedObject & | operator= (const NamedObject &) |
| bool | operator== (const NamedObject &oth) const |
Public Member Functions inherited from ObjectWithName | |
| virtual | ~ObjectWithName () |
| bool | hasName (const char *nm) const |
| bool | hasName (const name_type &nm) const |
| void | putNameInPar (IOPar &) const |
Static Public Member Functions | |
| static int | baseFldSize () |
| static int | iconSize () |
| static void | setTabOrder (uiObject *first, uiObject *second) |
| static void | updateToolTips () |
Static Public Member Functions inherited from uiBaseObject | |
| static void | addCmdRecorder (const CallBack &) |
| static void | removeCmdRecorder (const CallBack &) |
Static Public Member Functions inherited from CallBacker | |
| static void | createReceiverForCurrentThread () |
| static void | removeReceiverForCurrentThread () |
Public Attributes | |
| Notifier< uiObject > | closed |
| Triggered when object closes. More... | |
| CNotifier< uiObject, uiRect & > | setGeometry |
| triggered when getting a new geometry A reference to the new geometry is passed which can be manipulated, before the geometry is actually set to the QWidget. More... | |
Protected Member Functions | |
| uiObject (uiParent *, const char *nm) | |
| uiObject (uiParent *, const char *nm, uiObjectBody &) | |
| virtual bool | closeOK () |
| hook. Accepts/denies closing of window. More... | |
| void | triggerSetGeometry (const i_LayoutItem *, uiRect &) |
| setGeometry should be triggered by this's layoutItem More... | |
| void | updateToolTip (CallBacker *=0) |
Protected Member Functions inherited from uiBaseObject | |
| void | setBody (uiBody *b) |
Protected Member Functions inherited from NamedCallBacker | |
| void | sendDelNotif () const |
Protected Attributes | |
| uiString | tooltip_ |
| uiObjEventFilter * | uiobjeventfilter_ |
Protected Attributes inherited from uiBaseObject | |
| Notifier< uiBaseObject > | finaliseDone |
| triggered when finalising finished More... | |
| Notifier< uiBaseObject > | finaliseStart |
| triggered when about to start finalising More... | |
Protected Attributes inherited from NamedCallBacker | |
| Threads::Atomic< bool > | delalreadytriggered_ |
| Notifier< NamedCallBacker > | delnotif_ |
Protected Attributes inherited from NamedObject | |
| BufferString | name_ |
Private Attributes | |
| uiParent * | parent_ |
Friends | |
| class | i_LayoutItem |
| class | uiObjectBody |
The base class for most UI elements.
<>
| enum uiObject::SzPolicy |
How should the object's size behave? Undef : use default. Small : 1 base sz. Medium : 2* base sz + 1. Wide : 4* base sz + 3. The xxVar options specify that the element may have a bigger internal preferred size. In that case, the maximum is taken. The xxMax options specify that the element should take all available space ( stretch = 2 )
| Enumerator | |
|---|---|
| Undef | |
| Small | |
| Medium | |
| Wide | |
| SmallVar | |
| MedVar | |
| WideVar | |
| SmallMax | |
| MedMax | |
| WideMax | |
| uiObject::~uiObject | ( | ) |
|
protected |
|
protected |
|
inline |
| uiSize uiObject::actualSize | ( | bool | include_border = true | ) | const |
| void uiObject::attach | ( | constraintType | , |
| int | margin = -1 |
||
| ) |
attaches object to another In case the stretched... options are used, margin=-1 (default) stretches the object not to cross the border. margin=-2 stretches the object to fill the parent's border. This looks nice with separators.
| void uiObject::attach | ( | constraintType | , |
| uiObject * | , | ||
| int | margin = -1, |
||
| bool | reciprocal = true |
||
| ) |
| void uiObject::attach | ( | constraintType | , |
| uiParent * | , | ||
| int | margin = -1, |
||
| bool | reciprocal = true |
||
| ) |
|
virtual |
Reimplemented in uiGraphicsViewBase.
|
static |
|
inlinevirtual |
Reimplemented in uiGroupObj.
| void uiObject::close | ( | ) |
|
inlineprotectedvirtual |
hook. Accepts/denies closing of window.
|
inline |
| void uiObject::disabFocus | ( | ) |
| void uiObject::display | ( | bool | yn, |
| bool | shrink = false, |
||
| bool | maximized = false |
||
| ) |
| const uiFont* uiObject::font | ( | ) | const |
|
inlinevirtual |
Reimplemented from uiBaseObject.
|
virtual |
Reimplemented in uiColorTableCanvas, uiTreeView, uiTable, uiSpinBox, uiLineEdit, and uiComboBox.
| bool uiObject::hasFocus | ( | ) | const |
|
virtual |
Actual size in pixels.
Reimplemented in uiGraphicsViewBase.
|
static |
| bool uiObject::isCursorInside | ( | ) | const |
| bool uiObject::isDisplayed | ( | ) | const |
|
inlinevirtual |
Reimplemented in uiTreeView, and uiComboBox.
|
inline |
| uiMainWin* uiObject::mainwin | ( | ) |
|
inline |
|
inline |
| int uiObject::prefHNrPics | ( | ) | const |
| int uiObject::prefVNrPics | ( | ) | const |
| QWidget* uiObject::qwidget | ( | ) |
|
inline |
| void uiObject::reDraw | ( | bool | deep | ) |
| void uiObject::reParent | ( | uiParent * | ) |
| Color uiObject::roBackgroundColor | ( | ) | const |
| bool uiObject::sensitive | ( | ) | const |
|
virtual |
Reimplemented in ui3DViewer, and uiGraphicsViewBase.
|
virtual |
| void uiObject::setCaption | ( | const uiString & | ) |
|
virtual |
Reimplemented in uiObjectItemView.
| void uiObject::setFocus | ( | ) |
| void uiObject::setFont | ( | const uiFont & | ) |
| void uiObject::setHSzPol | ( | SzPolicy | ) |
| void uiObject::setMaximumHeight | ( | int | ) |
| void uiObject::setMaximumHeightInChar | ( | int | ) |
| void uiObject::setMaximumWidth | ( | int | ) |
| void uiObject::setMaximumWidthInChar | ( | int | ) |
| void uiObject::setMinimumHeight | ( | int | ) |
| void uiObject::setMinimumHeightInChar | ( | int | ) |
| void uiObject::setMinimumWidth | ( | int | ) |
| void uiObject::setMinimumWidthInChar | ( | int | ) |
|
virtual |
Reimplemented from NamedObject.
|
virtual |
| void uiObject::setPrefHeightInChar | ( | float | ) |
| void uiObject::setPrefHeightInChar | ( | int | ) |
|
virtual |
| void uiObject::setPrefWidthInChar | ( | float | ) |
| void uiObject::setPrefWidthInChar | ( | int | ) |
| void uiObject::setSensitive | ( | bool | yn = true | ) |
| void uiObject::setStretch | ( | int | hor, |
| int | ver | ||
| ) |
Sets stretch factors for object If stretch factor is > 1, then object will already grow at pop-up.
|
virtual |
|
virtual |
|
inline |
| void uiObject::setToolTip | ( | const uiString & | ) |
| void uiObject::setVSzPol | ( | SzPolicy | ) |
|
inline |
| int uiObject::stretch | ( | bool | hor | ) | const |
| SzPolicy uiObject::szPol | ( | bool | hor = true | ) | const |
| const uiString& uiObject::toolTip | ( | ) | const |
|
virtual |
Triggers translation of object and all members to current language.
Reimplemented from uiBaseObject.
Reimplemented in uiTreeView, and uiSpinBox.
|
protected |
setGeometry should be triggered by this's layoutItem
|
protected |
|
static |
| bool uiObject::visible | ( | ) | const |
|
virtual |
Actual size in pixels.
Reimplemented in uiGraphicsViewBase.
|
friend |
|
friend |
|
private |
triggered when getting a new geometry A reference to the new geometry is passed which can be manipulated, before the geometry is actually set to the QWidget.
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022