Audacity 3.2.0
|
#include <EffectEditor.h>
Public Member Functions | |
EffectEditor (const EffectUIServices &services, EffectSettingsAccess &access) | |
virtual | ~EffectEditor () |
virtual bool | ValidateUI ()=0 |
Get settings data from the panel; may make error dialogs and return false. More... | |
virtual bool | UpdateUI () |
Update appearance of the panel for changes in settings. More... | |
virtual bool | IsGraphicalUI () |
virtual void | Disconnect () |
On the first call only, may disconnect from further event handling. More... | |
virtual void | OnClose () |
Public Member Functions inherited from Observer::Publisher< EffectSettingChanged > | |
Publisher (ExceptionPolicy *pPolicy=nullptr, Alloc a={}) | |
Constructor supporting type-erased custom allocation/deletion. More... | |
Publisher (Publisher &&)=default | |
Publisher & | operator= (Publisher &&)=default |
Subscription | Subscribe (Callback callback) |
Connect a callback to the Publisher; later-connected are called earlier. More... | |
Subscription | Subscribe (Object &obj, Return(Object::*callback)(Args...)) |
Overload of Subscribe takes an object and pointer-to-member-function. More... | |
Static Public Member Functions | |
static bool | EnableApply (wxWindow *parent, bool enable=true) |
Enable or disable the Apply button of the dialog that contains parent. More... | |
static bool | EnablePreview (wxWindow *parent, bool enable=true) |
Static Public Attributes | |
static constexpr int | kPlayID = 20102 |
Static Public Attributes inherited from Observer::Publisher< EffectSettingChanged > | |
static constexpr bool | notifies_all |
Protected Member Functions | |
template<typename EventTag , typename Class , typename Event > | |
void | BindTo (wxEvtHandler &src, const EventTag &eventType, void(Class::*pmf)(Event &)) |
Protected Member Functions inherited from Observer::Publisher< EffectSettingChanged > | |
CallbackReturn | Publish (const EffectSettingChanged &message) |
Send a message to connected callbacks. More... | |
Protected Attributes | |
const EffectUIServices & | mUIServices |
EffectSettingsAccess & | mAccess |
bool | mUIClosed { false } |
Additional Inherited Members | |
Public Types inherited from Observer::Publisher< EffectSettingChanged > | |
using | message_type = EffectSettingChanged |
using | CallbackReturn = std::conditional_t< true, void, bool > |
using | Callback = std::function< CallbackReturn(const EffectSettingChanged &) > |
Type of functions that can be connected to the Publisher. More... | |
Definition at line 31 of file EffectEditor.h.
EffectEditor::EffectEditor | ( | const EffectUIServices & | services, |
EffectSettingsAccess & | access | ||
) |
Definition at line 19 of file EffectEditor.cpp.
|
virtualdefault |
|
inlineprotected |
Definition at line 85 of file EffectEditor.h.
Referenced by VSTEditor::BuildFancy(), VSTEditor::BuildPlain(), EffectBassTreble::Editor::PopulateOrExchange(), EffectPhaser::Editor::PopulateOrExchange(), EffectDtmf::Editor::PopulateOrExchange(), and LadspaEditor::PopulateUI().
|
virtual |
On the first call only, may disconnect from further event handling.
Default implemantation does nothing
Reimplemented in anonymous_namespace{EqualizationUI.cpp}::EqualizationUIEditor, LadspaEditor, LV2Editor, and anonymous_namespace{StatefulEffectUIServices.cpp}::DefaultEffectEditor.
Definition at line 37 of file EffectEditor.cpp.
|
static |
Enable or disable the Apply button of the dialog that contains parent.
Definition at line 50 of file EffectEditor.cpp.
References EnablePreview().
Referenced by DynamicRangeProcessorEditor::AddTextboxAndSlider(), EffectAmplify::CheckClip(), EffectRepeat::DisplayNewTime(), EffectBassTreble::Editor::EnableApplyFromTransferDataFromWindow(), EffectPhaser::Editor::EnableApplyFromTransferDataFromWindow(), EffectWahwah::Editor::EnableApplyFromTransferDataToWindow(), EffectBassTreble::Editor::EnableApplyFromValidate(), EffectPhaser::Editor::EnableApplyFromValidate(), EffectWahwah::Editor::EnableApplyFromValidate(), EffectAmplify::OnAmpText(), EffectTruncSilence::OnControlChange(), EffectToneGen::OnControlUpdate(), EffectScienFilter::OnCutoff(), EffectAmplify::OnPeakText(), EffectScienFilter::OnRipple(), EffectScienFilter::OnStopbandRipple(), EffectPaulstretch::OnText(), EffectTimeScale::OnText_PitchHalfStepsEnd(), EffectTimeScale::OnText_PitchHalfStepsStart(), EffectTimeScale::OnText_PitchPercentChangeEnd(), EffectTimeScale::OnText_PitchPercentChangeStart(), EffectTimeScale::OnText_RatePercentChangeEnd(), EffectTimeScale::OnText_RatePercentChangeStart(), EffectChangeSpeed::UpdateUI(), EffectLoudness::UpdateUI(), and EffectNormalize::UpdateUI().
|
static |
Enable or disable the preview play button of the dialog that contains parent
Definition at line 75 of file EffectEditor.cpp.
References kPlayID.
Referenced by EnableApply(), and NyquistEffect::TransferDataToWindow().
|
virtual |
Default implementation returns false
Reimplemented in AudioUnitEditor, LV2Editor, VSTEditor, and VST3Editor.
Definition at line 32 of file EffectEditor.cpp.
Referenced by VST3Effect::ShowClientInterface().
|
virtual |
Handle the UI OnClose event. Default implementation calls mUIServices.CloseUI()
Reimplemented in VSTEditor, and VST3Editor.
Definition at line 41 of file EffectEditor.cpp.
References EffectUIServices::CloseUI(), mUIClosed, and mUIServices.
Referenced by VST3Editor::OnClose().
|
virtual |
Update appearance of the panel for changes in settings.
Default implementation does nothing, returns true
Reimplemented in DynamicRangeProcessorEditor, AudioUnitEditor, EffectBassTreble::Editor, EffectDistortion::Editor, EffectDtmf::Editor, EffectEcho::Editor, LadspaEditor, LV2Editor, EffectPhaser::Editor, EffectReverb::Editor, VSTEditor, VST3Editor, and EffectWahwah::Editor.
Definition at line 27 of file EffectEditor.cpp.
|
pure virtual |
Get settings data from the panel; may make error dialogs and return false.
Implemented in DynamicRangeProcessorEditor, AudioUnitEditor, EffectBassTreble::Editor, EffectDistortion::Editor, EffectDtmf::Editor, EffectEcho::Editor, anonymous_namespace{EqualizationUI.cpp}::EqualizationUIEditor, LadspaEditor, LV2Editor, EffectPhaser::Editor, EffectReverb::Editor, anonymous_namespace{StatefulEffectUIServices.cpp}::DefaultEffectEditor, VSTEditor, VST3Editor, and EffectWahwah::Editor.
|
staticconstexpr |
Definition at line 76 of file EffectEditor.h.
Referenced by EnablePreview().
|
protected |
Definition at line 92 of file EffectEditor.h.
Referenced by AudioUnitEditor::AudioUnitEditor(), VSTEditor::Automate(), AudioUnitEditor::EventListener(), VSTEditor::Flush(), VSTEditor::NotifyParameterChanged(), LV2Editor::OnChoice(), VSTEditor::OnClose(), VST3Editor::OnClose(), VST3Editor::OnIdle(), AudioUnitEditor::OnIdle(), LV2Editor::OnIdle(), VSTEditor::OnIdle(), LV2Editor::OnSlider(), VSTEditor::OnSlider(), LV2Editor::OnText(), LV2Editor::OnToggle(), LV2Editor::OnTrigger(), DynamicRangeProcessorEditor::PopulateOrExchange(), LadspaEditor::PopulateUI(), LadspaEditor::RefreshControls(), LV2Editor::suil_port_write(), DynamicRangeProcessorEditor::UpdateUI(), AudioUnitEditor::UpdateUI(), LV2Editor::UpdateUI(), VST3Editor::UpdateUI(), DynamicRangeProcessorEditor::ValidateUI(), AudioUnitEditor::ValidateUI(), EffectDistortion::Editor::ValidateUI(), LadspaEditor::ValidateUI(), LV2Editor::ValidateUI(), EffectReverb::Editor::ValidateUI(), anonymous_namespace{StatefulEffectUIServices.cpp}::DefaultEffectEditor::ValidateUI(), VSTEditor::ValidateUI(), VST3Editor::ValidateUI(), EffectWahwah::Editor::ValidateUI(), VST3Editor::VST3Editor(), and VSTEditor::VSTEditor().
|
protected |
Definition at line 94 of file EffectEditor.h.
Referenced by OnClose().
|
protected |
Definition at line 91 of file EffectEditor.h.
Referenced by OnClose(), and anonymous_namespace{StatefulEffectUIServices.cpp}::DefaultEffectEditor::ValidateUI().