![]() |
Audacity 3.2.0
|
Public Member Functions | |
| Validator (EffectUIClientInterface &effect, EffectDistortion::Instance &instance, EffectSettingsAccess &access, const EffectDistortionSettings &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 | OnTypeChoice (wxCommandEvent &evt) |
| void | OnDCBlockCheckbox (wxCommandEvent &evt) |
| void | OnThresholdText (wxCommandEvent &evt) |
| void | OnThresholdSlider (wxCommandEvent &evt) |
| void | OnNoiseFloorText (wxCommandEvent &evt) |
| void | OnNoiseFloorSlider (wxCommandEvent &evt) |
| void | OnParam1Text (wxCommandEvent &evt) |
| void | OnParam1Slider (wxCommandEvent &evt) |
| void | OnParam2Text (wxCommandEvent &evt) |
| void | OnParam2Slider (wxCommandEvent &evt) |
| void | OnRepeatsText (wxCommandEvent &evt) |
| void | OnRepeatsSlider (wxCommandEvent &evt) |
| EffectDistortionState & | GetState () |
| void | UpdateControl (control id, bool enable, TranslatableString name) |
| void | UpdateUIControls () |
| void | UpdateControlText (wxTextCtrl *textCtrl, wxString &string, bool enabled) |
Public Member Functions inherited from EffectUIValidator | |
| 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 () |
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 | |
| wxChoice * | mTypeChoiceCtrl |
| wxTextCtrl * | mThresholdT |
| wxTextCtrl * | mNoiseFloorT |
| wxTextCtrl * | mParam1T |
| wxTextCtrl * | mParam2T |
| wxTextCtrl * | mRepeatsT |
| wxSlider * | mThresholdS |
| wxSlider * | mNoiseFloorS |
| wxSlider * | mParam1S |
| wxSlider * | mParam2S |
| wxSlider * | mRepeatsS |
| wxCheckBox * | mDCBlockCheckBox |
| wxStaticText * | mThresholdTxt |
| wxStaticText * | mNoiseFloorTxt |
| wxStaticText * | mParam1Txt |
| wxStaticText * | mParam2Txt |
| wxStaticText * | mRepeatsTxt |
| wxString | mOldThresholdTxt |
| wxString | mOldmNoiseFloorTxt |
| wxString | mOldParam1Txt |
| wxString | mOldParam2Txt |
| wxString | mOldRepeatsTxt |
| EffectDistortionSettings | mSettings |
| wxWeakRef< wxWindow > | mUIParent {} |
| EffectDistortion::Instance & | mInstance |
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 EffectUIValidator | |
| 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 EffectUIValidator | |
| static constexpr int | kPlayID = 20102 |
Static Public Attributes inherited from Observer::Publisher< EffectSettingChanged > | |
| static constexpr bool | notifies_all |
Protected Member Functions inherited from EffectUIValidator | |
| 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 EffectUIValidator | |
| EffectUIClientInterface & | mEffect |
| EffectSettingsAccess & | mAccess |
| bool | mUIClosed { false } |
Definition at line 129 of file Distortion.cpp.
|
inline |
Definition at line 132 of file Distortion.cpp.
|
virtualdefault |
|
inline |
| EffectDistortionState & EffectDistortion::Validator::GetState | ( | ) |
Definition at line 316 of file Distortion.cpp.
| void EffectDistortion::Validator::OnDCBlockCheckbox | ( | wxCommandEvent & | evt | ) |
Definition at line 770 of file Distortion.cpp.
References Effect::ValidateUI().
Referenced by PopulateOrExchange().
| void EffectDistortion::Validator::OnNoiseFloorSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 821 of file Distortion.cpp.
References Effect::ValidateUI().
Referenced by PopulateOrExchange().
| void EffectDistortion::Validator::OnNoiseFloorText | ( | wxCommandEvent & | evt | ) |
Definition at line 810 of file Distortion.cpp.
References Effect::ValidateUI().
Referenced by PopulateOrExchange().
| void EffectDistortion::Validator::OnParam1Slider | ( | wxCommandEvent & | evt | ) |
Definition at line 844 of file Distortion.cpp.
References Effect::ValidateUI().
Referenced by PopulateOrExchange().
| void EffectDistortion::Validator::OnParam1Text | ( | wxCommandEvent & | evt | ) |
Definition at line 833 of file Distortion.cpp.
References Effect::ValidateUI().
Referenced by PopulateOrExchange().
| void EffectDistortion::Validator::OnParam2Slider | ( | wxCommandEvent & | evt | ) |
Definition at line 866 of file Distortion.cpp.
References Effect::ValidateUI().
Referenced by PopulateOrExchange().
| void EffectDistortion::Validator::OnParam2Text | ( | wxCommandEvent & | evt | ) |
Definition at line 855 of file Distortion.cpp.
References Effect::ValidateUI().
Referenced by PopulateOrExchange().
| void EffectDistortion::Validator::OnRepeatsSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 888 of file Distortion.cpp.
References Effect::ValidateUI().
Referenced by PopulateOrExchange().
| void EffectDistortion::Validator::OnRepeatsText | ( | wxCommandEvent & | evt | ) |
Definition at line 877 of file Distortion.cpp.
References Effect::ValidateUI().
Referenced by PopulateOrExchange().
| void EffectDistortion::Validator::OnThresholdSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 795 of file Distortion.cpp.
References DB_TO_LINEAR, LINEAR_TO_DB, EffectParameter< Structure, Member, Type, Value >::min, EffectParameter< Structure, Member, Type, Value >::scale, EffectDistortion::Threshold_dB, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
| void EffectDistortion::Validator::OnThresholdText | ( | wxCommandEvent & | evt | ) |
Definition at line 783 of file Distortion.cpp.
References DB_TO_LINEAR, EffectParameter< Structure, Member, Type, Value >::scale, EffectDistortion::Threshold_dB, and Effect::ValidateUI().
Referenced by PopulateOrExchange().
| void EffectDistortion::Validator::OnTypeChoice | ( | wxCommandEvent & | evt | ) |
Definition at line 760 of file Distortion.cpp.
References Effect::ValidateUI().
Referenced by PopulateOrExchange().
| void EffectDistortion::Validator::PopulateOrExchange | ( | ShuttleGui & | S | ) |
Definition at line 465 of file Distortion.cpp.
References DB_TO_LINEAR, EffectDistortion::DCBlock, EffectParameter< Structure, Member, Type, Value >::def, defaultLabel(), EffectDistortion::kTableTypeStrings, EffectParameter< Structure, Member, Type, Value >::max, EffectParameter< Structure, Member, Type, Value >::min, Msgids(), Effect::mUIParent, EffectDistortion::NoiseFloor, EffectDistortion::nTableTypes, OnDCBlockCheckbox(), OnNoiseFloorSlider(), OnNoiseFloorText(), OnParam1Slider(), OnParam1Text(), OnParam2Slider(), OnParam2Text(), OnRepeatsSlider(), OnRepeatsText(), OnThresholdSlider(), OnThresholdText(), OnTypeChoice(), EffectDistortion::Param1, EffectDistortion::Param2, EffectDistortion::Repeats, S, EffectParameter< Structure, Member, Type, Value >::scale, EffectDistortion::Threshold_dB, wxT(), XO(), and XXO().
| void EffectDistortion::Validator::UpdateControl | ( | control | id, |
| bool | enable, | ||
| TranslatableString | name | ||
| ) |
Definition at line 1071 of file Distortion.cpp.
References DB_TO_LINEAR, EffectDistortion::ID_DCBlock, EffectDistortion::ID_NoiseFloor, EffectDistortion::ID_Param1, EffectDistortion::ID_Param2, EffectDistortion::ID_Repeats, EffectDistortion::ID_Threshold, TranslatableString::Join(), name, EffectParameter< Structure, Member, Type, Value >::scale, EffectDistortion::Threshold_dB, TranslatableString::Translation(), wxT(), and XO().
| void EffectDistortion::Validator::UpdateControlText | ( | wxTextCtrl * | textCtrl, |
| wxString & | string, | ||
| bool | enabled | ||
| ) |
Definition at line 1166 of file Distortion.cpp.
References wxT().
|
overridevirtual |
Update appearance of the panel for changes in settings.
Default implementation does nothing, returns true
Reimplemented from EffectUIValidator.
Definition at line 629 of file Distortion.cpp.
References DB_TO_LINEAR, Effect::mUIParent, EffectParameter< Structure, Member, Type, Value >::scale, and EffectDistortion::Threshold_dB.
| void EffectDistortion::Validator::UpdateUIControls | ( | ) |
Definition at line 899 of file Distortion.cpp.
References defaultLabel(), EffectDistortion::ID_DCBlock, EffectDistortion::ID_NoiseFloor, EffectDistortion::ID_Param1, EffectDistortion::ID_Param2, EffectDistortion::ID_Repeats, EffectDistortion::ID_Threshold, EffectDistortion::kCubic, EffectDistortion::kEvenHarmonics, EffectDistortion::kExpCurve, EffectDistortion::kHalfSinCurve, EffectDistortion::kHardClip, EffectDistortion::kHardLimiter, EffectDistortion::kLeveller, EffectDistortion::kLogCurve, EffectDistortion::kRectifier, EffectDistortion::kSinCurve, EffectDistortion::kSoftClip, and XO().
|
overridevirtual |
Get settings data from the panel; may make error dialogs and return false.
mUIParent()->Validate() ||
Implements EffectUIValidator.
Definition at line 202 of file Distortion.cpp.
References EffectWithSettings< EffectDistortionSettings, PerTrackEffect >::GetSettings(), EffectUIValidator::mAccess, EffectSettingsAccess::ModifySettings(), mSettings, mUIParent, and settings().
| wxCheckBox* EffectDistortion::Validator::mDCBlockCheckBox |
Definition at line 175 of file Distortion.cpp.
| EffectDistortion::Instance& EffectDistortion::Validator::mInstance |
Definition at line 198 of file Distortion.cpp.
| wxSlider* EffectDistortion::Validator::mNoiseFloorS |
Definition at line 170 of file Distortion.cpp.
| wxTextCtrl* EffectDistortion::Validator::mNoiseFloorT |
Definition at line 164 of file Distortion.cpp.
| wxStaticText* EffectDistortion::Validator::mNoiseFloorTxt |
Definition at line 178 of file Distortion.cpp.
| wxString EffectDistortion::Validator::mOldmNoiseFloorTxt |
Definition at line 184 of file Distortion.cpp.
| wxString EffectDistortion::Validator::mOldParam1Txt |
Definition at line 185 of file Distortion.cpp.
| wxString EffectDistortion::Validator::mOldParam2Txt |
Definition at line 186 of file Distortion.cpp.
| wxString EffectDistortion::Validator::mOldRepeatsTxt |
Definition at line 187 of file Distortion.cpp.
| wxString EffectDistortion::Validator::mOldThresholdTxt |
Definition at line 183 of file Distortion.cpp.
| wxSlider* EffectDistortion::Validator::mParam1S |
Definition at line 171 of file Distortion.cpp.
| wxTextCtrl* EffectDistortion::Validator::mParam1T |
Definition at line 165 of file Distortion.cpp.
| wxStaticText* EffectDistortion::Validator::mParam1Txt |
Definition at line 179 of file Distortion.cpp.
| wxSlider* EffectDistortion::Validator::mParam2S |
Definition at line 172 of file Distortion.cpp.
| wxTextCtrl* EffectDistortion::Validator::mParam2T |
Definition at line 166 of file Distortion.cpp.
| wxStaticText* EffectDistortion::Validator::mParam2Txt |
Definition at line 180 of file Distortion.cpp.
| wxSlider* EffectDistortion::Validator::mRepeatsS |
Definition at line 173 of file Distortion.cpp.
| wxTextCtrl* EffectDistortion::Validator::mRepeatsT |
Definition at line 167 of file Distortion.cpp.
| wxStaticText* EffectDistortion::Validator::mRepeatsTxt |
Definition at line 181 of file Distortion.cpp.
| EffectDistortionSettings EffectDistortion::Validator::mSettings |
Definition at line 189 of file Distortion.cpp.
Referenced by ValidateUI().
| wxSlider* EffectDistortion::Validator::mThresholdS |
Definition at line 169 of file Distortion.cpp.
| wxTextCtrl* EffectDistortion::Validator::mThresholdT |
Definition at line 163 of file Distortion.cpp.
| wxStaticText* EffectDistortion::Validator::mThresholdTxt |
Definition at line 177 of file Distortion.cpp.
| wxChoice* EffectDistortion::Validator::mTypeChoiceCtrl |
Definition at line 162 of file Distortion.cpp.
| wxWeakRef<wxWindow> EffectDistortion::Validator::mUIParent {} |
Definition at line 197 of file Distortion.cpp.
Referenced by ValidateUI().