Logo ROOT   6.14/05
Reference Guide
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TGListTreeItemStd Class Reference

Definition at line 141 of file TGListTree.h.

Public Member Functions

 TGListTreeItemStd (TGClient *fClient=gClient, const char *name=0, const TGPicture *opened=0, const TGPicture *closed=0, 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 ()
 
TGListTreeItemGetFirstChild () const
 
TGListTreeItemGetLastChild () const
 
TGListTreeItemGetNextSibling () const
 
TGListTreeItemGetParent () const
 
virtual UInt_t GetPicWidth () const
 Return width of item's icon. More...
 
TGListTreeItemGetPrevSibling () const
 
virtual void HandleDrag ()
 
virtual void HandleDrop ()
 
virtual Bool_t HandlesDragAndDrop () const
 
Bool_t IsDNDSource () const
 
Bool_t IsDNDTarget () const
 
virtual Bool_t IsOpen () const
 
void Rename (const char *new_name)
 
void SetDNDSource (Bool_t onoff)
 
void SetDNDTarget (Bool_t onoff)
 
virtual void SetOpen (Bool_t o)
 

Private Member Functions

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

Private Attributes

Bool_t fActive
 
Bool_t fCheckBox
 
Bool_t fChecked
 
const TGPicturefCheckedPic
 
const TGPicturefClosedPic
 
Color_t fColor
 
Bool_t fHasColor
 
const TGPicturefOpenPic
 
Bool_t fOwnsData
 
TString fText
 
TString fTipText
 
const TGPicturefUncheckedPic
 
voidfUserData
 

Additional Inherited Members

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

#include <TGListTree.h>

Inheritance diagram for TGListTreeItemStd:
[legend]

Constructor & Destructor Documentation

◆ TGListTreeItemStd() [1/2]

TGListTreeItemStd::TGListTreeItemStd ( const TGListTreeItemStd )
private

◆ TGListTreeItemStd() [2/2]

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

Create list tree item.

Definition at line 113 of file TGListTree.cxx.

◆ ~TGListTreeItemStd()

TGListTreeItemStd::~TGListTreeItemStd ( )
virtual

Delete list tree item.

Definition at line 152 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 238 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 255 of file TGListTree.cxx.

◆ CheckItem()

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

Implements TGListTreeItem.

Definition at line 189 of file TGListTree.h.

◆ ClearColor()

virtual void TGListTreeItemStd::ClearColor ( )
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 202 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 167 of file TGListTree.cxx.

◆ GetCheckBoxPicture()

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

Implements TGListTreeItem.

Definition at line 183 of file TGListTree.h.

◆ GetColor()

virtual Color_t TGListTreeItemStd::GetColor ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 200 of file TGListTree.h.

◆ GetPicture()

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

Implements TGListTreeItem.

Definition at line 182 of file TGListTree.h.

◆ GetText()

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

Implements TGListTreeItem.

Definition at line 172 of file TGListTree.h.

◆ GetTextLength()

virtual Int_t TGListTreeItemStd::GetTextLength ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 173 of file TGListTree.h.

◆ GetTipText()

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

Implements TGListTreeItem.

Definition at line 174 of file TGListTree.h.

◆ GetTipTextLength()

virtual Int_t TGListTreeItemStd::GetTipTextLength ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 175 of file TGListTree.h.

◆ GetUserData()

virtual void* TGListTreeItemStd::GetUserData ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 180 of file TGListTree.h.

◆ HasCheckBox()

virtual Bool_t TGListTreeItemStd::HasCheckBox ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 188 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 175 of file TGListTree.cxx.

◆ HasColor()

virtual Bool_t TGListTreeItemStd::HasColor ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 199 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 198 of file TGListTree.cxx.

◆ IsActive()

virtual Bool_t TGListTreeItemStd::IsActive ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 169 of file TGListTree.h.

◆ IsChecked()

virtual Bool_t TGListTreeItemStd::IsChecked ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 191 of file TGListTree.h.

◆ operator=()

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

◆ 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 2684 of file TGListTree.cxx.

◆ SetActive()

virtual void TGListTreeItemStd::SetActive ( Bool_t  a)
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 170 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 278 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 286 of file TGListTree.cxx.

◆ SetColor()

virtual void TGListTreeItemStd::SetColor ( Color_t  color)
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 201 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 311 of file TGListTree.cxx.

◆ SetText()

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

Reimplemented from TGListTreeItem.

Definition at line 176 of file TGListTree.h.

◆ SetTipText()

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

Reimplemented from TGListTreeItem.

Definition at line 177 of file TGListTree.h.

◆ SetUserData()

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

Reimplemented from TGListTreeItem.

Definition at line 179 of file TGListTree.h.

◆ Toggle()

virtual void TGListTreeItemStd::Toggle ( )
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 190 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 221 of file TGListTree.cxx.

Member Data Documentation

◆ fActive

Bool_t TGListTreeItemStd::fActive
private

Definition at line 144 of file TGListTree.h.

◆ fCheckBox

Bool_t TGListTreeItemStd::fCheckBox
private

Definition at line 145 of file TGListTree.h.

◆ fChecked

Bool_t TGListTreeItemStd::fChecked
private

Definition at line 146 of file TGListTree.h.

◆ fCheckedPic

const TGPicture* TGListTreeItemStd::fCheckedPic
private

Definition at line 152 of file TGListTree.h.

◆ fClosedPic

const TGPicture* TGListTreeItemStd::fClosedPic
private

Definition at line 151 of file TGListTree.h.

◆ fColor

Color_t TGListTreeItemStd::fColor
private

Definition at line 157 of file TGListTree.h.

◆ fHasColor

Bool_t TGListTreeItemStd::fHasColor
private

Definition at line 156 of file TGListTree.h.

◆ fOpenPic

const TGPicture* TGListTreeItemStd::fOpenPic
private

Definition at line 150 of file TGListTree.h.

◆ fOwnsData

Bool_t TGListTreeItemStd::fOwnsData
private

Definition at line 147 of file TGListTree.h.

◆ fText

TString TGListTreeItemStd::fText
private

Definition at line 148 of file TGListTree.h.

◆ fTipText

TString TGListTreeItemStd::fTipText
private

Definition at line 149 of file TGListTree.h.

◆ fUncheckedPic

const TGPicture* TGListTreeItemStd::fUncheckedPic
private

Definition at line 153 of file TGListTree.h.

◆ fUserData

void* TGListTreeItemStd::fUserData
private

Definition at line 154 of file TGListTree.h.

Libraries for TGListTreeItemStd:
[legend]

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