diff options
| author | Manolo Gouy <Manolo> | 2011-06-06 16:11:22 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-06-06 16:11:22 +0000 |
| commit | 7feb5a9dfeeae416cb86e7019ffda697c94c8f90 (patch) | |
| tree | 5a8bcdb60c1ca0e55c9f660cd2e7955463a13082 /FL/Fl_File_Chooser.H | |
| parent | 922352799211caa32187bdd92af26a0527d3b304 (diff) | |
Added "Show hidden files" check button to the file chooser panel.
This had been previously done in r.8282 and r.8286 without accounting for
the existence of the Fl_File_Chooser.fl file. With this commit, files
Fl_File_Chooser.{cxx, H} are properly generated by Fl_File_Chooser.fl
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8785 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_File_Chooser.H')
| -rw-r--r-- | FL/Fl_File_Chooser.H | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/FL/Fl_File_Chooser.H b/FL/Fl_File_Chooser.H index 6dcd480db..9fdd1246e 100644 --- a/FL/Fl_File_Chooser.H +++ b/FL/Fl_File_Chooser.H @@ -95,6 +95,11 @@ public: private: void cb_previewButton_i(Fl_Check_Button*, void*); static void cb_previewButton(Fl_Check_Button*, void*); +public: + Fl_Check_Button *showHiddenButton; +private: + void cb_showHiddenButton_i(Fl_Check_Button*, void*); + static void cb_showHiddenButton(Fl_Check_Button*, void*); Fl_File_Input *fileName; void cb_fileName_i(Fl_File_Input*, void*); static void cb_fileName(Fl_File_Input*, void*); @@ -123,11 +128,6 @@ private: Fl_Return_Button *favOkButton; void cb_favOkButton_i(Fl_Return_Button*, void*); static void cb_favOkButton(Fl_Return_Button*, void*); -#ifndef WIN32 - Fl_Check_Button *show_hidden; - static void show_hidden_cb(Fl_Check_Button*, void*); - void remove_hidden_files(); -#endif public: ~Fl_File_Chooser(); void callback(void (*cb)(Fl_File_Chooser *, void *), void *d = 0); @@ -149,9 +149,13 @@ public: const char * ok_label(); void preview(int e); int preview() const { return previewButton->value(); }; +private: + void showHidden(int e); + void remove_hidden_files(); +public: void rescan(); void rescan_keep_filename(); - void show(); + void show(); int shown(); void textcolor(Fl_Color c); Fl_Color textcolor(); @@ -218,10 +222,10 @@ public: [standard text may be customized at run-time] */ static const char *show_label; - /** + /** [standard text may be customized at run-time] - */ - static const char *hidden_label; + */ + static const char *hidden_label; /** the sort function that is used when loading the contents of a directory. @@ -231,7 +235,6 @@ private: Fl_Widget* ext_group; public: Fl_Widget* add_extra(Fl_Widget* gr); - Fl_File_Browser *browser(void) {return fileList; }; }; FL_EXPORT char *fl_dir_chooser(const char *message,const char *fname,int relative=0); FL_EXPORT char *fl_file_chooser(const char *message,const char *pat,const char *fname,int relative=0); |
