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

Method UpdateRuler

src/effects/EqualizationUI.cpp:534–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532}
533
534void EqualizationUI::UpdateRuler()
535{
536 const auto &parameters = mCurvesList.mParameters;
537 const auto &dBMin = parameters.mdBMin;
538 const auto &dBMax = parameters.mdBMax;
539
540 // Refresh ruler when values have changed
541 int w1, w2, h;
542 mdBRuler->ruler.GetMaxSize(&w1, &h);
543 mdBRuler->ruler.SetRange(dBMax, dBMin);
544 mdBRuler->ruler.GetMaxSize(&w2, &h);
545 if( w1 != w2 ) // Reduces flicker
546 {
547 mdBRuler->SetSize(wxSize(w2,h));
548 mFreqRuler->Refresh(false);
549 }
550 mdBRuler->Refresh(false);
551
552 mPanel->Refresh(false);
553}
554
555///////////////////////////////////////////////////////////////////////////////
556//

Callers 1

UpdateTrackVRulerMethod · 0.45

Calls 5

wxSizeClass · 0.50
GetMaxSizeMethod · 0.45
SetRangeMethod · 0.45
SetSizeMethod · 0.45
RefreshMethod · 0.45

Tested by

no test coverage detected