ROOT
6.07/01
Reference Guide
|
Definition at line 147 of file TGListTree.h.
Public Member Functions | |
TGListTreeItemStd (TGClient *fClient=gClient, const char *name=0, const TGPicture *opened=0, const TGPicture *closed=0, Bool_t checkbox=kFALSE) | |
Create list tree item. More... | |
virtual | ~TGListTreeItemStd () |
Delete list tree item. More... | |
virtual Pixel_t | GetActiveColor () const |
Return color for marking items that are active or selected. More... | |
virtual Bool_t | IsActive () const |
virtual void | SetActive (Bool_t a) |
virtual const char * | GetText () const |
virtual Int_t | GetTextLength () const |
virtual const char * | GetTipText () const |
virtual Int_t | GetTipTextLength () const |
virtual void | SetText (const char *text) |
virtual void | SetTipText (const char *tip) |
virtual void | SetUserData (void *userData, Bool_t own=kFALSE) |
virtual void * | GetUserData () const |
virtual const TGPicture * | GetPicture () const |
virtual const TGPicture * | GetCheckBoxPicture () const |
virtual void | SetPictures (const TGPicture *opened, const TGPicture *closed) |
Change list tree item icons. More... | |
virtual void | SetCheckBoxPictures (const TGPicture *checked, const TGPicture *unchecked) |
Change list tree check item icons. More... | |
virtual void | SetCheckBox (Bool_t on=kTRUE) |
Set a check box on the tree node. More... | |
virtual Bool_t | HasCheckBox () const |
virtual void | CheckItem (Bool_t checked=kTRUE) |
virtual void | Toggle () |
virtual Bool_t | IsChecked () const |
virtual void | CheckAllChildren (Bool_t state=kTRUE) |
Set all child items of this one checked if state=kTRUE, unchecked if state=kFALSE. More... | |
virtual void | CheckChildren (TGListTreeItem *item, Bool_t state) |
Set all child items of 'item' checked if state=kTRUE; unchecked if state=kFALSE. More... | |
virtual Bool_t | HasCheckedChild (Bool_t first=kFALSE) |
Add all child items of 'item' into the list 'checked'. More... | |
virtual Bool_t | HasUnCheckedChild (Bool_t first=kFALSE) |
Add all child items of 'item' into the list 'checked'. More... | |
virtual void | UpdateState () |
Update the state of the node 'item' according to the children states. More... | |
virtual Bool_t | HasColor () const |
virtual Color_t | GetColor () const |
virtual void | SetColor (Color_t color) |
virtual void | ClearColor () |
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. More... | |
Public Member Functions inherited from TGListTreeItem | |
TGListTreeItem (TGClient *client=gClient) | |
virtual | ~TGListTreeItem () |
TGListTreeItem * | GetParent () const |
TGListTreeItem * | GetFirstChild () const |
TGListTreeItem * | GetLastChild () const |
TGListTreeItem * | GetPrevSibling () const |
TGListTreeItem * | GetNextSibling () const |
virtual Bool_t | IsOpen () const |
virtual void | SetOpen (Bool_t o) |
void | Rename (const char *new_name) |
virtual UInt_t | GetPicWidth () const |
Return width of item's icon. More... | |
void | SetDNDSource (Bool_t onoff) |
void | SetDNDTarget (Bool_t onoff) |
Bool_t | IsDNDSource () const |
Bool_t | IsDNDTarget () const |
virtual Bool_t | HandlesDragAndDrop () const |
virtual void | HandleDrag () |
virtual void | HandleDrop () |
Private Member Functions | |
TGListTreeItemStd (const TGListTreeItemStd &) | |
TGListTreeItemStd & | operator= (const TGListTreeItemStd &) |
Private Attributes | |
Bool_t | fActive |
Bool_t | fCheckBox |
Bool_t | fChecked |
Bool_t | fOwnsData |
TString | fText |
TString | fTipText |
const TGPicture * | fOpenPic |
const TGPicture * | fClosedPic |
const TGPicture * | fCheckedPic |
const TGPicture * | fUncheckedPic |
void * | fUserData |
Bool_t | fHasColor |
Color_t | fColor |
Additional Inherited Members | |
Protected Attributes inherited from TGListTreeItem | |
TGClient * | fClient |
TGListTreeItem * | fParent |
TGListTreeItem * | fFirstchild |
TGListTreeItem * | fLastchild |
TGListTreeItem * | fPrevsibling |
TGListTreeItem * | fNextsibling |
Bool_t | fOpen |
Int_t | fDNDState |
Int_t | fY |
Int_t | fXtext |
Int_t | fYtext |
UInt_t | fHeight |
#include <TGListTree.h>
|
private |
TGListTreeItemStd::TGListTreeItemStd | ( | TGClient * | fClient = gClient , |
const char * | name = 0 , |
||
const TGPicture * | opened = 0 , |
||
const TGPicture * | closed = 0 , |
||
Bool_t | checkbox = kFALSE |
||
) |
Create list tree item.
Definition at line 113 of file TGListTree.cxx.
|
virtual |
Delete list tree item.
Definition at line 152 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 238 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 255 of file TGListTree.cxx.
Referenced by CheckAllChildren().
Implements TGListTreeItem.
Definition at line 195 of file TGListTree.h.
Referenced by CheckAllChildren().
|
inlinevirtual |
Reimplemented from TGListTreeItem.
Definition at line 208 of file TGListTree.h.
|
virtual |
Return color for marking items that are active or selected.
Implements TGListTreeItem.
Definition at line 167 of file TGListTree.cxx.
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 189 of file TGListTree.h.
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 206 of file TGListTree.h.
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 188 of file TGListTree.h.
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 178 of file TGListTree.h.
Referenced by SavePrimitive().
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 179 of file TGListTree.h.
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 180 of file TGListTree.h.
Referenced by SavePrimitive().
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 181 of file TGListTree.h.
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 186 of file TGListTree.h.
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 194 of file TGListTree.h.
Referenced by SavePrimitive().
Add all child items of 'item' into the list 'checked'.
Reimplemented from TGListTreeItem.
Definition at line 175 of file TGListTree.cxx.
Referenced by UpdateState().
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 205 of file TGListTree.h.
Add all child items of 'item' into the list 'checked'.
Reimplemented from TGListTreeItem.
Definition at line 198 of file TGListTree.cxx.
Referenced by UpdateState().
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 175 of file TGListTree.h.
|
inlinevirtual |
Implements TGListTreeItem.
Definition at line 197 of file TGListTree.h.
Referenced by CheckAllChildren().
|
private |
Save a list tree item attributes as a C++ statements on output stream.
Reimplemented from TGListTreeItem.
Definition at line 2684 of file TGListTree.cxx.
Reimplemented from TGListTreeItem.
Definition at line 176 of file TGListTree.h.
Set a check box on the tree node.
Reimplemented from TGListTreeItem.
Definition at line 278 of file TGListTree.cxx.
|
virtual |
Change list tree check item icons.
Reimplemented from TGListTreeItem.
Definition at line 286 of file TGListTree.cxx.
Referenced by UpdateState().
Reimplemented from TGListTreeItem.
Definition at line 207 of file TGListTree.h.
Change list tree item icons.
Reimplemented from TGListTreeItem.
Definition at line 311 of file TGListTree.cxx.
|
inlinevirtual |
Reimplemented from TGListTreeItem.
Definition at line 182 of file TGListTree.h.
|
inlinevirtual |
Reimplemented from TGListTreeItem.
Definition at line 183 of file TGListTree.h.
Reimplemented from TGListTreeItem.
Definition at line 185 of file TGListTree.h.
|
inlinevirtual |
Reimplemented from TGListTreeItem.
Definition at line 196 of file TGListTree.h.
Referenced by CheckAllChildren().
|
virtual |
Update the state of the node 'item' according to the children states.
Reimplemented from TGListTreeItem.
Definition at line 221 of file TGListTree.cxx.
Referenced by CheckAllChildren().
|
private |
Definition at line 150 of file TGListTree.h.
Referenced by IsActive(), SetActive(), and TGListTreeItemStd().
|
private |
Definition at line 151 of file TGListTree.h.
Referenced by GetCheckBoxPicture(), HasCheckBox(), SetCheckBox(), and TGListTreeItemStd().
|
private |
Definition at line 152 of file TGListTree.h.
Referenced by CheckItem(), GetCheckBoxPicture(), IsChecked(), TGListTreeItemStd(), Toggle(), and UpdateState().
|
private |
Definition at line 158 of file TGListTree.h.
Referenced by GetCheckBoxPicture(), SavePrimitive(), SetCheckBoxPictures(), TGListTreeItemStd(), and ~TGListTreeItemStd().
|
private |
Definition at line 157 of file TGListTree.h.
Referenced by GetPicture(), SavePrimitive(), SetPictures(), TGListTreeItemStd(), and ~TGListTreeItemStd().
|
private |
Definition at line 163 of file TGListTree.h.
Referenced by GetColor(), SavePrimitive(), SetColor(), and TGListTreeItemStd().
|
private |
Definition at line 162 of file TGListTree.h.
Referenced by ClearColor(), HasColor(), SavePrimitive(), SetColor(), and TGListTreeItemStd().
|
private |
Definition at line 156 of file TGListTree.h.
Referenced by GetPicture(), SavePrimitive(), SetPictures(), TGListTreeItemStd(), and ~TGListTreeItemStd().
|
private |
Definition at line 153 of file TGListTree.h.
Referenced by SetUserData(), TGListTreeItemStd(), and ~TGListTreeItemStd().
|
private |
Definition at line 154 of file TGListTree.h.
Referenced by GetText(), GetTextLength(), SetText(), and TGListTreeItemStd().
|
private |
Definition at line 155 of file TGListTree.h.
Referenced by GetTipText(), GetTipTextLength(), SavePrimitive(), and SetTipText().
|
private |
Definition at line 159 of file TGListTree.h.
Referenced by GetCheckBoxPicture(), SavePrimitive(), SetCheckBoxPictures(), TGListTreeItemStd(), and ~TGListTreeItemStd().
|
private |
Definition at line 160 of file TGListTree.h.
Referenced by GetUserData(), SetUserData(), TGListTreeItemStd(), and ~TGListTreeItemStd().