Add sort function as optional argument to Fl_File_Browser::load().

Add docos for sort functions and changes to fl_filename_list() and
Fl_File_Browser::load().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2176 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet
2002-05-02 14:31:10 +00:00
parent 47e7de17bc
commit ae0a956f2e
4 changed files with 58 additions and 25 deletions
+4 -3
View File
@@ -1,5 +1,5 @@
//
// "$Id: Fl_File_Browser.H,v 1.1.2.2 2002/01/01 15:11:27 easysw Exp $"
// "$Id: Fl_File_Browser.H,v 1.1.2.3 2002/05/02 14:31:10 easysw Exp $"
//
// FileBrowser definitions.
//
@@ -32,6 +32,7 @@
# include "Fl_Browser.H"
# include "Fl_File_Icon.H"
# include "filename.H"
//
@@ -62,7 +63,7 @@ public:
FL_EXPORT void filter(const char *pattern);
const char *filter() const { return (pattern_); };
FL_EXPORT int load(const char *directory);
FL_EXPORT int load(const char *directory, Fl_File_Sort_F *sort = fl_numericsort);
uchar textsize() const { return (Fl_Browser::textsize()); };
void textsize(uchar s) { Fl_Browser::textsize(s); iconsize_ = 3 * s / 2; };
@@ -74,5 +75,5 @@ public:
#endif // !_Fl_File_Browser_H_
//
// End of "$Id: Fl_File_Browser.H,v 1.1.2.2 2002/01/01 15:11:27 easysw Exp $".
// End of "$Id: Fl_File_Browser.H,v 1.1.2.3 2002/05/02 14:31:10 easysw Exp $".
//