mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 15:49:41 +02:00
Make Effect::PopulateUI final (no special case for Equalization)
This commit is contained in:
parent
358aac3181
commit
eff5b2ef92
@ -158,7 +158,7 @@ class AUDACITY_DLL_API Effect /* not final */ : public wxEvtHandler,
|
||||
// EffectUIClientInterface implementation
|
||||
|
||||
void SetHostUI(EffectUIHostInterface *host) override;
|
||||
bool PopulateUI(wxWindow *parent) override;
|
||||
bool PopulateUI(wxWindow *parent) final;
|
||||
bool IsGraphicalUI() override;
|
||||
bool ValidateUI() override;
|
||||
bool HideUI() override;
|
||||
|
@ -723,19 +723,6 @@ bool EffectEqualization::Process()
|
||||
return bGoodResult;
|
||||
}
|
||||
|
||||
bool EffectEqualization::PopulateUI(wxWindow *parent)
|
||||
{
|
||||
mUIParent = parent;
|
||||
mUIParent->PushEventHandler(this);
|
||||
|
||||
LoadUserPreset(GetCurrentSettingsGroup());
|
||||
|
||||
ShuttleGui S(mUIParent, eIsCreating);
|
||||
PopulateOrExchange(S);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool EffectEqualization::CloseUI()
|
||||
{
|
||||
mCurve = NULL;
|
||||
@ -746,6 +733,9 @@ bool EffectEqualization::CloseUI()
|
||||
|
||||
void EffectEqualization::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
if ( S.GetMode() == eIsCreating )
|
||||
LoadUserPreset(GetCurrentSettingsGroup());
|
||||
|
||||
//LoadCurves();
|
||||
|
||||
auto trackList = inputTracks();
|
||||
|
@ -131,7 +131,6 @@ public:
|
||||
bool Init() override;
|
||||
bool Process() override;
|
||||
|
||||
bool PopulateUI(wxWindow *parent) override;
|
||||
bool CloseUI() override;
|
||||
void PopulateOrExchange(ShuttleGui & S) override;
|
||||
bool TransferDataToWindow() override;
|
||||
|
Loading…
x
Reference in New Issue
Block a user