diff options
| author | Greg Ercolano <erco@seriss.com> | 2023-12-03 18:10:33 -0800 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2023-12-03 18:10:33 -0800 |
| commit | b9ac6bd728659a7780d7cde024f34607601e8a7f (patch) | |
| tree | 079647ed88e4f97c64bf5ca6e7b9e7e9852ecc39 /FL/Fl_File_Chooser.H | |
| parent | 63c54fe7c8eda4652ef81ab9a759e181ac48c5ee (diff) | |
Solves issue #856: improve Fl_File_Chooser enum docs
Diffstat (limited to 'FL/Fl_File_Chooser.H')
| -rw-r--r-- | FL/Fl_File_Chooser.H | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/FL/Fl_File_Chooser.H b/FL/Fl_File_Chooser.H index d706a5a5f..9ff92d89d 100644 --- a/FL/Fl_File_Chooser.H +++ b/FL/Fl_File_Chooser.H @@ -42,7 +42,18 @@ class FL_EXPORT Fl_File_Chooser { public: - enum { SINGLE = 0, MULTI = 1, CREATE = 2, DIRECTORY = 4 }; + /** + \enum Type + Determines the type of file chooser presented to the user. + */ + enum Type { + SINGLE = 0, ///< Select a single, existing file. + MULTI = 1, ///< Select one or more existing files. + CREATE = 2, ///< When used alone, select a single, existing file or specify a new filename. + ///< Can be combined with DIRECTORY (e.g. CREATE|DIRECTORY) to have the same + ///< effect for directories. + DIRECTORY = 4 ///< Select a single, existing directory. Can be combined with CREATE. + }; private: static Fl_Preferences *prefs_; void (*callback_)(Fl_File_Chooser*, void *); |
