X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Frow.hpp;h=80aa114c1edb8dde8514c67f7ee67139a55c0d91;hb=04b0467582d8dfa989bb38fe18bfb1be20cea456;hp=71945f2e0cf0899ffc911001ef5beff0e4f17bb4;hpb=86d4b8e3e52a422fe3a6956d6bbef27f1859717b;p=pulseview.git diff --git a/pv/data/decode/row.hpp b/pv/data/decode/row.hpp index 71945f2e..80aa114c 100644 --- a/pv/data/decode/row.hpp +++ b/pv/data/decode/row.hpp @@ -20,16 +20,18 @@ #ifndef PULSEVIEW_PV_DATA_DECODE_ROW_HPP #define PULSEVIEW_PV_DATA_DECODE_ROW_HPP +#include #include +#include #include -#include -#include - struct srd_decoder; struct srd_decoder_annotation_row; +using std::map; +using std::vector; + namespace pv { namespace data { namespace decode { @@ -37,11 +39,13 @@ namespace decode { #define DECODE_COLOR_SATURATION (180) /* 0-255 */ #define DECODE_COLOR_VALUE (170) /* 0-255 */ -struct AnnotationClass; +class AnnotationClass; class Decoder; -class Row +class Row: public QObject { + Q_OBJECT + public: Row(); @@ -71,6 +75,9 @@ public: bool operator<(const Row& other) const; bool operator==(const Row& other) const; +Q_SIGNALS: + void visibility_changed(); + private: uint32_t index_; Decoder* decoder_;