diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-03-25 15:20:26 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-03-25 15:20:26 +0000 |
| commit | ce40d4a0e67b79b48471d6328f46817d2e064544 (patch) | |
| tree | 40d06e87549e71c4f2d6c606bc2067525a625b9d /FL/Fl_File_Chooser.H | |
| parent | 6d65dcba88092bbff9979399a7d204bb0c88dd59 (diff) | |
The Fl_File_Chooser window now properly resizes its controls (STR
#766)
The Fl_Help_Dialog window now properly resizes its controls (STR
#768)
The Fl_File_Chooser favorites window is now resizable (STR #770)
Added more documentation on the file chooser filter pattern format
(in both functions.html and Fl_File_Chooser.html)
Added Fl_File_Chooser::save_label (for favorites dialog) and
Fl_File_Chooser::ok_label() to change the default "OK" button
label to something more appropriate according to the HIG.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4187 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_File_Chooser.H')
| -rw-r--r-- | FL/Fl_File_Chooser.H | 39 |
1 files changed, 37 insertions, 2 deletions
diff --git a/FL/Fl_File_Chooser.H b/FL/Fl_File_Chooser.H index 047ec3170..bc55fb561 100644 --- a/FL/Fl_File_Chooser.H +++ b/FL/Fl_File_Chooser.H @@ -1,3 +1,30 @@ +// +// "$Id$" +// +// Fl_File_Chooser dialog for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998-2005 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems on the following page: +// +// http://www.fltk.org/str.php +// + // generated by Fast Light User Interface Designer (fluid) version 1.0107 #ifndef Fl_File_Chooser_H @@ -74,8 +101,9 @@ private: Fl_Return_Button *okButton; inline void cb_okButton_i(Fl_Return_Button*, void*); static void cb_okButton(Fl_Return_Button*, void*); - inline void cb_Cancel_i(Fl_Button*, void*); - static void cb_Cancel(Fl_Button*, void*); + Fl_Button *cancelButton; + inline void cb_cancelButton_i(Fl_Button*, void*); + static void cb_cancelButton(Fl_Button*, void*); Fl_Double_Window *favWindow; Fl_File_Browser *favList; inline void cb_favList_i(Fl_File_Browser*, void*); @@ -112,6 +140,8 @@ public: uchar iconsize(); void label(const char *l); const char * label(); + void ok_label(const char *l); + const char * ok_label(); void preview(int e); int preview() const { return previewButton->value(); }; void rescan(); @@ -139,6 +169,7 @@ public: static const char *new_directory_label; static const char *new_directory_tooltip; static const char *preview_label; + static const char *save_label; static const char *show_label; static Fl_File_Sort_F *sort; }; @@ -146,3 +177,7 @@ FL_EXPORT char *fl_dir_chooser(const char *message,const char *fname,int relativ FL_EXPORT char *fl_file_chooser(const char *message,const char *pat,const char *fname,int relative=0); FL_EXPORT void fl_file_chooser_callback(void (*cb)(const char*)); #endif + +// +// End of "$Id$". +// |
