Logo ROOT  
Reference Guide
TGListTreeItemStd Class Reference

Definition at line 126 of file TGListTree.h.

Public Member Functions

 TGListTreeItemStd (TGClient *fClient=gClient, const char *name=nullptr, const TGPicture *opened=nullptr, const TGPicture *closed=nullptr, Bool_t checkbox=kFALSE)
 Create list tree item. More...
 
virtual ~TGListTreeItemStd ()
 Delete list tree item. More...
 
virtual void CheckAllChildren (Bool_t state=kTRUE)
 Set all child items of this one checked if state=kTRUE, unchecked if state=kFALSE. More...
 
virtual void CheckChildren (TGListTreeItem *item, Bool_t state)
 Set all child items of 'item' checked if state=kTRUE; unchecked if state=kFALSE. More...
 
virtual void CheckItem (Bool_t checked=kTRUE)
 
virtual void ClearColor ()
 
virtual Pixel_t GetActiveColor () const
 Return color for marking items that are active or selected. More...
 
virtual const TGPictureGetCheckBoxPicture () const
 
virtual Color_t GetColor () const
 
virtual const TGPictureGetPicture () const
 
virtual const char * GetText () const
 
virtual Int_t GetTextLength () const
 
virtual const char * GetTipText () const
 
virtual Int_t GetTipTextLength () const
 
virtual voidGetUserData () const
 
virtual Bool_t HasCheckBox () const
 
virtual Bool_t HasCheckedChild (Bool_t first=kFALSE)
 Add all child items of 'item' into the list 'checked'. More...
 
virtual Bool_t HasColor () const
 
virtual Bool_t HasUnCheckedChild (Bool_t first=kFALSE)
 Add all child items of 'item' into the list 'checked'. More...
 
virtual Bool_t IsActive () const
 
virtual Bool_t IsChecked () const
 
virtual void SavePrimitive (std::ostream &out, Option_t *option, Int_t n)
 Save a list tree item attributes as a C++ statements on output stream. More...
 
virtual void SetActive (Bool_t a)
 
virtual void SetCheckBox (Bool_t on=kTRUE)
 Set a check box on the tree node. More...
 
virtual void SetCheckBoxPictures (const TGPicture *checked, const TGPicture *unchecked)
 Change list tree check item icons. More...
 
virtual void SetColor (Color_t color)
 
virtual void SetPictures (const TGPicture *opened, const TGPicture *closed)
 Change list tree item icons. More...
 
virtual void SetText (const char *text)
 
virtual void SetTipText (const char *tip)
 
virtual void SetUserData (void *userData, Bool_t own=kFALSE)
 
virtual void Toggle ()
 
virtual void UpdateState ()
 Update the state of the node 'item' according to the children states. More...
 
- Public Member Functions inherited from TGListTreeItem
 TGListTreeItem (TGClient *client=gClient)
 Constructor. More...
 
virtual ~TGListTreeItem ()
 
virtual void CheckAllChildren (Bool_t=kTRUE)
 
virtual void CheckChildren (TGListTreeItem *, Bool_t)
 
virtual void CheckItem (Bool_t=kTRUE)=0
 
virtual void ClearColor ()
 
virtual Pixel_t GetActiveColor () const =0
 
virtual const TGPictureGetCheckBoxPicture () const =0
 
virtual Color_t GetColor () const =0
 
TGListTreeItemGetFirstChild () const
 
TGListTreeItemGetLastChild () const
 
TGListTreeItemGetNextSibling () const
 
TGListTreeItemGetParent () const
 
virtual const TGPictureGetPicture () const =0
 
virtual UInt_t GetPicWidth () const
 Return width of item's icon. More...
 
TGListTreeItemGetPrevSibling () const
 
virtual const char * GetText () const =0
 
virtual Int_t GetTextLength () const =0
 
virtual const char * GetTipText () const =0
 
virtual Int_t GetTipTextLength () const =0
 
