X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fsignal.h;h=72d42cc2fd094098a634eea00b77a7cce606e77e;hp=b3212394115df5c5b043d27969cb8dcdfd117d84;hb=e3374498baf2b2a05889cab370442ff326b390b3;hpb=2e57535108a0ae2e5d1ee454f1e61b71d23afdb3 diff --git a/pv/view/signal.h b/pv/view/signal.h index b3212394..72d42cc2 100644 --- a/pv/view/signal.h +++ b/pv/view/signal.h @@ -40,6 +40,7 @@ class Signal { private: static const int LabelHitPadding; + static const int LabelHighlightRadius; protected: Signal(QString name); @@ -75,6 +76,16 @@ public: */ void set_v_offset(int v_offset); + /** + * Returns true if the signal has been selected by the user. + */ + bool selected() const; + + /** + * Selects or deselects the signal. + */ + void select(bool select = true); + /** * Paints the signal with a QPainter * @param p the QPainter to paint into. @@ -130,6 +141,8 @@ protected: QColor _colour; int _v_offset; + bool _selected; + QSizeF _text_size; };