editor: rework assignment of text values to spin buttons
Remove duplicate code and use a common function to set the mapping between a numeric value and a text one. I think we should not encourage the use of arbitrary text but instead allow the most common ones. Therefore, add also 'off'.
Showing with 43 additions and 57 deletions