1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-16 16:20:50 +02:00

Title of export dialog is now either "Export File" or "Export Selection", so user knows which menu option they selected.

Vaughan, 2013-11-02: James also turned on EXPERIMENTAL_SCIENCE_FILTERS.
This commit is contained in:
james.k.crook@gmail.com 2013-10-22 21:11:58 +00:00
parent 41bfae1695
commit 02e4e56444
4 changed files with 12 additions and 2 deletions

View File

@ -32,7 +32,7 @@
// JKC (effect by Norm C, 02 Oct 2013) disabled for now.
//#define EXPERIMENTAL_SCIENCE_FILTERS
#define EXPERIMENTAL_SCIENCE_FILTERS
// LLL, 01 Oct 2013:
// new key assignment view for preferences

View File

@ -3034,6 +3034,7 @@ void AudacityProject::OnExportSelection()
Exporter e;
wxGetApp().SetMissingAliasedFileWarningShouldShow(true);
e.SetFileDialogTitle( _("Export Selection") );
e.Process(this, true, mViewInfo.sel0, mViewInfo.sel1);
}

View File

@ -289,6 +289,7 @@ Mixer* ExportPlugin::CreateMixer(int numInputTracks, WaveTrack **inputTracks,
Exporter::Exporter()
{
mMixerSpec = NULL;
SetFileDialogTitle( _("Export File") );
RegisterPlugin(New_ExportPCM());
RegisterPlugin(New_ExportMP3());
@ -325,6 +326,12 @@ Exporter::~Exporter()
}
}
void Exporter::SetFileDialogTitle( const wxString & DialogTitle )
{
// The default title is "Export File"
mFileDialogTitle = DialogTitle;
}
int Exporter::FindFormatIndex(int exportindex)
{
int c = 0;
@ -542,7 +549,7 @@ bool Exporter::GetFilename()
while (true) {
FileDialog fd(mProject,
_("Export File"),
mFileDialogTitle,
mFilename.GetPath(),
mFilename.GetFullName(),
maskString,

View File

@ -141,6 +141,7 @@ public:
Exporter();
virtual ~Exporter();
void SetFileDialogTitle( const wxString & DialogTitle );
void RegisterPlugin(ExportPlugin *plugin);
bool Process(AudacityProject *project, bool selectedOnly,
@ -164,6 +165,7 @@ private:
private:
FileDialog *mDialog;
wxString mFileDialogTitle;
AudacityProject *mProject;
MixerSpec *mMixerSpec;