* 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
* 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
* 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>
* 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>
* 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>
* 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>
* consolidated all color fixes and screen enhancements into one new branch
* Bump libopenui
* enhanced telementry sensor display
* fix discover and add sensor buttons on NV14.
* changed quick menu to not use theme colors as per JimB. Fixed telemetry buttons for NV14
* fix colors on trainer page
* Merge cleanup
* Update libopenui
Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
* fix colors for modal window and toolbar buttons in menu popuos
* fix TextButton correctly so all TextButtons in app just work
* fix TextButton correctly so the app just worksX
Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
* Allow model moving between categories
* Initial Commit - Categories Editor
* Don't allow move of active models & save
* Create group for categories, add, remove, delete working.
One glitch on add still...
* allow index choice on tabs page build
* Don't allow setting name null
* Change layout
* Null terminate string + save
* Optionally hide delete button
* Allow add a new model on touch if there are none
* Remove seperator
* Fix compiler warning
* Assign not compare
* Add Translation Strings for Model Categories and Models
* Use translated strings
* Update libopenui
* Add extra newline so scrolls proper
* Update libopenui
* move sourcechoice and switchchoice to ChoiceEx implementation
* removed getTicks parameter from ChoiceEx. Turns out it can just access timer directly
* clean up keyboard support for topbar.cpp, protect against crash in keyboard
* Switch back to edgetx libpenui and sync
* Formatting
Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
* moved choiceex.* to libopenui where it belongs
* added choiceex to build
* enhanced system
* removed construtor parameter for getTicks. Turns out you can just access the timer directly in libopenui
* fixed keyboard crash for widget settings
* code cleanup
Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
* Initial Commit, Bluetooth Trainer options
* MasterBt & Slave working
* Cleanup BT Trainer
* Add extra defines so still works bluetooth disabled
* Add long string for not connected
* Make btMenu popup global
Also fixes not disconnecting if switches from master <-> slave bluetooth.
* Update libopenui
* Remove Global popup, add checks to if pop-up open
* Add subclass with an popup-opened bool
* Refresh GUI on BT mode change, except if pop-up open
* Don't update if OSK open
* Autoformatting
* Make trainer bottom spacer apply to all touch scns
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>