| 476 | } |
| 477 | |
| 478 | bool 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 | |
| 496 | void DynamicRangeProcessorEditor::OnCheckbox( |
| 497 | bool newVal, double& setting, |
nothing calls this directly
no test coverage detected