TGFileContainer


class description - source file - inheritance tree

class TGFileContainer : public TGLVContainer


    protected:
void CreateFileList() public:
TGFileContainer TGFileContainer(const TGWindow* p, UInt_t w, UInt_t h, UInt_t options = kSunkenFrame, ULong_t back = fgDefaultFrameBackground) TGFileContainer TGFileContainer(TGFileContainer&) virtual void ~TGFileContainer() TGFileItem* AddFile(const char* name) virtual void AddFrame(TGFrame* f, TGLayoutHints* l = 0) void ChangeDirectory(const char* path) TClass* Class() void DisplayDirectory() const char* GetDirectory() const void GetFilePictures(const TGPicture** pic, const TGPicture** lpic, Int_t file_type, Bool_t is_link, const char* ext, Bool_t small) virtual Bool_t HandleTimer(TTimer* t) virtual TClass* IsA() const void SetFilter(const char* filter) virtual void ShowMembers(TMemberInspector& insp, char* parent) void Sort(EFSSortMode sortType) virtual void Streamer(TBuffer& b)

Data Members

protected:
EFSSortMode fSortType sorting mode of contents TRegexp* fFilter file filter TViewUpdateTimer* fRefresh refresh timer ULong_t fMtime directory modification time TString fDirectory current directory const TGPicture* fFolder_t small folder icon const TGPicture* fFolder_s big folder icon const TGPicture* fApp_t small application icon const TGPicture* fApp_s big application icon const TGPicture* fDoc_t small document icon const TGPicture* fDoc_s big document icon const TGPicture* fSlink_t small symbolic link icon const TGPicture* fSlink_s big symbolic link icon

Class Description

                                                                      
 TGFileIcon, TGFileEntry, TGFSContainer                               
                                                                      
 Utility classes used by the file selection dialog (TGFSDialog).      
                                                                      


TGFileContainer(const TGWindow *p, UInt_t w, UInt_t h, UInt_t options, ULong_t back) : TGLVContainer(p, w, h, options, back)
 Create a list view container which will hold the contents of
 the current directory.

~TGFileContainer()
 Delete list view file container.

void AddFrame(TGFrame *f, TGLayoutHints *l)
 Add frame to the composite frame.

Bool_t HandleTimer(TTimer *)
 Refresh container contents. Check every 5 seconds to see if the
 directory modification date has changed.

void SetFilter(const char *filter)
 Set file selection filter.

void Sort(EFSSortMode sortType)
 Sort file system list view container according to sortType.

void GetFilePictures(const TGPicture **pic, const TGPicture **lpic, Int_t file_type, Bool_t is_link, const char *name, Bool_t small)
 Determine the file picture for the given file type.

void ChangeDirectory(const char *path)
 Change current directory.

void DisplayDirectory()
 Display the contents of the current directory in the container.
 This can be used to refresh the contents of the window.

void CreateFileList()
 This function creates the file list from current dir.

TGFileItem* AddFile(const char *name)
 Add file in container.



Inline Functions


            const char* GetDirectory() const
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
        TGFileContainer TGFileContainer(TGFileContainer&)


Author: Fons Rademakers 19/01/98
Last update: 2.23/12 17/01/2000 18.35.31 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.