Repository navigation
Add an update timer to RunWidget - #225
Merged
Merged
Conversation
…NOT fully connect during instantiation
…ly connect during run()
… group list box at regular intervals)
…p terminated and not connected, update tooltip
…pdate_display_timer.timeout
…ck away from RunWidget
…ack back to RunWidget
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds an update
QTimertoRunWidgetwhich allows the motion group list box reflect the active status of all motion groups.RMObject.replace_rm: Forcibly terminate a motion group that does not fully connect during initialization.RMObject.run: Forcibly terminate a motion group that does not fully connect during a run/restart.RunWidget.update_display_mg_listrewrite(defaultTrue). IfTrue, then the list box contents will be fully re-written. IfFalse, then the routine will try to just update current list box contents. The latter is needed, since the item selection state gets reset every time the list box is re-populated. If the update timer always re-populated, then the user could not select a motion group to configure.RunWidget.update_display_timerupdate_display_timer(QTimerinstance) that requests a refresh of the motion group list box every 500 ms.@Slot_handle_update_display_timer, which is connected toupdate_display_timer.timeout. It initiates the motion group list box update.RunWidgetis initialized.ConfigureGUIRunWidgettimer is stopped whenever the stack widget loses focus onRunWidget.RunWidgettimer is started whenever the stack widget regains focus onRunWidget.