Commit Graph
1275 Commits
Author SHA1 Message Date
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
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>Peter Feerick
2f65ec4c58 Lots of color fixes and screen enhancements (#833)
* 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>
2021-09-29 22:27:11 +10:00
kkoenig1@optonline.comandPeter Feerick 3ebd4321eb More color fixes, set background of FormField 2021-09-29 10:56:55 +10:00
kkoenig1@optonline.comandPeter Feerick d862cd6a8c Enhance FormField paint to allow instantiator to set a background color handler. Used in FlightModes() to set background color. Enhance GridLayout to allow whitespace at top. changed modal to use hard coded BLACK instead of theme color as per JimB40 2021-09-29 10:56:55 +10:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>
461b8971a2 Fix colors used for TextButtons, MenuToolbarButton and ModalWindow (#25)
* 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>
2021-09-28 19:01:15 +10:00
Peter Feerick ecbe89c0f4 Update libopenui - Fixes #767 2021-09-24 19:35:59 +10:00
Peter Feerick 672dc8389b [choice] Resolve textHandler pointer scoping 2021-09-23 22:19:08 +10:00
Peter Feerick 5ced0de44a [choice] fixup bounding and showing current value 2021-09-22 21:53:26 +10:00
Raphael Coeffic 5ed1d63d6e [choice] check boundaries when accessing values vector
EdgeTX/edgetx#767
2021-09-22 12:56:28 +02:00
Raphael CoefficandPeter Feerick 64a87812bb [color] do not use setValue() in SourceChoice / SwitchChoice
This potentially deletes the source/switch choice, which then triggers a "use-after-free".

Resolves #759
2021-09-20 11:04:11 +10:00
Raphael Coeffic 05a858d4c2 [menutoolbar] pass current value to fillMenu() 2021-09-19 10:18:25 +02:00
CliffandGitHub 3dedcad75a Category editor (#725)
* 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
2021-09-18 21:21:57 +10:00
kevinkoenigandPeter Feerick ede2dba2ea Fixes the defect that the software keyboard does not call onChangeEnd if the keyboard is hidden via touch and not via an esc. It changes TextEdit and FormField to move the onChange event to the base class instead of in TextEdit. Now the keyboard calls onChange when it is hidden. 2021-09-17 20:33:23 +10:00
Cliff(dlktdr)andPeter Feerick 06fb5b0e18 Use a virtual event so enter on keyboard calls changeHandler() immediately 2021-09-16 19:00:48 +10:00
Peter FeerickandGitHub c8f79c95a2 Create README.md 2021-09-13 19:18:07 +10:00
Raphael Coeffic b9544afe6a Update libopenui 2021-09-13 11:13:49 +02:00
Raphael Coeffic 118fc26374 WiP Windows build workflow 2021-09-13 11:13:08 +02:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>Peter Feerick
8f8374f3b9 Move sourcechoice and switchchoice to ChoiceEx implementation (#691)
* 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>
2021-09-13 17:09:13 +10:00
Raphael CoefficandRaphael Coeffic 218e8bed02 Remove harmful & useless MinGW32 compatibility definitions 2021-09-13 07:53:25 +02:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>
89978ff17c Move ChoiceEx to libopenui + fix keyboard crash (#19)
* 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>
2021-09-13 12:20:24 +10:00
542213de11 Add Bluetooth Trainer Options in Model Setup (#686)
* 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>
2021-09-13 12:00:14 +10:00
Peter FeerickandGitHub b611071855 Add clang format config
Same format as edgetx repo
2021-09-10 20:59:17 +10:00
CliffandRaphael Coeffic 8bde45bb86 Add get current selection index 2021-09-08 06:25:11 +02:00
Raphael Coeffic 2e767a8d6b Updated libopenui 2021-09-05 19:25:47 +02:00
Raphael Coeffic e700870f70 Updated libopenui to fix crash with software keyboard 2021-09-03 09:49:14 +02:00
kevinkoenigandRaphael Coeffic 2c5ed7e3ad fix crash in number kebyoard when NumericKeyboard looses focus 2021-09-03 09:47:39 +02:00
kevinkoenigandRaphael Coeffic 47585b8829 fixed potential compilation issue 2021-09-03 09:47:39 +02:00