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:
@@ -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(),
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user