FileChooser

The objects of this class can conduct a modal dialogue with the user for the purpose of obtaining a File. The user is presented with a list of names of files in a given directory that match a specified filter pattern. The user is asked to pick one of the filenames in the list.

[ Index | Source | Summary | Member Functions ]

Quick Index


Class Summary

class FileChooser
{

public:
FileChooser(char* path, char* filter);
FileChooser(char* path);
FileChooser();
File AskUser();
~FileChooser();
}; // FileChooser

Back to the top of FileChooser


FileChooser(char* path, char* filter);

Construct a FileChooser by specifying the pathname of the directory whose filenames will be filtered according to the specified filter pattern. All filenames matching the filter pattern will be presented to the user when the dialogueis initiated.

     FileChooser(char* path, char* filter);   // search at path with filter

Back to the top of FileChooser


FileChooser(char* path);

Construct a FileChooser by specifying the pathname of the directory whose filenames will be presented to the user when the dialogue is initiated. No filtering of the filenames is performed.

     FileChooser(char* path);                 // search at path, no filter

Back to the top of FileChooser


FileChooser();

Construct a FileChooser that presents all the filenames in the user's current working directory.

     FileChooser();                           // search at CWD, no filter

Back to the top of FileChooser


File AskUser();

Initiate the dialogue. This method does not return until the user has dismissed the dialogue box. The method returns a File object describing the result of the users action.

File AskUser();                               // get file via dialog

Back to the top of FileChooser


~FileChooser();

Reclaim all resources associated with the FileQuery object when the object is destructed.

    ~FileChooser();                           // clean up

Back to the top of FileChooser


Member Functions

public:
File AskUser();

Back to the top of FileChooser


Generated from source by the Cocoon utilities on Thu Apr 02 12:40:04 1998 .

Report problems to jkotula@unimax.com