library: libTreeViewer #include "TTVLVContainer.h"

# TTVLVEntry

class description - source file - inheritance tree (.pdf)

## class TTVLVEntry : public TGLVEntry

| Inheritance Chart:

`TObject`

<-

`TGObject`

<-

`TGWindow`

`TQObject`

<-

`TGFrame`

<-

`TGLVEntry`

<-

`TTVLVEntry`

        protected:

          Bool_t FullConverted()

        public:

                          TTVLVEntry(const TGWindow* p, const TGPicture* bigpic, const TGPicture* smallpic, TGString* name, TGString** subnames, EListViewMode ViewMode)
                          TTVLVEntry(const TTVLVEntry&)
                  virtual ~TTVLVEntry()
           static TClass* Class()
              const char* ConvertAliases() const
                     void CopyItem(TTVLVEntry* dest)
                     void Empty()
              const char* GetAlias() const
          TTVLVContainer* GetContainer()
           TGItemContext* GetContext()
              const char* GetConvName() const
               TGToolTip* GetTip()
              const char* GetTrueName() const
           virtual Bool_t HandleCrossing(Event_t* event)
                   Bool_t HasAlias()
          virtual TClass* IsA() const
                   Bool_t IsCut()
                     void PrependTilde()
                     void SetAlias(const char* alias)
                     void SetCutType(Bool_t type = kFALSE)
                     void SetExpression(const char* name, const char* alias, Bool_t cutType = kFALSE)
                     void SetItemName(const char* name)
                     void SetSmallPic(const TGPicture* spic)
                     void SetToolTipText(const char* text, Long_t delayms = 1000)
                     void SetTrueName(const char* name)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

          TTVLVContainer* fContainer  container to whom this item belongs
                  TString fTrueName   name for this entry
                  TString fAlias      alias for this entry
                  TString fConvName   name converted into true expressions
               TGToolTip* fTip        tool tip associated with item
                   Bool_t fIsCut      flag for cut type items
           TGItemContext* fContext    associated context menu

## Class Description

     TGItemContext  -  empty object used as context menu support for
     TGLVTreeEntries

TTVLVEntry(const TGWindow *p, const TGPicture *bigpic, const TGPicture *smallpic, TGString *name, TGString **subnames, EListViewMode ViewMode) :TGLVEntry(p, bigpic, smallpic, name, subnames, ViewMode)

     TGTreeLVEntry constructor.

~TTVLVEntry()

     TGTreeLVEntry destructor

const char* ConvertAliases()

     Convert all aliases into true names

Bool_t FullConverted()

     Return true if converted name is alias free

void CopyItem(TTVLVEntry *dest)

     Copy this item's name and alias to an other.

Bool_t HandleCrossing(Event_t *event)

     Handle mouse crossing event.

Bool_t HasAlias()

     Check if alias name is not empty.

void PrependTilde()

     Prepend a ~ to item alias

void SetItemName(const char* name)

     redraw this entry with new name

void SetCutType(Bool_t type)

void SetExpression(const char* name, const char* alias, Bool_t cutType)

     Set the true name, alias and type of the expression, then refresh it

void Empty()

     clear all names and alias

void SetToolTipText(const char *text, Long_t delayms)

     Set tool tip text associated with this item. The delay is in
     milliseconds (minimum 250). To remove tool tip call method with text = 0

void SetSmallPic(const TGPicture *spic)

### Inline Functions

                const char* GetAlias() const
            TTVLVContainer* GetContainer()
             TGItemContext* GetContext()
                const char* GetConvName() const
                const char* GetTrueName() const
                 TGToolTip* GetTip()
                     Bool_t IsCut()
                       void SetAlias(const char* alias)
                       void SetTrueName(const char* name)
                    TClass* Class()
                    TClass* IsA() const
                       void ShowMembers(TMemberInspector& insp, char* parent)
                       void Streamer(TBuffer& b)
                       void StreamerNVirtual(TBuffer& b)
                 TTVLVEntry TTVLVEntry(const TTVLVEntry&)

Last update: root/treeviewer:$Name: $:$Id: TTVLVContainer.cxx,v 1.10 2003/07/15 14:25:22 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *