Commit Graph
100 Commits
Author SHA1 Message Date
Raphael CoefficandRaphael Coeffic d71ad73eb1 simplify LVGL object removal
Fixes as well some issues with widgets being displayed after libopenui object has been deleted.
2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic c7da6b2796 add Layer::back() 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 6cb2e332e1 fix: check first before derefering it 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic cc41043883 fix: button matrix rows 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 6a6ca7e578 button matrix: added focus and key handling 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 6e6d6e4a24 added ButtonMatrix 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic fc4babfb4e choice: send LV_EVENT_VALUE_CHANGED on setValue() 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 309e672622 choice: added getIntValue() 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic dd543c151b file choice: parent is Window 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 5878802c9b form: add field even if form cannot have focus (but forwards it) 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic b747b79273 clean up 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 94c6d25f18 window: fixed adjustHeight() & moveWindowsTop() 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 904eb62029 window: removed getSnapStep() 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic bcc30638a9 window: fix bringToTop() 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 0d69b7a391 keyboard: simplify showing/scrolling 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 07e4f494b1 menu: fix position / size 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic bd7e893a0b window: scrolling now only with LVGL 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 4ef479bf3f fix: style memory leak 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 70b8b3d186 small optimization
Gains around 10% when building tabs
2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 7dc960a514 menu: fixed signedness 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic fb059887e7 BitmapBuffer: fixed RIGHT align 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic ad658a92a4 window: prevent focus events while mass-deleting 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic bc793651f4 window: avoid window_event_cb to be called on destroyed children
This uses quite some CPU resources because of the refocus happening when FormFields are cleared.
2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic f6598a11e4 fix: static text lvobj NULL access 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic f8b8232d07 lvgl: add support for TRUE_COLOR snapshots 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic bf136376b2 fix: numberedit_cb handles only keys 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 5052b762c9 form window: forward events to parent 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic b44ba6c60c fix: do not access null lvobj 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 6d7c8ed059 fix: add missing init params in lv_numberedit_class to please old GCC 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic bc7f9f6f09 fix: onTouchStart & on TouchEnd exist only if HARDWARE_TOUCH is defined 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic bd3eb7a9ba menu: some clean 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 12eccdf685 cleanup 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 037b5707d8 form group: no need to reset layout anymore
TabsGroup now create a new form for each tab
2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 9b66ce6b25 focus fixes 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 0cf7d7b450 menu: fixed lvgl include 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 2caea0eb53 flex layout: add fields switches automatically to next row 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 9529151bea static: select font according to textFlags 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic c1136c720e window: do not center by default on updateSize() 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 96d8022384 FormGroup::Line: split parent and form group 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 40268f8e52 button: Window parent instead of FormGroup 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic fc705d5d0b flex layout: grid col/row span 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 48c09fed25 text edit: default size to LV_DPI_DEF 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 6605e2cb1c static text: add getText() 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 603d9230c8 window: moved updateSize() from dialog 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic ae5d1759f1 portrait: size adjustments 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic cf8a532e2d coloredit: use LVGL color wheel 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic f473271f65 WiP: flex layout 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 22499d1c16 lvgl: use edgetx fork to allow for cherry-picked bug-fixes 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 6c8e8e5f98 dialog: add updateSize() method 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic aca4b074ab menu: fix height 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic a0e97c001d modal_window: implement title label 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 8761b423c6 checkbox: use lv_switch instead of lv_checkbox
`lv_checkbox` is actually a radio button with a mandatory label on the right side.
2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic a8c449c014 window: create "raw" windows with provided LVGL object 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 071c657a7f fix attempt at use-after-free
When a control which is focused is destroyed out-of-order, it gets a notification while it's user data it destroyed but not NULL.
2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 475d068521 static text: uses now LVGL label directly 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 502b37a19a fix potential null pointer access 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 29fcc8d0fd menu: center on screen / no minimum size 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic d64b024381 button: set focus before onPress()
onPress() might create a new window or change the focus.
2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic a20792a211 menu: added support for icons rather than custom draw function 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 22619d7a0a Wait for DMA operations to complete before proceeding 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 2246c3cfbc Use string arrays 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 37a6409da0 Added BitmapBuffer::setData() method 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic bb9a3c98e0 Added extra init to minimal set 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 45be564690 LVGL minimal subset for bootloader 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 3ffa80ca14 Remove useless code to avoid the bootloader to overflow 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic c62208261e Allows for multi-byte pictograms in MenuToolbarButton 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic ba7564c62a Remove usage of scratch buffer 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 77382ba406 WiP: remove legacy fonts 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 6376f8295a Add LVGL submodule and move submodules 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic f99c16c7aa Moved menu styles to theme 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 885ebe69f6 Moved button styles to theme 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 2a0bb66daf WIP: default theme 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 9804ff9f21 Implement form drawing via styles rather than paint() method 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic b823150158 Small checkbox opti 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 5597524b7a Add empty paint() method to Checkbox & Button 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic a0624cc17a Fix some use-after-free issue
This is basically about LV_EVENT_DELETE.
2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic fe7d425ced LVGL drawing 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic ca5b6a121c Do not use lv_obj_create(nullptr) 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 64a834d584 Small cleanup 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 648d60948b Remove event bubbling 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 0f06fad706 Fix touch events 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 4fc2fc8ae6 Layers are only meant to backup the focus window 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 7f724c187d Fixed scrolling 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic d438525f72 Fix sliders with "getValue" begin null 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic f112e42282 Style fixes for TextEdit 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic b788bdb842 Use touch events only from LVGL 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 197d177a6c Add slider edit style 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 56a36968b7 Fix propagating focus from LVGL to libopenui 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic a079d3987c LVGL sliders 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 49ba2e46b2 Some more fixes related to scrolling 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic ba6f3dd9a2 Use LVGL scrolling events 2022-06-11 15:13:11 +02:00
Raphael Coeffic 5ed1d63d6e [choice] check boundaries when accessing values vector
EdgeTX/edgetx#767
2021-09-22 12:56:28 +02:00
Raphael Coeffic 05a858d4c2 [menutoolbar] pass current value to fillMenu() 2021-09-19 10:18:25 +02:00
Raphael CoefficandRaphael Coeffic 218e8bed02 Remove harmful & useless MinGW32 compatibility definitions 2021-09-13 07:53:25 +02:00
Raphael Coeffic 398969df19 [keyboard] Fix nullptr access while trying to find a suitable full screen window 2021-08-04 10:11:33 +02:00
Raphael Coeffic 8314bb645e [filechoice] Fixed extension-matching in case a file without extension is present 2021-08-04 07:15:17 +02:00
Raphael Coeffic 4aade1d0da [FileChoice] added missing include 2021-07-13 09:12:55 +02:00
Raphael Coeffic 3f6f488180 [FileChoice] eject duplicates 2021-07-13 08:42:34 +02:00
Raphael Coeffic dd02b4419c Removed obsolete EXPANDED 2021-06-20 09:31:20 +02:00
Raphael Coeffic 8a6d288cf6 [FormGroup] added removeField() to properly remove fields 2021-06-19 12:00:52 +02:00