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

Method UpdateUI

src/effects/LegacyCompressor.cpp:254–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254void 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

Callers

nothing calls this directly

Calls 11

ThresholdFormatFunction · 0.85
RatioLabelFormatFunction · 0.85
RatioTextFormatFunction · 0.85
AttackTimeFormatFunction · 0.85
DecayTimeFormatFunction · 0.85
TranslationMethod · 0.80
SetNameMethod · 0.45
SetLabelMethod · 0.45
GetLabelMethod · 0.45
GetValueMethod · 0.45
RefreshMethod · 0.45

Tested by

no test coverage detected