library: libGui #include "TGFSComboBox.h"

# TGTreeLBEntry

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

## class TGTreeLBEntry : public TGLBEntry

| Inheritance Chart:

`TObject`

<-

`TGObject`

<-

`TGWindow`

`TQObject`

<-

`TGFrame`

<-

`TGLBEntry`

<-

`TGTreeLBEntry`

        protected:

          virtual void DoRedraw()

        public:

                              TGTreeLBEntry(const TGWindow* p = 0, TGString* text = 0, const TGPicture* pic = 0, Int_t id = -1, TGString* path = 0, GContext_t norm = GetDefaultGC()(), FontStruct_t font = GetDefaultFontStruct(), UInt_t options = kHorizontalFrame, Pixel_t back = GetWhitePixel())
                              TGTreeLBEntry(const TGTreeLBEntry&)
                      virtual ~TGTreeLBEntry()
                 virtual void Activate(Bool_t a)
               static TClass* Class()
                 virtual void DrawCopy(Handle_t id, Int_t x, Int_t y)
          static FontStruct_t GetDefaultFontStruct()
           static const TGGC& GetDefaultGC() const
          virtual TGDimension GetDefaultSize() const
              const TGString* GetPath() const
             const TGPicture* GetPicture() const
              const TGString* GetText() const
              virtual TClass* IsA() const
                 virtual void ShowMembers(TMemberInspector& insp, char* parent)
                 virtual void Streamer(TBuffer& b)
                         void StreamerNVirtual(TBuffer& b)
                 virtual void Update(TGLBEntry* e)

### Data Members

        protected:

                     TGString* fText          entry description
                     TGString* fPath          entry path
              const TGPicture* fPic           entry picture
            TGSelectedPicture* fSelPic        selected picture
                        UInt_t fTWidth        width of entry text
                        UInt_t fTHeight       height of entry text
                        Bool_t fActive        true if active
                    GContext_t fNormGC        entry drawing context
                  FontStruct_t fFontStruct    font
          static const TGFont* fgDefaultFont
                  static TGGC* fgDefaultGC

## Class Description

     TGFSComboBox, TGTreeLBEntry

     This is a combo box that is used in the File Selection dialog box.
     It will allow the file path selection.

TGTreeLBEntry(const TGWindow *p, TGString *text, const TGPicture *pic, Int_t id, TGString *path, GContext_t norm, FontStruct_t font, UInt_t options, ULong_t back) : TGLBEntry(p, id, options, back)

     Create a tree (i.e. entry can be indented) listbox entry.
     The strings text and path are adopted by the entry.

~TGTreeLBEntry()

     Delete tree listbox entry.

void Activate(Bool_t a)

     Make entry active (highlight picture).

void DrawCopy(Handle_t id, Int_t x, Int_t y)

     Redraw the tree listbox entry on pixmap/window.

void DoRedraw()

     Redraw the tree listbox entry.

TGDimension GetDefaultSize() const

     Return default size of tree listbox entry.

void Update(TGLBEntry *e)

     Update text and picture of a listbox entry.

FontStruct_t GetDefaultFontStruct()

const TGGC& GetDefaultGC()

### Inline Functions

             const TGString* GetText() const
            const TGPicture* GetPicture() const
             const TGString* GetPath() const
                     TClass* Class()
                     TClass* IsA() const
                        void ShowMembers(TMemberInspector& insp, char* parent)
                        void Streamer(TBuffer& b)
                        void StreamerNVirtual(TBuffer& b)
               TGTreeLBEntry TGTreeLBEntry(const TGTreeLBEntry&)

Author: Fons Rademakers 19/01/98
Last update: root/gui:$Name: $:$Id: TGFSComboBox.cxx,v 1.14 2005/01/12 18:39:29 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *