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. | |
virtual | ~TGListTreeItemStd () |
Delete list tree item. | |
virtual void | CheckAllChildren (Bool_t state=kTRUE) |
Set all child items of this one checked if state=kTRUE, unchecked if state=kFALSE. | |
virtual void | CheckChildren (TGListTreeItem *item, Bool_t state) |
Set all child items of 'item' checked if state=kTRUE; unchecked if state=kFALSE. | |
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. | |
virtual const TGPicture * | GetCheckBoxPicture () const |
virtual Color_t | GetColor () const |
virtual const TGPicture * | GetPicture () const |
virtual const char * | GetText () const |
virtual Int_t | GetTextLength () const |
virtual const char * | GetTipText () const |
virtual Int_t | GetTipTextLength () const |
virtual void * | GetUserData () const |
virtual Bool_t | HasCheckBox () const |
virtual Bool_t | HasCheckedChild (Bool_t first=kFALSE) |
Add all child items of 'item' into the list 'checked'. | |
virtual Bool_t | HasColor () const |
virtual Bool_t | HasUnCheckedChild (Bool_t first=kFALSE) |
Add all child items of 'item' into the list 'checked'. | |
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. | |
virtual void | SetActive (Bool_t a) |
virtual void | SetCheckBox (Bool_t on=kTRUE) |
Set a check box on the tree node. | |
virtual void | SetCheckBoxPictures (const TGPicture *checked, const TGPicture *unchecked) |
Change list tree check item icons. | |
virtual void | SetColor (Color_t color) |
virtual void | SetPictures (const TGPicture *opened, const TGPicture *closed) |
Change list tree item icons. | |
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. | |
Public Member Functions inherited from TGListTreeItem | |
TGListTreeItem (TGClient *client=gClient) | |
Constructor. | |
virtual | ~TGListTreeItem () |
TGListTreeItem * | GetFirstChild () const |
TGListTreeItem * | GetLastChild () const |
TGListTreeItem * | GetNextSibling () const |
TGListTreeItem * | GetParent () const |
virtual UInt_t | GetPicWidth () const |
Return width of item's icon. | |
TGListTreeItem * | GetPrevSibling () 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 &)=delete | |
TGListTreeItemStd & | operator= (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 TGPicture * | fCheckedPic |
icon for checked item | |
const TGPicture * | fClosedPic |
icon for closed state | |
Color_t | fColor |
item's color | |
Bool_t | fHasColor |
true if item has assigned color | |
const TGPicture * | fOpenPic |
icon for open state | |
Bool_t | fOwnsData |
true if user data has to be deleted | |
TString | fText |
item text | |
TString | fTipText |
tooltip text | |
const TGPicture * | fUncheckedPic |
icon for unchecked item | |
void * | fUserData |
pointer to user data structure | |
Additional Inherited Members | |
Protected Attributes inherited from TGListTreeItem | |
TGClient * | fClient |
pointer to TGClient | |
Int_t | fDNDState |
EDNDFlags. | |
TGListTreeItem * | fFirstchild |
pointer to first child item | |
TGListTreeItem * | fLastchild |
pointer to last child item | |
TGListTreeItem * | fNextsibling |
pointer to next sibling | |
Bool_t | fOpen |
true if item is open | |
TGListTreeItem * | fParent |
pointer to parent | |
TGListTreeItem * | fPrevsibling |
pointer to previous sibling | |
Int_t | fY |
Int_t | fXtext |
Int_t | fYtext |
UInt_t | fHeight |
#include <TGListTree.h>
|
privatedelete |
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.
|
virtual |
Delete list tree item.
Definition at line 155 of file TGListTree.cxx.
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.
|
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.
Implements TGListTreeItem.
Definition at line 174 of file TGListTree.h.
|
inlinevirtual |
Reimplemented from TGListTreeItem.
Definition at line 187 of file TGListTree.h.
|
virtual |
Return color for marking items that are active or selected.
Implements TGListTreeItem.
Definition at line 170 of file TGListTree.cxx.
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 168 of file TGListTree.h.
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 185 of file TGListTree.h.
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 167 of file TGListTree.h.
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 157 of file TGListTree.h.
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 158 of file TGListTree.h.
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 159 of file TGListTree.h.
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 160 of file TGListTree.h.
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 165 of file TGListTree.h.
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 173 of file TGListTree.h.
Add all child items of 'item' into the list 'checked'.
Reimplemented from TGListTreeItem.
Definition at line 178 of file TGListTree.cxx.
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 184 of file TGListTree.h.
Add all child items of 'item' into the list 'checked'.
Reimplemented from TGListTreeItem.
Definition at line 201 of file TGListTree.cxx.
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 154 of file TGListTree.h.
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 176 of file TGListTree.h.
|
privatedelete |
Save a list tree item attributes as a C++ statements on output stream.
Reimplemented from TGListTreeItem.
Definition at line 2675 of file TGListTree.cxx.
Reimplemented from TGListTreeItem.
Definition at line 155 of file TGListTree.h.
Set a check box on the tree node.
Reimplemented from TGListTreeItem.
Definition at line 281 of file TGListTree.cxx.
|
virtual |
Change list tree check item icons.
Reimplemented from TGListTreeItem.
Definition at line 289 of file TGListTree.cxx.
Reimplemented from TGListTreeItem.
Definition at line 186 of file TGListTree.h.
Change list tree item icons.
Reimplemented from TGListTreeItem.
Definition at line 314 of file TGListTree.cxx.
|
inlinevirtual |
Reimplemented from TGListTreeItem.
Definition at line 161 of file TGListTree.h.
|
inlinevirtual |
Reimplemented from TGListTreeItem.
Definition at line 162 of file TGListTree.h.
Reimplemented from TGListTreeItem.
Definition at line 164 of file TGListTree.h.
|
inlinevirtual |
Reimplemented from TGListTreeItem.
Definition at line 175 of file TGListTree.h.
|
virtual |
Update the state of the node 'item' according to the children states.
Reimplemented from TGListTreeItem.
Definition at line 224 of file TGListTree.cxx.
|
private |
true if item is active
Definition at line 129 of file TGListTree.h.
|
private |
true if checkbox is visible
Definition at line 130 of file TGListTree.h.
|
private |
true if item is checked
Definition at line 131 of file TGListTree.h.
|
private |
icon for checked item
Definition at line 137 of file TGListTree.h.
|
private |
icon for closed state
Definition at line 136 of file TGListTree.h.
|
private |
item's color
Definition at line 142 of file TGListTree.h.
|
private |
true if item has assigned color
Definition at line 141 of file TGListTree.h.
|
private |
icon for open state
Definition at line 135 of file TGListTree.h.
|
private |
true if user data has to be deleted
Definition at line 132 of file TGListTree.h.
|
private |
item text
Definition at line 133 of file TGListTree.h.
|
private |
tooltip text
Definition at line 134 of file TGListTree.h.
|
private |
icon for unchecked item
Definition at line 138 of file TGListTree.h.
|
private |
pointer to user data structure
Definition at line 139 of file TGListTree.h.