X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Ftracegroup.h;h=d24647649a95a30755a1d80a7bc75010d7e1ea30;hb=8dbbc7f0b9ea59d0f0d62225772f8a56eee125f5;hp=21298dcb01e4d10f09423289a2a98f4ba0cb8ad7;hpb=b781f8065271c6ce4b82f06f20dd37464f213d47;p=pulseview.git diff --git a/pv/view/tracegroup.h b/pv/view/tracegroup.h index 21298dc..d246476 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. @@ -100,9 +108,24 @@ public: /** * Returns the total vertical offset of this trace and all it's owners */ - int owner_v_offset() const; + int owner_visual_v_offset() const; + + void restack_items(); + + /** + * Returns the number of nested parents that this row item owner has. + */ + unsigned int depth() const; + + void ungroup(); + +public: + void appearance_changed(bool label, bool content); + + void extents_changed(bool horz, bool vert); - void update_viewport(); +private Q_SLOTS: + void on_ungroup(); }; } // view