ROOT logo
ROOT » GUI » GUI » TGListTreeItemStd

class TGListTreeItemStd: public 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)

public:
TGListTreeItemStd(TGClient* fClient = gClient, const char* name = 0, const TGPicture* opened = 0, const TGPicture* closed = 0, Bool_t checkbox = kFALSE)
virtual~TGListTreeItemStd()
virtual voidCheckAllChildren(Bool_t state = kTRUE)
virtual voidCheckChildren(TGListTreeItem* item, Bool_t state)
virtual voidCheckItem(Bool_t checked = kTRUE)
static TClass*Class()
virtual voidClearColor()
virtual Pixel_tGetActiveColor() const
virtual const TGPicture*GetCheckBoxPicture() const
virtual Color_tGetColor() const
TGListTreeItem*TGListTreeItem::GetFirstChild() const
TGListTreeItem*TGListTreeItem::GetLastChild() const
TGListTreeItem*TGListTreeItem::GetNextSibling() const
TGListTreeItem*TGListTreeItem::GetParent() const
virtual const TGPicture*GetPicture() const
virtual UInt_tTGListTreeItem::GetPicWidth() const
TGListTreeItem*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 voidTGListTreeItem::HandleDrag()
virtual voidTGListTreeItem::HandleDrop()
virtual Bool_tTGListTreeItem::HandlesDragAndDrop() const
virtual Bool_tHasCheckBox() const
virtual Bool_tHasCheckedChild(Bool_t first = kFALSE)
virtual Bool_tHasColor() const
virtual Bool_tHasUnCheckedChild(Bool_t first = kFALSE)
virtual TClass*IsA() const
virtual Bool_tIsActive() const
virtual Bool_tIsChecked() const
Bool_tTGListTreeItem::IsDNDSource() const
Bool_tTGListTreeItem::IsDNDTarget() const
virtual Bool_tTGListTreeItem::IsOpen() const
voidTGListTreeItem::Rename(const char* new_name)
virtual voidSavePrimitive(ostream& out, Option_t* option, Int_t n)
virtual voidSetActive(Bool_t a)
virtual voidSetCheckBox(Bool_t on = kTRUE)
virtual voidSetCheckBoxPictures(const TGPicture* checked, const TGPicture* unchecked)
virtual voidSetColor(Color_t color)
voidTGListTreeItem::SetDNDSource(Bool_t onoff)
voidTGListTreeItem::SetDNDTarget(Bool_t onoff)
virtual voidTGListTreeItem::SetOpen(Bool_t o)
virtual voidSetPictures(const TGPicture* opened, const TGPicture* closed)
virtual voidSetText(const char* text)
virtual voidSetTipText(const char* tip)
virtual voidSetUserData(void* userData, Bool_t own = kFALSE)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidToggle()
virtual voidUpdateState()

Data Members

protected:
TGClient*TGListTreeItem::fClientpointer to TGClient
Int_tTGListTreeItem::fDNDStateEDNDFlags
TGListTreeItem*TGListTreeItem::fFirstchildpointer to first child item
UInt_tTGListTreeItem::fHeightitem height
TGListTreeItem*TGListTreeItem::fLastchildpointer to last child item
TGListTreeItem*TGListTreeItem::fNextsiblingpointer to next sibling
Bool_tTGListTreeItem::fOpentrue if item is open
TGListTreeItem*TGListTreeItem::fParentpointer to parent
TGListTreeItem*TGListTreeItem::fPrevsiblingpointer to previous sibling
Int_tTGListTreeItem::fXtextx position of item text
Int_tTGListTreeItem::fYy position of item
Int_tTGListTreeItem::fYtexty position of item text
private:
Bool_tfActivetrue if item is active
Bool_tfCheckBoxtrue if checkbox is visible
Bool_tfCheckedtrue if item is checked
const TGPicture*fCheckedPicicon for checked item
const TGPicture*fClosedPicicon for closed state
Color_tfColoritem's color
Bool_tfHasColortrue if item has assigned color
const TGPicture*fOpenPicicon for open state
Bool_tfOwnsDatatrue if user data has to be deleted
TStringfTextitem text
TStringfTipTexttooltip text
const TGPicture*fUncheckedPicicon for unchecked item
void*fUserDatapointer to user data structure

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGListTreeItemStd(TGClient* fClient = gClient, const char* name = 0, const TGPicture* opened = 0, const TGPicture* closed = 0, Bool_t checkbox = kFALSE)
 Create list tree item.
~TGListTreeItemStd()
 Delete list tree item.
Pixel_t GetActiveColor() const
 Return color for marking items that are active or selected.
Bool_t HasCheckedChild(Bool_t first = kFALSE)
 Add all child items of 'item' into the list 'checked'.
Bool_t HasUnCheckedChild(Bool_t first = kFALSE)
 Add all child items of 'item' into the list 'checked'.
void UpdateState()
 Update the state of the node 'item' according to the children states.
void CheckAllChildren(Bool_t state = kTRUE)
 Set all child items of this one checked if state=kTRUE,
 unchecked if state=kFALSE.
void CheckChildren(TGListTreeItem* item, Bool_t state)
 Set all child items of 'item' checked if state=kTRUE;
 unchecked if state=kFALSE.
void SetCheckBox(Bool_t on = kTRUE)
 Set a check box on the tree node.
void SetCheckBoxPictures(const TGPicture* checked, const TGPicture* unchecked)
 Change list tree check item icons.
void SetPictures(const TGPicture* opened, const TGPicture* closed)
 Change list tree item icons.
void SavePrimitive(ostream& out, Option_t* option, Int_t n)
 Save a list tree item attributes as a C++ statements on output stream.
TGListTreeItem& operator=(const TGListTreeItemStd& )
Bool_t IsActive() const
void SetActive(Bool_t a)
{}
const char * GetText() const
Int_t GetTextLength() const
const char * GetTipText() const
Int_t GetTipTextLength() const
void SetText(const char* text)
{}
void SetTipText(const char* tip)
{}
void SetUserData(void* userData, Bool_t own = kFALSE)
{}
void * GetUserData() const
const TGPicture* GetPicture() const
const TGPicture* GetCheckBoxPicture() const
Bool_t HasCheckBox() const
void CheckItem(Bool_t checked = kTRUE)
void Toggle()
Bool_t IsChecked() const
Bool_t HasColor() const
 Item coloration (underline + minibox)
Color_t GetColor() const
void SetColor(Color_t color)
{}
void ClearColor()
{}
TGListTreeItemStd(const TGListTreeItemStd& )