summaryrefslogtreecommitdiff
path: root/src/Fl_File_Chooser.fl
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_File_Chooser.fl')
-rw-r--r--src/Fl_File_Chooser.fl17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/Fl_File_Chooser.fl b/src/Fl_File_Chooser.fl
index e70ad8427..c7488ec84 100644
--- a/src/Fl_File_Chooser.fl
+++ b/src/Fl_File_Chooser.fl
@@ -32,7 +32,17 @@ decl {\#include <FL/fl_draw.H>} {private local
class FL_EXPORT Fl_File_Chooser {open
} {
- decl {enum { SINGLE = 0, MULTI = 1, CREATE = 2, DIRECTORY = 4 };} {public local
+ decl {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.
+ };} {
+ comment {\\enum Type
+Determines the type of file chooser presented to the user.
+} selected public local
}
decl {static Fl_Preferences *prefs_;} {private local
}
@@ -54,7 +64,7 @@ class FL_EXPORT Fl_File_Chooser {open
}
decl {void fileListCB();} {private local
}
- decl {void fileNameCB();} {selected private local
+ decl {void fileNameCB();} {private local
}
decl {void newdir();} {private local
}
@@ -389,8 +399,7 @@ else
}
Function {user_data(void *d)} {return_type void
} {
- code {data_ = d;} {selected
- }
+ code {data_ = d;} {}
}
decl {const char *value(int f = 1);} {public local
}