X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fdecode%2Fannotation.h;fp=pv%2Fview%2Fdecode%2Fannotation.h;h=078c12a19190d47ed7baeedb4c28fe79b84e7b25;hb=f9abdc014adda6771828db4c8caa8f66e066b7a3;hp=091cd26004acee80fea8eb45baf86cb5a181983e;hpb=c51482b339fbb76e0de042ac3f136a6e5b752b9a;p=pulseview.git diff --git a/pv/view/decode/annotation.h b/pv/view/decode/annotation.h index 091cd26..078c12a 100644 --- a/pv/view/decode/annotation.h +++ b/pv/view/decode/annotation.h @@ -37,12 +37,14 @@ private: static const double EndCapWidth; static const int DrawPadding; + static const QColor Colours[7]; + public: Annotation(const srd_proto_data *const pdata); - void paint(QPainter &p, QColor fill, QColor outline, - QColor text_colour, int text_height, int left, int right, - double samples_per_pixel, double pixels_offset, int y); + void paint(QPainter &p, QColor text_colour, int text_height, int left, + int right, double samples_per_pixel, double pixels_offset, + int y); private: void draw_instant(QPainter &p, QColor fill, QColor outline, @@ -55,6 +57,7 @@ private: private: uint64_t _start_sample; uint64_t _end_sample; + int _format; std::vector _annotations; };