ROOT logo
ROOT » GUI » GUI » TGListTreeItem

class TGListTreeItem


TGListTree and TGListTreeItem

A list tree is a widget that can contain a number of items
arranged in a tree structure. The items are represented by small
folder icons that can be either open or closed.

The TGListTree is user callable. The TGListTreeItem is a service
class of the list tree.

A list tree can generate the following events:
kC_LISTTREE, kCT_ITEMCLICK, which button, location (y<<16|x).
kC_LISTTREE, kCT_ITEMDBLCLICK, which button, location (y<<16|x).


Function Members (Methods)

 
    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.

public:
virtual~TGListTreeItem()
virtual voidCheckAllChildren(Bool_t = kTRUE)
virtual voidCheckChildren(TGListTreeItem*, Bool_t)
virtual voidCheckItem(Bool_t = kTRUE)
static TClass*Class()
virtual voidClearColor()
virtual Pixel_tGetActiveColor() const
virtual const TGPicture*GetCheckBoxPicture() const
virtual Color_tGetColor() const
TGListTreeItem*GetFirstChild() const
TGListTreeItem*GetLastChild() const
TGListTreeItem*GetNextSibling() const
TGListTreeItem*GetParent() const
virtual const TGPicture*GetPicture() const
virtual UInt_tGetPicWidth() const
TGListTreeItem*GetPrevSibling() const
virtual const char*GetText() const
virtual Int_tGetTextLength() const
virtual const char*GetTipText() const
virtual Int_tGetTipTextLength() const
virtual void*GetUserData() const
virtual voidHandleDrag()
virtual voidHandleDrop()
virtual Bool_tHandlesDragAndDrop() const
virtual Bool_tHasCheckBox() const
virtual Bool_tHasCheckedChild(Bool_t = kFALSE)
virtual Bool_tHasColor() const
virtual Bool_tHasUnCheckedChild(Bool_t = kFALSE)
virtual TClass*IsA() const
virtual Bool_tIsActive() const
virtual Bool_tIsChecked() const
Bool_tIsDNDSource() const
Bool_tIsDNDTarget() const
virtual Bool_tIsOpen() const
voidRename(const char* new_name)
virtual voidSavePrimitive(ostream&, Option_t*, Int_t)
virtual voidSetActive(Bool_t)
virtual voidSetCheckBox(Bool_t = kTRUE)
virtual voidSetCheckBoxPictures(const TGPicture*, const TGPicture*)
virtual voidSetColor(Color_t)
voidSetDNDSource(Bool_t onoff)
voidSetDNDTarget(Bool_t onoff)
virtual voidSetOpen(Bool_t o)
virtual voidSetPictures(const TGPicture*, const TGPicture*)
virtual voidSetText(const char*)
virtual voidSetTipText(const char*)
virtual voidSetUserData(void*, Bool_t = kFALSE)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidToggle()
virtual voidUpdateState()

Data Members

protected:
TGClient*fClientpointer to TGClient
Int_tfDNDStateEDNDFlags
TGListTreeItem*fFirstchildpointer to first child item
UInt_tfHeightitem height
TGListTreeItem*fLastchildpointer to last child item
TGListTreeItem*fNextsiblingpointer to next sibling
Bool_tfOpentrue if item is open
TGListTreeItem*fParentpointer to parent
TGListTreeItem*fPrevsiblingpointer to previous sibling
Int_tfXtextx position of item text
Int_tfYy position of item
Int_tfYtexty position of item text

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

UInt_t GetPicWidth() const
 Return width of item's icon.
TGListTreeItem& operator=(const TGListTreeItem& )
virtual ~TGListTreeItem()
{}
TGListTreeItem * GetParent() const
{ return fParent; }
TGListTreeItem * GetFirstChild() const
{ return fFirstchild; }
TGListTreeItem * GetLastChild() const
{ return fLastchild; }
TGListTreeItem * GetPrevSibling() const
{ return fPrevsibling; }
TGListTreeItem * GetNextSibling() const
{ return fNextsibling; }
Bool_t IsOpen() const
{ return fOpen; }
void SetOpen(Bool_t o)
{ fOpen = o; }
Bool_t IsActive() const
Pixel_t GetActiveColor() const
void SetActive(Bool_t )
{}
void Rename(const char* new_name)
{ SetText(new_name); }
const char * GetText() const
Int_t GetTextLength() const
const char * GetTipText() const
Int_t GetTipTextLength() const
void SetText(const char* )
{}
void SetTipText(const char* )
{}
void SetUserData(void* , Bool_t = kFALSE)
{}
void * GetUserData() const
const TGPicture* GetPicture() const
void SetPictures(const TGPicture* , const TGPicture* )
{}
const TGPicture* GetCheckBoxPicture() const
void SetCheckBoxPictures(const TGPicture* , const TGPicture* )
{}
void SetCheckBox(Bool_t = kTRUE)
{}
Bool_t HasCheckBox() const
void CheckItem(Bool_t = kTRUE)
void Toggle()
Bool_t IsChecked() const
void CheckAllChildren(Bool_t = kTRUE)
 Propagation of checked-state form children to parents.
{}
void CheckChildren(TGListTreeItem* , Bool_t )
{}
Bool_t HasCheckedChild(Bool_t = kFALSE)
{ return kTRUE; }
Bool_t HasUnCheckedChild(Bool_t = kFALSE)
{ return kTRUE; }
void UpdateState()
{}
Bool_t HasColor() const
 Item coloration (underline + minibox)
Color_t GetColor() const
void SetColor(Color_t )
{}
void ClearColor()
{}
void SetDNDSource(Bool_t onoff)
 Drag and drop.
{ if (onoff) fDNDState |= kIsDNDSource; else fDNDState &= ~kIsDNDSource; }
void SetDNDTarget(Bool_t onoff)
{ if (onoff) fDNDState |= kIsDNDTarget; else fDNDState &= ~kIsDNDTarget; }
Bool_t IsDNDSource() const
{ return fDNDState & kIsDNDSource; }
Bool_t IsDNDTarget() const
{ return fDNDState & kIsDNDTarget; }
Bool_t HandlesDragAndDrop() const
 Allow handling by the items themselves ... NOT USED in TGListTree yet !!!!
{ return kFALSE; }
void HandleDrag()
{}
void HandleDrop()
{}
void SavePrimitive(ostream& , Option_t* , Int_t )
{}