From: Soeren Apel Date: Tue, 27 Jun 2017 16:32:30 +0000 (+0200) Subject: Decode: Improve signaling X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=1b56c646e7dd253775b4d6cfceaf327fd8ffd297;hp=1b56c646e7dd253775b4d6cfceaf327fd8ffd297 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(). ---