virtual voidGetUserData () const =0
 
virtual void HandleDrag ()
 
virtual void HandleDrop ()
 
virtual Bool_t HandlesDragAndDrop () const
 
virtual Bool_t HasCheckBox () const =0
 
virtual Bool_t HasCheckedChild (Bool_t=kFALSE)
 
virtual Bool_t HasColor () const =0
 
virtual Bool_t HasUnCheckedChild (Bool_t=kFALSE)
 
virtual Bool_t IsActive () const =0
 
virtual Bool_t IsChecked () const =0
 
Bool_t IsDNDSource () const
 
Bool_t IsDNDTarget () const
 
virtual Bool_t IsOpen () const
 
void Rename (const char *new_name)
 
virtual void SavePrimitive (std::ostream &, Option_t *, Int_t)
 
virtual void SetActive (Bool_t)
 
virtual void SetCheckBox (Bool_t=kTRUE)
 
virtual void SetCheckBoxPictures (const TGPicture *, const TGPicture *)
 
virtual void SetColor (Color_t)
 
void SetDNDSource (Bool_t onoff)
 
void SetDNDTarget (Bool_t onoff)
 
virtual void SetOpen (Bool_t o)
 
virtual void SetPictures (const TGPicture *, const TGPicture *)
 
virtual void SetText (const char *)
 
virtual void SetTipText (const char *)
 
virtual void SetUserData (void *, Bool_t=kFALSE)
 
virtual void Toggle ()
 
virtual void UpdateState ()
 

Private Member Functions

 TGListTreeItemStd (const TGListTreeItemStd &)=delete
 
TGListTreeItemStdoperator= (const TGListTreeItemStd &)=delete
 

Private Attributes

Bool_t fActive
 true if item is active More...
 
Bool_t fCheckBox
 true if checkbox is visible More...
 
Bool_t fChecked
 true if item is checked More...
 
const TGPicturefCheckedPic
 icon for checked item More...
 
const TGPicturefClosedPic
 icon for closed state More...
 
Color_t fColor
 item's color More...
 
Bool_t fHasColor
 true if item has assigned color More...
 
const TGPicturefOpenPic
 icon for open state More...
 
Bool_t fOwnsData
 true if user data has to be deleted More...
 
TString fText
 item text More...
 
TString fTipText
 tooltip text More...
 
const TGPicturefUncheckedPic
 icon for unchecked item More...
 
voidfUserData
 pointer to user data structure More...
 

Additional Inherited Members

- Protected Attributes inherited from TGListTreeItem
TGClientfClient
 pointer to TGClient More...
 
Int_t fDNDState
 EDNDFlags. More...
 
TGListTreeItemfFirstchild
 pointer to first child item More...
 
TGListTreeItemfLastchild
 pointer to last child item More...
 
TGListTreeItemfNextsibling
 pointer to next sibling More...
 
Bool_t fOpen
 true if item is open More...
 
TGListTreeItemfParent
 pointer to parent More...
 
TGListTreeItemfPrevsibling
 pointer to previous sibling More...
 
Int_t fY
 
Int_t fXtext
 
Int_t fYtext
 
UInt_t fHeight
 

#include <TGListTree.h>

Inheritance diagram for TGListTreeItemStd:
[legend]

Constructor & Destructor Documentation

◆ TGListTreeItemStd() [1/2]

TGListTreeItemStd::TGListTreeItemStd ( const TGListTreeItemStd )
privatedelete

◆ TGListTreeItemStd() [2/2]

TGListTreeItemStd::TGListTreeItemStd ( TGClient fClient = gClient,
const char *  name = nullptr,
const TGPicture opened = nullptr,
const TGPicture closed = nullptr,
Bool_t  checkbox = kFALSE 
)

Create list tree item.

Definition at line 116 of file TGListTree.cxx.

◆ ~TGListTreeItemStd()

