class TGFileInfo


TGFileDialog

This class creates a file selection dialog. It contains a combo box
to select the desired directory. A listview with the different
files in the current directory and a combo box with which you can
select a filter (on file extensions).
When creating a file dialog one passes a pointer to a TGFileInfo
object. In this object you can set the fFileTypes and fIniDir to
specify the list of file types for the filter combo box and the
initial directory. When the TGFileDialog ctor returns the selected
file name can be found in the TGFileInfo::fFilename field and the
selected directory in TGFileInfo::fIniDir. The fFilename and
fIniDir are deleted by the TGFileInfo dtor.


Function Members (Methods)

public:
TGFileInfo()
~TGFileInfo()
voidSetMultipleSelection(Bool_t option)
private:
TGFileInfo(const TGFileInfo&)
TGFileInfo&operator=(const TGFileInfo&)

Data Members

public:
TList*fFileNamesListlist of selected file names
Int_tfFileTypeIdxselected file type, index in fFileTypes
const char**fFileTypesfile types used to filter selectable files
char*fFilenameselected file name
char*fIniDiron input: initial directory, on output: new directory
Bool_tfMultipleSelectionif true, allow multiple file selection
Bool_tfOverwriteif true overwrite the file with existing name on save

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

~TGFileInfo()
 TGFileInfo Destructor.
void SetMultipleSelection(Bool_t option)
 Turn on/off multiple selection.
TGFileInfo(const TGFileInfo& )
TGFileInfo& operator=(const TGFileInfo& )
TGFileInfo(const TGFileInfo& )
{ }

Author: Fons Rademakers 20/01/98
Last change: root/gui:$Id: TGFileDialog.h 23115 2008-04-10 13:35:37Z rdm $
Last generated: 2008-06-25 08:40
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

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.