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 |
| TGListTreeItem * | GetFirstChild () const |
| TGListTreeItem * | GetLastChild () const |
| TGListTreeItem * | GetNextSibling () const |
| TGListTreeItem * | GetParent () const |
| const TGPicture * | GetPicture () const override |
| virtual UInt_t | GetPicWidth () const |
| Return width of item's icon. | |
| TGListTreeItem * | GetPrevSibling () const |
| const char * | GetText () const override |
| Int_t | GetTextLength () const override |
| const char * | GetTipText () const override |
| Int_t | GetTipTextLength () const override |
| void * | GetUserData () const override |
| virtual void | HandleDrag () |
| virtual void | HandleDrop () |
| virtual Bool_t | HandlesDragAndDrop () const |
| 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 |
| Bool_t | IsDNDSource () const |
| Bool_t | IsDNDTarget () const |
| virtual Bool_t | IsOpen () const |
| void | Rename (const char *new_name) |
| 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 | SetDNDSource (Bool_t onoff) |
| void | SetDNDTarget (Bool_t onoff) |
| virtual void | SetOpen (Bool_t o) |
| 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. | |
Static Public Member Functions | |
| static TClass * | Class () |
| static const char * | Class_Name () |
| static constexpr Version_t | Class_Version () |
| static const char * | DeclFileName () |
Protected Member Functions | |
| TString | SaveTreeItem (std::ostream &out, const char *treevarname, const char *parent_var_name) override |
| Save a list tree item attributes as a C++ statements on output stream. | |
Protected Attributes | |
| 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 | |
State managed by TGListTree during drawing. | |
| Int_t | fY |
| Int_t | fXtext |
| Int_t | fYtext |
| UInt_t | fHeight |
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 | |
#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 114 of file TGListTree.cxx.
|
override |
Delete list tree item.
Definition at line 153 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 243 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 260 of file TGListTree.cxx.
Implements TGListTreeItem.
Definition at line 178 of file TGListTree.h.
|
static |
|
static |
|
inlinestaticconstexpr |
Definition at line 193 of file TGListTree.h.
|
inlineoverridevirtual |
Reimplemented from TGListTreeItem.
Definition at line 191 of file TGListTree.h.
|
inlinestatic |
Definition at line 193 of file TGListTree.h.
|
overridevirtual |
Return color for marking items that are active or selected.
Implements TGListTreeItem.
Definition at line 168 of file TGListTree.cxx.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 172 of file TGListTree.h.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 189 of file TGListTree.h.
|
inlineinherited |
Definition at line 61 of file TGListTree.h.
|
inlineinherited |
Definition at line 62 of file TGListTree.h.
|
inlineinherited |
Definition at line 64 of file TGListTree.h.
|
inlineinherited |
Definition at line 60 of file TGListTree.h.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 171 of file TGListTree.h.
|
virtualinherited |
Return width of item's icon.
Definition at line 100 of file TGListTree.cxx.
|
inlineinherited |
Definition at line 63 of file TGListTree.h.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 161 of file TGListTree.h.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 162 of file TGListTree.h.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 163 of file TGListTree.h.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 164 of file TGListTree.h.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 169 of file TGListTree.h.
|
inlinevirtualinherited |
Definition at line 119 of file TGListTree.h.
|
inlinevirtualinherited |
Definition at line 120 of file TGListTree.h.
|
inlinevirtualinherited |
Definition at line 118 of file TGListTree.h.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 177 of file TGListTree.h.
Add all child items of 'item' into the list 'checked'.
Reimplemented from TGListTreeItem.
Definition at line 176 of file TGListTree.cxx.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 188 of file TGListTree.h.
Add all child items of 'item' into the list 'checked'.
Reimplemented from TGListTreeItem.
Definition at line 199 of file TGListTree.cxx.
|
inlineoverridevirtual |
Reimplemented from TGListTreeItem.
Definition at line 193 of file TGListTree.h.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 158 of file TGListTree.h.
|
inlineoverridevirtual |
Implements TGListTreeItem.
Definition at line 180 of file TGListTree.h.
|
inlineinherited |
Definition at line 114 of file TGListTree.h.
|
inlineinherited |
Definition at line 115 of file TGListTree.h.
|
inlinevirtualinherited |
Definition at line 66 of file TGListTree.h.
|
privatedelete |
|
inlineinherited |
Definition at line 73 of file TGListTree.h.
|
overrideprotectedvirtual |
Save a list tree item attributes as a C++ statements on output stream.
Reimplemented from TGListTreeItem.
Definition at line 2660 of file TGListTree.cxx.
|
inlineoverridevirtual |
Reimplemented from TGListTreeItem.
Definition at line 159 of file TGListTree.h.
Set a check box on the tree node.
Reimplemented from TGListTreeItem.
Definition at line 283 of file TGListTree.cxx.
|
overridevirtual |
Change list tree check item icons.
Reimplemented from TGListTreeItem.
Definition at line 291 of file TGListTree.cxx.
|
inlineoverridevirtual |
Reimplemented from TGListTreeItem.
Definition at line 190 of file TGListTree.h.
|
inlineinherited |
Definition at line 110 of file TGListTree.h.
|
inlineinherited |
Definition at line 112 of file TGListTree.h.
|
inlinevirtualinherited |
Definition at line 67 of file TGListTree.h.
|
overridevirtual |
Change list tree item icons.
Reimplemented from TGListTreeItem.
Definition at line 316 of file TGListTree.cxx.
|
inlineoverridevirtual |
Reimplemented from TGListTreeItem.
Definition at line 165 of file TGListTree.h.
|
inlineoverridevirtual |
Reimplemented from TGListTreeItem.
Definition at line 166 of file TGListTree.h.
Reimplemented from TGListTreeItem.
Definition at line 168 of file TGListTree.h.
|
overridevirtual |
Reimplemented from TGListTreeItem.
|
inline |
Definition at line 193 of file TGListTree.h.
|
inlineoverridevirtual |
Reimplemented from TGListTreeItem.
Definition at line 179 of file TGListTree.h.
|
overridevirtual |
Update the state of the node 'item' according to the children states.
Reimplemented from TGListTreeItem.
Definition at line 222 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.
|
protectedinherited |
pointer to TGClient
Definition at line 35 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.
|
protectedinherited |
EDNDFlags.
Definition at line 44 of file TGListTree.h.
|
protectedinherited |
pointer to first child item
Definition at line 37 of file TGListTree.h.
|
private |
true if item has assigned color
Definition at line 141 of file TGListTree.h.
|
protectedinherited |
Definition at line 51 of file TGListTree.h.
|
protectedinherited |
pointer to last child item
Definition at line 38 of file TGListTree.h.
|
protectedinherited |
pointer to next sibling
Definition at line 40 of file TGListTree.h.
|
protectedinherited |
true if item is open
Definition at line 42 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.
|
protectedinherited |
pointer to parent
Definition at line 36 of file TGListTree.h.
|
protectedinherited |
pointer to previous sibling
Definition at line 39 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.
|
protectedinherited |
Definition at line 49 of file TGListTree.h.
|
protectedinherited |
Definition at line 48 of file TGListTree.h.
|
protectedinherited |
Definition at line 50 of file TGListTree.h.