Audacity 3.2.0
|
Public Member Functions | |
Editor (const EffectUIServices &effect, EffectSettingsAccess &access, const DtmfSettings &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 | 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 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 | |
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 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 33 of file DtmfGen.cpp.
|
inline |
Definition at line 36 of file DtmfGen.cpp.
|
virtualdefault |
void EffectDtmf::Editor::DoUpdateUI | ( | ) |
Definition at line 204 of file DtmfGen.cpp.
void EffectDtmf::Editor::OnDuration | ( | wxCommandEvent & | evt | ) |
Definition at line 233 of file DtmfGen.cpp.
References settings().
Referenced by PopulateOrExchange().
void EffectDtmf::Editor::OnDutyCycle | ( | wxCommandEvent & | evt | ) |
Definition at line 244 of file DtmfGen.cpp.
References DtmfBase::DutyCycle, EffectParameter< Structure, Member, Type, Value >::scale, and settings().
Referenced by PopulateOrExchange().
void EffectDtmf::Editor::OnSequence | ( | wxCommandEvent & | evt | ) |
Definition at line 222 of file DtmfGen.cpp.
References settings().
Referenced by PopulateOrExchange().
void EffectDtmf::Editor::PopulateOrExchange | ( | ShuttleGui & | S, |
const EffectSettings & | settings, | ||
double | projectRate | ||
) |
Definition at line 65 of file DtmfGen.cpp.
References DtmfBase::Amplitude, NumericTextCtrl::Options::AutoPos(), EffectEditor::BindTo(), DtmfBase::DutyCycle, DtmfBase::kSymbols, EffectParameter< Structure, Member, Type, Value >::max, mDtmfDurationT, mDtmfDutyCycleS, mDtmfDutyT, mDtmfSequenceT, mDtmfSilenceT, mDtmfToneT, EffectParameter< Structure, Member, Type, Value >::min, mSettings, NumericConverterType_TIME(), OnDuration(), OnDutyCycle(), OnSequence(), S, safenew, FormatterContext::SampleRateContext(), EffectParameter< Structure, Member, Type, Value >::scale, settings(), size, wxT(), XO(), and XXO().
|
overridevirtual |
Update appearance of the panel for changes in settings.
Default implementation does nothing, returns true
Reimplemented from EffectEditor.
Definition at line 170 of file DtmfGen.cpp.
References DtmfBase::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 EffectEditor.
Definition at line 187 of file DtmfGen.cpp.
References DtmfBase::DutyCycle, EffectParameter< Structure, Member, Type, Value >::scale, and settings().
NumericTextCtrl* EffectDtmf::Editor::mDtmfDurationT |
Definition at line 59 of file DtmfGen.cpp.
Referenced by PopulateOrExchange().
wxSlider* EffectDtmf::Editor::mDtmfDutyCycleS |
Definition at line 58 of file DtmfGen.cpp.
Referenced by PopulateOrExchange().
wxStaticText* EffectDtmf::Editor::mDtmfDutyT |
Definition at line 62 of file DtmfGen.cpp.
Referenced by PopulateOrExchange().
wxTextCtrl* EffectDtmf::Editor::mDtmfSequenceT |
Definition at line 57 of file DtmfGen.cpp.
Referenced by PopulateOrExchange().
wxStaticText* EffectDtmf::Editor::mDtmfSilenceT |
Definition at line 61 of file DtmfGen.cpp.
Referenced by PopulateOrExchange().
wxStaticText* EffectDtmf::Editor::mDtmfToneT |
Definition at line 60 of file DtmfGen.cpp.
Referenced by PopulateOrExchange().
DtmfSettings EffectDtmf::Editor::mSettings |
Definition at line 55 of file DtmfGen.cpp.
Referenced by PopulateOrExchange().