| 202 | } |
| 203 | |
| 204 | void 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 | |
| 222 | void EffectDtmf::Editor::OnSequence(wxCommandEvent & WXUNUSED(evt)) |
| 223 | { |