feat(tracker): enum-style values and menus to choose one option

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2026-01-27 23:26:13 +02:00
parent ca4b87d43d
commit 4bb5df9c87
19 changed files with 645 additions and 306 deletions

View File

@ -71,6 +71,16 @@ func (v *spectrumChannels) SetValue(value int) bool {
func (v *spectrumChannels) Range() RangeInclusive {
return RangeInclusive{0, int(NumSpecChnModes) - 1}
}
func (v *spectrumChannels) StringOf(value int) string {
switch SpecChnMode(value) {
case SpecChnModeSum:
return "Sum"
case SpecChnModeSeparate:
return "Separate"
default:
return "Unknown"
}
}
type SpecChnMode int