ROOT  6.06/09
Reference Guide
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
TEveListTreeItem Class Reference

Special list-tree-item for Eve.

Most state is picked directly from TEveElement, no need to store it locally nor to manage its consistency.

Handles also selected/highlighted colors and, in the future, drag-n-drop.

Definition at line 28 of file TEveBrowser.h.

Public Member Functions

 TEveListTreeItem (TEveElement *el)
 
virtual ~TEveListTreeItem ()
 
virtual Bool_t IsActive () const
 
virtual Pixel_t GetActiveColor () const
 Return highlight color corresponding to current state of TEveElement. More...
 
virtual void SetActive (Bool_t)
 
virtual const char * GetText () const
 
virtual Int_t GetTextLength () const
 
virtual const char * GetTipText () const
 
virtual Int_t GetTipTextLength () const
 
virtual void SetText (const char *)
 
virtual void SetTipText (const char *)
 
virtual void SetUserData (void *, Bool_t=kFALSE)
 
virtual voidGetUserData () const
 
virtual const TGPictureGetPicture () const
 
virtual const TGPictureGetCheckBoxPicture () const
 
virtual void SetPictures (const TGPicture *, const TGPicture *)
 
virtual void SetCheckBoxPictures (const TGPicture *, const TGPicture *)
 
virtual void SetCheckBox (Bool_t=kTRUE)
 
virtual Bool_t HasCheckBox () const
 
virtual void CheckItem (Bool_t=kTRUE)
 
virtual void Toggle ()
 Item's check-box state has been toggled ... More...
 
virtual Bool_t IsChecked () const
 
virtual Bool_t HasColor () const
 
virtual Color_t GetColor () const
 
virtual void SetColor (Color_t)
 
virtual void ClearColor ()
 
 ClassDef (TEveListTreeItem, 0)
 
- Public Member Functions inherited from TGListTreeItem
 TGListTreeItem (TGClient *client=gClient)
 
virtual ~TGListTreeItem ()
 
TGListTreeItemGetParent () const
 
TGListTreeItemGetFirstChild () const
 
TGListTreeItemGetLastChild () const
 
TGListTreeItemGetPrevSibling () const
 
TGListTreeItemGetNextSibling () const
 
virtual Bool_t IsOpen () const
 
virtual void SetOpen (Bool_t o)
 
void Rename (const char *new_name)
 
virtual UInt_t GetPicWidth () const
 Return width of item's icon. More...
 
virtual void CheckAllChildren (Bool_t=kTRUE)
 
virtual void CheckChildren (TGListTreeItem *, Bool_t)
 
virtual Bool_t HasCheckedChild (Bool_t=kFALSE)
 
virtual Bool_t HasUnCheckedChild (Bool_t=kFALSE)
 
virtual void UpdateState ()
 
void SetDNDSource (Bool_t onoff)
 
void SetDNDTarget (Bool_t onoff)
 
Bool_t IsDNDSource () const
 
Bool_t IsDNDTarget () const
 
virtual Bool_t HandlesDragAndDrop () const
 
virtual void HandleDrag ()
 
virtual void HandleDrop ()
 
virtual void SavePrimitive (std::ostream &, Option_t *, Int_t)
 

Protected Member Functions

void NotSupported (const char *func) const
 Warn about access to function members that should never be called. More...
 

Protected Attributes

TEveElementfElement
 
- Protected Attributes inherited from TGListTreeItem
TGClientfClient
 
TGListTreeItemfParent
 
TGListTreeItemfFirstchild
 
TGListTreeItemfLastchild
 
TGListTreeItemfPrevsibling
 
TGListTreeItemfNextsibling
 
Bool_t fOpen
 
Int_t fDNDState
 
Int_t fY
 
Int_t fXtext
 
Int_t fYtext
 
UInt_t fHeight
 

Private Member Functions

 TEveListTreeItem (const TEveListTreeItem &)
 
TEveListTreeItemoperator= (const TEveListTreeItem &)
 

#include <TEveBrowser.h>

+ Inheritance diagram for TEveListTreeItem:
+ Collaboration diagram for TEveListTreeItem:

Constructor & Destructor Documentation

