Audacity 3.2.0
|
Public Member Functions | |
Editor (const EffectUIServices &services, EffectSettingsAccess &access, const BassTrebleSettings &settings) | |
virtual | ~Editor ()=default |
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 () |
Public Member Functions inherited from EffectEditor | |
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... | |
Public Attributes | |
wxWeakRef< wxWindow > | mUIParent {} |
BassTrebleSettings | mSettings |
wxSlider * | mBassS |
wxSlider * | mTrebleS |
wxSlider * | mGainS |
wxTextCtrl * | mBassT |
wxTextCtrl * | mTrebleT |
wxTextCtrl * | mGainT |
wxCheckBox * | mLinkCheckBox |
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... | |
Static Public Member Functions inherited from EffectEditor | |
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 inherited from EffectEditor | |
static constexpr int | kPlayID = 20102 |
Static Public Attributes inherited from Observer::Publisher< EffectSettingChanged > | |
static constexpr bool | notifies_all |
Protected Member Functions inherited from EffectEditor | |
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 inherited from EffectEditor | |
const EffectUIServices & | mUIServices |
EffectSettingsAccess & | mAccess |
bool | mUIClosed { false } |
Definition at line 35 of file BassTreble.cpp.
|
inline |
Definition at line 38 of file BassTreble.cpp.
|
virtualdefault |
|
inline |
Definition at line 79 of file BassTreble.cpp.
References EffectEditor::EnableApply(), and mUIParent.
|
inline |
Definition at line 74 of file BassTreble.cpp.
References EffectEditor::EnableApply(), and mUIParent.
void EffectBassTreble::Editor::OnBassSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 261 of file BassTreble.cpp.
References BassTrebleBase::Bass, kBass, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectBassTreble::Editor::OnBassText | ( | wxCommandEvent & | evt | ) |
Definition at line 206 of file BassTreble.cpp.
References BassTrebleBase::Bass, kBass, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectBassTreble::Editor::OnGainSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 295 of file BassTreble.cpp.
References BassTrebleBase::Gain, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectBassTreble::Editor::OnGainText | ( | wxCommandEvent & | evt | ) |
Definition at line 246 of file BassTreble.cpp.
References BassTrebleBase::Gain, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectBassTreble::Editor::OnLinkCheckbox | ( | wxCommandEvent & | evt | ) |
Definition at line 308 of file BassTreble.cpp.
References BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectBassTreble::Editor::OnTrebleSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 278 of file BassTreble.cpp.
References kTreble, EffectParameter< Structure, Member, Type, Value >::scale, BassTrebleBase::Treble, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectBassTreble::Editor::OnTrebleText | ( | wxCommandEvent & | evt | ) |
Definition at line 226 of file BassTreble.cpp.
References kTreble, EffectParameter< Structure, Member, Type, Value >::scale, BassTrebleBase::Treble, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectBassTreble::Editor::PopulateOrExchange | ( | ShuttleGui & | S | ) |
Definition at line 106 of file BassTreble.cpp.
References BassTrebleBase::Bass, EffectEditor::BindTo(), EffectParameter< Structure, Member, Type, Value >::def, BassTrebleBase::Gain, BassTrebleBase::Link, EffectParameter< Structure, Member, Type, Value >::max, mBassS, mBassT, mGainS, mGainT, EffectParameter< Structure, Member, Type, Value >::min, mLinkCheckBox, mSettings, mTrebleS, mTrebleT, mUIParent, OnBassSlider(), OnBassText(), OnGainSlider(), OnGainText(), OnLinkCheckbox(), OnTrebleSlider(), OnTrebleText(), S, EffectParameter< Structure, Member, Type, Value >::scale, BassTrebleBase::Treble, XO(), and XXO().
void EffectBassTreble::Editor::UpdateGain | ( | double | oldVal, |
int | control | ||
) |
Definition at line 318 of file BassTreble.cpp.
References BassTrebleBase::Gain, kBass, EffectParameter< Structure, Member, Type, Value >::max, EffectParameter< Structure, Member, Type, Value >::min, and min().
|
overridevirtual |
Update appearance of the panel for changes in settings.
Default implementation does nothing, returns true
Reimplemented from EffectEditor.
Definition at line 186 of file BassTreble.cpp.
References BassTrebleBase::Bass, BassTrebleBase::Gain, EffectWithSettings< BassTrebleSettings, PerTrackEffect >::GetSettings(), EffectParameter< Structure, Member, Type, Value >::scale, settings(), and BassTrebleBase::Treble.
|
overridevirtual |
Get settings data from the panel; may make error dialogs and return false.
Implements EffectEditor.
Definition at line 338 of file BassTreble.cpp.
References EffectWithSettings< BassTrebleSettings, PerTrackEffect >::GetSettings(), and settings().
wxSlider* EffectBassTreble::Editor::mBassS |
Definition at line 53 of file BassTreble.cpp.
Referenced by PopulateOrExchange().
wxTextCtrl* EffectBassTreble::Editor::mBassT |
Definition at line 57 of file BassTreble.cpp.
Referenced by PopulateOrExchange().
wxSlider* EffectBassTreble::Editor::mGainS |
Definition at line 55 of file BassTreble.cpp.
Referenced by PopulateOrExchange().
wxTextCtrl* EffectBassTreble::Editor::mGainT |
Definition at line 59 of file BassTreble.cpp.
Referenced by PopulateOrExchange().
wxCheckBox* EffectBassTreble::Editor::mLinkCheckBox |
Definition at line 61 of file BassTreble.cpp.
Referenced by PopulateOrExchange().
BassTrebleSettings EffectBassTreble::Editor::mSettings |
Definition at line 51 of file BassTreble.cpp.
Referenced by PopulateOrExchange().
wxSlider* EffectBassTreble::Editor::mTrebleS |
Definition at line 54 of file BassTreble.cpp.
Referenced by PopulateOrExchange().
wxTextCtrl* EffectBassTreble::Editor::mTrebleT |
Definition at line 58 of file BassTreble.cpp.
Referenced by PopulateOrExchange().
wxWeakRef<wxWindow> EffectBassTreble::Editor::mUIParent {} |
Definition at line 50 of file BassTreble.cpp.
Referenced by EnableApplyFromTransferDataFromWindow(), EnableApplyFromValidate(), and PopulateOrExchange().