OpendTect  7.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
uiTreeTopItem Class Reference
Inheritance diagram for uiTreeTopItem:
[legend]

Public Member Functions

 uiTreeTopItem (uiTreeView *, bool=false)
 
 ~uiTreeTopItem ()
 
bool addChild (uiTreeItem *, bool below) override
 
void disabAnyClick (bool yn)
 
void disabRightClick (bool yn)
 
uiTreeViewgetTreeView () const
 
bool isChecked () const override
 
void updateColumnText (int col) override
 
void updateSelection (int selectionkey, bool=false) override
 
- Public Member Functions inherited from uiTreeItem
 uiTreeItem (const uiString &nm=uiString::emptyString())
 
virtual ~uiTreeItem ()
 
bool allChildrenChecked () const
 
bool allChildrenCollapsed () const
 
bool allChildrenExpanded () const
 
bool allChildrenUnchecked () const
 
bool areAllParentsChecked ()
 
virtual bool askContinueAndSaveIfNeeded (bool withcancel)
 
NotifierAccesscheckStatusChange ()
 
void collapse ()
 
void entryInEditMode (int col)
 
void expand ()
 
virtual uiTreeItemfindChild (const char *name)
 
virtual const uiTreeItemfindChild (const char *name) const
 
virtual uiTreeItemfindChild (int selkey)
 
virtual const uiTreeItemfindChild (int selkey) const
 
virtual void findChildren (const char *, ObjectSet< uiTreeItem > &)
 
uiTreeItemgetChild (int)
 
const uiTreeItemgetChild (int) const
 
ObjectSet< uiTreeItem > & getChildren ()
 
const ObjectSet< uiTreeItem > & getChildren () const
 
uiTreeViewItemgetItem ()
 
const uiTreeViewItemgetItem () 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
 
bool isCollapsed () const
 
bool isExpanded () const
 
virtual bool isSelected () const
 
NotifierAccesskeyPressed ()
 
uiTreeItemlastChild ()
 
virtual void moveItem (uiTreeItem *after)
 
virtual void moveItemToTop ()
 
uiString name () const
 
int nrChildren () const
 
uiTreeItemparentTreeItem ()
 
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 uiTreeItemsiblingAbove ()
 
virtual uiTreeItemsiblingBelow ()
 
virtual int siblingIndex () const
 
virtual void translateText ()
 
virtual void updateCheckStatus ()
 
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
 
virtual CallBackertrueCaller ()
 

Protected Member Functions

bool addChld (uiTreeItem *, bool below, bool downwards) override
 
void anyButtonClickCB (CallBacker *)
 
void doubleClickCB (CallBacker *)
 
uiParentgetUiParent () const override
 
void handleSelectionChanged (bool frmbtclk)
 
void itemRenamed (CallBacker *)
 
const char * parentType () const override
 
void removeItem (uiTreeViewItem *) override
 
void rightClickCB (CallBacker *)
 
void selectionChanged (CallBacker *)
 
- Protected Member Functions inherited from uiTreeItem
virtual bool anyButtonClick (uiTreeViewItem *)
 
virtual bool doubleClick (uiTreeViewItem *)
 
virtual bool init ()
 
virtual bool isExpandable () const
 
virtual bool isSelectable () const
 
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 bool useParentType () const
 

Protected Attributes

bool disabanyclick_
 
bool disabrightclick_
 
bool disabselcngresp_
 
uiTreeViewlistview_
 
- Protected Attributes inherited from uiTreeItem
ObjectSet< uiTreeItemchildren_
 
uiString name_
 
uiTreeItemparent_
 
IOPar properties_
 
uiTreeViewItemuitreeviewitem_
 

Additional Inherited Members

- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ uiTreeTopItem()

uiTreeTopItem::uiTreeTopItem ( uiTreeView ,
bool  = false 
)

◆ ~uiTreeTopItem()

uiTreeTopItem::~uiTreeTopItem ( )

Member Function Documentation

◆ addChild()

bool uiTreeTopItem::addChild ( uiTreeItem child,
bool  below 
)
overridevirtual

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.

Parameters
childbecomes mine
belowspecifies wether the child shoule be added above or below eventual existing siblings.

Reimplemented from uiTreeItem.

◆ addChld()

bool uiTreeTopItem::addChld ( uiTreeItem ,
bool  below,
bool  downwards 
)
overrideprotectedvirtual

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.

Parameters
belowspecifies wether the child should be added above or below eventual existing siblings.
downwards

Reimplemented from uiTreeItem.

◆ anyButtonClickCB()

void uiTreeTopItem::anyButtonClickCB ( CallBacker )
protected

◆ disabAnyClick()

void uiTreeTopItem::disabAnyClick ( bool  yn)
inline

◆ disabRightClick()

void uiTreeTopItem::disabRightClick ( bool  yn)
inline

◆ doubleClickCB()

void uiTreeTopItem::doubleClickCB ( CallBacker )
protected

◆ getTreeView()

uiTreeView* uiTreeTopItem::getTreeView ( ) const
inline

◆ getUiParent()

uiParent* uiTreeTopItem::getUiParent ( ) const
overrideprotectedvirtual

Reimplemented from uiTreeItem.

◆ handleSelectionChanged()

void uiTreeTopItem::handleSelectionChanged ( bool  frmbtclk)
protected

◆ isChecked()

bool uiTreeTopItem::isChecked ( ) const
inlineoverridevirtual

Reimplemented from uiTreeItem.

◆ itemRenamed()

void uiTreeTopItem::itemRenamed ( CallBacker )
protected

◆ parentType()

const char* uiTreeTopItem::parentType ( ) const
inlineoverrideprotectedvirtual
Returns
typeid(parentclass).name()

Implements uiTreeItem.

Reimplemented in uiODView2DTreeTop, and uiODTreeTop.

◆ removeItem()

void uiTreeTopItem::removeItem ( uiTreeViewItem )
overrideprotectedvirtual

Reimplemented from uiTreeItem.

◆ rightClickCB()

void uiTreeTopItem::rightClickCB ( CallBacker )
protected

◆ selectionChanged()

void uiTreeTopItem::selectionChanged ( CallBacker )
protected

◆ updateColumnText()

void uiTreeTopItem::updateColumnText ( int  col)
overridevirtual

Reimplemented from uiTreeItem.

◆ updateSelection()

void uiTreeTopItem::updateSelection ( int  selectionkey,
bool  = false 
)
overridevirtual

Does only update the display

Reimplemented from uiTreeItem.

Member Data Documentation

◆ disabanyclick_

bool uiTreeTopItem::disabanyclick_
protected

◆ disabrightclick_

bool uiTreeTopItem::disabrightclick_
protected

◆ disabselcngresp_

bool uiTreeTopItem::disabselcngresp_
protected

◆ listview_

uiTreeView* uiTreeTopItem::listview_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024