MCPcopy Create free account
hub / github.com/audacity/audacity / SelectFile

Function SelectFile

libraries/lib-wx-init/SelectFile.cpp:16–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#include "AudacityMessageBox.h"
15
16FilePath
17SelectFile(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__)
38static wxCharBuffer mFilename;

Callers 15

OnSaveFunction · 0.85
VerifyFilenameFunction · 0.85
OnBrowseFunction · 0.85
OnBrowseMethod · 0.85
OnBrowseMethod · 0.85
OnExportMIDIFunction · 0.85
OnImportMIDIFunction · 0.85
ReadMacroMethod · 0.85
WriteMacroMethod · 0.85
OnImportMethod · 0.85
OnExportMethod · 0.85

Calls 4

WithDefaultPathFunction · 0.85
FileSelectorFunction · 0.85
TranslationMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected