Commit Graph
1301 Commits
Author SHA1 Message Date
Peter FeerickandPeter Feerick e4369af048 [libopenui] Fix screen widget layout line color 2021-12-24 13:08:55 +10:00
Peter Feerick 0458ef4537 [menu] Change theme color used for drawLine 2021-12-23 10:18:48 +10:00
843d1be868 Fix wrong Chinese characters being displayed (#1257)
* Fixed wrong index calculation.

* Fixed font generation, indexing will goes wrong when no extra chars bitmap is present.

* Image width exceeded 16384 will cause trouble in CJK.

* Include libopenui update

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-12-17 10:32:28 +11:00
richardclliandGitHub 987bc073cd Fixed wrong index calculation (chinese character display) (#46)
Companion for EdgeTX/edgetx#1257
2021-12-17 09:48:42 +11:00
Peter Feerick dbd41d2ea9 [libopenui] Change touch end processing 2021-12-13 07:41:15 +10:00
Kevin KoenigandGitHub f81fa679d7 Change touch end processing (#45)
1. removed the generic touchedWindow processing
2. replaced it with an implicit capture processing
3. therefore it works like normal in all instances except ListBox() which explicitely captures the up.
2021-12-13 08:39:44 +11:00
Peter Feerick b7efc8a8f5 [libopenui] Fix repeated touch events and sliders 2021-12-12 20:32:56 +10:00
kkoenig1@optonline.comandPeter Feerick 580849386b fix touch end after slide 2021-12-12 20:04:34 +10:00
Malte LangermannandGitHub b8f17aa3f9 Fix repeated touch events (#44)
* fix repeated touch event execution

* handle all touch events only once, except for TE_SLIDE_END for touch inertia
2021-12-12 20:00:28 +11:00
Peter Feerick 79e52521ac [libopenui] Fix for Curve edit not working #1087 2021-12-08 21:48:20 +10:00
Peter FeerickandPeter Feerick a557b5d2fe Let buttons catch touchStart
Resolves https://github.com/EdgeTX/edgetx/issues/1087
2021-12-08 21:46:04 +10:00
Peter Feerick 3ab896ba2e [libopenui] Fix touch end segf, compiler warnings 2021-12-02 10:32:01 +10:00
RistoandGitHub 929847209d Fixed compiler warnings (#41)
Fixed 4 compiler warnings about comparison of signed and unsigned int.
2021-12-02 11:28:13 +11:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>
faae2fff8c Fix touch slide end segfault (#40)
* fix touch slide/end issue

* Revert "fix touch slide/end issue"

This reverts commit e9f11fe9905ff3e175e2f37aeafac0fa20956450.

* fix tocuh slide/end issue

* Revert "fix tocuh slide/end issue"

This reverts commit 82264c8382736a1c7b60a0e41b7188c429d2c43f.

* put the file in the wrong place

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
2021-12-02 10:41:08 +11:00
Peter Feerick 316e18f800 Bump libopenui (non-touch compile bug) 2021-11-30 22:19:40 +10:00
Peter Feerick cd52eb9737 Fix #39 hardware touch whoopsie 2021-11-30 22:17:31 +10:00
Peter Feerick 2bdf1ff600 [libopenui ] Fix enable/disable popup menu filters
Can now enable and disable filters in popup menus (i.e. source, switch)
Active filter is now also highlighted
Use page keys to scroll through filters if no touch
Resolves #228
2021-11-30 21:19:01 +10:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>
758c56a4cf Fix being able to enable and disable popup menu filters (#39)
* fix-228

* removed commented codes

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
2021-11-30 22:14:57 +11:00
jfrickmannandPeter Feerick 81cb94a4bf Added string constants to the read-only tables in Lua 2021-11-29 12:00:50 +10:00
Peter Feerick 95f853f54e [libopenui] Fix touch slide intertia
Thanks @gagarinlg!
2021-11-26 20:38:53 +10:00
Malte LangermannandGitHub 1a886dee5f Fix scroll inertia (again) (#38)
* fix scroll inertia

* scroll inertia now works like before touch on/off changes
2021-11-26 21:37:29 +11:00
Peter FeerickandPeter Feerick b3cbf73aa0 Enable lua table for colorlcd, not just horus 2021-11-25 11:18:33 +10:00
Peter Feerick a1d279a552 Bump libopenui to for #1077 fix 2021-11-21 20:56:40 +10:00
gagarinlgandPeter Feerick 4e1cba2bad fix scroll inertia 2021-11-21 20:53:50 +10:00
Raphael CoefficandRaphael Coeffic f3301e6210 Added control line and bitrate callbacks
And some additional clean-up
2021-11-21 11:18:35 +01:00
Raphael CoefficandRaphael Coeffic aa7b0143bd Add active polling on UART buffer and bigger USB buffers 2021-11-21 11:18:35 +01:00
Peter Feerick 8f55fb0ffa libopenui: NumberEdit set min/max if fast scroll goes out of bounds
Resolves #399
2021-11-18 11:17:43 +10:00
Peter FeerickandPeter Feerick b211ce5af6 If scroll value out of range, set min or max number_edit value 2021-11-18 10:56:13 +10:00
Peter Feerick 38308f6bef libopenui: Adjust theme constants used by Menu 2021-11-16 11:52:46 +10:00
Peter FeerickandPeter Feerick 574658d616 Bump libopenui for companion PR 2021-11-16 11:21:04 +10:00
Peter FeerickandGitHub dd8c122db5 Adjust theme constants use by Menu 2021-11-15 22:04:31 +11:00
Malte LangermannandGitHub 01f9e83117 Implement touch disable/enable statemachine (#34)
* implemented a touch disable/enable statemachine

works as follows:
if touch is enabled, everything is processed
if touch is disabled, nothing is processed
when switching from disabled to enabled, and the display touched before, the TE_UP/TE_SLIDE_END ist ignored
when switching from enabled to disabled and the display is touched, the next TE_UP/TW_SLIDE_END will be processed, to leave nobody in a touch started but never ended state

* fix touch screen handling when staring touch while disabled and releasing touch when enabled

* touch on/off with backlight on/off is working

* setTouchEnable has to be #if defed for touch radios
2021-11-15 21:07:56 +11:00
Peter Feerick b4903d8d6f Bump libopenui 2021-11-12 11:53:07 +10:00
Malte LangermannandGitHub 40432653bd Make sliders honor the enable bool (#33) 2021-11-10 21:58:11 +11:00
Peter Feerick f1d50c585a Bump libopenui, resolves #1017 2021-11-10 11:18:45 +10:00
Peter FeerickandGitHub e6697639c7 Rename modelBmp using new 'displayName', add more options (#544)
* Make img buf only size of img not whole widget

* Don't draw buffer if there's no image

* If there's no image, draw model name

* Add some options, draw model name if img not set
Add options for text colour, size, fill enable and colour

* Use valid values for defaults

* Get right colours

* Add concept of a 'friendly name to widgets'
Allows for separation of internal and user visible names

* Use new theme constants

* Use right version of libopenui

* `displayName` instead of `friendlyName`

* Allow using theme colour or custom for name
2021-11-08 21:27:38 +11:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>
4c0518d2d9 Fix continuously touch end events and ensuretouchEnd if no scroll
* minor changes to touch and slide processing.  set event to TE_NONE so you don't continuously get touch end events.
also make sure you get touchEnd if you slid but there is no sliding window (e.g. no scroll happened)

* revert slide operations back to their original state

* fix merge issue

* one more try and it should be right now

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
2021-11-04 21:57:37 +11:00
Peter FeerickandGitHub cabf8cca45 Merge pull request #28 from kevinkoenig/fix-slide-touch
Fix slide touch - merge commit to save grief with another PR
2021-10-29 11:33:59 +10:00
c59f579bbe Add special function to disable the touch screen (#942)
* added a new special function to disable the touch screen

* Bump libopenui

* Don't try to disable touch if no hardware touch

* Disable processing of SF if no touch hardware

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-10-25 23:20:57 +11:00
gagarinlgandPeter Feerick 45db1393d6 added a way to disable touch screen event handling
Needed for EdgeTX issue #185
2021-10-24 22:32:03 +11:00
2b8dfeef59 Fix PNG transparency not working 🙂 (#878)
* Force BitmapBuffer format for widget ModelBmp and the file viewer
This patch run with the patch fix-transpareny in libopenui

* Bump libopenui

Co-authored-by: Runsys16 <rene.negre@orange.com>
2021-10-24 10:58:30 +11:00
28f224e64a Fix drawBitmapAbs transparency (i.e. PNGs) (#27)
* fix tansparency: when a bitmap change dimension, the function
drawBitmapAbs() is called.
this function respect the original format now !

* A BitmapBuffer can be draw inside another BitmaBuffer (ex: function
paint( BitmapBuffer * dc )) If the format is different, now the drawing
is correct.

Co-authored-by: Runsys16 <rene.negre@orange.com>
2021-10-23 12:07:03 +11:00
Peter FeerickandPeter Feerick 3e8faa381b Bump libopenui, add needed const 2021-10-22 21:03:16 +11:00
kkoenig1@optonline.comandPeter Feerick 45e4f05b16 readded separators correctly this time 2021-10-22 20:36:05 +11:00
kkoenig1@optonline.comandPeter Feerick cda649db1f Revert "added menu separators"
This reverts commit 35a4ebc7fe5b86eec23ddf8a9291d539f44e14b4.
2021-10-22 20:36:05 +11:00
kkoenig1@optonline.comandPeter Feerick bd3781c95e added menu separators 2021-10-22 20:36:05 +11:00
kkoenig1@optonline.com 582f953e50 put files in right place 2021-10-21 05:32:03 -04:00
kkoenig1@optonline.com 8ea6f964fa put files in wrong place 2021-10-21 05:30:49 -04:00
kkoenig1@optonline.com 324622e11e fix touchend and slide processing to make it consistent. 2021-10-21 05:11:19 -04:00
rotorman 78489a69c0 Removed obsolete CooCox CoOS. 2021-10-02 15:05:21 +02:00