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 TGPicture * | GetCheckBoxPicture () const override |
Color_t | GetColor () const override |
const TGPicture * | GetPicture () 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'. | |
TClass * | IsA () 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 () |
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) |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TGListTreeItem | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
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 = (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.
|
override |
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.
|
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.
Implements TGListTreeItem.
Definition at line 174 of file TGListTree.h.
|
static |
|
inlinestaticconstexpr |
Definition at line 191 of file TGListTree.h.
|
inlineoverridevirtual |
Reimplemented from TGListTreeItem.
Definition at line 187 of file TGListTree.h.
|
inlinestatic |
Definition at line 191 of file TGListTree.h.
|
overridevirtual |
Return color for marking items that are active or selected.
Implements TGListTreeItem.
Definition at line 170 of file TGListTree.cxx.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 168 of file TGListTree.h.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 185 of file TGListTree.h.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 167 of file TGListTree.h.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 157 of file TGListTree.h.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 158 of file TGListTree.h.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 159 of file TGListTree.h.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 160 of file TGListTree.h.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 165 of file TGListTree.h.
|
inlineoverridevirtual |
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.
|
inlineoverridevirtual |
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.
|
inlineoverridevirtual |
Reimplemented from TGListTreeItem.
Definition at line 191 of file TGListTree.h.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 154 of file TGListTree.h.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 176 of file TGListTree.h.
|
privatedelete |
|
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.
|
inlineoverridevirtual |
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.
|
overridevirtual |
Change list tree check item icons.
Reimplemented from TGListTreeItem.
Definition at line 289 of file TGListTree.cxx.
|
inlineoverridevirtual |
Reimplemented from TGListTreeItem.
Definition at line 186 of file TGListTree.h.
|
overridevirtual |
Change list tree item icons.
Reimplemented from TGListTreeItem.
Definition at line 314 of file TGListTree.cxx.
|
inlineoverridevirtual |
Reimplemented from TGListTreeItem.
Definition at line 161 of file TGListTree.h.
|
inlineoverridevirtual |
Reimplemented from TGListTreeItem.
Definition at line 162 of file TGListTree.h.
Reimplemented from TGListTreeItem.
Definition at line 164 of file TGListTree.h.
|
overridevirtual |
Reimplemented from TGListTreeItem.
|
inline |
Definition at line 191 of file TGListTree.h.
|
inlineoverridevirtual |
Reimplemented from TGListTreeItem.
Definition at line 175 of file TGListTree.h.
|
overridevirtual |
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.