X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fdecodetrace.hpp;h=96332d97b46c8a3842ed1f8fa580ae9a59528ebf;hp=eb011e74367df36951046beb5c582a8dd06ef8c1;hb=bf0edd2b0cbb5f4bd5d69b0f00bcea7d037e2287;hpb=f765c3db91d60e9b038ee05f2fa6acc8587d8470 diff --git a/pv/view/decodetrace.hpp b/pv/view/decodetrace.hpp index eb011e7..96332d9 100644 --- a/pv/view/decodetrace.hpp +++ b/pv/view/decodetrace.hpp @@ -31,6 +31,7 @@ #include #include +#include #include struct srd_channel; @@ -84,7 +85,7 @@ private: static const QColor OutlineColours[16]; public: - DecodeTrace(pv::Session &session, + DecodeTrace(pv::Session &session, std::shared_ptr signalbase, std::shared_ptr decoder_stack, int index); @@ -131,10 +132,10 @@ private: size_t base_colour, int row_title_width); void draw_annotation(const pv::data::decode::Annotation &a, QPainter &p, - int text_height, const ViewItemPaintParams &pp, int y, + int h, const ViewItemPaintParams &pp, int y, size_t base_colour, int row_title_width) const; - void draw_annotation_block(std::vector a, + void draw_annotation_block(std::vector annotations, QPainter &p, int h, int y, size_t base_colour) const; void draw_instant(const pv::data::decode::Annotation &a, QPainter &p, @@ -196,6 +197,7 @@ private Q_SLOTS: private: pv::Session &session_; + std::shared_ptr signalbase_; std::shared_ptr decoder_stack_; uint64_t decode_start_, decode_end_; @@ -210,6 +212,8 @@ private: std::map row_title_widths_; int row_height_, max_visible_rows_; + int min_useful_label_width_; + QSignalMapper delete_mapper_, show_hide_mapper_; };