1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-16 15:41:11 +02:00

Pass ShuttleGui& into ExportPlugin::OptionsCreate()

This commit is contained in:
Paul Licameli
2017-10-20 11:48:12 -04:00
parent bed7b41af9
commit 63b1803a6e
10 changed files with 59 additions and 51 deletions

View File

@@ -205,7 +205,7 @@ public:
// Required
wxWindow *OptionsCreate(wxWindow *parent, int format) override;
void OptionsCreate(ShuttleGui &S, int format) override;
ProgressResult Export(AudacityProject *project,
std::unique_ptr<ProgressDialog> &pDialog,
unsigned channels,
@@ -377,10 +377,9 @@ ProgressResult ExportMP2::Export(AudacityProject *project,
return updateResult;
}
wxWindow *ExportMP2::OptionsCreate(wxWindow *parent, int format)
void ExportMP2::OptionsCreate(ShuttleGui &S, int format)
{
wxASSERT(parent); // to justify safenew
return safenew ExportMP2Options(parent, format);
S.AddWindow( safenew ExportMP2Options{ S.GetParent(), format } );
}