Audacity 3.2.0
|
#include <EqualizationUI.h>
Public Member Functions | |
EqualizationUI (EffectUIServices &uiServices, const wxWeakRef< wxWindow > &uiParent, const TranslatableString &name, EqualizationCurvesList &curvesList, int options) | |
bool | ValidateUI (EffectSettings &settings) |
std::unique_ptr< EffectEditor > | PopulateOrExchange (ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access, const EffectOutputs *pOutputs) |
bool | TransferDataToWindow (const EffectSettings &settings) |
Private Member Functions | |
template<typename EventTag , typename Class , typename Event > | |
void | BindTo (wxEvtHandler &src, const EventTag &eventType, void(Class::*pmf)(Event &)) |
void | UpdateCurves () |
void | UpdateRuler () |
void | UpdateDraw () |
void | UpdateGraphic () |
void | OnSize (wxSizeEvent &event) |
void | OnInterp (wxCommandEvent &event) |
void | OnSliderM (wxCommandEvent &event) |
void | OnSliderDBMAX (wxCommandEvent &event) |
void | OnSliderDBMIN (wxCommandEvent &event) |
void | OnDrawMode (wxCommandEvent &event) |
void | OnGraphicMode (wxCommandEvent &event) |
void | OnCurve (wxCommandEvent &event) |
void | OnManage (wxCommandEvent &event) |
void | OnClear (wxCommandEvent &event) |
void | OnInvert (wxCommandEvent &event) |
void | OnGridOnOff (wxCommandEvent &event) |
void | OnLinFreq (wxCommandEvent &event) |
void | OnIdle (wxIdleEvent &event) |
Private Attributes | |
EffectUIServices & | mUIServices |
const wxWeakRef< wxWindow > & | mUIParent |
EqualizationCurvesList & | mCurvesList |
TranslatableString | mName |
const int | mOptions |
RulerPanel * | mdBRuler |
RulerPanel * | mFreqRuler |
wxSizer * | szrC |
wxSizer * | szrG |
wxSizer * | szrV |
wxSizer * | szrH |
wxSizer * | szrI |
wxSizer * | szrL |
wxSizer * | szr1 |
wxSizer * | szr2 |
wxSizer * | szr3 |
wxSizer * | szr4 |
wxSizer * | szr5 |
wxSizerItem * | mLeftSpacer |
wxWeakRef< EqualizationPanel > | mPanel {} |
wxRadioButton * | mDraw {} |
wxRadioButton * | mGraphic {} |
wxCheckBox * | mLinFreq |
wxCheckBox * | mGridOnOff |
wxChoice * | mInterpChoice |
wxWeakRef< wxChoice > | mCurve {} |
wxButton * | mManage |
wxStaticText * | mMText |
wxSlider * | mMSlider {} |
wxSlider * | mdBMinSlider |
wxSlider * | mdBMaxSlider |
EqualizationBandSliders | mBands { mCurvesList } |
Definition at line 33 of file EqualizationUI.h.
|
inline |
Definition at line 35 of file EqualizationUI.h.
|
inlineprivate |
Definition at line 56 of file EqualizationUI.h.
Referenced by PopulateOrExchange().
|
private |
Definition at line 803 of file EqualizationUI.cpp.
References EqualizationBandSliders::Flatten(), and mBands.
Referenced by PopulateOrExchange().
|
private |
Definition at line 774 of file EqualizationUI.cpp.
References mCurve, mCurvesList, EqualizationParameters::mDrawMode, EqualizationCurvesList::mParameters, EqualizationCurvesList::setCurve(), and UpdateGraphic().
Referenced by PopulateOrExchange().
|
private |
Definition at line 711 of file EqualizationUI.cpp.
References mCurvesList, EqualizationParameters::mDrawMode, EqualizationCurvesList::mParameters, and UpdateDraw().
Referenced by PopulateOrExchange().
|
private |
Definition at line 717 of file EqualizationUI.cpp.
References mCurvesList, EqualizationParameters::mDrawMode, EqualizationCurvesList::mParameters, and UpdateGraphic().
Referenced by PopulateOrExchange().
|
private |
Definition at line 813 of file EqualizationUI.cpp.
References mCurvesList, EqualizationParameters::mDrawGrid, mGridOnOff, mPanel, and EqualizationCurvesList::mParameters.
Referenced by PopulateOrExchange().
|
private |
Definition at line 845 of file EqualizationUI.cpp.
References mCurve, EqualizationParameters::mCurveName, mCurvesList, and EqualizationCurvesList::mParameters.
|
private |
Definition at line 699 of file EqualizationUI.cpp.
References EqualizationCurvesList::EnvelopeUpdated(), EqualizationBandSliders::GraphicEQ(), mBands, mCurvesList, EqualizationParameters::mDrawMode, mInterpChoice, and EqualizationCurvesList::mParameters.
Referenced by PopulateOrExchange().
|
private |
Definition at line 808 of file EqualizationUI.cpp.
References EqualizationBandSliders::Invert(), and mBands.
Referenced by PopulateOrExchange().
|
private |
Definition at line 819 of file EqualizationUI.cpp.
References EqualizationBandSliders::EnvLinToLog(), EqualizationBandSliders::EnvLogToLin(), EqualizationCurvesList::ForceRecalc(), LinearUpdater::Instance(), LogarithmicUpdater::Instance(), mBands, mCurvesList, mFreqRuler, EqualizationParameters::mLin, mLinFreq, EqualizationCurvesList::mParameters, RulerPanel::ruler, Ruler::SetRange(), and Ruler::SetUpdater().
Referenced by PopulateOrExchange(), and TransferDataToWindow().
|
private |
Definition at line 786 of file EqualizationUI.cpp.
References EqualizationCurvesDialog::GetItem(), mCurve, EqualizationCurvesList::mCurves, mCurvesList, mName, mOptions, mUIParent, EqualizationCurvesList::setCurve(), and UpdateCurves().
Referenced by PopulateOrExchange().
|
private |
Definition at line 693 of file EqualizationUI.cpp.
References mUIParent.
|
private |
Definition at line 757 of file EqualizationUI.cpp.
References _, mCurvesList, EqualizationParameters::mdBMax, mdBMaxSlider, EqualizationCurvesList::mParameters, and UpdateRuler().
Referenced by PopulateOrExchange().
|
private |
Definition at line 743 of file EqualizationUI.cpp.
References _, mCurvesList, EqualizationParameters::mdBMin, mdBMinSlider, EqualizationCurvesList::mParameters, and UpdateRuler().
Referenced by PopulateOrExchange().
|
private |
Definition at line 723 of file EqualizationUI.cpp.
References EqualizationCurvesList::ForceRecalc(), mCurvesList, EqualizationParameters::mM, mMSlider, mMText, EqualizationCurvesList::mParameters, and wxT().
Referenced by PopulateOrExchange().
std::unique_ptr< EffectEditor > EqualizationUI::PopulateOrExchange | ( | ShuttleGui & | S, |
EffectInstance & | instance, | ||
EffectSettingsAccess & | access, | ||
const EffectOutputs * | pOutputs | ||
) |
Definition at line 108 of file EqualizationUI.cpp.
References EqualizationBandSliders::AddBandSliders(), BindTo(), EqualizationCurvesList::ForceRecalc(), EqualizationBandSliders::Init(), IntFormat::Instance(), LinearDBFormat::Instance(), kEqLegacy, kEqOptionCurve, kEqOptionGraphic, EqualizationParameters::kInterpStrings, label, RulerPanel::Options::LabelEdges(), RulerPanel::Options::Log(), mBands, mCurve, EqualizationCurvesList::mCurves, mCurvesList, mdBMaxSlider, mdBMinSlider, mdBRuler, mDraw, mFreqRuler, mGraphic, mGridOnOff, mInterpChoice, mLinFreq, EqualizationParameters::mM, mMSlider, mMText, mOptions, mPanel, EqualizationCurvesList::mParameters, Msgids(), mUIParent, mUIServices, names, EqualizationParameters::nInterpolations, OnClear(), OnCurve(), OnDrawMode(), OnGraphicMode(), OnGridOnOff(), OnInterp(), OnInvert(), OnLinFreq(), OnManage(), OnSliderDBMAX(), OnSliderDBMIN(), OnSliderM(), S, safenew, szr1, szrG, szrH, szrI, szrL, szrV, Verbatim(), wxT(), XO(), and XXO().
Referenced by EffectEqualization::PopulateOrExchange().
bool EqualizationUI::TransferDataToWindow | ( | const EffectSettings & | settings | ) |
Definition at line 475 of file EqualizationUI.cpp.
References kEqLegacy, kEqOptionCurve, kEqOptionGraphic, mCurvesList, mdBMaxSlider, mdBMinSlider, mDraw, mGraphic, mGridOnOff, mInterpChoice, EqualizationParameters::mLin, mLinFreq, mMSlider, mOptions, EqualizationCurvesList::mParameters, mUIParent, OnLinFreq(), szr1, szrG, szrH, szrI, szrL, szrV, UpdateCurves(), UpdateGraphic(), and UpdateRuler().
Referenced by EffectEqualization::TransferDataToWindow().
|
private |
Definition at line 562 of file EqualizationUI.cpp.
References mCurve, EqualizationParameters::mCurveName, EqualizationCurvesList::mCurves, mCurvesList, EqualizationCurvesList::mParameters, and EqualizationCurvesList::setCurve().
Referenced by OnManage(), and TransferDataToWindow().
|
private |
Definition at line 593 of file EqualizationUI.cpp.
References EqualizationCurvesList::EnvelopeUpdated(), EqualizationBandSliders::EnvLogToLin(), flag, EqualizationCurvesList::ForceRecalc(), LinearUpdater::Instance(), mBands, mCurvesList, mFreqRuler, EqualizationParameters::mLin, EqualizationCurvesList::mParameters, mUIParent, RulerPanel::ruler, Ruler::SetRange(), Ruler::SetUpdater(), szrG, szrH, szrI, szrL, and szrV.
Referenced by OnDrawMode().
|
private |
Definition at line 651 of file EqualizationUI.cpp.
References EqualizationBandSliders::EnvLinToLog(), EqualizationBandSliders::ErrMin(), EqualizationBandSliders::GraphicEQ(), LogarithmicUpdater::Instance(), kEqLegacy, mBands, mCurvesList, mFreqRuler, EqualizationParameters::mLin, mOptions, EqualizationCurvesList::mParameters, mUIParent, RulerPanel::ruler, Ruler::SetRange(), Ruler::SetUpdater(), szrG, szrH, szrI, szrL, and szrV.
Referenced by OnCurve(), OnGraphicMode(), and TransferDataToWindow().
|
private |
Definition at line 534 of file EqualizationUI.cpp.
References Ruler::GetMaxSize(), mCurvesList, EqualizationParameters::mdBMin, mdBRuler, mFreqRuler, mPanel, EqualizationCurvesList::mParameters, RulerPanel::ruler, and Ruler::SetRange().
Referenced by OnSliderDBMAX(), OnSliderDBMIN(), and TransferDataToWindow().
bool EqualizationUI::ValidateUI | ( | EffectSettings & | settings | ) |
Definition at line 94 of file EqualizationUI.cpp.
References EqualizationParameters::mCurveName, EqualizationCurvesList::mCurves, mCurvesList, EqualizationCurvesList::mParameters, and EQCurveWriter::SaveCurves().
Referenced by EffectEqualization::ValidateUI().
|
private |
Definition at line 118 of file EqualizationUI.h.
Referenced by OnClear(), OnInterp(), OnInvert(), OnLinFreq(), PopulateOrExchange(), UpdateDraw(), and UpdateGraphic().
|
private |
Definition at line 112 of file EqualizationUI.h.
Referenced by OnCurve(), OnIdle(), OnManage(), PopulateOrExchange(), and UpdateCurves().
|
private |
Definition at line 84 of file EqualizationUI.h.
Referenced by OnCurve(), OnDrawMode(), OnGraphicMode(), OnGridOnOff(), OnIdle(), OnInterp(), OnLinFreq(), OnManage(), OnSliderDBMAX(), OnSliderDBMIN(), OnSliderM(), PopulateOrExchange(), TransferDataToWindow(), UpdateCurves(), UpdateDraw(), UpdateGraphic(), UpdateRuler(), and ValidateUI().
|
private |
Definition at line 117 of file EqualizationUI.h.
Referenced by OnSliderDBMAX(), PopulateOrExchange(), and TransferDataToWindow().
|
private |
Definition at line 116 of file EqualizationUI.h.
Referenced by OnSliderDBMIN(), PopulateOrExchange(), and TransferDataToWindow().
|
private |
Definition at line 88 of file EqualizationUI.h.
Referenced by PopulateOrExchange(), and UpdateRuler().
|
private |
Definition at line 107 of file EqualizationUI.h.
Referenced by PopulateOrExchange(), and TransferDataToWindow().
|
private |
Definition at line 89 of file EqualizationUI.h.
Referenced by OnLinFreq(), PopulateOrExchange(), UpdateDraw(), UpdateGraphic(), and UpdateRuler().
|
private |
Definition at line 108 of file EqualizationUI.h.
Referenced by PopulateOrExchange(), and TransferDataToWindow().
|
private |
Definition at line 110 of file EqualizationUI.h.
Referenced by OnGridOnOff(), PopulateOrExchange(), and TransferDataToWindow().
|
private |
Definition at line 111 of file EqualizationUI.h.
Referenced by OnInterp(), PopulateOrExchange(), and TransferDataToWindow().
|
private |
Definition at line 103 of file EqualizationUI.h.
|
private |
Definition at line 109 of file EqualizationUI.h.
Referenced by OnLinFreq(), PopulateOrExchange(), and TransferDataToWindow().
|
private |
Definition at line 113 of file EqualizationUI.h.
|
private |
Definition at line 115 of file EqualizationUI.h.
Referenced by OnSliderM(), PopulateOrExchange(), and TransferDataToWindow().
|
private |
Definition at line 114 of file EqualizationUI.h.
Referenced by OnSliderM(), and PopulateOrExchange().
|
private |
Definition at line 85 of file EqualizationUI.h.
Referenced by OnManage().
|
private |
Definition at line 86 of file EqualizationUI.h.
Referenced by OnManage(), PopulateOrExchange(), TransferDataToWindow(), and UpdateGraphic().
|
private |
Definition at line 105 of file EqualizationUI.h.
Referenced by OnGridOnOff(), PopulateOrExchange(), and UpdateRuler().
|
private |
Definition at line 83 of file EqualizationUI.h.
Referenced by OnManage(), OnSize(), PopulateOrExchange(), TransferDataToWindow(), UpdateDraw(), and UpdateGraphic().
|
private |
Definition at line 82 of file EqualizationUI.h.
Referenced by PopulateOrExchange().
|
private |
Definition at line 97 of file EqualizationUI.h.
Referenced by PopulateOrExchange(), and TransferDataToWindow().
|
private |
Definition at line 98 of file EqualizationUI.h.
|
private |
Definition at line 99 of file EqualizationUI.h.
|
private |
Definition at line 100 of file EqualizationUI.h.
|
private |
Definition at line 101 of file EqualizationUI.h.
|
private |
Definition at line 91 of file EqualizationUI.h.
|
private |
Definition at line 92 of file EqualizationUI.h.
Referenced by PopulateOrExchange(), TransferDataToWindow(), UpdateDraw(), and UpdateGraphic().
|
private |
Definition at line 94 of file EqualizationUI.h.
Referenced by PopulateOrExchange(), TransferDataToWindow(), UpdateDraw(), and UpdateGraphic().
|
private |
Definition at line 95 of file EqualizationUI.h.
Referenced by PopulateOrExchange(), TransferDataToWindow(), UpdateDraw(), and UpdateGraphic().
|
private |
Definition at line 96 of file EqualizationUI.h.
Referenced by PopulateOrExchange(), TransferDataToWindow(), UpdateDraw(), and UpdateGraphic().
|
private |
Definition at line 93 of file EqualizationUI.h.
Referenced by PopulateOrExchange(), TransferDataToWindow(), UpdateDraw(), and UpdateGraphic().