diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-07-01 21:14:20 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-07-01 21:14:20 +0000 |
| commit | 031fef8635dd599c0a8b29c6c8724366a39b9e87 (patch) | |
| tree | 36b30b4f6b3b66568fc739a9ff7e846ce4ba0c6c /src/Fl_File_Chooser.fl | |
| parent | adc02c83a571392d37f5a5ba354630523818b1cf (diff) | |
File chooser updates - ../ and ./ map properly, now show ".." in the
directory list, added custom filter stuff, added filter_value() methods.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2487 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_File_Chooser.fl')
| -rw-r--r-- | src/Fl_File_Chooser.fl | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/Fl_File_Chooser.fl b/src/Fl_File_Chooser.fl index cc8d0fa6c..50ee3f0cd 100644 --- a/src/Fl_File_Chooser.fl +++ b/src/Fl_File_Chooser.fl @@ -173,8 +173,7 @@ value(d); type(t); int e; prefs_.get("preview", e, 1); -preview(e);} {selected - } +preview(e);} {} } Function {~Fl_File_Chooser()} {open } { @@ -208,6 +207,15 @@ data_ = d;} {} } { code {return (fileList->filter());} {} } + Function {filter_value()} {return_type int + } { + code {return showChoice->value();} {} + } + Function {filter_value(int f)} {return_type void + } { + code {showChoice->value(f); +showChoiceCB();} {} + } Function {hide()} {return_type void } { code {window->hide();} {} @@ -300,6 +308,8 @@ else } decl {static const char *all_files_label;} {public } + decl {static const char *custom_filter_label;} {selected public + } decl {static const char *existing_file_label;} {public } decl {static const char *favorites_label;} {public |
