Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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.
 
 ~TGListTreeItemStd () override
 Delete list tree item.
 
void CheckAllChildren (Bool_t state=kTRUE) override
 Set all child items of this one checked if state=kTRUE, unchecked if state=kFALSE.
 
void CheckChildren (TGListTreeItem *item, Bool_t state) override
 Set all child items of 'item' checked if state=kTRUE; unchecked if state=kFALSE.
 
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.
 
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'.
 
Bool_t HasColor () const override
 
Bool_t HasUnCheckedChild (Bool_t first=kFALSE) override
 Add all child items of 'item' into the list 'checked'.
 
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.
 
void SetActive (Bool_t a) override
 
void SetCheckBox (Bool_t on=kTRUE) override
 Set a check box on the tree node.
 
void SetCheckBoxPictures (const TGPicture *checked, const TGPicture *unchecked) override
 Change list tree check item icons.
 
void SetColor (Color_t color) override
 
void SetPictures (const TGPicture *opened, const TGPicture *closed) override
 Change list tree item icons.
 
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.
 
- Public Member Functions inherited from TGListTreeItem
 TGListTreeItem (TGClient *client=(TGClient::Instance()))
 Constructor.
 
virtual ~TGListTreeItem ()
 
TGListTreeItemGetFirstChild () const
 
TGListTreeItemGetLastChild () const
 
TGListTreeItemGetNextSibling () const
 
TGListTreeItemGetParent () const
 
virtual UInt_t GetPicWidth () const
 Return width of item's icon.
 
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)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TGListTreeItem
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr 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
 
Bool_t fCheckBox
 true if checkbox is visible
 
Bool_t fChecked
 true if item is checked
 
const TGPicturefCheckedPic
 icon for checked item
 
const TGPicturefClosedPic
 icon for closed state
 
Color_t fColor
 item's color
 
Bool_t fHasColor
 true if item has assigned color
 
const TGPicturefOpenPic
 icon for open state
 
Bool_t fOwnsData
 true if user data has to be deleted
 
TString fText
 item text
 
TString fTipText
 tooltip text
 
const TGPicturefUncheckedPic
 icon for unchecked item
 
void * fUserData
 pointer to user data structure
 

Additional Inherited Members

- Protected Attributes inherited from TGListTreeItem
TGClientfClient
 pointer to TGClient
 
Int_t fDNDState
 EDNDFlags.
 
TGListTreeItemfFirstchild
 pointer to first child item
 
TGListTreeItemfLastchild
 pointer to last child item
 
TGListTreeItemfNextsibling
 pointer to next sibling
 
Bool_t fOpen
 true if item is open
 
TGListTreeItemfParent
 pointer to parent
 
TGListTreeItemfPrevsibling
 pointer to previous sibling
 
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 ( )
override

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 constexpr Version_t TGListTreeItemStd::Class_Version ( )
inlinestaticconstexpr
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 2675 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:

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