![]() |
Audacity 3.2.0
|
Public Member Functions | |
Validator (EffectUIClientInterface &effect, EffectSettingsAccess &access, const EffectBassTrebleSettings &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 | OnBassText (wxCommandEvent &evt) |
void | OnTrebleText (wxCommandEvent &evt) |
void | OnGainText (wxCommandEvent &evt) |
void | OnBassSlider (wxCommandEvent &evt) |
void | OnTrebleSlider (wxCommandEvent &evt) |
void | OnGainSlider (wxCommandEvent &evt) |
void | OnLinkCheckbox (wxCommandEvent &evt) |
void | UpdateGain (double oldVal, int control) |
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 {} |
EffectBassTrebleSettings | mSettings |
wxSlider * | mBassS |
wxSlider * | mTrebleS |
wxSlider * | mGainS |
wxTextCtrl * | mBassT |
wxTextCtrl * | mTrebleT |
wxTextCtrl * | mGainT |
wxCheckBox * | mLinkCheckBox |
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 55 of file BassTreble.cpp.
|
inline |
Definition at line 58 of file BassTreble.cpp.
|
virtualdefault |
|
inline |
Definition at line 101 of file BassTreble.cpp.
References EffectUIValidator::EnableApply(), and mUIParent.
|
inline |
Definition at line 96 of file BassTreble.cpp.
References EffectUIValidator::EnableApply(), and mUIParent.
|
inline |
void EffectBassTreble::Validator::OnBassSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 572 of file BassTreble.cpp.
References EffectBassTreble::Bass, kBass, EffectParameter< Structure, Member, Type, Value >::scale, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
void EffectBassTreble::Validator::OnBassText | ( | wxCommandEvent & | evt | ) |
Definition at line 517 of file BassTreble.cpp.
References EffectBassTreble::Bass, kBass, EffectParameter< Structure, Member, Type, Value >::scale, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
void EffectBassTreble::Validator::OnGainSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 606 of file BassTreble.cpp.
References EffectBassTreble::Gain, EffectParameter< Structure, Member, Type, Value >::scale, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
void EffectBassTreble::Validator::OnGainText | ( | wxCommandEvent & | evt | ) |
Definition at line 557 of file BassTreble.cpp.
References EffectBassTreble::Gain, EffectParameter< Structure, Member, Type, Value >::scale, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
void EffectBassTreble::Validator::OnLinkCheckbox | ( | wxCommandEvent & | evt | ) |
Definition at line 619 of file BassTreble.cpp.
References Effect::ValidateUI().
Referenced by PopulateOrExchange().
void EffectBassTreble::Validator::OnTrebleSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 589 of file BassTreble.cpp.
References kTreble, EffectParameter< Structure, Member, Type, Value >::scale, EffectBassTreble::Treble, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
void EffectBassTreble::Validator::OnTrebleText | ( | wxCommandEvent & | evt | ) |
Definition at line 537 of file BassTreble.cpp.
References kTreble, EffectParameter< Structure, Member, Type, Value >::scale, EffectBassTreble::Treble, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
void EffectBassTreble::Validator::PopulateOrExchange | ( | ShuttleGui & | S | ) |
Definition at line 282 of file BassTreble.cpp.
References EffectBassTreble::Bass, EffectParameter< Structure, Member, Type, Value >::def, EffectBassTreble::Gain, EffectBassTreble::Link, EffectParameter< Structure, Member, Type, Value >::max, EffectParameter< Structure, Member, Type, Value >::min, Effect::mUIParent, OnBassSlider(), OnBassText(), OnGainSlider(), OnGainText(), OnLinkCheckbox(), OnTrebleSlider(), OnTrebleText(), S, EffectParameter< Structure, Member, Type, Value >::scale, EffectBassTreble::Treble, XO(), and XXO().
void EffectBassTreble::Validator::UpdateGain | ( | double | oldVal, |
int | control | ||
) |
Definition at line 629 of file BassTreble.cpp.
References EffectBassTreble::Gain, kBass, EffectParameter< Structure, Member, Type, Value >::max, min(), and EffectParameter< Structure, Member, Type, Value >::min.
|
overridevirtual |
Update appearance of the panel for changes in settings.
Default implementation does nothing, returns true
Reimplemented from EffectUIValidator.
Definition at line 362 of file BassTreble.cpp.
References EffectBassTreble::Bass, EffectBassTreble::Gain, EffectWithSettings< EffectBassTrebleSettings, PerTrackEffect >::GetSettings(), Effect::mUIParent, EffectParameter< Structure, Member, Type, Value >::scale, settings(), and EffectBassTreble::Treble.
|
overridevirtual |
Get settings data from the panel; may make error dialogs and return false.
Implements EffectUIValidator.
Definition at line 652 of file BassTreble.cpp.
References EffectWithSettings< EffectBassTrebleSettings, PerTrackEffect >::GetSettings(), Effect::mUIParent, and settings().
wxSlider* EffectBassTreble::Validator::mBassS |
Definition at line 75 of file BassTreble.cpp.
wxTextCtrl* EffectBassTreble::Validator::mBassT |
Definition at line 79 of file BassTreble.cpp.
wxSlider* EffectBassTreble::Validator::mGainS |
Definition at line 77 of file BassTreble.cpp.
wxTextCtrl* EffectBassTreble::Validator::mGainT |
Definition at line 81 of file BassTreble.cpp.
wxCheckBox* EffectBassTreble::Validator::mLinkCheckBox |
Definition at line 83 of file BassTreble.cpp.
EffectBassTrebleSettings EffectBassTreble::Validator::mSettings |
Definition at line 73 of file BassTreble.cpp.
wxSlider* EffectBassTreble::Validator::mTrebleS |
Definition at line 76 of file BassTreble.cpp.
wxTextCtrl* EffectBassTreble::Validator::mTrebleT |
Definition at line 80 of file BassTreble.cpp.
wxWeakRef<wxWindow> EffectBassTreble::Validator::mUIParent {} |
Definition at line 72 of file BassTreble.cpp.
Referenced by EnableApplyFromTransferDataFromWindow(), and EnableApplyFromValidate().