Make duration of indentation beeps configurable (#19353) (#20447)
Fixes #19353
Link to issue number:
#19353
Summary of the issue:
The duration of indentation beeps was hardcoded to 40ms, with no way for users to adjust it. Users who find the beeps too short or too long had no recourse.
Description of user facing changes:
A new "Indent tone duration (ms)" spin control has been added to the Document Formatting settings panel, allowing users to adjust the length of indentation beeps from 10ms to 2000ms. The control is enabled only when "Tones" or "Speech and Tones" is selected in the line indentation reporting combo box.
Description of developer facing changes:
No developer-facing changes. The indentToneDuration config key was already defined in configSpec.py with min=10, max=2000, default=40; this change only exposes it in the GUI.
Description of development approach:
Added a spin control bound to the existing config.conf["documentFormatting"]["indentToneDuration"] value, gated by the line indentation reporting mode. The control enables/disables dynamically when the reporting mode combo changes.
Testing strategy:
Verified the spin control loads with the current config value (default 40)
Verified the spin control enables/disables correctly when switching the line indentation reporting combo
Verified the value is saved via onSave
Verified F1 opens the user guide to the correct section