OpendTect-6_4  6.4
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 ()
 
virtual bool addChild (uiTreeItem *, bool below)
 
virtual void updateSelection (int selectionkey, bool=false)
 
virtual void updateColumnText (int col)
 
bool isChecked () const
 
void disabRightClick (bool yn)
 
void disabAnyClick (bool yn)
 
uiTreeViewgetTreeView () const
 
- Public Member Functions inherited from uiTreeItem
 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)
 
NotifierAccesscheckStatusChange ()
 
NotifierAccesskeyPressed ()
 
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 uiTreeItemsiblingAbove ()
 
virtual uiTreeItemsiblingBelow ()
 
virtual void moveItem (uiTreeItem *after)
 
virtual void moveItemToTop ()
 
uiTreeItemlastChild ()
 
int nrChildren () const
 
const uiTreeItemgetChild (int) const
 
uiTreeItemgetChild (int)
 
ObjectSet< uiTreeItem > & getChildren ()
 
const ObjectSet< uiTreeItem > & getChildren () const
 
virtual void removeChild (uiTreeItem *)
 
virtual void removeAllChildren ()
 
virtual const uiTreeItemfindChild (const char *name) const
 
virtual const uiTreeItemfindChild (int selkey) const
 
virtual uiTreeItemfindChild (const char *name)
 
virtual uiTreeItemfindChild (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 updateCheckStatus ()
 
virtual void translateText ()
 
uiTreeViewItemgetItem ()
 
const uiTreeViewItemgetItem () const
 
void updateSelTreeColumnText (int col)
 
uiTreeItemparentTreeItem ()
 
- 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 bool addChld (uiTreeItem *, bool below, bool downwards)
 
virtual void removeItem (uiTreeViewItem *)
 
void selectionChanged (CallBacker *)
 
void rightClickCB (CallBacker *)
 
void anyButtonClickCB (CallBacker *)
 
void doubleClickCB (CallBacker *)
 
void itemRenamed (CallBacker *)
 
void handleSelectionChanged (bool frmbtclk)
 
virtual const char * parentType () const
 
virtual uiParentgetUiParent () const
 
- Protected Member Functions inherited from uiTreeItem
virtual int uiTreeViewItemType () const
 
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 renameItem (uiTreeViewItem *)
 
virtual bool showSubMenu ()
 
virtual bool selectWithKey (int selkey)
 
virtual bool isSelectable () const
 
virtual bool isExpandable () const
 
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

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

Detailed Description

Constructor & Destructor Documentation

uiTreeTopItem::uiTreeTopItem ( uiTreeView ,
bool  = false 
)
uiTreeTopItem::~uiTreeTopItem ( )

Member Function Documentation

virtual bool uiTreeTopItem::addChild ( uiTreeItem child,
bool  below 
)
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.

Parameters
belowspecifies wether the child shoule be added above or below eventual existing siblings.
Note
child becomes mine regardless of return value.

Reimplemented from uiTreeItem.

virtual bool uiTreeTopItem::addChld ( uiTreeItem ,
bool  below,
bool  downwards 
)
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.

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

Reimplemented from uiTreeItem.

void uiTreeTopItem::anyButtonClickCB ( CallBacker )
protected
void uiTreeTopItem::disabAnyClick ( bool  yn)
inline
void uiTreeTopItem::disabRightClick ( bool  yn)
inline
void uiTreeTopItem::doubleClickCB ( CallBacker )
protected
uiTreeView* uiTreeTopItem::getTreeView ( ) const
inline
virtual uiParent* uiTreeTopItem::getUiParent ( ) const
protectedvirtual

Reimplemented from uiTreeItem.

void uiTreeTopItem::handleSelectionChanged ( bool  frmbtclk)
protected
bool uiTreeTopItem::isChecked ( ) const
inlinevirtual

Reimplemented from uiTreeItem.

void uiTreeTopItem::itemRenamed ( CallBacker )
protected
virtual const char* uiTreeTopItem::parentType ( ) const
inlineprotectedvirtual
Returns
typeid(parentclass).name()

Implements uiTreeItem.

Reimplemented in uiODVw2DTreeTop, and uiODTreeTop.

virtual void uiTreeTopItem::removeItem ( uiTreeViewItem )
protectedvirtual

Reimplemented from uiTreeItem.

void uiTreeTopItem::rightClickCB ( CallBacker )
protected
void uiTreeTopItem::selectionChanged ( CallBacker )
protected
virtual void uiTreeTopItem::updateColumnText ( int  col)
virtual

Reimplemented from uiTreeItem.

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

Does only update the display

Reimplemented from uiTreeItem.

Member Data Documentation

bool uiTreeTopItem::disabanyclick_
protected
bool uiTreeTopItem::disabrightclick_
protected
bool uiTreeTopItem::disabselcngresp_
protected
uiTreeView* uiTreeTopItem::listview_
protected

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