diff options
| author | Manolo Gouy <Manolo> | 2011-01-16 18:26:51 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-01-16 18:26:51 +0000 |
| commit | e2ddb1715c659dac6b8e751c2b5a772e229ebf57 (patch) | |
| tree | f1e164ebef308e8b6f4bc81102c5c733a15a218d /FL/Fl_Native_File_Chooser_FLTK.H | |
| parent | 774880acc5baa5ad24857a184f225a351c637e23 (diff) | |
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
Diffstat (limited to 'FL/Fl_Native_File_Chooser_FLTK.H')
| -rw-r--r-- | FL/Fl_Native_File_Chooser_FLTK.H | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/FL/Fl_Native_File_Chooser_FLTK.H b/FL/Fl_Native_File_Chooser_FLTK.H index e97ffb037..5176ab77d 100644 --- a/FL/Fl_Native_File_Chooser_FLTK.H +++ b/FL/Fl_Native_File_Chooser_FLTK.H @@ -72,6 +72,8 @@ - Under X windows, it's best if you call Fl_File_Icon::load_system_icons() at the start of main(), to enable the nicer looking file browser widgets. + Use the static public attributes of class Fl_File_Chooser to localize + the browser. - Some operating systems support certain OS specific options; see Fl_Native_File_Chooser::options() for a list. @@ -95,6 +97,8 @@ public: NEW_FOLDER = 0x0002, ///< Show 'New Folder' icon (if supported) PREVIEW = 0x0004 ///< enable preview mode }; + /** Localizable message */ + static const char *file_exists_message; private: int _btype; // kind-of browser to show() int _options; // general options @@ -106,16 +110,8 @@ private: char *_prevvalue; // Returned filename char *_directory; char *_errmsg; // error message - char *_old_dir; Fl_File_Chooser *_file_chooser; - // added by MG - Fl_File_Browser *my_fileList; - Fl_Check_Button *show_hidden; - int prev_filtervalue; - static void show_hidden_cb(Fl_Check_Button *o, void *data); - static void remove_hidden_files(Fl_File_Browser *my_fileList); - // Private methods void errmsg(const char *msg); int type_fl_file(int); |
