feat: More rotary encoder options for B&W screens (see #2045)
* First build * Fix X9 * Update api_general.cpp * Update translations.h * clean up translations * fix: B&W option handling, remove magic numbers, cleanup - Remove references to invertRotary, change to RotEncDir or similar - Add compatabilty importing to companion, firmware - Rename Lua API call - Move magic numbers to enum - Improve B&W option handling so it doesn't apply changes while in menu * chore: yaml regen * fix: Add missing guards for X9D/X9D+ * fix: Wrong enum name in simu * fix(cpn): Use correct names for UI elements * fix: Translations * fix: Allow `rotEncMode` in all yaml due to x9d var Of the three X9D variants, the X9D+2019 is the only one that has a rotary encoder as standard. However, as the base config file is for the X9D, this meant it wasn't reading or writing the config value. Rather than add a seperate config file for it for a single variable, simple to just allow it across all targets. * fix: Companion string, change colorlcd to `Choice` Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
co-authored by
Peter Feerick
parent
5752cf4061
commit
62692dba6a
@@ -219,6 +219,12 @@
|
||||
|
||||
#define TR_ON_ONE_SWITCHES "ON","One"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted"
|
||||
#else
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted","V-I H-N","V-I H-A"
|
||||
#endif
|
||||
|
||||
#if defined(IMU)
|
||||
#define TR_IMU_VSRCRAW "TltX","TltY",
|
||||
#else
|
||||
@@ -748,7 +754,7 @@
|
||||
#define TR_DATE "日期"
|
||||
#define TR_MONTHS { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }
|
||||
#define TR_ROTARY_ENCODER "滚轮"
|
||||
#define TR_INVERT_ROTARY "滚轮反向"
|
||||
#define TR_ROTARY_ENC_MODE TR("RotEnc Mode","Rotary Encoder Mode")
|
||||
#define TR_CHANNELS_MONITOR "通道查看器"
|
||||
#define TR_MIXERS_MONITOR "混控查看器"
|
||||
#define TR_PATH_TOO_LONG "路径太长"
|
||||
|
||||
@@ -236,6 +236,12 @@
|
||||
|
||||
#define TR_ON_ONE_SWITCHES "ZAP","One"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted"
|
||||
#else
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted","V-I H-N","V-I H-A"
|
||||
#endif
|
||||
|
||||
#if defined(IMU)
|
||||
#define TR_IMU_VSRCRAW "TltX","TltY",
|
||||
#else
|
||||
@@ -763,7 +769,7 @@
|
||||
#define TR_DATE "Datum"
|
||||
#define TR_MONTHS { "Led", "Úno", "Bře", "Dub", "Kvě", "Čvn", "Čvc", "Srp", "Zář", "Říj", "Lis", "Pro" }
|
||||
#define TR_ROTARY_ENCODER "R.Enko"
|
||||
#define TR_INVERT_ROTARY "Invertovat kolečko"
|
||||
#define TR_ROTARY_ENC_MODE TR("RotEnc Mode","Rotary Encoder Mode")
|
||||
#define TR_CHANNELS_MONITOR "MONITOR KANÁLU"
|
||||
#define TR_MIXERS_MONITOR "MONITOR MIXU"
|
||||
#define TR_PATH_TOO_LONG "Cesta je moc dlouhá"
|
||||
|
||||
@@ -748,7 +748,7 @@
|
||||
#define TR_DATE "Dato"
|
||||
#define TR_MONTHS { "Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec" }
|
||||
#define TR_ROTARY_ENCODER "R.E."
|
||||
#define TR_INVERT_ROTARY "Invert Rotary"
|
||||
#define TR_ROTARY_ENC_MODE TR("RotEnc Mode","Rotary Encoder Mode")
|
||||
#define TR_CHANNELS_MONITOR "KANAL MONITOR"
|
||||
#define TR_MIXERS_MONITOR "MIX MONITOR"
|
||||
#define TR_PATH_TOO_LONG "Sti for lang"
|
||||
|
||||
@@ -221,6 +221,12 @@
|
||||
|
||||
#define TR_ON_ONE_SWITCHES "ON","One"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted"
|
||||
#else
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted","V-I H-N","V-I H-A"
|
||||
#endif
|
||||
|
||||
#if defined(IMU)
|
||||
#define TR_IMU_VSRCRAW "TltX","TltY",
|
||||
#else
|
||||
@@ -746,7 +752,7 @@
|
||||
#define TR_DATE "Datum:"
|
||||
#define TR_MONTHS { "Jan", "Feb", "Mar", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez" }
|
||||
#define TR_ROTARY_ENCODER "Drehgeber"
|
||||
#define TR_INVERT_ROTARY "Invert Rotary"
|
||||
#define TR_ROTARY_ENC_MODE TR("RotEnc Mode","Rotary Encoder Mode")
|
||||
#define TR_CHANNELS_MONITOR "Kanal-Monitor==>"
|
||||
#define TR_MIXERS_MONITOR "==>Mischer Monitor"
|
||||
#define TR_PATH_TOO_LONG "Pfad zu Lang"
|
||||
|
||||
@@ -219,6 +219,12 @@
|
||||
|
||||
#define TR_ON_ONE_SWITCHES "ON","One"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted"
|
||||
#else
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted","V-I H-N","V-I H-A"
|
||||
#endif
|
||||
|
||||
#if defined(IMU)
|
||||
#define TR_IMU_VSRCRAW "TltX","TltY",
|
||||
#else
|
||||
@@ -748,7 +754,7 @@
|
||||
#define TR_DATE "Date"
|
||||
#define TR_MONTHS { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }
|
||||
#define TR_ROTARY_ENCODER "R.E."
|
||||
#define TR_INVERT_ROTARY "Invert Rotary"
|
||||
#define TR_ROTARY_ENC_MODE TR("RotEnc Mode","Rotary Encoder Mode")
|
||||
#define TR_CHANNELS_MONITOR "CHANNELS MONITOR"
|
||||
#define TR_MIXERS_MONITOR "MIXERS MONITOR"
|
||||
#define TR_PATH_TOO_LONG "Path too long"
|
||||
|
||||
@@ -218,6 +218,12 @@
|
||||
|
||||
#define TR_ON_ONE_SWITCHES "ON","One"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted"
|
||||
#else
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted","V-I H-N","V-I H-A"
|
||||
#endif
|
||||
|
||||
#if defined(IMU)
|
||||
#define TR_IMU_VSRCRAW "TltX","TltY",
|
||||
#else
|
||||
@@ -747,7 +753,7 @@
|
||||
#define TR_DATE "Fecha"
|
||||
#define TR_MONTHS { "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" }
|
||||
#define TR_ROTARY_ENCODER "R.E."
|
||||
#define TR_INVERT_ROTARY "Invert Rotary"
|
||||
#define TR_ROTARY_ENC_MODE TR("RotEnc Mode","Rotary Encoder Mode")
|
||||
#define TR_CHANNELS_MONITOR "MONITOR CANALES"
|
||||
#define TR_MIXERS_MONITOR "MONITOR MEZCLAS"
|
||||
#define TR_PATH_TOO_LONG "Path muy largo"
|
||||
|
||||
@@ -233,8 +233,15 @@
|
||||
|
||||
#define TR_ROTARY_ENCODERS
|
||||
#define TR_ROTENC_SWITCHES
|
||||
|
||||
#define TR_ON_ONE_SWITCHES "ON","One"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted"
|
||||
#else
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted","V-I H-N","V-I H-A"
|
||||
#endif
|
||||
|
||||
#if defined(IMU)
|
||||
#define TR_IMU_VSRCRAW "TltX","TltY",
|
||||
#else
|
||||
@@ -748,6 +755,7 @@
|
||||
#define TR_DATE "Päivämäärä"
|
||||
#define TR_MONTHS { "tam", "hel", "maa", "huh", "tou", "kes", "hei", "elo", "syy", "lok", "mar", "jou" }
|
||||
#define TR_ROTARY_ENCODER "R.E."
|
||||
#define TR_ROTARY_ENC_MODE TR("RotEnc Mode","Rotary Encoder Mode")
|
||||
#define TR_CHANNELS_MONITOR "CHANNELS MONITOR"
|
||||
#define TR_MIXERS_MONITOR "MIXERS MONITOR"
|
||||
#define TR_PATH_TOO_LONG "Polku liian pitkä"
|
||||
|
||||
@@ -239,6 +239,12 @@
|
||||
|
||||
#define TR_ON_ONE_SWITCHES "ON","Un"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted"
|
||||
#else
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted","V-I H-N","V-I H-A"
|
||||
#endif
|
||||
|
||||
#if defined(IMU)
|
||||
#define TR_IMU_VSRCRAW "TltX","TltY",
|
||||
#else
|
||||
@@ -766,7 +772,7 @@
|
||||
#define TR_DATE "Date"
|
||||
#define TR_MONTHS { "Jan", "Fév", "Mar", "Avr", "Mai", "Jun", "Jul", "Aou", "Sep", "Oct", "Nov", "Dec" }
|
||||
#define TR_ROTARY_ENCODER "Enc.Rot."
|
||||
#define TR_INVERT_ROTARY "Invert Rotary"
|
||||
#define TR_ROTARY_ENC_MODE TR("RotEnc Mode","Rotary Encoder Mode")
|
||||
#define TR_CHANNELS_MONITOR "MONITEUR CANAUX"
|
||||
#define TR_MIXERS_MONITOR "MONITEUR MIXAGES "
|
||||
#define TR_PATH_TOO_LONG "Chemin trop long"
|
||||
|
||||
@@ -223,6 +223,12 @@
|
||||
|
||||
#define TR_ON_ONE_SWITCHES "ON","One"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted"
|
||||
#else
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted","V-I H-N","V-I H-A"
|
||||
#endif
|
||||
|
||||
#if defined(IMU)
|
||||
#define TR_IMU_VSRCRAW "TltX","TltY",
|
||||
#else
|
||||
@@ -746,7 +752,7 @@
|
||||
#define TR_DATE "Data"
|
||||
#define TR_MONTHS { "Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Set", "Ott", "Nov", "Dic" }
|
||||
#define TR_ROTARY_ENCODER "R.E."
|
||||
#define TR_INVERT_ROTARY "Inverti Rotary"
|
||||
#define TR_ROTARY_ENC_MODE TR("RotEnc Mode","Rotary Encoder Mode")
|
||||
#define TR_CHANNELS_MONITOR "MONITOR CANALI"
|
||||
#define TR_MIXERS_MONITOR "MONITOR MIXER"
|
||||
#define TR_PATH_TOO_LONG "Path troppo lungo"
|
||||
|
||||
@@ -222,6 +222,12 @@
|
||||
|
||||
#define TR_ON_ONE_SWITCHES "ON","One"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted"
|
||||
#else
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted","V-I H-N","V-I H-A"
|
||||
#endif
|
||||
|
||||
#if defined(IMU)
|
||||
#define TR_IMU_VSRCRAW "TltX","TltY",
|
||||
#else
|
||||
@@ -754,7 +760,7 @@
|
||||
#define TR_DATE "Datum:"
|
||||
#define TR_MONTHS { "Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec" }
|
||||
#define TR_ROTARY_ENCODER "Draaischakelaar"
|
||||
#define TR_INVERT_ROTARY "Invert Rotary"
|
||||
#define TR_ROTARY_ENC_MODE TR("RotEnc Mode","Rotary Encoder Mode")
|
||||
#define TR_CHANNELS_MONITOR "Kanaal-Monitor==>"
|
||||
#define TR_MIXERS_MONITOR "==>MIXERS MONitor"
|
||||
#define TR_PATH_TOO_LONG "Pad te Lang"
|
||||
|
||||
@@ -216,7 +216,13 @@
|
||||
#define TR_ROTARY_ENCODERS
|
||||
#define TR_ROTENC_SWITCHES
|
||||
|
||||
#define TR_ON_ONE_SWITCHES "ON","One"
|
||||
#define TR_ON_ONE_SWITCHES "ON","One"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted"
|
||||
#else
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted","V-I H-N","V-I H-A"
|
||||
#endif
|
||||
|
||||
#if defined(IMU)
|
||||
#define TR_IMU_VSRCRAW "TltX","TltY",
|
||||
@@ -742,7 +748,7 @@
|
||||
#define TR_DATE "Data"
|
||||
#define TR_MONTHS { "Jan", "Fev", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }
|
||||
#define TR_ROTARY_ENCODER "R.E."
|
||||
#define TR_INVERT_ROTARY "Invert Rotary"
|
||||
#define TR_ROTARY_ENC_MODE TR("RotEnc Mode","Rotary Encoder Mode")
|
||||
#define TR_CHANNELS_MONITOR "MONITOR KANAŁÓW"
|
||||
#define TR_MIXERS_MONITOR "MONITOR MIKSER"
|
||||
#define TR_PATH_TOO_LONG "Ścieżka za długa"
|
||||
|
||||
@@ -215,6 +215,12 @@
|
||||
|
||||
#define TR_ON_ONE_SWITCHES "ON","One"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted"
|
||||
#else
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted","V-I H-N","V-I H-A"
|
||||
#endif
|
||||
|
||||
#if defined(IMU)
|
||||
#define TR_IMU_VSRCRAW "TltX","TltY",
|
||||
#else
|
||||
@@ -747,7 +753,7 @@
|
||||
#define TR_DATE "Data"
|
||||
#define TR_MONTHS { "Jan", "Fev", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }
|
||||
#define TR_ROTARY_ENCODER "R.E."
|
||||
#define TR_INVERT_ROTARY "Invert Rotary"
|
||||
#define TR_ROTARY_ENC_MODE TR("RotEnc Mode","Rotary Encoder Mode")
|
||||
#define TR_CHANNELS_MONITOR "CHANNELS MONITOR"
|
||||
#define TR_MIXERS_MONITOR "MIXERS MONITOR"
|
||||
#define TR_PATH_TOO_LONG "Path too long"
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
#else
|
||||
#define TR_RETA123 "R","H","G","S","1","2","3"
|
||||
#endif
|
||||
|
||||
|
||||
#define TR_VCURVEFUNC "---","x>0","x<0","|x|","f>0","f<0","|f|"
|
||||
#define TR_VMLTPX "Addera","Förstärk","Ersätt"
|
||||
#define TR_VMLTPX2 "+=","*=",":="
|
||||
@@ -234,11 +234,16 @@
|
||||
#endif
|
||||
|
||||
#define TR_ROTARY_ENCODERS
|
||||
#define TR_INVERT_ROTARY "Invertera rullhjul"
|
||||
#define TR_ROTENC_SWITCHES
|
||||
|
||||
#define TR_ON_ONE_SWITCHES "PÅ","Ett"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted"
|
||||
#else
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted","V-I H-N","V-I H-A"
|
||||
#endif
|
||||
|
||||
#if defined(IMU)
|
||||
#define TR_IMU_VSRCRAW "TltX","TltY",
|
||||
#else
|
||||
@@ -776,6 +781,7 @@
|
||||
#define TR_DATE "Datum"
|
||||
#define TR_MONTHS { "Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec" }
|
||||
#define TR_ROTARY_ENCODER "R.H."
|
||||
#define TR_ROTARY_ENC_MODE TR("RotEnc Mode","Rotary Encoder Mode")
|
||||
#define TR_CHANNELS_MONITOR "Kanalöversikt"
|
||||
#define TR_MIXERS_MONITOR "MIXERSKÄRM"
|
||||
#define TR_PATH_TOO_LONG "För lång sökväg"
|
||||
|
||||
@@ -219,6 +219,12 @@
|
||||
|
||||
#define TR_ON_ONE_SWITCHES "ON","One"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted"
|
||||
#else
|
||||
#define TR_ROTARY_ENC_OPT "Normal","Inverted","V-I H-N","V-I H-A"
|
||||
#endif
|
||||
|
||||
#if defined(IMU)
|
||||
#define TR_IMU_VSRCRAW "TltX","TltY",
|
||||
#else
|
||||
@@ -748,7 +754,7 @@
|
||||
#define TR_DATE "日期"
|
||||
#define TR_MONTHS { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec " }
|
||||
#define TR_ROTARY_ENCODER "滾輪"
|
||||
#define TR_INVERT_ROTARY "滾輪反向"
|
||||
#define TR_ROTARY_ENC_MODE TR("RotEnc Mode","Rotary Encoder Mode")
|
||||
#define TR_CHANNELS_MONITOR "通道查看器"
|
||||
#define TR_MIXERS_MONITOR "混控查看器"
|
||||
#define TR_PATH_TOO_LONG "路徑太長"
|
||||
|
||||
Reference in New Issue
Block a user