TGListTreeItemStd::~TGListTreeItemStd ( )
virtual

Delete list tree item.

Definition at line 155 of file TGListTree.cxx.

Member Function Documentation

◆ CheckAllChildren()

void TGListTreeItemStd::CheckAllChildren ( Bool_t  state = kTRUE)
virtual

Set all child items of this one checked if state=kTRUE, unchecked if state=kFALSE.

Reimplemented from TGListTreeItem.

Definition at line 241 of file TGListTree.cxx.

◆ CheckChildren()

void TGListTreeItemStd::CheckChildren ( TGListTreeItem item,
Bool_t  state 
)
virtual

Set all child items of 'item' checked if state=kTRUE; unchecked if state=kFALSE.

Reimplemented from TGListTreeItem.

Definition at line 258 of file TGListTree.cxx.

◆ CheckItem()

virtual void TGListTreeItemStd::CheckItem ( Bool_t  checked = kTRUE)
inlinevirtual

Implements TGListTreeItem.

Definition at line 174 of file TGListTree.h.

◆ ClearColor()

virtual void TGListTreeItemStd::ClearColor ( )
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 187 of file TGListTree.h.

◆ GetActiveColor()

Pixel_t TGListTreeItemStd::GetActiveColor ( ) const
virtual

Return color for marking items that are active or selected.

Implements TGListTreeItem.

Definition at line 170 of file TGListTree.cxx.

◆ GetCheckBoxPicture()

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

Implements TGListTreeItem.

Definition at line 168 of file TGListTree.h.

◆ GetColor()

virtual Color_t TGListTreeItemStd::GetColor ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 185 of file TGListTree.h.

◆ GetPicture()

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

Implements TGListTreeItem.

Definition at line 167 of file TGListTree.h.

◆ GetText()

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

Implements TGListTreeItem.

Definition at line 157 of file TGListTree.h.

◆ GetTextLength()

virtual Int_t TGListTreeItemStd::GetTextLength ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 158 of file TGListTree.h.

◆ GetTipText()

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

Implements TGListTreeItem.

Definition at line 159 of file TGListTree.h.

◆ GetTipTextLength()

virtual Int_t TGListTreeItemStd::GetTipTextLength ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 160 of file TGListTree.h.

◆ GetUserData()

virtual void * TGListTreeItemStd::GetUserData ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 165 of file TGListTree.h.

◆ HasCheckBox()

virtual Bool_t TGListTreeItemStd::HasCheckBox ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 173 of file TGListTree.h.

◆ HasCheckedChild()

Bool_t TGListTreeItemStd::HasCheckedChild ( Bool_t  first = kFALSE)
virtual

Add all child items of 'item' into the list 'checked'.

Reimplemented from TGListTreeItem.

Definition at line 178 of file TGListTree.cxx.

◆ HasColor()

virtual Bool_t TGListTreeItemStd::HasColor ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 184 of file TGListTree.h.

◆ HasUnCheckedChild()

Bool_t TGListTreeItemStd::HasUnCheckedChild ( Bool_t  first = kFALSE)
virtual

Add all child items of 'item' into the list 'checked'.

Reimplemented from TGListTreeItem.

Definition at line 201 of file TGListTree.cxx.

◆ IsActive()

virtual Bool_t TGListTreeItemStd::IsActive ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 154 of file TGListTree.h.

◆ IsChecked()

virtual Bool_t TGListTreeItemStd::IsChecked ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 176 of file TGListTree.h.

◆ operator=()

TGListTreeItemStd & TGListTreeItemStd::operator= ( const TGListTreeItemStd )
privatedelete

◆ SavePrimitive()

void TGListTreeItemStd::SavePrimitive ( std::ostream &  out,
Option_t option,
Int_t  n 
)
virtual

Save a list tree item attributes as a C++ statements on output stream.

Reimplemented from TGListTreeItem.

Definition at line 2678 of file TGListTree.cxx.