TEveListTreeItem::TEveListTreeItem ( const TEveListTreeItem )
private
TEveListTreeItem::TEveListTreeItem ( TEveElement el)
inline

Definition at line 40 of file TEveBrowser.h.

virtual TEveListTreeItem::~TEveListTreeItem ( )
inlinevirtual

Definition at line 41 of file TEveBrowser.h.

Member Function Documentation

virtual void TEveListTreeItem::CheckItem ( Bool_t  = kTRUE)
inlinevirtual

Implements TGListTreeItem.

Definition at line 65 of file TEveBrowser.h.

TEveListTreeItem::ClassDef ( TEveListTreeItem  ,
 
)
virtual void TEveListTreeItem::ClearColor ( )
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 75 of file TEveBrowser.h.

Pixel_t TEveListTreeItem::GetActiveColor ( ) const
virtual

Return highlight color corresponding to current state of TEveElement.

Implements TGListTreeItem.

Definition at line 83 of file TEveBrowser.cxx.

virtual const TGPicture* TEveListTreeItem::GetCheckBoxPicture ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 58 of file TEveBrowser.h.

virtual Color_t TEveListTreeItem::GetColor ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 73 of file TEveBrowser.h.

virtual const TGPicture* TEveListTreeItem::GetPicture ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 57 of file TEveBrowser.h.

virtual const char* TEveListTreeItem::GetText ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 47 of file TEveBrowser.h.

virtual Int_t TEveListTreeItem::GetTextLength ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 48 of file TEveBrowser.h.

virtual const char* TEveListTreeItem::GetTipText ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 49 of file TEveBrowser.h.

virtual Int_t TEveListTreeItem::GetTipTextLength ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 50 of file TEveBrowser.h.

virtual void* TEveListTreeItem::GetUserData ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 55 of file TEveBrowser.h.

virtual Bool_t TEveListTreeItem::HasCheckBox ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 64 of file TEveBrowser.h.

virtual Bool_t TEveListTreeItem::HasColor ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 72 of file TEveBrowser.h.

virtual Bool_t TEveListTreeItem::IsActive ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 43 of file TEveBrowser.h.

virtual Bool_t TEveListTreeItem::IsChecked ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 67 of file TEveBrowser.h.

Referenced by Toggle().

void TEveListTreeItem::NotSupported ( const char *  func) const
protected

Warn about access to function members that should never be called.

TGListTree calls them in cases that are not used by Eve.

Definition at line 75 of file TEveBrowser.cxx.

Referenced by ClearColor(), SetActive(), SetCheckBox(), SetCheckBoxPictures(), SetColor(), SetPictures(), SetText(), SetTipText(), and SetUserData().

TEveListTreeItem& TEveListTreeItem::operator= ( const TEveListTreeItem )
private
virtual void TEveListTreeItem::SetActive ( Bool_t  )
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 45 of file TEveBrowser.h.

virtual void TEveListTreeItem::SetCheckBox ( Bool_t  = kTRUE)
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 63 of file TEveBrowser.h.

virtual void TEveListTreeItem::SetCheckBoxPictures ( const TGPicture ,
const TGPicture  
)
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 61 of file TEveBrowser.h.

virtual void TEveListTreeItem::SetColor ( Color_t  )
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 74 of file TEveBrowser.h.

virtual void TEveListTreeItem::SetPictures ( const TGPicture ,
const TGPicture  
)
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 60 of file TEveBrowser.h.

virtual void TEveListTreeItem::SetText ( const char *  )
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 51 of file TEveBrowser.h.

virtual void TEveListTreeItem::SetTipText ( const char *  )
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 52 of file TEveBrowser.h.

virtual void TEveListTreeItem::SetUserData ( void ,
Bool_t  = kFALSE 
)
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 54 of file TEveBrowser.h.

void TEveListTreeItem::Toggle ( )
virtual

Item's check-box state has been toggled ...

forward to element's render-state.

Reimplemented from TGListTreeItem.

Definition at line 99 of file TEveBrowser.cxx.

Member Data Documentation

TEveElement* TEveListTreeItem::fElement
protected

Definition at line 35 of file TEveBrowser.h.

Referenced by GetActiveColor(), GetUserData(), and Toggle().


The documentation for this class was generated from the following files: