From b9ac6bd728659a7780d7cde024f34607601e8a7f Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Sun, 3 Dec 2023 18:10:33 -0800 Subject: Solves issue #856: improve Fl_File_Chooser enum docs --- FL/Fl_File_Chooser.H | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'FL') 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 *); -- cgit v1.2.3