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()
private:
TGListTreeItem&operator=(const TGListTreeItem&)

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()
 Return width of item's icon.
TGListTreeItem& operator=(const TGListTreeItem& )
virtual ~TGListTreeItem()
{}
TGListTreeItem * GetParent()
{ return fParent; }
TGListTreeItem * GetFirstChild()
{ return fFirstchild; }
TGListTreeItem * GetLastChild()
{ return fLastchild; }
TGListTreeItem * GetPrevSibling()
{ return fPrevsibling; }
TGListTreeItem * GetNextSibling()
{ return fNextsibling; }
Bool_t IsOpen()
{ return fOpen; }
void SetOpen(Bool_t o)
{ fOpen = o; }
Bool_t IsActive()
Pixel_t GetActiveColor()
void SetActive(Bool_t )
{}
void Rename(const char* new_name)
{ SetText(new_name); }
const char * GetText()
Int_t GetTextLength()
const char * GetTipText()
Int_t GetTipTextLength()
void SetText(const char* )
{}
void SetTipText(const char* )
{}
void SetUserData(void* , Bool_t = kFALSE)
{}
void * GetUserData()
const TGPicture* GetPicture()
void SetPictures(const TGPicture* , const TGPicture* )
{}
const TGPicture* GetCheckBoxPicture()
void SetCheckBoxPictures(const TGPicture* , const TGPicture* )
{}
void SetCheckBox(Bool_t = kTRUE)
{}
Bool_t HasCheckBox()
void CheckItem(Bool_t = kTRUE)
void Toggle()
{ SetCheckBox( ! IsChecked()); }
Bool_t IsChecked()
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()
 Item coloration (underline + minibox)
Color_t GetColor()
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()
{ return fDNDState & kIsDNDSource; }
Bool_t IsDNDTarget()
{ return fDNDState & kIsDNDTarget; }
Bool_t HandlesDragAndDrop()
 Allow handling by the items themselves ... NOT USED in TGListTree yet !!!!
{ return kFALSE; }
void HandleDrag()
{}
void HandleDrop()
{}
void SavePrimitive(ostream& , Option_t* , Int_t )
{}

Author: Fons Rademakers 25/02/98
Last change: root/gui:$Id: TGListTree.h 25229 2008-08-25 15:14:34Z bellenot $
Last generated: 2008-11-28 15:05
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.