#ifndef ROOT_TGFSComboBox
#define ROOT_TGFSComboBox
#ifndef ROOT_TGComboBox
#include "TGComboBox.h"
#endif
class TGPicture;
class TGSelectedPicture;
class TGTreeLBEntry : public TGLBEntry {
protected:
TGString *fText;
TGString *fPath;
const TGPicture *fPic;
TGSelectedPicture *fSelPic;
UInt_t fTWidth;
UInt_t fTHeight;
Bool_t fActive;
GContext_t fNormGC;
FontStruct_t fFontStruct;
virtual void DoRedraw();
static const TGFont *fgDefaultFont;
static TGGC *fgDefaultGC;
public:
static FontStruct_t GetDefaultFontStruct();
static const TGGC &GetDefaultGC();
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());
virtual ~TGTreeLBEntry();
const TGString *GetText() const { return fText; }
const TGPicture *GetPicture() const { return fPic; }
const TGString *GetPath() const { return fPath; }
virtual TGDimension GetDefaultSize() const;
virtual void Activate(Bool_t a);
virtual void Update(TGLBEntry *e);
virtual void DrawCopy(Handle_t id, Int_t x, Int_t y);
ClassDef(TGTreeLBEntry,0)
};
class TGFSComboBox : public TGComboBox {
public:
TGFSComboBox(const TGWindow *p = 0, Int_t id = -1,
UInt_t options = kHorizontalFrame | kSunkenFrame |
kDoubleBorder, Pixel_t back = GetWhitePixel());
virtual void Update(const char *path);
virtual void SavePrimitive(ostream &out, Option_t *option = "");
ClassDef(TGFSComboBox,0)
};
#endif