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

This commit is contained in:
2026-01-31 13:57:09 +02:00
parent ca4b87d43d
commit 4bb5df9c87
19 changed files with 645 additions and 306 deletions
+10
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