diff --git a/CHANGES b/CHANGES index d42636a01..9e433e455 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,9 @@ CHANGES IN FLTK 1.1.0rc5 + - The newButton and previewButton widgets are now public + members of the Fl_File_Chooser class. This allows + developers to disable or hide the "new directory" and + "preview" buttons as desired. - Added new visible focus flag bit and methods to Fl_Widget, so it is now possible to do both global and per-widget keyboard focus control. diff --git a/FL/Fl_File_Chooser.H b/FL/Fl_File_Chooser.H index f53068f00..46b31a470 100644 --- a/FL/Fl_File_Chooser.H +++ b/FL/Fl_File_Chooser.H @@ -52,7 +52,9 @@ private: Fl_Menu_Button *favoritesButton; inline void cb_favoritesButton_i(Fl_Menu_Button*, void*); static void cb_favoritesButton(Fl_Menu_Button*, void*); +public: Fl_Button *newButton; +private: inline void cb_newButton_i(Fl_Button*, void*); static void cb_newButton(Fl_Button*, void*); inline void cb__i(Fl_Tile*, void*); @@ -61,7 +63,9 @@ private: inline void cb_fileList_i(Fl_File_Browser*, void*); static void cb_fileList(Fl_File_Browser*, void*); Fl_Box *previewBox; +public: Fl_Check_Button *previewButton; +private: inline void cb_previewButton_i(Fl_Check_Button*, void*); static void cb_previewButton(Fl_Check_Button*, void*); Fl_File_Input *fileName; diff --git a/documentation/Fl_File_Chooser.html b/documentation/Fl_File_Chooser.html index 68f81bd4d..42b4a5a10 100644 --- a/documentation/Fl_File_Chooser.html +++ b/documentation/Fl_File_Chooser.html @@ -86,6 +86,15 @@ dialogs:
The sort member specifies the sort function that is used when loading the contents of a directory. +
The Fl_File_Chooser class exports the "new
+directory" (newButton) and "preview"
+(previewButton) widgets so that application
+developers can control their appearance and use. For more
+complex customization, consider copying the FLTK file chooser
+code and changing it accordingly.
+