◆ SetActive()

virtual void TGListTreeItemStd::SetActive ( Bool_t  a)
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 155 of file TGListTree.h.

◆ SetCheckBox()

void TGListTreeItemStd::SetCheckBox ( Bool_t  on = kTRUE)
virtual

Set a check box on the tree node.

Reimplemented from TGListTreeItem.

Definition at line 281 of file TGListTree.cxx.

◆ SetCheckBoxPictures()

void TGListTreeItemStd::SetCheckBoxPictures ( const TGPicture checked,
const TGPicture unchecked 
)
virtual

Change list tree check item icons.

Reimplemented from TGListTreeItem.

Definition at line 289 of file TGListTree.cxx.

◆ SetColor()

virtual void TGListTreeItemStd::SetColor ( Color_t  color)
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 186 of file TGListTree.h.

◆ SetPictures()

void TGListTreeItemStd::SetPictures ( const TGPicture opened,
const TGPicture closed 
)
virtual

Change list tree item icons.

Reimplemented from TGListTreeItem.

Definition at line 314 of file TGListTree.cxx.

◆ SetText()

virtual void TGListTreeItemStd::SetText ( const char *  text)
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 161 of file TGListTree.h.

◆ SetTipText()

virtual void TGListTreeItemStd::SetTipText ( const char *  tip)
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 162 of file TGListTree.h.

◆ SetUserData()

virtual void TGListTreeItemStd::SetUserData ( void userData,
Bool_t  own = kFALSE 
)
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 164 of file TGListTree.h.

◆ Toggle()

virtual void TGListTreeItemStd::Toggle ( )
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 175 of file TGListTree.h.

◆ UpdateState()

void TGListTreeItemStd::UpdateState ( )
virtual

Update the state of the node 'item' according to the children states.

Reimplemented from TGListTreeItem.

Definition at line 224 of file TGListTree.cxx.

Member Data Documentation

◆ fActive

Bool_t TGListTreeItemStd::fActive
private

true if item is active

Definition at line 129 of file TGListTree.h.

◆ fCheckBox

Bool_t TGListTreeItemStd::fCheckBox
private

true if checkbox is visible

Definition at line 130 of file TGListTree.h.

◆ fChecked

Bool_t TGListTreeItemStd::fChecked
private

true if item is checked

Definition at line 131 of file TGListTree.h.

◆ fCheckedPic

const TGPicture* TGListTreeItemStd::fCheckedPic
private

icon for checked item

Definition at line 137 of file TGListTree.h.

◆ fClosedPic

const TGPicture* TGListTreeItemStd::fClosedPic
private

icon for closed state

Definition at line 136 of file TGListTree.h.

◆ fColor

Color_t TGListTreeItemStd::fColor
private

item's color

Definition at line 142 of file TGListTree.h.

◆ fHasColor

Bool_t TGListTreeItemStd::fHasColor
private

true if item has assigned color

Definition at line 141 of file TGListTree.h.

◆ fOpenPic

const TGPicture* TGListTreeItemStd::fOpenPic
private

icon for open state

Definition at line 135 of file TGListTree.h.

◆ fOwnsData

Bool_t TGListTreeItemStd::fOwnsData
private

true if user data has to be deleted

Definition at line 132 of file TGListTree.h.

◆ fText

TString TGListTreeItemStd::fText
private

item text

Definition at line 133 of file TGListTree.h.

◆ fTipText

TString TGListTreeItemStd::fTipText
private

tooltip text

Definition at line 134 of file TGListTree.h.

◆ fUncheckedPic

const TGPicture* TGListTreeItemStd::fUncheckedPic
private

icon for unchecked item

Definition at line 138 of file TGListTree.h.

◆ fUserData

void* TGListTreeItemStd::fUserData
private

pointer to user data structure

Definition at line 139 of file TGListTree.h.

Libraries for TGListTreeItemStd:
[legend]

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