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

Method DoUpdateUI

src/effects/DtmfGen.cpp:204–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204void EffectDtmf::Editor::DoUpdateUI()
205{
206 // Update some texts in response to controls
207 auto &dtmfSettings = mSettings;
208
209 mDtmfDutyT
210 ->SetLabel(wxString::Format(wxT("%.1f %%"), dtmfSettings.dtmfDutyCycle));
211 mDtmfDutyT->SetName(mDtmfDutyT->GetLabel()); // fix for bug 577 (NVDA/Narrator screen readers do not read static text in dialogs)
212
213 mDtmfSilenceT
214 ->SetLabel(wxString::Format(_("%.0f ms"), dtmfSettings.dtmfTone * 1000.0));
215 mDtmfSilenceT->SetName(mDtmfSilenceT->GetLabel()); // fix for bug 577 (NVDA/Narrator screen readers do not read static text in dialogs)
216
217 mDtmfToneT
218 ->SetLabel(wxString::Format(_("%.0f ms"), dtmfSettings.dtmfSilence * 1000.0));
219 mDtmfToneT->SetName(mDtmfToneT->GetLabel()); // fix for bug 577 (NVDA/Narrator screen readers do not read static text in dialogs)
220}
221
222void EffectDtmf::Editor::OnSequence(wxCommandEvent & WXUNUSED(evt))
223{

Callers

nothing calls this directly

Calls 3

SetLabelMethod · 0.45
SetNameMethod · 0.45
GetLabelMethod · 0.45

Tested by

no test coverage detected