Audacity 3.2.0
|
Public Member Functions | |
Editor (const EffectUIServices &services, EffectSettingsAccess &access, const EffectPhaserSettings &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 | OnStagesSlider (wxCommandEvent &evt) |
void | OnDryWetSlider (wxCommandEvent &evt) |
void | OnFeedbackSlider (wxCommandEvent &evt) |
void | OnDepthSlider (wxCommandEvent &evt) |
void | OnPhaseSlider (wxCommandEvent &evt) |
void | OnFreqSlider (wxCommandEvent &evt) |
void | OnGainSlider (wxCommandEvent &evt) |
void | OnStagesText (wxCommandEvent &evt) |
void | OnDryWetText (wxCommandEvent &evt) |
void | OnFeedbackText (wxCommandEvent &evt) |
void | OnDepthText (wxCommandEvent &evt) |
void | OnPhaseText (wxCommandEvent &evt) |
void | OnFreqText (wxCommandEvent &evt) |
void | OnGainText (wxCommandEvent &evt) |
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 |
EffectPhaserSettings | mSettings |
wxTextCtrl * | mStagesT |
wxTextCtrl * | mDryWetT |
wxTextCtrl * | mFreqT |
wxTextCtrl * | mPhaseT |
wxTextCtrl * | mDepthT |
wxTextCtrl * | mFeedbackT |
wxTextCtrl * | mOutGainT |
wxSlider * | mStagesS |
wxSlider * | mDryWetS |
wxSlider * | mFreqS |
wxSlider * | mPhaseS |
wxSlider * | mDepthS |
wxSlider * | mFeedbackS |
wxSlider * | mOutGainS |
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 64 of file Phaser.cpp.
|
inline |
Definition at line 67 of file Phaser.cpp.
|
virtualdefault |
|
inline |
Definition at line 120 of file Phaser.cpp.
References EffectEditor::EnableApply(), and mUIParent.
|
inline |
Definition at line 115 of file Phaser.cpp.
References EffectEditor::EnableApply(), and mUIParent.
void EffectPhaser::Editor::OnDepthSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 587 of file Phaser.cpp.
References EffectPhaser::Depth, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnDepthText | ( | wxCommandEvent & | evt | ) |
Definition at line 687 of file Phaser.cpp.
References EffectPhaser::Depth, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnDryWetSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 547 of file Phaser.cpp.
References EffectPhaser::DryWet, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnDryWetText | ( | wxCommandEvent & | evt | ) |
Definition at line 642 of file Phaser.cpp.
References EffectPhaser::DryWet, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnFeedbackSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 599 of file Phaser.cpp.
References EffectPhaser::Feedback, EffectParameter< Structure, Member, Type, Value >::max, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnFeedbackText | ( | wxCommandEvent & | evt | ) |
Definition at line 702 of file Phaser.cpp.
References EffectPhaser::Feedback, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnFreqSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 559 of file Phaser.cpp.
References EffectPhaser::Freq, EffectParameter< Structure, Member, Type, Value >::min, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnFreqText | ( | wxCommandEvent & | evt | ) |
Definition at line 657 of file Phaser.cpp.
References EffectPhaser::Freq, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnGainSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 615 of file Phaser.cpp.
References EffectPhaser::OutGain, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnGainText | ( | wxCommandEvent & | evt | ) |
Definition at line 717 of file Phaser.cpp.
References EffectPhaser::OutGain, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnPhaseSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 572 of file Phaser.cpp.
References EffectParameter< Structure, Member, Type, Value >::max, EffectPhaser::Phase, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnPhaseText | ( | wxCommandEvent & | evt | ) |
Definition at line 672 of file Phaser.cpp.
References EffectPhaser::Phase, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnStagesSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 535 of file Phaser.cpp.
References EffectParameter< Structure, Member, Type, Value >::scale, EffectPhaser::Stages, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnStagesText | ( | wxCommandEvent & | evt | ) |
Definition at line 627 of file Phaser.cpp.
References EffectParameter< Structure, Member, Type, Value >::scale, EffectPhaser::Stages, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::PopulateOrExchange | ( | ShuttleGui & | S | ) |
Definition at line 293 of file Phaser.cpp.
References EffectParameter< Structure, Member, Type, Value >::def, EffectPhaser::Depth, EffectPhaser::DryWet, EffectPhaser::Feedback, EffectPhaser::Freq, EffectParameter< Structure, Member, Type, Value >::max, EffectParameter< Structure, Member, Type, Value >::min, OnDepthSlider(), OnDepthText(), OnDryWetSlider(), OnDryWetText(), OnFeedbackSlider(), OnFeedbackText(), OnFreqSlider(), OnFreqText(), OnGainSlider(), OnGainText(), OnPhaseSlider(), OnPhaseText(), OnStagesSlider(), OnStagesText(), EffectPhaser::OutGain, EffectPhaser::Phase, S, EffectParameter< Structure, Member, Type, Value >::scale, EffectPhaser::Stages, 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 403 of file Phaser.cpp.
References EffectPhaser::Depth, EffectPhaser::DryWet, EffectPhaser::Feedback, EffectPhaser::Freq, EffectWithSettings< EffectPhaserSettings, StatelessPerTrackEffect >::GetSettings(), EffectPhaser::OutGain, EffectPhaser::Phase, EffectParameter< Structure, Member, Type, Value >::scale, settings(), and EffectPhaser::Stages.
|
overridevirtual |
Get settings data from the panel; may make error dialogs and return false.
Implements EffectEditor.
Definition at line 427 of file Phaser.cpp.
References EffectWithSettings< EffectPhaserSettings, StatelessPerTrackEffect >::GetSettings(), and settings().
wxSlider* EffectPhaser::Editor::mDepthS |
Definition at line 94 of file Phaser.cpp.
wxTextCtrl* EffectPhaser::Editor::mDepthT |
Definition at line 86 of file Phaser.cpp.
wxSlider* EffectPhaser::Editor::mDryWetS |
Definition at line 91 of file Phaser.cpp.
wxTextCtrl* EffectPhaser::Editor::mDryWetT |
Definition at line 83 of file Phaser.cpp.
wxSlider* EffectPhaser::Editor::mFeedbackS |
Definition at line 95 of file Phaser.cpp.
wxTextCtrl* EffectPhaser::Editor::mFeedbackT |
Definition at line 87 of file Phaser.cpp.
wxSlider* EffectPhaser::Editor::mFreqS |
Definition at line 92 of file Phaser.cpp.
wxTextCtrl* EffectPhaser::Editor::mFreqT |
Definition at line 84 of file Phaser.cpp.
wxSlider* EffectPhaser::Editor::mOutGainS |
Definition at line 96 of file Phaser.cpp.
wxTextCtrl* EffectPhaser::Editor::mOutGainT |
Definition at line 88 of file Phaser.cpp.
wxSlider* EffectPhaser::Editor::mPhaseS |
Definition at line 93 of file Phaser.cpp.
wxTextCtrl* EffectPhaser::Editor::mPhaseT |
Definition at line 85 of file Phaser.cpp.
EffectPhaserSettings EffectPhaser::Editor::mSettings |
Definition at line 80 of file Phaser.cpp.
wxSlider* EffectPhaser::Editor::mStagesS |
Definition at line 90 of file Phaser.cpp.
wxTextCtrl* EffectPhaser::Editor::mStagesT |
Definition at line 82 of file Phaser.cpp.
wxWeakRef<wxWindow> EffectPhaser::Editor::mUIParent |
Definition at line 79 of file Phaser.cpp.
Referenced by EnableApplyFromTransferDataFromWindow(), and EnableApplyFromValidate().