MCPcopy Create free account
hub / github.com/audacity/audacity / OnSliderM

Method OnSliderM

src/effects/EqualizationUI.cpp:723–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

721}
722
723void EqualizationUI::OnSliderM(wxCommandEvent & WXUNUSED(event))
724{
725 auto &M = mCurvesList.mParameters.mM;
726
727 size_t m = 2 * mMSlider->GetValue() + 1;
728 // Must be odd
729 wxASSERT( (m & 1) == 1 );
730
731 if (m != M) {
732 M = m;
733 wxString tip;
734 tip.Printf(wxT("%d"), (int)M);
735 mMText->SetLabel(tip);
736 mMText->SetName(mMText->GetLabel()); // fix for bug 577 (NVDA/Narrator screen readers do not read static text in dialogs)
737 mMSlider->SetToolTip(tip);
738
739 mCurvesList.ForceRecalc();
740 }
741}
742
743void EqualizationUI::OnSliderDBMIN(wxCommandEvent & WXUNUSED(event))
744{

Callers

nothing calls this directly

Calls 5

GetValueMethod · 0.45
SetLabelMethod · 0.45
SetNameMethod · 0.45
GetLabelMethod · 0.45
SetToolTipMethod · 0.45

Tested by

no test coverage detected