OpendTect
6.6
|
Public Member Functions | |
uiTreeItem (const uiString &nm=uiString::emptyString()) | |
virtual | ~uiTreeItem () |
virtual bool | addChild (uiTreeItem *child, bool below) |
bool | allChildrenChecked () const |
bool | allChildrenCollapsed () const |
bool | allChildrenExpanded () const |
bool | allChildrenUnchecked () const |
bool | areAllParentsChecked () |
virtual bool | askContinueAndSaveIfNeeded (bool withcancel) |
NotifierAccess * | checkStatusChange () |
void | collapse () |
void | entryInEditMode (int col) |
void | expand () |
virtual uiTreeItem * | findChild (const char *name) |
virtual const uiTreeItem * | findChild (const char *name) const |
virtual uiTreeItem * | findChild (int selkey) |
virtual const uiTreeItem * | findChild (int selkey) const |
virtual void | findChildren (const char *, ObjectSet< uiTreeItem > &) |
uiTreeItem * | getChild (int) |
const uiTreeItem * | getChild (int) const |
ObjectSet< uiTreeItem > & | getChildren () |
const ObjectSet< uiTreeItem > & | getChildren () const |
uiTreeViewItem * | getItem () |
const uiTreeViewItem * | getItem () const |
template<class T > | |
bool | getProperty (const char *key, T &res) const |
bool | getPropertyPtr (const char *key, void *&) const |
bool | hasChildren () const |
bool | hasGrandChildren () const |
virtual bool | isChecked () const |
bool | isCollapsed () const |
bool | isExpanded () const |
virtual bool | isSelected () const |
NotifierAccess * | keyPressed () |
uiTreeItem * | lastChild () |
virtual void | moveItem (uiTreeItem *after) |
virtual void | moveItemToTop () |
uiString | name () const |
int | nrChildren () const |
uiTreeItem * | parentTreeItem () |
virtual void | prepareForShutdown () |
virtual void | removeAllChildren () |
virtual void | removeChild (uiTreeItem *) |
virtual bool | select () |
virtual int | selectionKey () const |
void | setChecked (bool yn, bool trigger=false) |
void | setName (const uiString &nm) |
template<class T > | |
void | setProperty (const char *key, const T &) |
void | setPropertyPtr (const char *key, void *) |
virtual uiTreeItem * | siblingAbove () |
virtual uiTreeItem * | siblingBelow () |
virtual int | siblingIndex () const |
virtual void | translateText () |
virtual void | updateCheckStatus () |
virtual void | updateColumnText (int col) |
void | updateSelTreeColumnText (int col) |
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 |
Protected Member Functions | |
virtual bool | addChld (uiTreeItem *, bool below, bool downwards) |
virtual bool | anyButtonClick (uiTreeViewItem *) |
virtual bool | doubleClick (uiTreeViewItem *) |
virtual uiParent * | getUiParent () const |
virtual bool | init () |
virtual bool | isExpandable () const |
virtual bool | isSelectable () const |
virtual const char * | parentType () const =0 |
virtual void | removeItem (uiTreeViewItem *) |
virtual void | renameItem (uiTreeViewItem *) |
virtual bool | rightClick (uiTreeViewItem *) |
virtual bool | selectWithKey (int selkey) |
virtual void | setTreeViewItem (uiTreeViewItem *) |
virtual bool | shouldSelect (int selectionkey) const |
virtual bool | showSubMenu () |
virtual int | uiTreeViewItemType () const |
virtual void | updateSelection (int selectionKey, bool dw=false) |
virtual bool | useParentType () const |
Protected Attributes | |
ObjectSet< uiTreeItem > | children_ |
uiString | name_ |
uiTreeItem * | parent_ |
IOPar | properties_ |
uiTreeViewItem * | uitreeviewitem_ |
Private Member Functions | |
bool | addChildImpl (CallBacker *, uiTreeItem *, bool, bool) |
Friends | |
class | uiODTreeTop |
class | uiTreeTopItem |
Additional Inherited Members | |
Static Public Member Functions inherited from CallBacker | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
<>
uiTreeItem::uiTreeItem | ( | const uiString & | nm = uiString::emptyString() | ) |
|
virtual |
|
virtual |
Adds a child. If the child does not fit (i.e. the child's parentType() is not the same as this), it will try to find a valid parent somewhere else in the tree.
child | becomes mine |
below | specifies wether the child shoule be added above or below eventual existing siblings. |
Reimplemented in uiTreeTopItem.
|
private |
|
protectedvirtual |
Adds a child to this item. If the child does not fit (i.e. its parentType() is not equal to this), the object tries to add it to its parent if downwards is false. If downwards is true, it tries to add it to its children if it does not fit.
below | specifies wether the child should be added above or below eventual existing siblings. |
downwards |
Reimplemented in uiODHorizon2DParentTreeItem, uiODHorizonParentTreeItem, and uiTreeTopItem.
bool uiTreeItem::allChildrenChecked | ( | ) | const |
bool uiTreeItem::allChildrenCollapsed | ( | ) | const |
bool uiTreeItem::allChildrenExpanded | ( | ) | const |
bool uiTreeItem::allChildrenUnchecked | ( | ) | const |
|
protectedvirtual |
Reimplemented in ExternalAttrib::uiRandomTreeItem, VolProc::uiDataTreeItem, uiODParentTreeItem, uiODTreeItem, uiODPSEventsTreeItem, and uiODAttribTreeItem.
bool uiTreeItem::areAllParentsChecked | ( | ) |
|
virtual |
NotifierAccess* uiTreeItem::checkStatusChange | ( | ) |
void uiTreeItem::collapse | ( | ) |
|
protectedvirtual |
Reimplemented in uiContourTreeItem, uiODWellTreeItem, uiODPolygonTreeItem, uiODPickSetTreeItem, and uiODDisplayTreeItem.
void uiTreeItem::entryInEditMode | ( | int | col | ) |
void uiTreeItem::expand | ( | ) |
|
virtual |
Finds a child in the tree below this item.
|
virtual |
Finds a child in the tree below this item.
|
virtual |
Finds a child in the tree below this item.
|
virtual |
Finds a child in the tree below this item.
|
virtual |
Finds all children in the tree below this item.
uiTreeItem* uiTreeItem::getChild | ( | int | ) |
const uiTreeItem* uiTreeItem::getChild | ( | int | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Gets a keyed value that has been stored with setProperty().
true | the key was found and res is set |
false | the key was not found and res is not set |
|
inline |
Gets a keyed pointer that has been stored with setPropertyPtr().
true | the key was found and res is set |
false | the key was not found and res is not set |
|
protectedvirtual |
Reimplemented in uiTreeTopItem.
bool uiTreeItem::hasChildren | ( | ) | const |
bool uiTreeItem::hasGrandChildren | ( | ) | const |
|
inlineprotectedvirtual |
Reimplemented in uiContourTreeItem, ScaleBarSubItem, Annotations::ScaleBarSubItem, Annotations::ImageSubItem, Annotations::ArrowSubItem, Annotations::TextSubItem, Annotations::SubItem, Annotations::AnnotTreeItem, Annotations::ParentTreeItem, uiODWellTreeItem, uiODVW2DWiggleVarAreaTreeItem, uiODVW2DVariableDensityTreeItem, uiODVw2DTreeItem, uiODVw2DPickSetTreeItem, uiODVw2DPickSetParentTreeItem, uiODVw2DHor3DTreeItem, uiODVw2DHor3DParentTreeItem, uiODVw2DHor2DTreeItem, uiODVw2DHor2DParentTreeItem, uiODVw2DFaultTreeItem, uiODVw2DFaultParentTreeItem, uiODVw2DFaultSSTreeItem, uiODVw2DFaultSSParentTreeItem, uiODVw2DFaultSS2DTreeItem, uiODVw2DFaultSS2DParentTreeItem, uiODVolrenSubTreeItem, uiODVolrenTreeItem, uiODParentTreeItem, uiODTreeItem, uiOD2DLineTreeItem, uiODSceneTreeItem, uiODRandomLineTreeItem, uiODPSEventsTreeItem, uiODPSEventsParentTreeItem, uiODPlaneDataTreeItem, uiODPolygonTreeItem, uiODPickSetTreeItem, uiODHorizonTreeItem, uiODFaultStickSetTreeItem, uiODFaultTreeItem, uiODEarthModelSurfaceTreeItem, uiODDisplayTreeItem, uiODDataTreeItem, uiODBodyDisplayTreeItem, ImageSubItem, ArrowSubItem, ScaleBarSubItem, uiODAnnotSubItem, uiODAnnotTreeItem, and uiODAnnotParentTreeItem.
|
virtual |
Reimplemented in uiTreeTopItem.
bool uiTreeItem::isCollapsed | ( | ) | const |
|
inlineprotectedvirtual |
Reimplemented in uiODVolrenTreeItem, uiODSceneTreeItem, uiODDisplayTreeItem, and uiODDataTreeItem.
bool uiTreeItem::isExpanded | ( | ) | const |
|
inlineprotectedvirtual |
|
virtual |
NotifierAccess* uiTreeItem::keyPressed | ( | ) |
uiTreeItem* uiTreeItem::lastChild | ( | ) |
|
virtual |
|
virtual |
uiString uiTreeItem::name | ( | ) | const |
|
inline |
|
inline |
|
protectedpure virtual |
Implemented in Annotations::SubItem, uiODAnnotSubItem, ScaleBarSubItem, Annotations::ScaleBarSubItem, Annotations::ImageSubItem, Annotations::ArrowSubItem, Annotations::TextSubItem, Annotations::AnnotTreeItem, Annotations::ParentTreeItem, uiTreeTopItem, uiODWellTreeItem, uiODVW2DWiggleVarAreaTreeItem, uiODVW2DVariableDensityTreeItem, uiODVw2DTreeTop, uiODVw2DPickSetTreeItem, uiODVw2DPickSetParentTreeItem, uiODVw2DHor3DTreeItem, uiODVw2DHor3DParentTreeItem, uiODVw2DHor2DTreeItem, uiODVw2DHor2DParentTreeItem, uiODVw2DFaultTreeItem, uiODVw2DFaultParentTreeItem, uiODVw2DFaultSSTreeItem, uiODVw2DFaultSSParentTreeItem, uiODVw2DFaultSS2DTreeItem, uiODVw2DFaultSS2DParentTreeItem, uiODVolrenSubTreeItem, uiODVolrenTreeItem, uiODParentTreeItem, uiODTreeTop, uiOD2DLineTreeItem, uiODSceneTreeItem, uiODRandomLineTreeItem, uiODPSEventsTreeItem, uiODPSEventsParentTreeItem, uiODZsliceTreeItem, uiODCrosslineTreeItem, uiODInlineTreeItem, uiODPolygonTreeItem, uiODPickSetTreeItem, uiODHorizon2DTreeItem, uiODHorizonTreeItem, uiODFaultStickSetTreeItem, uiODFaultTreeItem, uiODDataTreeItem, uiODBodyDisplayTreeItem, ImageSubItem, ArrowSubItem, ScaleBarSubItem, uiODAnnotTreeItem, and uiODAnnotParentTreeItem.
|
virtual |
Override if you want to popup dlg for saving various things (or similar)
Reimplemented in uiContourTreeItem, Annotations::SubItem, Annotations::AnnotTreeItem, uiODPolygonTreeItem, uiODPickSetTreeItem, uiODFaultStickSetTreeItem, uiODFaultTreeItem, uiODEarthModelSurfaceTreeItem, uiODDisplayTreeItem, uiODBodyDisplayTreeItem, uiODAnnotSubItem, and uiODAnnotTreeItem.
|
virtual |
Reimplemented in uiODVw2DTreeItem.
|
virtual |
Reimplemented in uiODRandomLineParentTreeItem, uiODHorizon2DParentTreeItem, and uiODHorizonParentTreeItem.
|
protectedvirtual |
Reimplemented in uiTreeTopItem.
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in Annotations::ParentTreeItem, and uiODAnnotParentTreeItem.
|
virtual |
Selects this item
Reimplemented in uiODVW2DWiggleVarAreaTreeItem, uiODVW2DVariableDensityTreeItem, uiODVw2DPickSetTreeItem, uiODVw2DHor3DTreeItem, uiODVw2DHor2DTreeItem, uiODVw2DFaultTreeItem, uiODVw2DFaultSSTreeItem, uiODVw2DFaultSS2DTreeItem, and uiODDataTreeItem.
|
inlinevirtual |
Reimplemented in uiODSceneTreeItem, and uiODDisplayTreeItem.
|
protectedvirtual |
Reimplemented in uiODVw2DTreeTop, and uiODTreeTop.
void uiTreeItem::setChecked | ( | bool | yn, |
bool | trigger = false |
||
) |
|
inline |
|
inline |
Sets a keyed value that has been retrieved with getProperty().
|
inline |
Sets a keyed pointer that may have been retrieved with getPropertyPtr().
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in uiODDataTreeItem, and uiODDisplayTreeItem.
|
inlineprotectedvirtual |
Reimplemented in uiODParentTreeItem, uiODWellParentTreeItem, uiODVolrenParentTreeItem, uiODLine2DParentTreeItem, uiODRandomLineParentTreeItem, uiODZsliceParentTreeItem, uiODCrosslineParentTreeItem, uiODInlineParentTreeItem, uiODPolygonParentTreeItem, uiODPickSetParentTreeItem, uiODHorizon2DParentTreeItem, uiODFaultStickSetParentTreeItem, uiODBodyDisplayParentTreeItem, Annotations::AnnotTreeItem, uiODVW2DWiggleVarAreaTreeItem, uiODVW2DVariableDensityTreeItem, uiODVw2DPickSetTreeItem, uiODVw2DPickSetParentTreeItem, uiODVw2DHor3DTreeItem, uiODVw2DHor3DParentTreeItem, uiODVw2DHor2DTreeItem, uiODVw2DHor2DParentTreeItem, uiODVw2DFaultTreeItem, uiODVw2DFaultParentTreeItem, uiODVw2DFaultSSTreeItem, uiODVw2DFaultSSParentTreeItem, uiODVw2DFaultSS2DTreeItem, uiODVw2DFaultSS2DParentTreeItem, uiODVolrenTreeItem, uiODSceneTreeItem, uiODPSEventsParentTreeItem, uiODHorizonParentTreeItem, uiODFaultParentTreeItem, uiODDisplayTreeItem, uiODDataTreeItem, and uiODAnnotTreeItem.
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
|
protectedvirtual |
Reimplemented in uiODParentTreeItem, uiODDisplayTreeItem, and uiODDataTreeItem.
|
virtual |
Reimplemented in uiODDisplayTreeItem.
|
virtual |
|
protectedvirtual |
Does only update the display
Reimplemented in uiTreeTopItem.
void uiTreeItem::updateSelTreeColumnText | ( | int | col | ) |
|
inlineprotectedvirtual |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022