Decode: Improve signaling
authorSoeren Apel <soeren@apelpie.net>
Tue, 27 Jun 2017 16:32:30 +0000 (18:32 +0200)
committerUwe Hermann <uwe@hermann-uwe.de>
Wed, 5 Jul 2017 22:37:08 +0000 (00:37 +0200)
commit1b56c646e7dd253775b4d6cfceaf327fd8ffd297
treee1710345933e02650b3111e30c1fae91c5585dc4
parentf5a5b019c5679dbe6b4bc6f956c3820f47869bc1
Decode: Improve signaling

Three issues that were fixed by this:
1) The SignalBase did notify PDs when its conversion changed
and new sample data was generated but this was dismissed as
the samples_cleared() signal was never fired nor used by the
PD stack.

2) The decode_finished() signal was added so that the decode
trace can immediately paint the trace once the PD is done.
Before, a repaint was only triggered when annotations came in,
resulting in a noticeable "unresolved period" visible if the
last stretch of signal didn't contain any annotations as the
trace wasn't repainted quickly enough.

3) The decode trace indirectly looks at the signal's
samples_decoded_ member when drawing the "unresolved period"
bar. Hence we should update this member before triggering the
repaint via new_annotations().
pv/data/decodesignal.cpp
pv/data/decodesignal.hpp
pv/data/signalbase.cpp
pv/views/trace/decodetrace.cpp
pv/views/trace/decodetrace.hpp