11#ifndef __AUDACITY_SELECT_FILE__
12#define __AUDACITY_SELECT_FILE__
23using FileTypes = std::vector< FileNames::FileType >;
38WX_INIT_API
char *
VerifyFilename(
const wxString &s,
bool input =
true);
47#define OSINPUT(X) VerifyFilename(X, true)
48#define OSOUTPUT(X) VerifyFilename(X, false)
49#elif defined(__WXMAC__)
50#define OSFILENAME(X) ((char *) (const char *)(X).fn_str())
51#define OSINPUT(X) OSFILENAME(X)
52#define OSOUTPUT(X) OSFILENAME(X)
54#define OSFILENAME(X) ((char *) (const char *)(X).mb_str())
55#define OSINPUT(X) OSFILENAME(X)
56#define OSOUTPUT(X) OSFILENAME(X)
wxString FileExtension
File extension, not including any leading dot.
WX_INIT_API 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)
WX_INIT_API char * VerifyFilename(const wxString &s, bool input=true)
Protect against Unicode to multi-byte conversion failures on Windows.
std::vector< FileNames::FileType > FileTypes
Holds a msgid for the translation catalog; may also bind format arguments.