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

Method UpdateUI

src/effects/DynamicRangeProcessorEditor.cpp:478–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476}
477
478bool DynamicRangeProcessorEditor::UpdateUI()
479{
480 if (CompressorSettings* compressorSettings = GetCompressorSettings())
481 *compressorSettings = *mAccess.Get().cast<CompressorSettings>();
482 else
483 *GetLimiterSettings() = *mAccess.Get().cast<LimiterSettings>();
484
485 for (auto& setting : mParameters)
486 setting.slider->SetValue(std::round(TextToSliderValue(setting)));
487
488 if (
489 auto tfPanel =
490 wxWindow::FindWindowById(transferFunctionPanelId, mUIParent))
491 tfPanel->Refresh();
492
493 return true;
494}
495
496void DynamicRangeProcessorEditor::OnCheckbox(
497 bool newVal, double& setting,

Callers

nothing calls this directly

Calls 5

roundFunction · 0.85
TextToSliderValueFunction · 0.85
GetMethod · 0.45
SetValueMethod · 0.45
RefreshMethod · 0.45

Tested by

no test coverage detected