X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fdecode%2Fannotation.h;h=d0282114a21972c3eb53de8b253a55c5c5fd2556;hb=a6c1726e1132f475754482a1194d9ee58cdfb816;hp=091cd26004acee80fea8eb45baf86cb5a181983e;hpb=ea47a30c748939c334dfdbb8215e52a53204f5e6;p=pulseview.git diff --git a/pv/view/decode/annotation.h b/pv/view/decode/annotation.h index 091cd26..d028211 100644 --- a/pv/view/decode/annotation.h +++ b/pv/view/decode/annotation.h @@ -37,12 +37,17 @@ 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); + uint64_t start_sample() const; + uint64_t end_sample() const; + + 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 +60,7 @@ private: private: uint64_t _start_sample; uint64_t _end_sample; + int _format; std::vector _annotations; };