| 252 | } |
| 253 | |
| 254 | void EffectLegacyCompressor::UpdateUI() |
| 255 | { |
| 256 | mThresholdLabel->SetName(wxString::Format(_("Threshold %d dB"), (int) mThresholdDB)); |
| 257 | mThresholdText->SetLabel(ThresholdFormat((int) mThresholdDB).Translation()); |
| 258 | mThresholdText->SetName(mThresholdText->GetLabel()); // fix for bug 577 (NVDA/Narrator screen readers do not read static text in dialogs) |
| 259 | |
| 260 | mNoiseFloorLabel->SetName(wxString::Format(_("Noise Floor %d dB"), (int) mNoiseFloorDB)); |
| 261 | mNoiseFloorText->SetLabel(ThresholdFormat((int) mNoiseFloorDB).Translation()); |
| 262 | mNoiseFloorText->SetName(mNoiseFloorText->GetLabel()); // fix for bug 577 (NVDA/Narrator screen readers do not read static text in dialogs) |
| 263 | |
| 264 | mRatioLabel->SetName( |
| 265 | RatioLabelFormat(mRatioSlider->GetValue(), mRatio).Translation()); |
| 266 | mRatioText->SetLabel( |
| 267 | RatioTextFormat(mRatioSlider->GetValue(), mRatio).Translation()); |
| 268 | mRatioText->SetName(mRatioText->GetLabel()); // fix for bug 577 (NVDA/Narrator screen readers do not read static text in dialogs) |
| 269 | |
| 270 | mAttackLabel->SetName(wxString::Format(_("Attack Time %.2f secs"), mAttackTime)); |
| 271 | mAttackText->SetLabel(AttackTimeFormat(mAttackTime).Translation()); |
| 272 | mAttackText->SetName(mAttackText->GetLabel()); // fix for bug 577 (NVDA/Narrator screen readers do not read static text in dialogs) |
| 273 | |
| 274 | mDecayLabel->SetName(wxString::Format(_("Release Time %.1f secs"), mDecayTime)); |
| 275 | mDecayText->SetLabel(DecayTimeFormat(mDecayTime).Translation()); |
| 276 | mDecayText->SetName(mDecayText->GetLabel()); // fix for bug 577 (NVDA/Narrator screen readers do not read static text in dialogs) |
| 277 | |
| 278 | mPanel->Refresh(false); |
| 279 | |
| 280 | return; |
| 281 | } |
| 282 | |
| 283 | //---------------------------------------------------------------------------- |
| 284 | // EffectLegacyCompressorPanel |
nothing calls this directly
no test coverage detected