X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fdecodetrace.hpp;h=43473873444f01ba3f786b3c1fcd63b084215f70;hp=da9f56ccb76d5546e0fc4baccc6413c729b56ab1;hb=4a07615736968fc8d635c8d187b8a5d6b8a0e2eb;hpb=9f97b3576f527239594ea0accb82a4087147c746 diff --git a/pv/views/trace/decodetrace.hpp b/pv/views/trace/decodetrace.hpp index da9f56cc..43473873 100644 --- a/pv/views/trace/decodetrace.hpp +++ b/pv/views/trace/decodetrace.hpp @@ -29,6 +29,7 @@ #include #include +#include #include #include @@ -50,7 +51,6 @@ namespace pv { class Session; namespace data { -class DecoderStack; class SignalBase; struct DecodeChannel; class DecodeSignal; @@ -60,7 +60,7 @@ class Annotation; class Decoder; class Row; } -} +} // namespace data namespace widgets { class DecoderGroupBox; @@ -83,6 +83,8 @@ private: static const int RowTitleMargin; static const int DrawPadding; + static const int MaxTraceUpdateRate; + static const QColor Colours[16]; static const QColor OutlineColours[16]; @@ -177,10 +179,13 @@ private: const data::DecodeChannel *ch); public: - void hover_point_changed(); + void hover_point_changed(const QPoint &hp); private Q_SLOTS: void on_new_annotations(); + void on_delayed_trace_update(); + void on_decode_reset(); + void on_decode_finished(); void on_delete(); @@ -215,6 +220,8 @@ private: int min_useful_label_width_; QSignalMapper delete_mapper_, show_hide_mapper_; + + QTimer delayed_trace_updater_; }; } // namespace trace