firmware/src/graphics
todd-herbert eabec5ae34
Show specific frame when updating screen (#4264)
* Updated setFrames in Screen.cpp

Added code to attempt to revert back to the same frame that user was on prior to setFrame reload.

* Space added Screen.cpp

* Update Screen.cpp

Make screen to revert to Frame 0 if the originally displayed frame is no longer there.

* Update Screen.cpp

Inserted boolean holdPosition into setFrames to indicate the requirement to stay on the same frame ( if =true) or else it will switch to new frame .
Only Screen::handleStatusUpdate calls with setFrame(true). ( For Node Updates)
All other types of updates call as before setFrame(), so it will change focus as needed.

* Hold position, even if number of frames increases

* Hold position, if handling an outgoing text message

* Update Screen.cpp

* Reverted chnages related to devicestate.has_rx_text_message

* Reset to master

* CannedMessages only handles routing packets when waiting for ACK
Previously, this was calling Screen::setFrames at unexpected times

* Gather position info about screen frames while regenerating

* Make admin module observable
Notify only when relevant. Currently: only to handle remove_nodenum.

* Optionally specify which frame to focus when setFrames runs

* UIFrameEvent uses enum instead of multiple booleans

* Allow modules to request their own frame to be focussed
This is done internally by calling MeshModule::requestFocus()
Easier this way, insteady of passing the info in the UIFrameEvent:
* Modules don't always know whether they should be focussed until after the UIFrameEvent has been raised, in dramFrame
* Don't have to pass reference to module instance as parameter though several methods

* E-Ink screensaver uses FOCUS_PRESERVE
Previously, it had its own basic implementation of this.

* Spelling: regional variant

* trunk

* Fix HAS_SCREEN guarding

* More HAS_SCREEN guarding

---------

Co-authored-by: BIST <77391720+slash-bit@users.noreply.github.com>
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
Co-authored-by: slash-bit <v-b2@live.com>
2024-07-11 18:51:26 -05:00
..
fonts Trunk fix 2023-02-20 12:33:01 -06:00
img Adafruit display (#3179) 2024-02-08 16:29:15 -06:00
EInkDisplay2.cpp Trunk fmt 2024-07-09 12:16:56 -05:00
EInkDisplay2.h Trunk fmt 2024-07-09 12:16:56 -05:00
EInkDynamicDisplay.cpp Terminate an async-full-refresh when caught by determineMode() instead of onNotify() (#3706) 2024-04-23 12:00:48 -05:00
EInkDynamicDisplay.h Adjust refresh for Heltec Wireless Paper V1.1 (#3913) 2024-05-16 15:37:09 -05:00
images.h t-watch-updates: Add canned message free text via touch keyboard and watch face frames to T-Watch S3 (#3941) 2024-05-23 07:21:27 -05:00
NeoPixel.h oops missed the extern enabling little chap 2024-04-22 14:44:59 +01:00
PointStruct.h t-watch-updates: Add canned message free text via touch keyboard and watch face frames to T-Watch S3 (#3941) 2024-05-23 07:21:27 -05:00
RAKled.h Ambient lighting (#2779) 2023-09-07 12:24:47 -05:00
Screen.cpp Show specific frame when updating screen (#4264) 2024-07-11 18:51:26 -05:00
Screen.h Show specific frame when updating screen (#4264) 2024-07-11 18:51:26 -05:00
ScreenFonts.h Display alerts (#4170) 2024-06-25 11:26:02 -05:00
TFTDisplay.cpp Trunk 2024-06-14 19:53:47 -05:00
TFTDisplay.h Added modifier key combination to allow keyboard shortcuts on t-deck (#3668) 2024-05-08 07:37:50 -05:00