diff options
Diffstat (limited to 'documentation')
| -rw-r--r-- | documentation/Fl_File_Chooser.html | 20 | ||||
| -rw-r--r-- | documentation/functions.html | 11 |
2 files changed, 26 insertions, 5 deletions
diff --git a/documentation/Fl_File_Chooser.html b/documentation/Fl_File_Chooser.html index e1a6b964e..3627845f7 100644 --- a/documentation/Fl_File_Chooser.html +++ b/documentation/Fl_File_Chooser.html @@ -82,6 +82,10 @@ dialogs: <TD>"Preview"</TD> </TR> <TR> + <TD><TT>save_label</TT></TD> + <TD>"Save"</TD> +</TR> +<TR> <TD><TT>show_label</TT></TD> <TD>"Show:"</TD> </TR> @@ -117,6 +121,7 @@ code and changing it accordingly. <LI><A HREF="#Fl_File_Chooser.hide">hide</A> <LI><A HREF="#Fl_File_Chooser.iconsize">iconsize</A> <LI><A HREF="#Fl_File_Chooser.label">label</A> + <LI><A HREF="#Fl_File_Chooser.ok_label">ok_label</A> <LI><A HREF="#Fl_File_Chooser.preview">preview</A> <LI><A HREF="#Fl_File_Chooser.rescan">rescan</A> <LI><A HREF="#Fl_File_Chooser.show">show</A> @@ -193,7 +198,14 @@ const char *directory()</A></H4> <H4><A NAME="Fl_File_Chooser.filter">void filter(const char *pattern)<BR> const char *filter()</A></H4> -<P>Sets or gets the current filename filter pattern. +<P>Sets or gets the current filename filter patterns. The filter +patterns use <A +href="#fl_filename_match"><tt>fl_filename_match()</tt></A>. +Multiple patterns can be used by separating them with tabs, like +"*.jpg\t*.png\t*.gif\t*". In addition, you can provide +human-readable labels with the patterns inside parenthesis, like +"JPEG Files (*.jpg)\tPNG Files (*.png)\tGIF Files (*.gif)\tAll Files (*)". +Use <tt>filter(NULL)</tt> to show all files.</p> <H4><A NAME="Fl_File_Chooser.filter_value">void filter_value(int f)<BR> int filter_value()</A></H4> @@ -215,6 +227,12 @@ const char *label()</A></H4> <P>Sets or gets the title bar text for the <CODE>Fl_File_Chooser</CODE>. +<H4><A NAME="Fl_File_Chooser.label">void ok_label(const char *l)<BR> +const char *ok_label()</A></H4> + +<P>Sets or gets the label for the "ok" button in the +<CODE>Fl_File_Chooser</CODE>. + <H4><A NAME="Fl_File_Chooser.preview">void preview(int e)<BR> int preview()</A></H4> diff --git a/documentation/functions.html b/documentation/functions.html index 19af7989a..74d1e2409 100644 --- a/documentation/functions.html +++ b/documentation/functions.html @@ -492,10 +492,13 @@ pointer to that filename or <tt>NULL</tt> if Cancel is chosen. <P><tt>message</tt> is a string used to title the window. <P><tt>pattern</tt> is used to limit the files listed in a -directory to those matching the pattern. This matching is done -by <A -href="#fl_filename_match"><tt>fl_filename_match()</tt></A>. Use -<tt>NULL</tt> to show all files. +directory to those matching the pattern. This matching is done by +<A href="#fl_filename_match"><tt>fl_filename_match()</tt></A>. +Multiple patterns can be used by separating them with tabs, like +"*.jpg\t*.png\t*.gif\t*". In addition, you can provide +human-readable labels with the patterns inside parenthesis, like +"JPEG Files (*.jpg)\tPNG Files (*.png)\tGIF Files (*.gif)\tAll Files (*)". +Pass <tt>NULL</tt> to show all files.</p> <P><tt>fname</tt> is a default filename to fill in the chooser with. If this is <tt>NULL</tt> then the last filename that was |
