X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Ftracegroup.h;h=a950eac91451ba188ab0bd898430b4d83ebdef2e;hp=0d246cee3c05471c88dbe4f99425eafcea395230;hb=3e769a374963f37f7d52b65ef6c56bcdf1ef11fe;hpb=0067d80499d36944277e6fed2d7ad5394c85c03f diff --git a/pv/view/tracegroup.h b/pv/view/tracegroup.h index 0d246cee..a950eac9 100644 --- a/pv/view/tracegroup.h +++ b/pv/view/tracegroup.h @@ -31,6 +31,12 @@ class TraceGroup : public RowItem, public RowItemOwner { Q_OBJECT +private: + static const int Padding; + static const int Width; + static const int LineThickness; + static const QColor LineColour; + public: /** * Virtual destructor @@ -62,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. @@ -98,7 +110,18 @@ public: */ int owner_v_offset() const; - void update_viewport(); + /** + * Returns the number of nested parents that this row item owner has. + */ + unsigned int depth() const; + +public: + void appearance_changed(bool label, bool content); + + void extents_changed(bool horz, bool vert); + +private Q_SLOTS: + void on_ungroup(); }; } // view