diff options
| author | Manolo Gouy <Manolo> | 2016-04-10 06:33:19 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-04-10 06:33:19 +0000 |
| commit | 927774af85b115b2affa35252a46cc6f3235fe97 (patch) | |
| tree | fe59b0041ae84c9a8b52b67dfb63e732f8c57415 /FL | |
| parent | 9ca66c6f3d3c94192e105012fc8226109530143a (diff) | |
Rewrite Fl_File_Browser.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11570 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_System_Driver.H | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H index f83bd774a..11d7067eb 100644 --- a/FL/Fl_System_Driver.H +++ b/FL/Fl_System_Driver.H @@ -26,9 +26,12 @@ #include <FL/Fl_Export.H> #include <FL/platform_types.h> +#include <FL/filename.H> #include <stdio.h> #include <stdarg.h> +class Fl_File_Icon; +class Fl_File_Browser; /** \brief A base class for platform-specific system operations. @@ -128,6 +131,10 @@ public: virtual const char *shortcut_add_key_name(unsigned key, char *p, char *buf, const char **); // the default implementation of need_test_shortcut_extra() may be enough virtual int need_test_shortcut_extra() {return 0;} + // implement to support Fl_File_Browser::load() + virtual int file_browser_load_filesystem(Fl_File_Browser *browser, char *filename, Fl_File_Icon *icon) {return 0;} + // the default implementation of file_browser_load_directory() should be enough + virtual int file_browser_load_directory(const char *directory, char *filename, dirent ***pfiles, Fl_File_Sort_F *sort); }; #endif // FL_SYSTEM_DRIVER_H |
