12 #ifndef ROOT_TGFSContainer
13 #define ROOT_TGFSContainer
24 #ifndef ROOT_TGListView
27 #ifndef ROOT_TDNDManager
30 #ifndef ROOT_TBufferFile
122 return ((
TGFrame *)(const_cast<TGWindow*>(
GetParent())))->HandleDNDFinished();
190 virtual void SetFilter(
const char *filter);
void SetDNDObject(TObject *obj)
void Init(const TGPicture *blpic, const TGPicture *slpic, FileStat_t &stat, EListViewMode viewMode)
Common initializer for file list view item.
const char * GetDirectory() const
The concrete implementation of TBuffer for writing/reading to/from a ROOT file or socket...
const TGPicture * fFolder_s
const TGPicture * fLcurrent
void StopRefreshTimer()
stop refresh timer
const TGWindow * GetParent() const
void StartRefreshTimer(ULong_t msec=1000)
start refreshing
Long_t GetModTime() const
static Pixel_t GetWhitePixel()
Get white pixel value.
Regular expression class.
virtual TDNDData * GetDNDdata(Atom_t)
virtual TGFileItem * AddRemoteFile(TObject *obj, const TGPicture *ipic=0, const TGPicture *ilpic=0)
Add remote file in container.
virtual void SetViewMode(EListViewMode viewMode)
Set container item view mode.
static Atom_t GetDNDActionCopy()
virtual Bool_t HandleDNDFinished()
friend class TGFSFrameElement
const char * Data() const
const TGPicture * fFolder_t
#define ClassDef(name, id)
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual void ChangeDirectory(const char *path)
Change current directory.
void CreateFileList()
This function creates the file list from current dir.
virtual void Sort(EFSSortMode sortType)
Sort file system list view container according to sortType.
virtual Bool_t HandleTimer(TTimer *t)
Refresh container contents.
Bool_t IsDNDTarget() const
TGFileContainer(const TGWindow *p=0, UInt_t w=1, UInt_t h=1, UInt_t options=kSunkenFrame, Pixel_t back=GetDefaultFrameBackground())
Create a list view container which will hold the contents of the current directory.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame.
void SetDNDData(TDNDData *data)
virtual void SetDisplayStat(Bool_t stat=kTRUE)
virtual Atom_t HandleDNDEnter(Atom_t *)
TViewUpdateTimer * fRefresh
virtual TGFileItem * AddFile(const char *name, const TGPicture *pic=0, const TGPicture *lpic=0)
Add file in container.
Handles synchronous and a-synchronous timer events.
const TGPicture * fSlink_s
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a file container widget as a C++ statement(s) on output stream out.
virtual Bool_t HandleDNDLeave()
TViewUpdateTimer(TGFileContainer *t, Long_t ms)
const TGPicture * fSlink_t
virtual void WriteObject(const TObject *obj)
Write object to I/O buffer.
Mother of all ROOT objects.
virtual void SetFilter(const char *filter)
Set file selection filter.
virtual ~TGFileItem()
Destructor.
virtual void DoRedraw()
Draw list view container item.
virtual void GetFilePictures(const TGPicture **pic, const TGPicture **lpic, Int_t file_type, Bool_t is_link, const char *ext, Bool_t small)
Determine the file picture for the given file type.
virtual void DisplayDirectory()
Display the contents of the current directory in the container.
virtual Atom_t HandleDNDPosition(int, int, Atom_t action, int, int)
virtual ~TGFileContainer()
Delete list view file container.
TGFileItem(const TGWindow *p=0, const TGPicture *bpic=0, const TGPicture *blpic=0, const TGPicture *spic=0, const TGPicture *slpic=0, TGString *name=0, Int_t type=0, Long64_t size=1, Int_t uid=0, Int_t gid=0, Long_t modtime=0, EListViewMode viewMode=kLVList, UInt_t options=kVerticalFrame, Pixel_t back=GetWhitePixel())
Create a list view item.