diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_File_Chooser.cxx | 3 | ||||
| -rw-r--r-- | src/Fl_File_Chooser.fl | 17 | ||||
| -rw-r--r-- | src/fl_file_dir.cxx | 6 |
3 files changed, 19 insertions, 7 deletions
diff --git a/src/Fl_File_Chooser.cxx b/src/Fl_File_Chooser.cxx index 2f17dda52..51183ce6c 100644 --- a/src/Fl_File_Chooser.cxx +++ b/src/Fl_File_Chooser.cxx @@ -261,3 +261,6 @@ int Fl_File_Chooser::type() { int Fl_File_Chooser::visible() { return window->visible(); } +FL_EXPORT char *fl_dir_chooser(const char *message,const char *fname); +FL_EXPORT char *fl_file_chooser(const char *message,const char *pat,const char *fname); +FL_EXPORT void fl_file_chooser_callback(void (*cb)(const char*)); 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 +} diff --git a/src/fl_file_dir.cxx b/src/fl_file_dir.cxx index b61e4b4b7..0b622c6f5 100644 --- a/src/fl_file_dir.cxx +++ b/src/fl_file_dir.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_file_dir.cxx,v 1.1.2.1 2001/09/30 12:30:13 easysw Exp $" +// "$Id: fl_file_dir.cxx,v 1.1.2.2 2001/09/30 17:37:06 easysw Exp $" // // File chooser widget for the Fast Light Tool Kit (FLTK). // @@ -24,7 +24,7 @@ // #include <config.h> -#include <FL/fl_file_chooser.H> +#include <FL/Fl_File_Chooser.H> #include <FL/Fl_File_Chooser.H> static Fl_File_Chooser *fc = (Fl_File_Chooser *)0; @@ -90,5 +90,5 @@ char* fl_dir_chooser(const char* message, const char* fname) // -// End of "$Id: fl_file_dir.cxx,v 1.1.2.1 2001/09/30 12:30:13 easysw Exp $". +// End of "$Id: fl_file_dir.cxx,v 1.1.2.2 2001/09/30 17:37:06 easysw Exp $". // |
