X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Flogicsignal.h;h=b1ef777ad47ced54fa30b9cc6183aa56c49e0c76;hb=b3b57abc4fcfea1471529e9d116eaf11905f6639;hp=e12f0ca404d4dd0c0c38ef8c72aec0e94179b979;hpb=51e77110d4316fd0106f8306f5e1f0523c5bf7d7;p=pulseview.git diff --git a/pv/logicsignal.h b/pv/logicsignal.h index e12f0ca4..b1ef777a 100644 --- a/pv/logicsignal.h +++ b/pv/logicsignal.h @@ -18,6 +18,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef PULSEVIEW_PV_LOGICSIGNAL_H +#define PULSEVIEW_PV_LOGICSIGNAL_H + #include "signal.h" #include @@ -55,15 +58,10 @@ public: private: - int paint_caps(QPainter &p, QLineF *const lines, + void paint_caps(QPainter &p, QLineF *const lines, std::vector< std::pair > &edges, bool level, double samples_per_pixel, double pixels_offset, - int x_offset, int y_offset); - - /** - * Get the colour of the logic signal - */ - QColor get_colour() const; + float x_offset, float y_offset); /** * When painting into the rectangle, calculate the y @@ -77,3 +75,5 @@ private: }; } // namespace pv + +#endif // PULSEVIEW_PV_LOGICSIGNAL_H