library: libGui
#include "TGFSContainer.h"

TGFileContainer


class description - source file - inheritance tree (.pdf)

class TGFileContainer : public TGLVContainer

Inheritance Chart:
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
<-
TGCompositeFrame
<-
TGContainer
<-
TGLVContainer
<-
TGFileContainer

    protected:
void CreateFileList() public:
TGFileContainer(const TGWindow* p = 0, UInt_t w = 1, UInt_t h = 1, UInt_t options = kSunkenFrame, Pixel_t back = GetDefaultFrameBackground()) TGFileContainer(TGCanvas* p, UInt_t options = kSunkenFrame, Pixel_t back = GetDefaultFrameBackground()) TGFileContainer(const TGFileContainer&) virtual ~TGFileContainer() virtual TGFileItem* AddFile(const char* name, const TGPicture* pic = 0, const TGPicture* lpic = 0) virtual void AddFrame(TGFrame* f, TGLayoutHints* l = 0) virtual void ChangeDirectory(const char* path) static TClass* Class() virtual void DisplayDirectory() const char* GetDirectory() const virtual 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 virtual void SavePrimitive(ofstream& out, Option_t* option) virtual void SetFilter(const char* filter) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Sort(EFSSortMode sortType) void StartRefreshTimer(ULong_t msec = 1000) void StopRefreshTimer() virtual void Streamer(TBuffer& b) void StreamerNVirtual(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 Bool_t fCachePictures kTRUE use caching

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(TGCanvas *p, UInt_t options, ULong_t back) : TGLVContainer(p,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, const TGPicture *ipic, const TGPicture *ilpic)
 Add file in container.

void StopRefreshTimer()
 stop refresh  timer

void StartRefreshTimer(ULong_t msec)
 start refreshing

void SavePrimitive(ofstream &out, Option_t *option)
 Save a file container widget as a C++ statement(s) on output stream out.



Inline Functions


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


Author: Fons Rademakers 19/01/98
Last update: root/gui:$Name: $:$Id: TGFSContainer.cxx,v 1.27 2005/05/25 16:20:54 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - 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.