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

Improvements for handling string parameters #18

Merged
merged 9 commits into from
Aug 8, 2023
Merged

Conversation

authaldo
Copy link
Member

@authaldo authaldo commented Aug 6, 2023

In the current version of rig_reconfigure, every character modification within a string parameter causes an update which is sent to the respective node.

This MR modifies the behaviour:
An update is now only sent to the node if the editing is finished by pressing enter or the input field is deselected. For the future it might also be interesting to include a timeout which handles situations where the user has finished editing but forgets to press enter (and doesn't change the focus within the window).
The timeout is not part of this MR but might be added in the future. Given the low usage of string parameters within our internal software stack, the timeout is currently solely a low priority enhancement.

The MR further includes minor layout changes which ensure that nesting doesn't cause textfields to span across the border of the window (if the window is large enough to handle the top level text fields).

@authaldo authaldo added the enhancement New feature or request label Aug 6, 2023
@authaldo authaldo requested a review from ottojo August 6, 2023 10:18
@authaldo authaldo self-assigned this Aug 6, 2023
src/rig_reconfigure.cpp Show resolved Hide resolved
src/rig_reconfigure.cpp Show resolved Hide resolved
src/rig_reconfigure.cpp Show resolved Hide resolved
@authaldo authaldo merged commit 1774d39 into master Aug 8, 2023
1 check passed
@authaldo authaldo deleted the string_improvements branch August 8, 2023 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants