The File Chooser

The FileChooser widget provides a standard file selection dialog for your applications. It supports three different selection modes - single file selection, multiple file selection, and new file selection (for use in "save as" situations).

Implementation

The FileChooser widget is based upon four classes:

The FileIcon class allows you to add icons for individual file types. Normally you'll just use the FileIcon::load_system_icons() method to load icons specific to your system; if the system icons can't be loaded then generic file and folder icons are used instead. Icons are only shown if you have loaded them.

Using the FileChooser Widget

To use the FileChooser widget in your program, do: