1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02:00

Define FileDialogWrapper, with localized default prompt and name

This commit is contained in:
Paul Licameli
2017-10-12 15:41:52 -04:00
parent cf4b9eb5c8
commit 384300016d
8 changed files with 52 additions and 11 deletions

View File

@@ -537,7 +537,7 @@ bool Exporter::GetFilename()
auto useFileName = mFilename;
if (!useFileName.HasExt())
useFileName.SetExt(defext);
FileDialog fd(mProject,
FileDialogWrapper fd(mProject,
mFileDialogTitle,
mFilename.GetPath(),
useFileName.GetFullName(),

View File

@@ -21,7 +21,7 @@
#include "../SampleFormat.h"
#include "../widgets/wxPanelWrapper.h"
class FileDialog;
class FileDialogWrapper;
class wxFileCtrlEvent;
class wxMemoryDC;
class wxStaticText;
@@ -187,7 +187,7 @@ private:
private:
wxString mFormatName;
FileDialog *mDialog;
FileDialogWrapper *mDialog;
wxString mFileDialogTitle;
AudacityProject *mProject;
std::unique_ptr<MixerSpec> mMixerSpec;

View File

@@ -1856,7 +1856,7 @@ void ExportFFmpegOptions::OnLoadPreset(wxCommandEvent& WXUNUSED(event))
void ExportFFmpegOptions::OnImportPresets(wxCommandEvent& WXUNUSED(event))
{
wxString path;
FileDialog dlg(this,
FileDialogWrapper dlg(this,
_("Select xml file with presets to import"),
gPrefs->Read(wxT("/FileFormats/FFmpegPresetDir")),
wxEmptyString,
@@ -1875,7 +1875,7 @@ void ExportFFmpegOptions::OnImportPresets(wxCommandEvent& WXUNUSED(event))
void ExportFFmpegOptions::OnExportPresets(wxCommandEvent& WXUNUSED(event))
{
wxString path;
FileDialog dlg(this,
FileDialogWrapper dlg(this,
_("Select xml file to export presets into"),
gPrefs->Read(wxT("/FileFormats/FFmpegPresetDir")),
wxEmptyString,