OpendTect-6_4
6.4
|
Public Member Functions | |
uiTreeItem (const uiString &nm=uiString::emptyString()) | |
virtual | ~uiTreeItem () |
virtual void | prepareForShutdown () |
virtual bool | askContinueAndSaveIfNeeded (bool withcancel) |
void | setName (const uiString &nm) |
uiString | name () const |
bool | areAllParentsChecked () |
void | entryInEditMode (int col) |
virtual int | selectionKey () const |
virtual bool | select () |
virtual bool | isSelected () const |
void | setChecked (bool yn, bool trigger=false) |
virtual bool | isChecked () const |
NotifierAccess * | checkStatusChange () |
NotifierAccess * | keyPressed () |
void | expand () |
bool | isExpanded () const |
void | collapse () |
bool | isCollapsed () const |
bool | hasChildren () const |
bool | hasGrandChildren () const |
bool | allChildrenExpanded () const |
bool | allChildrenCollapsed () const |
bool | allChildrenChecked () const |
bool | allChildrenUnchecked () const |
virtual int | siblingIndex () const |
virtual uiTreeItem * | siblingAbove () |
virtual uiTreeItem * | siblingBelow () |
virtual void | moveItem (uiTreeItem *after) |
virtual void | moveItemToTop () |
uiTreeItem * | lastChild () |
int | nrChildren () const |
const uiTreeItem * | getChild (int) const |
uiTreeItem * | getChild (int) |
ObjectSet< uiTreeItem > & | getChildren () |
const ObjectSet< uiTreeItem > & | getChildren () const |
virtual bool | addChild (uiTreeItem *child, bool below) |
virtual void | removeChild (uiTreeItem *) |
virtual void | removeAllChildren () |
virtual const uiTreeItem * | findChild (const char *name) const |
virtual const uiTreeItem * | findChild (int selkey) const |
virtual uiTreeItem * | findChild (const char *name) |
virtual uiTreeItem * | findChild (int selkey) |
virtual void | findChildren (const char *, ObjectSet< uiTreeItem > &) |
template<class T > | |
void | setProperty (const char *key, const T &) |
void | setPropertyPtr (const char *key, void *) |
template<class T > | |
bool | getProperty (const char *key, T &res) const |
bool | getPropertyPtr (const char *key, void *&) const |
virtual void | updateColumnText (int col) |
virtual void | updateCheckStatus () |
virtual void | translateText () |
uiTreeViewItem * | getItem () |
const uiTreeViewItem * | getItem () const |
void | updateSelTreeColumnText (int col) |
uiTreeItem * | parentTreeItem () |
Public Member Functions inherited from CallBacker | |
CallBacker () | |
CallBacker (const CallBacker &) | |
virtual | ~CallBacker () |
bool | attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false) |
bool | attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) |
void | detachCB (NotifierAccess &, const CallBack &) |
void | detachCB (NotifierAccess *notif, const CallBack &cb) |
bool | isNotifierAttached (NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
Protected Member Functions | |
virtual int | uiTreeViewItemType () const |
virtual uiParent * | getUiParent () const |
virtual bool | addChld (uiTreeItem *, bool below, bool downwards) |
virtual const char * | parentType () const =0 |
virtual bool | useParentType () const |
virtual bool | init () |
virtual bool | rightClick (uiTreeViewItem *) |
virtual bool | anyButtonClick (uiTreeViewItem *) |
virtual bool | doubleClick (uiTreeViewItem *) |
virtual void | setTreeViewItem (uiTreeViewItem *) |
virtual void | removeItem (uiTreeViewItem *) |
virtual void | renameItem (uiTreeViewItem *) |
virtual bool | showSubMenu () |
virtual bool | selectWithKey (int selkey) |
virtual bool | isSelectable () const |
virtual bool | isExpandable () const |
virtual void | updateSelection (int selectionKey, bool dw=false) |
virtual bool | shouldSelect (int selectionkey) const |
Protected Member Functions inherited from CallBacker | |
void | detachAllNotifiers () |
Call from the destructor of your inherited object. More... | |
Protected Attributes | |
IOPar | properties_ |
uiTreeItem * | parent_ |
uiString | name_ |
uiTreeViewItem * | uitreeviewitem_ |
ObjectSet< uiTreeItem > | children_ |
Private Member Functions | |
bool | addChildImpl (CallBacker *, uiTreeItem *, bool, bool) |
Friends | |
class | uiTreeTopItem |
class | uiODTreeTop |
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.
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. |
Reimplemented in uiTreeTopItem, uiODHorizon2DParentTreeItem, and uiODHorizonParentTreeItem.
bool uiTreeItem::allChildrenChecked | ( | ) | const |
bool uiTreeItem::allChildrenCollapsed | ( | ) | const |
bool uiTreeItem::allChildrenExpanded | ( | ) | const |
bool uiTreeItem::allChildrenUnchecked | ( | ) | const |
|
protectedvirtual |
Reimplemented in uiODZsliceParentTreeItem, uiODCrosslineParentTreeItem, uiODHorizon2DParentTreeItem, uiODFaultStickSetParentTreeItem, uiODInlineParentTreeItem, uiODPolygonParentTreeItem, uiODPSEventsTreeItem, uiODAnnotTreeItem, VolProc::uiDataTreeItem, uiODAttribTreeItem, uiODFaultParentTreeItem, uiODHorizonParentTreeItem, uiODWellParentTreeItem, uiODBodyDisplayParentTreeItem, uiODTreeItem, uiODLine2DParentTreeItem, uiODRandomLineParentTreeItem, uiODVolrenParentTreeItem, and uiODPickSetParentTreeItem.
bool uiTreeItem::areAllParentsChecked | ( | ) |
|
virtual |
NotifierAccess* uiTreeItem::checkStatusChange | ( | ) |
void uiTreeItem::collapse | ( | ) |
|
protectedvirtual |
Reimplemented in uiODPolygonTreeItem, uiODWellTreeItem, 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.
const uiTreeItem* uiTreeItem::getChild | ( | int | ) | const |
uiTreeItem* uiTreeItem::getChild | ( | int | ) |
|
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 ImageSubItem, ArrowSubItem, uiODFaultStickSetTreeItem, ScaleBarSubItem, uiODPolygonTreeItem, uiODVolrenSubTreeItem, uiODAnnotSubItem, uiODVw2DFaultSS2DTreeItem, uiODFaultTreeItem, uiODVw2DPickSetTreeItem, uiODVw2DHor2DTreeItem, uiODVw2DHor3DTreeItem, uiODVw2DFaultTreeItem, uiODVw2DFaultSSTreeItem, uiOD2DLineTreeItem, uiODBodyDisplayTreeItem, uiODHorizonTreeItem, uiODPSEventsTreeItem, uiODRandomLineTreeItem, uiODWellTreeItem, uiODEarthModelSurfaceTreeItem, uiODAnnotTreeItem, uiODDisplayTreeItem, uiODPickSetTreeItem, uiODDataTreeItem, uiODVolrenTreeItem, uiODVw2DTreeItem, uiODVw2DFaultParentTreeItem, uiODVw2DHor2DParentTreeItem, uiODVw2DHor3DParentTreeItem, uiODVw2DPickSetParentTreeItem, uiODVw2DFaultSSParentTreeItem, uiODTreeItem, uiODVW2DVariableDensityTreeItem, uiODPlaneDataTreeItem, uiODVw2DFaultSS2DParentTreeItem, uiODVW2DWiggleVarAreaTreeItem, uiODPSEventsParentTreeItem, uiODSceneTreeItem, and uiODAnnotParentTreeItem.
|
virtual |
Reimplemented in uiTreeTopItem.
bool uiTreeItem::isCollapsed | ( | ) | const |
|
inlineprotectedvirtual |
Reimplemented in uiODDataTreeItem, uiODDisplayTreeItem, uiODVolrenTreeItem, and uiODSceneTreeItem.
bool uiTreeItem::isExpanded | ( | ) | const |
|
inlineprotectedvirtual |
|
virtual |
NotifierAccess* uiTreeItem::keyPressed | ( | ) |
uiTreeItem* uiTreeItem::lastChild | ( | ) |
|
virtual |
|
virtual |
uiString uiTreeItem::name | ( | ) | const |
|
inline |
|
inline |
|
protectedpure virtual |
Implemented in uiTreeTopItem, ImageSubItem, uiODZsliceTreeItem, ArrowSubItem, uiODZsliceParentTreeItem, uiODHorizon2DTreeItem, uiODCrosslineTreeItem, ScaleBarSubItem, uiODFaultStickSetTreeItem, uiODPolygonTreeItem, uiODVw2DTreeTop, uiODCrosslineParentTreeItem, uiODInlineTreeItem, uiODHorizon2DParentTreeItem, uiODVolrenSubTreeItem, uiODFaultStickSetParentTreeItem, uiODAnnotSubItem, uiODInlineParentTreeItem, uiODPolygonParentTreeItem, uiODVw2DFaultSS2DTreeItem, uiODFaultTreeItem, uiODVw2DPickSetTreeItem, uiODVw2DHor2DTreeItem, uiODVw2DHor3DTreeItem, uiODRandomLineTreeItem, uiODVw2DFaultTreeItem, uiODVw2DFaultSSTreeItem, uiODHorizonTreeItem, uiOD2DLineTreeItem, uiODTreeTop, uiODBodyDisplayTreeItem, uiODDataTreeItem, uiODWellTreeItem, uiODPickSetTreeItem, uiODVolrenTreeItem, uiODPSEventsTreeItem, uiODAnnotTreeItem, uiODVw2DFaultParentTreeItem, uiODVw2DHor2DParentTreeItem, uiODVw2DHor3DParentTreeItem, uiODVw2DPickSetParentTreeItem, uiODVw2DFaultSSParentTreeItem, uiODVW2DVariableDensityTreeItem, uiODFaultParentTreeItem, uiODVw2DFaultSS2DParentTreeItem, uiODHorizonParentTreeItem, uiODVW2DWiggleVarAreaTreeItem, uiODSceneTreeItem, uiODWellParentTreeItem, uiODVolrenParentTreeItem, uiODPSEventsParentTreeItem, uiODAnnotParentTreeItem, uiODBodyDisplayParentTreeItem, uiODLine2DParentTreeItem, uiODRandomLineParentTreeItem, and uiODPickSetParentTreeItem.
|
virtual |
Override if you want to popup dlg for saving various things (or similar)
Reimplemented in uiODFaultStickSetTreeItem, uiODPolygonTreeItem, uiODAnnotSubItem, uiODFaultTreeItem, uiODBodyDisplayTreeItem, uiODAnnotTreeItem, uiODPickSetTreeItem, uiODEarthModelSurfaceTreeItem, and uiODDisplayTreeItem.
|
virtual |
Reimplemented in uiODVw2DTreeItem.
|
virtual |
Reimplemented in uiODHorizon2DParentTreeItem, uiODRandomLineParentTreeItem, and uiODHorizonParentTreeItem.
|
protectedvirtual |
Reimplemented in uiTreeTopItem.
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in uiODAnnotParentTreeItem.
|
virtual |
Selects this item
Reimplemented in uiODVw2DFaultSS2DTreeItem, uiODVw2DHor2DTreeItem, uiODVw2DPickSetTreeItem, uiODVw2DHor3DTreeItem, uiODVw2DFaultTreeItem, uiODVw2DFaultSSTreeItem, uiODDataTreeItem, uiODVW2DVariableDensityTreeItem, and uiODVW2DWiggleVarAreaTreeItem.
|
inlinevirtual |
Reimplemented in uiODDisplayTreeItem, and uiODSceneTreeItem.
|
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 uiODZsliceParentTreeItem, uiODCrosslineParentTreeItem, uiODHorizon2DParentTreeItem, uiODFaultStickSetParentTreeItem, uiODInlineParentTreeItem, uiODPolygonParentTreeItem, uiODVw2DFaultSS2DTreeItem, uiODVw2DHor3DTreeItem, uiODVw2DHor2DTreeItem, uiODVw2DPickSetTreeItem, uiODDataTreeItem, uiODVw2DFaultTreeItem, uiODVw2DFaultSSTreeItem, uiODAnnotTreeItem, uiODVolrenTreeItem, uiODFaultParentTreeItem, uiODDisplayTreeItem, uiODHorizonParentTreeItem, uiODWellParentTreeItem, uiODPSEventsParentTreeItem, uiODSceneTreeItem, uiODVW2DVariableDensityTreeItem, uiODVw2DFaultSS2DParentTreeItem, uiODVw2DPickSetParentTreeItem, uiODVW2DWiggleVarAreaTreeItem, uiODBodyDisplayParentTreeItem, uiODVolrenParentTreeItem, uiODVw2DFaultSSParentTreeItem, uiODVw2DFaultParentTreeItem, uiODVw2DHor2DParentTreeItem, uiODVw2DHor3DParentTreeItem, uiODLine2DParentTreeItem, uiODRandomLineParentTreeItem, and uiODPickSetParentTreeItem.
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
|
protectedvirtual |
Reimplemented in uiODDataTreeItem, and uiODDisplayTreeItem.
|
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. 2019