TGFileContainer


class description - source file - inheritance tree

class TGFileContainer : public TGLVContainer


    protected:
void CreateFileList() public:
TGFileContainer TGFileContainer(TGWindow* p, UInt_t w, UInt_t h, UInt_t options = kSunkenFrame, ULong_t back = fgDefaultFrameBackground) TGFileContainer TGFileContainer(TGFileContainer&) virtual void ~TGFileContainer() TGFileItem* AddFile(char* name) virtual void AddFrame(TGFrame* f, TGLayoutHints* l = 0) void ChangeDirectory(char* path) TClass* Class() void DisplayDirectory() void GetFilePictures(TGPicture** pic, TGPicture** lpic, Int_t file_type, Bool_t is_link, char* ext, Bool_t small) virtual Bool_t HandleTimer(TTimer* t) virtual TClass* IsA() void SetFilter(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 static const TGPicture* fFolder_t small folder icon static const TGPicture* fFolder_s big folder icon static const TGPicture* fApp_t small application icon static const TGPicture* fApp_s big application icon static const TGPicture* fDoc_t small document icon static const TGPicture* fDoc_s big document icon static const TGPicture* fSlink_t small symbolic link icon static 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


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


Author: Fons Rademakers 19/01/98
Last update: 2.00/07 18/05/98 18.36.10 by Fons Rademakers
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.