61 if (
auto dlg = wxGetTopLevelParent(parent)) {
62 wxWindow *apply = dlg->FindWindow(wxID_APPLY);
67 wxWindow *focus = dlg->FindFocus();
70 dlg->FindWindow(wxID_CLOSE)->SetFocus();
75 apply->Enable(enable);
86 if (
auto dlg = wxGetTopLevelParent(parent)) {
87 wxWindow *play = dlg->FindWindow(
kPlayID);
93 wxWindow *focus = dlg->FindFocus();
96 dlg->FindWindow(wxID_CLOSE)->SetFocus();
100 play->Enable(enable);
~EffectInstanceEx() override
virtual bool Init()
Call once to set up state for whole list of tracks to be processed.
static const wxString kUserPresetIdent
static const wxString kFactoryPresetIdent
static const wxString kCurrentSettingsIdent
static const wxString kFactoryDefaultsIdent
EffectUIClientInterface is an abstract base class to populate a UI and validate UI values....
virtual ~EffectUIClientInterface()
static constexpr int kPlayID
virtual bool IsGraphicalUI()
static bool EnablePreview(wxWindow *parent, bool enable=true)
EffectUIValidator(EffectUIClientInterface &effect, EffectSettingsAccess &access)
virtual bool UpdateUI()
Update appearance of the panel for changes in settings.
static bool EnableApply(wxWindow *parent, bool enable=true)
Enable or disable the Apply button of the dialog that contains parent.
virtual ~EffectUIValidator()
virtual void Disconnect()
On the first call only, may disconnect from further event handling.
EffectUIClientInterface & mEffect