Logo ROOT  
Reference Guide
TGListTreeItemStd Class Reference

Definition at line 126 of file TGListTree.h.

Public Member Functions

 TGListTreeItemStd (TGClient *fClient=(TGClient::Instance()), 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...
 
void CheckAllChildren (Bool_t state=kTRUE) override
 Set all child items of this one checked if state=kTRUE, unchecked if state=kFALSE. More...
 
void CheckChildren (TGListTreeItem *item, Bool_t state) override
 Set all child items of 'item' checked if state=kTRUE; unchecked if state=kFALSE. More...
 
void CheckItem (Bool_t checked=kTRUE) override
 
void ClearColor () override
 
Pixel_t GetActiveColor () const override
 Return color for marking items that are active or selected. More...
 
const TGPictureGetCheckBoxPicture () const override
 
Color_t GetColor () const override
 
const TGPictureGetPicture () const override
 
const char * GetText () const override
 
Int_t GetTextLength () const override
 
const char * GetTipText () const override
 
Int_t GetTipTextLength () const override
 
void * GetUserData () const override
 
Bool_t HasCheckBox () const override
 
Bool_t HasCheckedChild (Bool_t first=kFALSE) override
 Add all child items of 'item' into the list 'checked'. More...
 
Bool_t HasColor () const override
 
Bool_t HasUnCheckedChild (Bool_t first=kFALSE) override
 Add all child items of 'item' into the list 'checked'. More...
 
TClassIsA () const override
 
Bool_t IsActive () const override
 
Bool_t IsChecked () const override
 
void SavePrimitive (std::ostream &out, Option_t *option, Int_t n) override
 Save a list tree item attributes as a C++ statements on output stream. More...
 
void SetActive (Bool_t a) override
 
void SetCheckBox (Bool_t on=kTRUE) override
 Set a check box on the tree node. More...
 
void SetCheckBoxPictures (const TGPicture *checked, const TGPicture *unchecked) override
 Change list tree check item icons. More...
 
void SetColor (Color_t color) override
 
void SetPictures (const TGPicture *opened, const TGPicture *closed) override
 Change list tree item icons. More...
 
void SetText (const char *text) override
 
void SetTipText (const char *tip) override
 
void SetUserData (void *userData, Bool_t own=kFALSE) override
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
void Toggle () override
 
void UpdateState () override
 Update the state of the node 'item' according to the children states. More...
 
- Public Member Functions inherited from TGListTreeItem
 TGListTreeItem (TGClient *client=(TGClient::Instance()))
 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 void * GetUserData () 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 TClassIsA () const
 
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 Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void Toggle ()
 
virtual void UpdateState ()
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TGListTreeItem
static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 

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...
 
void * fUserData
 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 = (TGClient::Instance()),
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)
overridevirtual

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 
)
overridevirtual

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()

void TGListTreeItemStd::CheckItem ( Bool_t  checked = kTRUE)
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 174 of file TGListTree.h.

◆ Class()

static TClass * TGListTreeItemStd::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TGListTreeItemStd::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static Version_t TGListTreeItemStd::Class_Version ( )
inlinestatic
Returns
Version of this class

Definition at line 191 of file TGListTree.h.

◆ ClearColor()

void TGListTreeItemStd::ClearColor ( )
inlineoverridevirtual

Reimplemented from TGListTreeItem.

Definition at line 187 of file TGListTree.h.

◆ DeclFileName()

static const char * TGListTreeItemStd::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 191 of file TGListTree.h.

◆ GetActiveColor()

Pixel_t TGListTreeItemStd::GetActiveColor ( ) const
overridevirtual

Return color for marking items that are active or selected.

Implements TGListTreeItem.

Definition at line 170 of file TGListTree.cxx.

◆ GetCheckBoxPicture()

const TGPicture * TGListTreeItemStd::GetCheckBoxPicture ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 168 of file TGListTree.h.

◆ GetColor()

Color_t TGListTreeItemStd::GetColor ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 185 of file TGListTree.h.

◆ GetPicture()

const TGPicture * TGListTreeItemStd::GetPicture ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 167 of file TGListTree.h.

◆ GetText()

const char * TGListTreeItemStd::GetText ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 157 of file TGListTree.h.

◆ GetTextLength()

Int_t TGListTreeItemStd::GetTextLength ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 158 of file TGListTree.h.

◆ GetTipText()

const char * TGListTreeItemStd::GetTipText ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 159 of file TGListTree.h.

◆ GetTipTextLength()

Int_t TGListTreeItemStd::GetTipTextLength ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 160 of file TGListTree.h.

◆ GetUserData()

void * TGListTreeItemStd::GetUserData ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 165 of file TGListTree.h.

◆ HasCheckBox()

Bool_t TGListTreeItemStd::HasCheckBox ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 173 of file TGListTree.h.

◆ HasCheckedChild()

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

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

Reimplemented from TGListTreeItem.

Definition at line 178 of file TGListTree.cxx.

◆ HasColor()

Bool_t TGListTreeItemStd::HasColor ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 184 of file TGListTree.h.

◆ HasUnCheckedChild()

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

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

Reimplemented from TGListTreeItem.

Definition at line 201 of file TGListTree.cxx.

◆ IsA()

TClass * TGListTreeItemStd::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from TGListTreeItem.

Definition at line 191 of file TGListTree.h.

◆ IsActive()

Bool_t TGListTreeItemStd::IsActive ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 154 of file TGListTree.h.

◆ IsChecked()

Bool_t TGListTreeItemStd::IsChecked ( ) const
inlineoverridevirtual

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 
)
overridevirtual

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()

void TGListTreeItemStd::SetActive ( Bool_t  a)
inlineoverridevirtual

Reimplemented from TGListTreeItem.

Definition at line 155 of file TGListTree.h.

◆ SetCheckBox()

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

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 
)
overridevirtual

Change list tree check item icons.

Reimplemented from TGListTreeItem.

Definition at line 289 of file TGListTree.cxx.

◆ SetColor()

void TGListTreeItemStd::SetColor ( Color_t  color)
inlineoverridevirtual

Reimplemented from TGListTreeItem.

Definition at line 186 of file TGListTree.h.

◆ SetPictures()

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

Change list tree item icons.

Reimplemented from TGListTreeItem.

Definition at line 314 of file TGListTree.cxx.

◆ SetText()

void TGListTreeItemStd::SetText ( const char *  text)
inlineoverridevirtual

Reimplemented from TGListTreeItem.

Definition at line 161 of file TGListTree.h.

◆ SetTipText()

void TGListTreeItemStd::SetTipText ( const char *  tip)
inlineoverridevirtual

Reimplemented from TGListTreeItem.

Definition at line 162 of file TGListTree.h.

◆ SetUserData()

void TGListTreeItemStd::SetUserData ( void *  userData,
Bool_t  own = kFALSE 
)
inlineoverridevirtual

Reimplemented from TGListTreeItem.

Definition at line 164 of file TGListTree.h.

◆ Streamer()

void TGListTreeItemStd::Streamer ( TBuffer )
overridevirtual

Reimplemented from TGListTreeItem.

◆ StreamerNVirtual()

void TGListTreeItemStd::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 191 of file TGListTree.h.

◆ Toggle()

void TGListTreeItemStd::Toggle ( )
inlineoverridevirtual

Reimplemented from TGListTreeItem.

Definition at line 175 of file TGListTree.h.

◆ UpdateState()

void TGListTreeItemStd::UpdateState ( )
overridevirtual

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: