From e2ddb1715c659dac6b8e751c2b5a772e229ebf57 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 16 Jan 2011 18:26:51 +0000 Subject: Fl_File_Chooser: added a "Show hidden files" button. Hidden files aren't shown by default now. This removes a TODO clause. Fl_Native_File_Chooser: removed the hack that added the "Show hidden files" button, and made the "file already exists" warning message localizable. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8282 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_File_Chooser.H | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'FL/Fl_File_Chooser.H') diff --git a/FL/Fl_File_Chooser.H b/FL/Fl_File_Chooser.H index 3b8777d97..21fa8ddd8 100644 --- a/FL/Fl_File_Chooser.H +++ b/FL/Fl_File_Chooser.H @@ -123,6 +123,9 @@ private: Fl_Return_Button *favOkButton; void cb_favOkButton_i(Fl_Return_Button*, void*); static void cb_favOkButton(Fl_Return_Button*, void*); + Fl_Check_Button *show_hidden; + static void show_hidden_cb(Fl_Check_Button*, void*); + void remove_hidden_files(); public: ~Fl_File_Chooser(); void callback(void (*cb)(Fl_File_Chooser *, void *), void *d = 0); @@ -213,6 +216,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; /** the sort function that is used when loading the contents of a directory. -- cgit v1.2.3