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.
Continues work by @Cenkron to add a repeating retrigger mode to PulseView capture sessions. The user can enable repeat mode and set a time delay between when each capture segment completes and the next one is starts.
In the prior email exchange, some changes were requested to better fit the UI and architecture:
https://sourceforge.net/p/sigrok/mailman/sigrok-devel/thread/cdf7c54b-c509-9162-34fb-2709f5756437%40BrianAndChristine.com/
Following these suggestions, this PR moves the retrigger timer into the session state and uses the existing feature to display segments from a repetitive capture on the same time scale.
Some draft icons are also added for new UI:
Open questions
Running
state repeatedly. Howeverpv::views::trace::View
expects the transition toRunning
state to happen only once per capture and uses it as a signal to reset the state of the UI which interferes with segment display. More states can be added to the session but I don't know whether it is best to do so. See comments in view.cpp.