21 : mUIServices{ services }
53 if (
auto dlg = wxGetTopLevelParent(parent)) {
54 wxWindow *apply = dlg->FindWindow(wxID_APPLY);
59 wxWindow *focus = dlg->FindFocus();
62 dlg->FindWindow(wxID_CLOSE)->SetFocus();
67 apply->Enable(enable);
78 if (
auto dlg = wxGetTopLevelParent(parent)) {
79 wxWindow *play = dlg->FindWindow(
kPlayID);
85 wxWindow *focus = dlg->FindFocus();
88 dlg->FindWindow(wxID_CLOSE)->SetFocus();
static bool EnableApply(wxWindow *parent, bool enable=true)
Enable or disable the Apply button of the dialog that contains parent.
EffectEditor(const EffectUIServices &services, EffectSettingsAccess &access)
static constexpr int kPlayID
virtual bool IsGraphicalUI()
const EffectUIServices & mUIServices
virtual bool UpdateUI()
Update appearance of the panel for changes in settings.
virtual void Disconnect()
On the first call only, may disconnect from further event handling.
static bool EnablePreview(wxWindow *parent, bool enable=true)
virtual bool CloseUI() const =0