Commit Graph
18216 Commits
Author SHA1 Message Date
Raphael Coeffic e8f9f646e0 fix: prevent window trash processing in confirmationDialog()
Fixes "use after free" when confirmationDialog() is used in a menu handler.
2022-09-20 08:07:09 +02:00
Raphael Coeffic d6764ca0f8 fix: prevent out of bounds access if g_eeGeneral.templateSetup has an invalid value 2022-09-20 08:05:34 +02:00
Peter FeerickandGitHub bccae96917 chore: Add some translation strings + update helper script (#2328)
* fix: Update translation helper for LVGL changes
Also:
- make paths more OS agnostic
- auto-ignore `untranslated.h` since adding to all translations
- flag required parameter as required

* fix: Add more Label related translatable strings

* chore: Italian translations from @robustini
Also some minor formatting tidyup

* chore: Swedish translation from @ulfhedlund

* chore: Danish translation from @HThuren
2022-09-20 12:35:19 +10:00
MichaelandGitHub 43bb5d2bcd fix(color): Improve layout of Module / RX version pop up (#2325)
* initial commit for Module / RX version pop up - fixes #2320

* got rid of "no information" module names. Module names are now identical to the settings internal and external RF dialog, expect PXX2 which sets name depending on hw info.

* cosmetics

* hide int/ext status when there is no status to report

* fix: Also unhide PXX2 module status if set

* feat: Move NV14 fw version to module info screen
2022-09-20 12:04:34 +10:00
Marco RobustiniandGitHub ea313b95c5 fix(color): Fix appearance of Italian shutdown warning messages 🇮🇹 (#2333)
Minor fix
2022-09-19 20:59:36 +10:00
Marco RobustiniandGitHub 538dfb7379 feat: Updates to Italian translation on radio 🇮🇹 (#2330)
* Update italian translation

Minor fix

* Update italian translation

Other fix

* Revert to label

Alignment as in the Companion

* Correct label here too
2022-09-18 22:05:18 +10:00
ulfhedlundandGitHub e4fc166e77 feat: Updated all Swedish Companion translations, minor changes to radio translations 🇸🇪 (#2321)
* New translations for download and update functionality (#2148)

* Minor changes only

* Added translations for setName

* Regenerated translation file using QT Linguist tool "lupdate", now complete to >99%

Regenerated Swedish translation file for Companion, using "lupdate" tool as described here: https://doc.qt.io/qt-5/qtlinguist-index.html.

The result:
Updating 'companion/src/translations/companion_sv.ts'...
    Found 2833 source text(s) (185 new and 2648 already existing)
    Removed 529 obsolete entries
    Number heuristic provided 3 translation(s)
    Same-text heuristic provided 29 translation(s)

Then reviewed and added all missing translations.

* Changes after PR review by @pfeerick

* fix: Re-add missing `TR_SF_SET_SCREEN`
2022-09-18 20:17:03 +10:00
Peter Feerick 8307458399 chore: Bump libopenui
- BMP color fix
- remove compiler type argument warnings
2022-09-18 19:24:32 +10:00
RistoGitHubNiel Horne (elecpower), Raphael Coeffic (raphaelcoeffic) and Peter Feerick (pfeerick).
9dc4065525 feat: Add support for SpaceMouse mod (6D input knob) (#1853)
Use `-DSPACEMOUSE=YES` CMake option to activate on Horus color targets.
Co-authored-by: Niel Horne (elecpower), Raphael Coeffic (raphaelcoeffic) and Peter Feerick (pfeerick).
2022-09-18 09:23:48 +02:00
Raphael CoefficandGitHub 3765e678b9 fix(color): Disallow fullscreen mode for topbar widgets (#2327)
Related #2182
2022-09-18 13:15:01 +10:00
Raphael CoefficandGitHub c2b1b6febf feat(color): re-add support for rotary encoder velocity increase (#2318) 2022-09-18 13:01:19 +10:00
CliffandGitHub 333c2828ea fix(color): Limit label lengths, improve lbl display, prevent inv. char (#2287)
* (cpn) Add bullets & length warning

* (fw) Show labels with bullet separators

* (fw) Check all running twice. Remove from here

* (fw) Correct buffer overflow when labels too long

* (fw) Rem bullets in model label string

* (fw, cpn) Labels length

cpn,fw Limit label length
cpn Check correct model on rename length
cpn Focus issues
cpn Add rename,  move up/down.. still has an issue with selection. TODO...
cpn Switch to utf8 encoding
cpn Rename button ;)

* (cpn) Move up down working

re-Fix Checkbox, partially isn't what I thought (not greyed)

* (fw) Add CSV string funcs

Limit length of model edit shorter in portrait mode

* (cpn) Correct Label option showing on B&W

* (fw) Radio filename set but no file exists don't create

* (cpn) Simplify wording

* (fw) Correct debug values

* (fw) Reduce truncation length

* (both) Don't allow special chars in label name

(cpn) Prevent move when at top and bottom
(fw) Remove multiple label length defines
(fw) Shorten truncate length even more

* (fw) Close model_select on new model
2022-09-18 10:47:21 +10:00
Raphael Coeffic c3660ab931 fix(color): fullscreen widget exit when entered via keys
Related #2182
2022-09-17 09:40:13 +02:00
CliffandGitHub c903e5bc97 fix (color): Inability to select labels after editing them (#2308)
* (fw) Instantly update model bitmap

* (fw) Delete menu first, then call update
2022-09-16 13:13:28 +10:00
Raphael CoefficandGitHub 9fbf0b7b0a fix(simu): prevent mouse wheel event to be handled twice (#2319)
Fixes #2188
2022-09-15 21:15:09 +10:00
Peter FeerickandGitHub d54e656608 fix: Don't allow select MULTI_TRAINER if no MULTI (#2299)
* fix: Don't allow select MULTI_TRAINER if no MULTI
Fixes #1563 by ensuring Multi Trainer opt is not shown if no MPM
is enabled, as well as if MPM suport is not even compiled in.

* chore: Uppercase "OFF" or equiv for Trainer OFF
2022-09-14 12:34:43 +10:00
Peter FeerickandGitHub d9c7cfae6f fix: Show degree symbol ° instead of @ (#2199)
* fix: Use degree symbol instead of `@`
For temperature and degree units, @C, @F and @ were being shown, rather than °C, °F and °.

Also hoping this will also resolve the GPS sensor showing @ instead of ° as mentioned in #2163

* fix: B&W need prior `@` for degrees

* fix: `dBm` missing from some translations
2022-09-14 12:28:48 +10:00
Raphael CoefficandGitHub c7e77ccd36 fix(mpm): update internal module (#2314)
* Internal MPM update: UART context must be removed last

This fixes the crash / reboot observed in issue #2310

* Fix DMA fifo clear() method
2022-09-14 11:58:01 +10:00
Peter Feerick 1c7156262d feat(x9d): Turn HAPTIC on by default
Increases fw size by 996 bytes, but makes moders happy
```
HAPTIC OFF: -rwxr-xr-x 1 root root 492100 Sep 10 08:35 x9d-63d4cb784.bin
HAPTIC ON:  -rwxr-xr-x 1 root root 493096 Sep 10 08:37 x9d-63d4cb784.bin
```
2022-09-10 18:45:39 +10:00
HThurenandGitHub 63d4cb7848 chore(translation): Shorten Danish phrases to fit 128x64 screens (#2301)
* Reduced wordlength

* Reduced wordlength

* chore: Add EoF newline to satisfy `git`
2022-09-10 18:04:40 +10:00
Peter Feerick 7a06eb1d96 chore: LiteRadio3 yaml regenerate
Fixes issue where settings were being corrupted due to misalignment
2022-09-09 22:28:59 +10:00
CliffandGitHub c7ca1cce0f feat(color): Labels Pgup/Down keys move up down selected label (#2288)
* (fw) Pgup/Down keys move up down selected labels

* Add Long press returns on single page radios

* Rem NV14 keys
2022-09-09 11:13:39 +10:00
Neil HorneandGitHub 7d9ecd275a fix(cpn): Missing brackets in model print (#2297) 2022-09-08 21:42:22 +10:00
David PHAM-VANandGitHub 155a854131 feat(lua): Add several Lua API funcs and constants (#2279)
* LUA: Add Bitmap.toMask and lcd.drawBitmapPattern functions

* LUA: Add lcd.invertRect function

* LUA: Add Bitmap.resize function

* LUA: Add getOutputValue function

* LUA: Add timer showElapsed configuration

* LUA: Add model extendedLimits configuration

* LUA: Add some global constants

* Add model jitterFilter configuration

* Add model.getSwashRing and setSwashRing functions
2022-09-08 20:03:58 +10:00
Neil HorneandGitHub ab640e3055 feat(cpn): Rename model Save to Export (#2296) 2022-09-08 19:10:08 +10:00
Malte LangermannandGitHub 8b7e8c3017 EL18 RF USB switch (#2221)
* feature: added ability to have radio specific menu items in the bootloader
* added enabling/disabling USB access to the RF module via the bootloader
* enable the internal module on EL18, when RF module USB access is enabled
* moved USB switch pin initialization to the NV14/EL18 specific code
* moved EL18 USB switch defines to boot_menu
* feat: added a symbol for RF USB switch menu option on EL18 bootloader
2022-09-08 08:20:49 +02:00
4e49ac68be feat(colorlcd): Special Function to set main screen (#2160)
* Special Function to set main screen (#2135)

* chore: Add new SF to LUA constants list

* Companion support

* Formatting

* get rid of magic number

* Add function to get the number of custom screens

* Change screen numbering from 0-based to 1-based.

* Allow SetScreen custom function for Color LCD only

* add range protection

* cleanup

* yet, range protection once again

* fix: paintSpecialFunctionLine can't alter SF param data

* Fix screen initialization in companion

* move screen switching to the UI

* Trigger view change from guiMain()

* chore: Change "SET" to "Set" for consistency

* fix: Somehow missed extra comma in `TW`

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
Co-authored-by: elecpower <neilh713@tpg.com.au>
Co-authored-by: Raphael Coeffic <raphael.coeffic@frafos.com>
2022-09-07 21:40:34 +10:00
CliffandGitHub b0c1315f61 fix(touch): Prevent multiple audio beeps (#2290)
This actually probably an underlying issue in the driver, why it's sending two TE_DOWN events and causing multiple beeps
However, this fix will hold until the touch driver interface is re-written
2022-09-07 21:39:00 +10:00
Raphael CoefficandGitHub 052a344611 Improve gyro/acc range and config (#2113) 2022-09-07 21:21:20 +10:00
David PHAM-VANandGitHub 4ed4f218b4 feat: Allow Lua widget translations (#2275) 2022-09-07 21:18:50 +10:00
3b2f07ae85 fix: Danish special characters on B&W radios (#2271)
* Dannish special characters

* Danish special characters

* Danish special characters

* Danish special characters

* Danish special characters

* Danish special characters

* chore: Reset header to `copyright-header` template
`tools/copyright-header.txt` template is what should be used.
Also added line at EoF to make git happy

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2022-09-07 20:15:08 +10:00
Neil HorneandGitHub 435e4c86f5 fix(cpn): Add model with template crashed simulator (#2289) 2022-09-07 20:13:43 +10:00
eshifriandGitHub 5f4def2f91 fix: Changing label order for only two labels could trigger EM (#2273)
* Fix definition for signed value

* Support changing order of the labels for two labels

* Swap labels when there is only two due to std::rotate limitation

* Change the order with swap.

* Map rebuid added
2022-09-07 18:29:59 +10:00
Neil HorneandGitHub 58a6239ac5 fix(cpn): Companion simulator would crash post add model (#2281) 2022-09-06 21:08:02 +10:00
dlktdrandPeter Feerick aec0639e66 (fw+cpn) libsim not loading models, set mod on new lbl 2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 7825f8be74 (fw) Refresh models after rename 2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 4067c6df07 (fw,cpn) Support commas in labels
Remove more cpn unused code
2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick cd50c0a967 (fw) Remove new label from menu, rework layout 2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 644cf4ba1d (fw) Properly set sort button status 2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 1f9e93ba70 (fw) Add new label button 2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 441d7a25f1 (cpn) Warning if rename to duplicate 2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 13bd3b11b7 (fw) Make new label a method
For future use Add a Label Button
2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 9a481d6837 (fw) Better handling for blank Labels in labels.yml 2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 098a5a0b59 (fw) Clear new label string on open 2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 3de67be925 (fw) Fix: Update the title on new model 2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 93bfd5b264 (cpn) fix not marking as modified 2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 18a51dcf4f (cpn) Fix - Always show checkboxes 2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 9131125b58 (cpn) Remove more un-unsed code, new set. add "Fav" lbl 2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick d462e24862 (cpn) Labels - Various fixes
Don't allow duplicate
Partial labels of others also selected
Paste doesn't update labels list
2022-09-06 21:04:10 +10:00
dlktdrandPeter Feerick 32a6f792b9 fix(cpn) Delete Label, Import models, Add fav
CMPN: Correct not reading models if no labels.yml

CMPN: Fix crash if no delete with no label selected
2022-09-06 21:04:10 +10:00