| 721 | } |
| 722 | |
| 723 | void 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 | |
| 743 | void EqualizationUI::OnSliderDBMIN(wxCommandEvent & WXUNUSED(event)) |
| 744 | { |
nothing calls this directly
no test coverage detected