X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Ftracegroup.h;h=218f42b11d3df54d548f1c3e4cf41f49d2bdf411;hp=21298dcb01e4d10f09423289a2a98f4ba0cb8ad7;hb=32218d3e708553b4508c3510d388aded58068381;hpb=b781f8065271c6ce4b82f06f20dd37464f213d47 diff --git a/pv/view/tracegroup.h b/pv/view/tracegroup.h index 21298dcb..218f42b1 100644 --- a/pv/view/tracegroup.h +++ b/pv/view/tracegroup.h @@ -34,6 +34,8 @@ class TraceGroup : public RowItem, public RowItemOwner private: static const int Padding; static const int Width; + static const int LineThickness; + static const QColor LineColour; public: /** @@ -66,6 +68,12 @@ public: */ virtual const pv::view::View* view() const; + /** + * Computes the vertical extents of the contents of this row item. + * @return A pair containing the minimum and maximum y-values. + */ + std::pair v_extents() const; + /** * Paints the signal label. * @param p the QPainter to paint into. @@ -102,7 +110,13 @@ public: */ int owner_v_offset() const; - void update_viewport(); +public: + void appearance_changed(bool label, bool content); + + void extents_changed(bool horz, bool vert); + +private Q_SLOTS: + void on_ungroup(); }; } // view