Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assist function for MQTT messages #73

Closed
wants to merge 5 commits into from
Closed

Conversation

JustMe-NL
Copy link
Contributor

@JustMe-NL JustMe-NL commented Apr 6, 2024

The two functions at the end of guiMemoryOptimizer can be used to determine if the widgets on the tab you want to update are currently loaded into memory or visible on screen.

When a MQTT message arrives and you will want to update the gui accordingly, you need to know if the gui is loaded into memory and/or visible at this moment. These functions can then be called from the gui itself to check if an immediate update is needed/possible.

The other updates in guiMemoryOptimizer and guiBase change the behaviour of the panelindicators: when you click the middle panelindicator everything is the same as it was, you open the scene selector. But if you click on the partially visible indicators next to the current active panel this creates a opposite swipe gesture effect. So if you click on the right indicator, the next screen to the right swipes in view (if available) and vice versa for the left.

This is an addition to the swiping gestures so you can swipe and click.

Added 2 function to assist in updating widgets after new MQTT message recieved.
Added 2 functions to assist in updating widgets after a new MQTT message
Enable swipe by clicking next to the panelindicator
Enable swipe by clicking next to the tabindicator
Enable swipe by clicking next to the tabindicators
@JustMe-NL JustMe-NL changed the title Assit function for MQTT messages Assist function for MQTT messages Apr 6, 2024
@KlausMu
Copy link
Collaborator

KlausMu commented Apr 9, 2024

Hi @JustMe-NL I like the idea of navigating to prev and next gui with the pageIndicator.

I created a new PR. This PR is using two new commands.
These commands can also be bind to hardware keys.

I think, this new PR covers all of your PR and is more versatile because of the commands being used.

I also added a function bool gui_memoryOptimizer_isGUInameInMemory(std::string guiName), although it is not yet used. But maybe some people find it useful.

Could you please test it if it fits to your needs?
#75

@JustMe-NL JustMe-NL closed this Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants