diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-09-30 17:37:06 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-09-30 17:37:06 +0000 |
| commit | 74bb2305cbcaca5016a07f2e0b369d25bc3c98a5 (patch) | |
| tree | 13d26af11e760e78396fe2a689a6c4caa39b96a5 /src/Fl_File_Chooser.fl | |
| parent | f5f0d8a013ef84df176604357b20eff933ed6abe (diff) | |
Fl_File_Chooser.H and fl_file_chooser.H need to be the same...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1622 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_File_Chooser.fl')
| -rw-r--r-- | src/Fl_File_Chooser.fl | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/Fl_File_Chooser.fl b/src/Fl_File_Chooser.fl index 6a78a869e..cfdd672da 100644 --- a/src/Fl_File_Chooser.fl +++ b/src/Fl_File_Chooser.fl @@ -7,7 +7,7 @@ gridy 5 snap 3 class Fl_File_Chooser {open } { - decl {enum { SINGLE = 0, MULTI = 1, CREATE = 2, DIRECTORY = 4 };} {selected public + decl {enum { SINGLE = 0, MULTI = 1, CREATE = 2, DIRECTORY = 4 };} {public } Function {Fl_File_Chooser(const char *d, const char *p, int t, const char *title)} {open } { @@ -55,11 +55,11 @@ window->hide();} } Fl_Button upButton { callback {up();} - private image {up.xbm} tooltip {Show the parent directory.} xywh {280 10 25 25} labelsize 8 + private tooltip {Show the parent directory.} image {up.xbm} xywh {280 10 25 25} labelsize 8 } Fl_Button newButton { callback {newdir();} - private image {new.xbm} tooltip {Create a new directory.} xywh {310 10 25 25} labelsize 8 + private tooltip {Create a new directory.} image {new.xbm} xywh {310 10 25 25} labelsize 8 } Fl_Choice dirMenu { label {Directory:} @@ -80,7 +80,7 @@ if ((f = fl_input("New Filter?", fileList->filter(f); rescan(); }} - private image {allfiles.xbm} tooltip {Change the filename filter.} xywh {340 10 25 25} labelsize 28 labelcolor 4 align 16 + private tooltip {Change the filename filter.} image {allfiles.xbm} xywh {340 10 25 25} labelsize 28 labelcolor 4 align 16 code0 {\#include <FL/fl_ask.H>} } } @@ -208,3 +208,12 @@ else code {return window->visible();} {} } } + +decl {FL_EXPORT char *fl_dir_chooser(const char *message,const char *fname);} {public +} + +decl {FL_EXPORT char *fl_file_chooser(const char *message,const char *pat,const char *fname);} {public +} + +decl {FL_EXPORT void fl_file_chooser_callback(void (*cb)(const char*));} {selected public +} |
