X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fsignal.h;h=72d42cc2fd094098a634eea00b77a7cce606e77e;hb=238404062db14998f3b0ca93ae03a47543d219b8;hp=6f08e947c61a36958a8efbf5a0a380739576373d;hpb=a2f71ef0465ce94c6a1006adf520ba76605b457e;p=pulseview.git diff --git a/pv/view/signal.h b/pv/view/signal.h index 6f08e94..72d42cc 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); @@ -65,6 +66,26 @@ public: */ void set_colour(QColor colour); + /** + * Gets the vertical layout offset of this signal. + */ + int get_v_offset() const; + + /** + * Sets the vertical layout offset of this signal. + */ + 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. @@ -118,6 +139,9 @@ protected: protected: QString _name; QColor _colour; + int _v_offset; + + bool _selected; QSizeF _text_size; };