![]() |
Audacity 3.2.0
|
Public Member Functions | |
Validator (EffectUIClientInterface &effect, EffectSettingsAccess &access, const EffectPhaserSettings &settings) | |
virtual | ~Validator ()=default |
Effect & | GetEffect () const |
bool | ValidateUI () override |
Get settings data from the panel; may make error dialogs and return false. More... | |
bool | UpdateUI () override |
Update appearance of the panel for changes in settings. More... | |
void | PopulateOrExchange (ShuttleGui &S) |
void | OnStagesSlider (wxCommandEvent &evt) |
void | OnDryWetSlider (wxCommandEvent &evt) |
void | OnFeedbackSlider (wxCommandEvent &evt) |
void | OnDepthSlider (wxCommandEvent &evt) |
void | OnPhaseSlider (wxCommandEvent &evt) |
void | OnFreqSlider (wxCommandEvent &evt) |
void | OnGainSlider (wxCommandEvent &evt) |
void | OnStagesText (wxCommandEvent &evt) |
void | OnDryWetText (wxCommandEvent &evt) |
void | OnFeedbackText (wxCommandEvent &evt) |
void | OnDepthText (wxCommandEvent &evt) |
void | OnPhaseText (wxCommandEvent &evt) |
void | OnFreqText (wxCommandEvent &evt) |
void | OnGainText (wxCommandEvent &evt) |
void | EnableApplyFromValidate () |
bool | EnableApplyFromTransferDataFromWindow () |
![]() | |
EffectUIValidator (EffectUIClientInterface &effect, EffectSettingsAccess &access) | |
virtual | ~EffectUIValidator () |
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 () |
![]() | |
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... | |
Public Attributes | |
wxWeakRef< wxWindow > | mUIParent |
EffectPhaserSettings | mSettings |
wxTextCtrl * | mStagesT |
wxTextCtrl * | mDryWetT |
wxTextCtrl * | mFreqT |
wxTextCtrl * | mPhaseT |
wxTextCtrl * | mDepthT |
wxTextCtrl * | mFeedbackT |
wxTextCtrl * | mOutGainT |
wxSlider * | mStagesS |
wxSlider * | mDryWetS |
wxSlider * | mFreqS |
wxSlider * | mPhaseS |
wxSlider * | mDepthS |
wxSlider * | mFeedbackS |
wxSlider * | mOutGainS |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
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 constexpr int | kPlayID = 20102 |
![]() | |
static constexpr bool | notifies_all |
![]() | |
template<typename EventTag , typename Class , typename Event > | |
void | BindTo (wxEvtHandler &src, const EventTag &eventType, void(Class::*pmf)(Event &)) |
![]() | |
CallbackReturn | Publish (const EffectSettingChanged &message) |
Send a message to connected callbacks. More... | |
![]() | |
EffectUIClientInterface & | mEffect |
EffectSettingsAccess & | mAccess |
bool | mUIClosed { false } |
Definition at line 65 of file Phaser.cpp.
|
inline |
Definition at line 68 of file Phaser.cpp.
|
virtualdefault |
|
inline |
Definition at line 123 of file Phaser.cpp.
References EffectUIValidator::EnableApply(), and mUIParent.
|
inline |
Definition at line 118 of file Phaser.cpp.
References EffectUIValidator::EnableApply(), and mUIParent.
|
inline |
void EffectPhaser::Validator::OnDepthSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 593 of file Phaser.cpp.
References EffectPhaser::Depth, EffectParameter< Structure, Member, Type, Value >::scale, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Validator::OnDepthText | ( | wxCommandEvent & | evt | ) |
Definition at line 693 of file Phaser.cpp.
References EffectPhaser::Depth, EffectParameter< Structure, Member, Type, Value >::scale, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Validator::OnDryWetSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 553 of file Phaser.cpp.
References EffectPhaser::DryWet, EffectParameter< Structure, Member, Type, Value >::scale, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Validator::OnDryWetText | ( | wxCommandEvent & | evt | ) |
Definition at line 648 of file Phaser.cpp.
References EffectPhaser::DryWet, EffectParameter< Structure, Member, Type, Value >::scale, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Validator::OnFeedbackSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 605 of file Phaser.cpp.
References EffectPhaser::Feedback, EffectParameter< Structure, Member, Type, Value >::max, EffectParameter< Structure, Member, Type, Value >::scale, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Validator::OnFeedbackText | ( | wxCommandEvent & | evt | ) |
Definition at line 708 of file Phaser.cpp.
References EffectPhaser::Feedback, EffectParameter< Structure, Member, Type, Value >::scale, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Validator::OnFreqSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 565 of file Phaser.cpp.
References EffectPhaser::Freq, EffectParameter< Structure, Member, Type, Value >::min, EffectParameter< Structure, Member, Type, Value >::scale, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Validator::OnFreqText | ( | wxCommandEvent & | evt | ) |
Definition at line 663 of file Phaser.cpp.
References EffectPhaser::Freq, EffectParameter< Structure, Member, Type, Value >::scale, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Validator::OnGainSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 621 of file Phaser.cpp.
References EffectPhaser::OutGain, EffectParameter< Structure, Member, Type, Value >::scale, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Validator::OnGainText | ( | wxCommandEvent & | evt | ) |
Definition at line 723 of file Phaser.cpp.
References EffectPhaser::OutGain, EffectParameter< Structure, Member, Type, Value >::scale, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Validator::OnPhaseSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 578 of file Phaser.cpp.
References EffectParameter< Structure, Member, Type, Value >::max, EffectPhaser::Phase, EffectParameter< Structure, Member, Type, Value >::scale, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Validator::OnPhaseText | ( | wxCommandEvent & | evt | ) |
Definition at line 678 of file Phaser.cpp.
References EffectPhaser::Phase, EffectParameter< Structure, Member, Type, Value >::scale, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Validator::OnStagesSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 541 of file Phaser.cpp.
References EffectParameter< Structure, Member, Type, Value >::scale, EffectPhaser::Stages, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Validator::OnStagesText | ( | wxCommandEvent & | evt | ) |
Definition at line 633 of file Phaser.cpp.
References EffectParameter< Structure, Member, Type, Value >::scale, EffectPhaser::Stages, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Validator::PopulateOrExchange | ( | ShuttleGui & | S | ) |
Definition at line 296 of file Phaser.cpp.
References EffectParameter< Structure, Member, Type, Value >::def, EffectPhaser::Depth, EffectPhaser::DryWet, EffectPhaser::Feedback, EffectPhaser::Freq, EffectParameter< Structure, Member, Type, Value >::max, EffectParameter< Structure, Member, Type, Value >::min, Effect::mUIParent, OnDepthSlider(), OnDepthText(), OnDryWetSlider(), OnDryWetText(), OnFeedbackSlider(), OnFeedbackText(), OnFreqSlider(), OnFreqText(), OnGainSlider(), OnGainText(), OnPhaseSlider(), OnPhaseText(), OnStagesSlider(), OnStagesText(), EffectPhaser::OutGain, EffectPhaser::Phase, S, EffectParameter< Structure, Member, Type, Value >::scale, EffectPhaser::Stages, XO(), and XXO().
|
overridevirtual |
Update appearance of the panel for changes in settings.
Default implementation does nothing, returns true
Reimplemented from EffectUIValidator.
Definition at line 406 of file Phaser.cpp.
References EffectPhaser::Depth, EffectPhaser::DryWet, EffectPhaser::Feedback, EffectPhaser::Freq, EffectWithSettings< EffectPhaserSettings, PerTrackEffect >::GetSettings(), Effect::mUIParent, EffectPhaser::OutGain, EffectPhaser::Phase, EffectParameter< Structure, Member, Type, Value >::scale, settings(), and EffectPhaser::Stages.
|
overridevirtual |
Get settings data from the panel; may make error dialogs and return false.
Implements EffectUIValidator.
Definition at line 432 of file Phaser.cpp.
References EffectWithSettings< EffectPhaserSettings, PerTrackEffect >::GetSettings(), Effect::mUIParent, and settings().
wxSlider* EffectPhaser::Validator::mDepthS |
Definition at line 97 of file Phaser.cpp.
wxTextCtrl* EffectPhaser::Validator::mDepthT |
Definition at line 89 of file Phaser.cpp.
wxSlider* EffectPhaser::Validator::mDryWetS |
Definition at line 94 of file Phaser.cpp.
wxTextCtrl* EffectPhaser::Validator::mDryWetT |
Definition at line 86 of file Phaser.cpp.
wxSlider* EffectPhaser::Validator::mFeedbackS |
Definition at line 98 of file Phaser.cpp.
wxTextCtrl* EffectPhaser::Validator::mFeedbackT |
Definition at line 90 of file Phaser.cpp.
wxSlider* EffectPhaser::Validator::mFreqS |
Definition at line 95 of file Phaser.cpp.
wxTextCtrl* EffectPhaser::Validator::mFreqT |
Definition at line 87 of file Phaser.cpp.
wxSlider* EffectPhaser::Validator::mOutGainS |
Definition at line 99 of file Phaser.cpp.
wxTextCtrl* EffectPhaser::Validator::mOutGainT |
Definition at line 91 of file Phaser.cpp.
wxSlider* EffectPhaser::Validator::mPhaseS |
Definition at line 96 of file Phaser.cpp.
wxTextCtrl* EffectPhaser::Validator::mPhaseT |
Definition at line 88 of file Phaser.cpp.
EffectPhaserSettings EffectPhaser::Validator::mSettings |
Definition at line 83 of file Phaser.cpp.
wxSlider* EffectPhaser::Validator::mStagesS |
Definition at line 93 of file Phaser.cpp.
wxTextCtrl* EffectPhaser::Validator::mStagesT |
Definition at line 85 of file Phaser.cpp.
wxWeakRef<wxWindow> EffectPhaser::Validator::mUIParent |
Definition at line 82 of file Phaser.cpp.
Referenced by EnableApplyFromTransferDataFromWindow(), and EnableApplyFromValidate().