X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fcursor.h;h=16e8298b8df4a8a0c98ad038dd78a90cb37043f7;hb=7c238e082a6fadc14f90285805f5901cc8f68570;hp=be779c00ef18a2da86303f4b39759dd969a12ce2;hpb=3a6fe0818affcb40b2821eab3f633e536377dd81;p=pulseview.git diff --git a/pv/view/cursor.h b/pv/view/cursor.h index be779c00..16e8298b 100644 --- a/pv/view/cursor.h +++ b/pv/view/cursor.h @@ -23,6 +23,8 @@ #include "timemarker.h" +#include + #include class QPainter; @@ -34,13 +36,12 @@ class Cursor : public TimeMarker { Q_OBJECT -private: +public: static const QColor LineColour; static const QColor FillColour; static const QColor HighlightColour; static const QColor TextColour; - static const int Size; static const int Offset; static const int ArrowSize; @@ -48,10 +49,10 @@ private: public: /** * Constructor. - * @param colour A reference to the colour of this cursor. + * @param view A reference to the view that owns this cursor pair. * @param time The time to set the flag to. */ - Cursor(const View &view, double time); + Cursor(View &view, double time); public: /** @@ -73,6 +74,8 @@ public: private: void compute_text_size(QPainter &p, unsigned int prefix); + std::shared_ptr get_other_cursor() const; + private: QSizeF _text_size; };