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

Round 7 of wx3 changes

I believe the FileDialog is now complete and consistent across
all 3 platforms.
This commit is contained in:
Leland Lucius
2015-07-16 01:12:09 -05:00
parent 553308fc29
commit 805f0e29d1
9 changed files with 150 additions and 79 deletions

View File

@@ -564,7 +564,7 @@ bool Exporter::GetFilename()
mFilename.GetPath(),
mFilename.GetFullName(),
maskString,
wxFD_SAVE | wxRESIZE_BORDER | FD_NO_ADD_EXTENSION);
wxFD_SAVE | wxRESIZE_BORDER);
mDialog = &fd;
mDialog->PushEventHandler(this);
@@ -580,6 +580,10 @@ bool Exporter::GetFilename()
}
mFilename = fd.GetPath();
if (mFilename == wxT("")) {
return false;
}
mFormat = fd.GetFilterIndex();
mFilterIndex = fd.GetFilterIndex();
@@ -597,10 +601,6 @@ bool Exporter::GetFilename()
}
}
if (mFilename == wxT("")) {
return false;
}
wxString ext = mFilename.GetExt();
wxString defext = mPlugins[mFormat]->GetExtension(mSubFormat).Lower();

View File

@@ -27,7 +27,6 @@ class DirManager;
class WaveTrack;
class TrackList;
class MixerSpec;
class FileDialog;
class TimeTrack;
class Mixer;