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 26 of file Phaser.cpp.
|
inline |
Definition at line 29 of file Phaser.cpp.
|
virtualdefault |
|
inline |
Definition at line 82 of file Phaser.cpp.
References EffectEditor::EnableApply(), and mUIParent.
|
inline |
Definition at line 77 of file Phaser.cpp.
References EffectEditor::EnableApply(), and mUIParent.
void EffectPhaser::Editor::OnDepthSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 318 of file Phaser.cpp.
References PhaserBase::Depth, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnDepthText | ( | wxCommandEvent & | evt | ) |
Definition at line 418 of file Phaser.cpp.
References PhaserBase::Depth, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnDryWetSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 278 of file Phaser.cpp.
References PhaserBase::DryWet, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnDryWetText | ( | wxCommandEvent & | evt | ) |
Definition at line 373 of file Phaser.cpp.
References PhaserBase::DryWet, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnFeedbackSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 330 of file Phaser.cpp.
References PhaserBase::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 433 of file Phaser.cpp.
References PhaserBase::Feedback, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnFreqSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 290 of file Phaser.cpp.
References PhaserBase::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 388 of file Phaser.cpp.
References PhaserBase::Freq, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnGainSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 346 of file Phaser.cpp.
References PhaserBase::OutGain, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnGainText | ( | wxCommandEvent & | evt | ) |
Definition at line 448 of file Phaser.cpp.
References PhaserBase::OutGain, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnPhaseSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 303 of file Phaser.cpp.
References EffectParameter< Structure, Member, Type, Value >::max, PhaserBase::Phase, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnPhaseText | ( | wxCommandEvent & | evt | ) |
Definition at line 403 of file Phaser.cpp.
References PhaserBase::Phase, EffectParameter< Structure, Member, Type, Value >::scale, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnStagesSlider | ( | wxCommandEvent & | evt | ) |
Definition at line 266 of file Phaser.cpp.
References EffectParameter< Structure, Member, Type, Value >::scale, PhaserBase::Stages, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::OnStagesText | ( | wxCommandEvent & | evt | ) |
Definition at line 358 of file Phaser.cpp.
References EffectParameter< Structure, Member, Type, Value >::scale, PhaserBase::Stages, and BasicEffectUIServices::ValidateUI().
Referenced by PopulateOrExchange().
void EffectPhaser::Editor::PopulateOrExchange | ( | ShuttleGui & | S | ) |
Definition at line 102 of file Phaser.cpp.
References EffectEditor::BindTo(), EffectParameter< Structure, Member, Type, Value >::def, PhaserBase::Depth, PhaserBase::DryWet, PhaserBase::Feedback, PhaserBase::Freq, EffectParameter< Structure, Member, Type, Value >::max, mDepthS, mDepthT, mDryWetS, mDryWetT, mFeedbackS, mFeedbackT, mFreqS, mFreqT, EffectParameter< Structure, Member, Type, Value >::min, mOutGainS, mOutGainT, mPhaseS, mPhaseT, mSettings, mStagesS, mStagesT, mUIParent, OnDepthSlider(), OnDepthText(), OnDryWetSlider(), OnDryWetText(), OnFeedbackSlider(), OnFeedbackText(), OnFreqSlider(), OnFreqText(), OnGainSlider(), OnGainText(), OnPhaseSlider(), OnPhaseText(), OnStagesSlider(), OnStagesText(), PhaserBase::OutGain, PhaserBase::Phase, S, EffectParameter< Structure, Member, Type, Value >::scale, PhaserBase::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 212 of file Phaser.cpp.
References PhaserBase::Depth, PhaserBase::DryWet, PhaserBase::Feedback, PhaserBase::Freq, EffectWithSettings< EffectPhaserSettings, PerTrackEffect >::GetSettings(), PhaserBase::OutGain, PhaserBase::Phase, EffectParameter< Structure, Member, Type, Value >::scale, settings(), and PhaserBase::Stages.
|
overridevirtual |
Get settings data from the panel; may make error dialogs and return false.
Implements EffectEditor.
Definition at line 236 of file Phaser.cpp.
References EffectWithSettings< EffectPhaserSettings, PerTrackEffect >::GetSettings(), and settings().
wxSlider* EffectPhaser::Editor::mDepthS |
Definition at line 56 of file Phaser.cpp.
Referenced by PopulateOrExchange().
wxTextCtrl* EffectPhaser::Editor::mDepthT |
Definition at line 48 of file Phaser.cpp.
Referenced by PopulateOrExchange().
wxSlider* EffectPhaser::Editor::mDryWetS |
Definition at line 53 of file Phaser.cpp.
Referenced by PopulateOrExchange().
wxTextCtrl* EffectPhaser::Editor::mDryWetT |
Definition at line 45 of file Phaser.cpp.
Referenced by PopulateOrExchange().
wxSlider* EffectPhaser::Editor::mFeedbackS |
Definition at line 57 of file Phaser.cpp.
Referenced by PopulateOrExchange().
wxTextCtrl* EffectPhaser::Editor::mFeedbackT |
Definition at line 49 of file Phaser.cpp.
Referenced by PopulateOrExchange().
wxSlider* EffectPhaser::Editor::mFreqS |
Definition at line 54 of file Phaser.cpp.
Referenced by PopulateOrExchange().
wxTextCtrl* EffectPhaser::Editor::mFreqT |
Definition at line 46 of file Phaser.cpp.
Referenced by PopulateOrExchange().
wxSlider* EffectPhaser::Editor::mOutGainS |
Definition at line 58 of file Phaser.cpp.
Referenced by PopulateOrExchange().
wxTextCtrl* EffectPhaser::Editor::mOutGainT |
Definition at line 50 of file Phaser.cpp.
Referenced by PopulateOrExchange().
wxSlider* EffectPhaser::Editor::mPhaseS |
Definition at line 55 of file Phaser.cpp.
Referenced by PopulateOrExchange().
wxTextCtrl* EffectPhaser::Editor::mPhaseT |
Definition at line 47 of file Phaser.cpp.
Referenced by PopulateOrExchange().
EffectPhaserSettings EffectPhaser::Editor::mSettings |
Definition at line 42 of file Phaser.cpp.
Referenced by PopulateOrExchange().
wxSlider* EffectPhaser::Editor::mStagesS |
Definition at line 52 of file Phaser.cpp.
Referenced by PopulateOrExchange().
wxTextCtrl* EffectPhaser::Editor::mStagesT |
Definition at line 44 of file Phaser.cpp.
Referenced by PopulateOrExchange().
wxWeakRef<wxWindow> EffectPhaser::Editor::mUIParent |
Definition at line 41 of file Phaser.cpp.
Referenced by EnableApplyFromTransferDataFromWindow(), EnableApplyFromValidate(), and PopulateOrExchange().