![]() |
Audacity 3.2.0
|
Public Member Functions | |
| Validator (EffectUIClientInterface &effect, EffectSettingsAccess &access, const DtmfSettings &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 | DoUpdateUI () |
| void | PopulateOrExchange (ShuttleGui &S, const EffectSettings &settings, double projectRate) |
| void | OnSequence (wxCommandEvent &evt) |
| void | OnDuration (wxCommandEvent &evt) |
| void | OnDutyCycle (wxCommandEvent &evt) |
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 | |
| DtmfSettings | mSettings |
| wxTextCtrl * | mDtmfSequenceT |
| wxSlider * | mDtmfDutyCycleS |
| NumericTextCtrl * | mDtmfDurationT |
| wxStaticText * | mDtmfToneT |
| wxStaticText * | mDtmfSilenceT |
| wxStaticText * | mDtmfDutyT |
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 291 of file DtmfGen.cpp.
|
inline |
Definition at line 294 of file DtmfGen.cpp.
|
virtualdefault |
| void EffectDtmf::Validator::DoUpdateUI | ( | ) |
Definition at line 645 of file DtmfGen.cpp.
|
inline |
| void EffectDtmf::Validator::OnDuration | ( | wxCommandEvent & | evt | ) |
Definition at line 674 of file DtmfGen.cpp.
References settings().
Referenced by PopulateOrExchange().
| void EffectDtmf::Validator::OnDutyCycle | ( | wxCommandEvent & | evt | ) |
Definition at line 686 of file DtmfGen.cpp.
References EffectDtmf::DutyCycle, EffectParameter< Structure, Member, Type, Value >::scale, and settings().
Referenced by PopulateOrExchange().
| void EffectDtmf::Validator::OnSequence | ( | wxCommandEvent & | evt | ) |
Definition at line 663 of file DtmfGen.cpp.
References settings().
Referenced by PopulateOrExchange().
| void EffectDtmf::Validator::PopulateOrExchange | ( | ShuttleGui & | S, |
| const EffectSettings & | settings, | ||
| double | projectRate | ||
| ) |
Definition at line 325 of file DtmfGen.cpp.
References EffectDtmf::Amplitude, NumericTextCtrl::Options::AutoPos(), EffectDtmf::DutyCycle, kSymbols, EffectParameter< Structure, Member, Type, Value >::max, EffectParameter< Structure, Member, Type, Value >::min, OnDuration(), OnDutyCycle(), OnSequence(), S, safenew, EffectParameter< Structure, Member, Type, Value >::scale, settings(), NumericConverter::TIME, wxT(), 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 433 of file DtmfGen.cpp.
References EffectDtmf::DutyCycle, EffectWithSettings< DtmfSettings, PerTrackEffect >::GetSettings(), EffectParameter< Structure, Member, Type, Value >::scale, and settings().
|
overridevirtual |
Get settings data from the panel; may make error dialogs and return false.
Implements EffectUIValidator.
Definition at line 450 of file DtmfGen.cpp.
References EffectDtmf::DutyCycle, EffectParameter< Structure, Member, Type, Value >::scale, and settings().
| NumericTextCtrl* EffectDtmf::Validator::mDtmfDurationT |
Definition at line 319 of file DtmfGen.cpp.
| wxSlider* EffectDtmf::Validator::mDtmfDutyCycleS |
Definition at line 318 of file DtmfGen.cpp.
| wxStaticText* EffectDtmf::Validator::mDtmfDutyT |
Definition at line 322 of file DtmfGen.cpp.
| wxTextCtrl* EffectDtmf::Validator::mDtmfSequenceT |
Definition at line 317 of file DtmfGen.cpp.
| wxStaticText* EffectDtmf::Validator::mDtmfSilenceT |
Definition at line 321 of file DtmfGen.cpp.
| wxStaticText* EffectDtmf::Validator::mDtmfToneT |
Definition at line 320 of file DtmfGen.cpp.
| DtmfSettings EffectDtmf::Validator::mSettings |
Definition at line 315 of file DtmfGen.cpp.