From 927774af85b115b2affa35252a46cc6f3235fe97 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 10 Apr 2016 06:33:19 +0000 Subject: 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 --- FL/Fl_System_Driver.H | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'FL') 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 #include +#include #include #include +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 -- cgit v1.2.3