Fl_Group | +----Fl_FileChooser
#include <FL/Fl_FileChooser.H>
The Fl_FileChooser
widget displays a standard file selection
dialog that supports various selection modes.
The constructor creates the Fl_FileChooser
dialog pictured
above. The pathname
argument can be a directory name or a
complete file name (in which case the corresponding file is highlighted
in the list and in the filename input field.)
The pattern
argument can be a NULL
string or
"*"
to list all files. See the FLTK documentation on
filename_match()
for other kinds of patterns.
The type
argument can be one of the following:
SINGLE
- allows the user to select a
single, existing file.
MULTI
- allows the user to select one
or more existing files.
CREATE
- allows the user to select a
single, existing file or specify a new filename.
DIRECTORY
- allows the user to select a
single, existing directory.
The title
argument is used to set the title bar text for the
Fl_FileChooser
window.
Destroys the widget and frees all memory used by it.
Sets or gets the background color of the FileBrowser
list.
Returns the number of selected files.
Sets or gets the current directory.
Sets or gets the current filename filter pattern.
Hides the Fl_FileChooser
window.
Sets or gets the size of the icons in the FileBrowser
. By
default the icon size is set to 1.5 times the textsize()
.
Sets or gets the title bar text for the Fl_FileChooser
.
Reloads the current directory in the FileBrowser
.
Shows the Fl_FileChooser
window.
Sets or gets the current FileBrowser
text color.
Sets or gets the current FileBrowser
text font.
Sets or gets the current FileBrowser
text size.
Sets or gets the current type of Fl_FileChooser
.
Sets or gets the current value of the selected file.
Returns 1 if the Fl_FileChooser
window is visible.