Commit Graph
100 Commits
Author SHA1 Message Date
Raphael Coeffic 4255642e7d Fix menu toolbar PageUp/PageDown 2022-10-13 19:21:10 +02:00
Raphael CoefficandPeter Feerick 37159152b0 MenuToolbar: add resetFilter() 2022-10-03 12:41:59 +10:00
Raphael CoefficandPeter Feerick c41b1cb458 fix(Menu): handle negative selection index properly 2022-10-03 12:41:59 +10:00
Raphael CoefficandPeter Feerick d2676abc61 fix(Menu): properly reset selections when content is removed 2022-10-03 12:41:59 +10:00
Raphael CoefficandPeter Feerick ce9c5a302a fix(Menu): force into editing mode to fix behaviour with rotary encoder 2022-10-03 12:41:59 +10:00
Raphael CoefficandPeter Feerick d4661b66ea fix(MenuToolbar): resolve various focus/filtering issues
This allows for de-selecting filters with keys.
2022-10-03 12:41:59 +10:00
Raphael Coeffic 2cb1e6fce7 dialog: prevent key events from being transmitted to parent 2022-09-25 09:09:53 +02:00
Raphael Coeffic c1f922ce14 chore(DynamicNumber): remove type argument warnings 2022-09-17 09:03:55 +02:00
Raphael Coeffic 10e1982b23 Form field: re-implemented enable/disable 2022-08-22 09:04:27 +02:00
Raphael CoefficandPeter Feerick 84f402569f textedit: simplified implementation 2022-08-18 12:12:02 +10:00
Raphael CoefficandPeter Feerick 7ab53f757f window: clear lvobj before deleting it 2022-08-18 12:12:02 +10:00
Raphael Coeffic 9767b4baf1 textedit: removed useless code and added update() 2022-08-06 08:43:35 +02:00
Raphael Coeffic 9c4a0d78a9 number edit: install call back regardless of _getValue 2022-08-01 11:22:00 +02:00
Raphael Coeffic 87ef19a9de static: fix format warnings 2022-07-04 07:54:39 +02:00
Raphael Coeffic 6b1ca16c7f progress: limit value to 100 2022-07-03 07:16:46 +02:00
Raphael Coeffic 0d8b36a0cf virtual BaseNumberEdit::update() 2022-06-20 16:28:58 +02:00
Raphael Coeffic f4916a3c4f FormGroup::Line: add setLayout() 2022-06-20 08:03:23 +02:00
Raphael Coeffic 0255bd5f3c base number edit: allow setting _getValue later and update from current value 2022-06-19 14:24:03 +02:00
Raphael Coeffic 0d8628f0ce form line: add constructor without lvobj 2022-06-19 14:24:03 +02:00
Raphael Coeffic 42b98362c3 checkbox: allow setting _getValue later 2022-06-19 14:24:03 +02:00
Raphael Coeffic ff6a0bca56 number edit: allow null _getValue 2022-06-19 14:24:03 +02:00
Raphael Coeffic e10545b53f flex grid layout: copy constructor 2022-06-19 14:24:03 +02:00
Raphael Coeffic 85cdf709a0 window: add padding methods 2022-06-14 09:42:40 +02:00
Raphael Coeffic 015c4795ca Padding adjustments & dialog autosize 2022-06-14 09:42:39 +02:00
Raphael CoefficandRaphael Coeffic 6f15104bb4 main window: remove last rest of touch handling 2022-06-13 21:02:24 +02:00
Raphael Coeffic 7679077632 window: allow for accessing LVGL obj / children in close handler 2022-06-12 19:19:35 +02:00
Raphael Coeffic 41ab90ad36 fix(dynamic numbers): precision flags 2022-06-12 11:58:57 +02:00
Raphael Coeffic cda44291f7 base number edit: streamlined code a bit 2022-06-12 11:30:56 +02:00
Raphael CoefficandRaphael Coeffic ae6f7b55d3 table field: add onSelected() 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 14fea89118 flex grid: add shortcut for Window 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic e47b1ca245 Always include code for visual keyboards
Used now on non-touch interfaces as well.
2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 390fed8997 Better dynamic number 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 78e067a753 window: remove unused local variable 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 4ecedab3c8 form field: add SCROLL_ON_FOCUS
Fixes issue with choices not triggering scroll on focus.
2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic a7ee9d3a81 button: remove LV_OBJ_FLAG_CHECKABLE on text buttons 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic cbe237a945 button: add long press 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic ee3f51330a cleanup 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic aca9bf420a Text & number edit use the same custom widget 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 574d008b67 Snap to begin / end of window when near 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 34652c4afa fix: draw non-null terminated strings 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 1acea8fc88 fix(flex grid): added padding between rows as well 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic fd3deb2571 fix(choice): send LV_EVENT_VALUE_CHANGED after value has been set 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 862073d4c2 fix(focus): hasFocus() uses proper state 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 40233604ce cleanup & formatting 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic fd0881f19e fix(table): focus border and click behavior 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 85e9f1d7ca fix(slider): edit mode 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 6177a94486 choice toolbar: new implementation based on LVGL group 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 25715ed648 Replaced focus handling with LVGL groups 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 866bc46d4d fix(lvgl): apply fix to allow for nested input device polling 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 4ffc94b88d 8bit masks use uint16_t for width/height 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic f07243d47f theme: removed unused methods 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 3d647f69a0 LZ4 bitmap compression 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic c136ddda87 dialog: content shall forward focus 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic e97cff4dcb dialog: handle EXIT key 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic f8612a0dbe menu: onPress() must be executed after menu is removed 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 2eef7755a5 New TableField 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 4a77acf6af menu: removed separator 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 5ace4d010e Own window base LVGL object 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic eac3f4fce5 Use own LVGL theme 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 28c28fb521 button: better track state 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic dbe8405fe2 Small improvements / fixes 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 00fda7f4ae keyboard: prevent keyboard being freed 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic ff080ff3d8 window: do not scroll on touch-focus 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 170fa8152e choice: dramatically reduce refresh frequency
Done now only when a real change happened
2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 2ba8619654 menu: use lv_table and draw entries dynamically
Much faster than the previous implementation in creation time and rendering.
2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 7c409a4454 main window: call checkEvents() only on top most opaque window 2022-06-11 15:13:11 +02:00
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