use enum_ prop in seadesc to store all members

because frappy can not handle dynamic enums
This commit is contained in:
l_samenv
2022-08-24 17:40:02 +02:00
parent 4d9961fe5c
commit 4ada8529fb
5 changed files with 11 additions and 1 deletions

View File

@ -46,6 +46,8 @@ proc stdConfig::dil12 args {
prop label "control sensor "
prop help "click off to reload list"
prop enum "off"
# for seadesc:
prop enum_ off=0,mix=5,sample=6,samplehtr=8
default off
prop check dil12::check_control
prop write stdSct::completeUpdate

View File

@ -60,6 +60,7 @@ proc stdConfig::jtccr {} {
node vm wr
prop label vm
prop enum closed,opened
prop enum_ closed,opened,closing,opening,no_motor,undefined
prop write jtccr::setmotvalve
prop read jtccr::getmotvalve
prop initstate init

View File

@ -48,6 +48,7 @@ proc stdConfig::magfield_kids {{bipolar 0}} {
default 1
prop write magfield::write_pers
prop enum off,on
prop enum_ forever_off=-1,off=0,on=1
prop label "persistent mode:"
prop help "hidden mode -1: completely off"