| 14 | #include "AudacityMessageBox.h" |
| 15 | |
| 16 | FilePath |
| 17 | SelectFile(FileNames::Operation op, |
| 18 | const TranslatableString& message, |
| 19 | const FilePath& default_path, |
| 20 | const FilePath& default_filename, |
| 21 | const FileExtension& default_extension, |
| 22 | const FileTypes& fileTypes, |
| 23 | int flags, |
| 24 | wxWindow *parent) |
| 25 | { |
| 26 | return WithDefaultPath(op, default_path, [&](const FilePath &path) { |
| 27 | wxString filter; |
| 28 | if ( !default_extension.empty() ) |
| 29 | filter = wxT("*.") + default_extension; |
| 30 | return FileSelector( |
| 31 | message.Translation(), path, default_filename, filter, |
| 32 | FormatWildcard( fileTypes ), |
| 33 | flags, parent, wxDefaultCoord, wxDefaultCoord); |
| 34 | }); |
| 35 | } |
| 36 | |
| 37 | #if defined(__WXMSW__) |
| 38 | static wxCharBuffer mFilename; |
no test coverage detected