28 if ( !default_extension.empty() )
29 filter =
wxT(
"*.") + default_extension;
31 message.
Translation(), path, default_filename, filter,
33 flags, parent, wxDefaultCoord, wxDefaultCoord);
47 static wxCharBuffer buf;
51 if ((
char *) (
const char *)
name.mb_str() == NULL) {
58 while ((
char *) (
const char *)
name.mb_str() == NULL) {
61"The specified filename could not be converted due to Unicode character use."));
65 XO(
"Specify New Filename:"),
73 wxFD_SAVE | wxRESIZE_BORDER,
74 wxGetTopLevelParent(NULL));
int AudacityMessageBox(const TranslatableString &message, const TranslatableString &caption, long style, wxWindow *parent, int x, int y)
wxString FileSelector(const wxString &title, const wxString &defaultDir, const wxString &defaultFileName, const wxString &defaultExtension, const wxString &filter, int flags, wxWindow *parent, int x, int y)
wxString FileExtension
File extension, not including any leading dot.
static wxCharBuffer mFilename
FilePath SelectFile(FileNames::Operation op, const TranslatableString &message, const FilePath &default_path, const FilePath &default_filename, const FileExtension &default_extension, const FileTypes &fileTypes, int flags, wxWindow *parent)
char * VerifyFilename(const wxString &s, bool input)
Protect against Unicode to multi-byte conversion failures on Windows.
std::vector< FileNames::FileType > FileTypes
FILES_API const FileType AllFiles
Holds a msgid for the translation catalog; may also bind format arguments.
wxString Translation() const
FILES_API wxString FormatWildcard(const FileTypes &fileTypes)
FilePath WithDefaultPath(Operation op, const FilePath &defaultPath, F function)