#ifndef ROOT_TGFSComboBox #define ROOT_TGFSComboBox //+SEQ,CopyRight,T=NOINCLUDE. ////////////////////////////////////////////////////////////////////////// // // // TGFSComboBox, TGTreeLBEntry // // // // This is a combo box that is used in the File Selection dialog box. // // It will allow the file path selection. // // // ////////////////////////////////////////////////////////////////////////// #ifndef ROOT_TGComboBox //*KEEP,TGComboBox. #include "TGComboBox.h" //*KEND. #endif class TGPicture; class TGSelectedPicture; class TGTreeLBEntry : public TGLBEntry { friend class TGClient; 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 ULong_t fgSelPixel; static FontStruct_t fgDefaultFontStruct; static GContext_t fgDefaultGC; virtual void DoRedraw(); public: TGTreeLBEntry(const TGWindow *p, TGString *text, const TGPicture *pic, Int_t id, TGString *path = 0, GContext_t norm = fgDefaultGC, FontStruct_t font = fgDefaultFontStruct, UInt_t options = kHorizontalFrame, ULong_t back = fgWhitePixel); 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); }; class TGFSComboBox : public TGComboBox { public: TGFSComboBox(const TGWindow *p, Int_t id, UInt_t options = kHorizontalFrame | kSunkenFrame | kDoubleBorder, ULong_t back = fgWhitePixel); virtual void Update(char *path); }; #endif