projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RowItem: Replaced fixed signal heights with extents
[pulseview.git]
/
pv
/
view
/
tracegroup.h
diff --git
a/pv/view/tracegroup.h
b/pv/view/tracegroup.h
index 297afa82eaec28c1002bc79cbbd33a4ee47466e4..a9f5558f4a381893dcae3d05c9bf36d9a9742243 100644
(file)
--- a/
pv/view/tracegroup.h
+++ b/
pv/view/tracegroup.h
@@
-31,6
+31,10
@@
class TraceGroup : public RowItem, public RowItemOwner
{
Q_OBJECT
{
Q_OBJECT
+private:
+ static const int Padding;
+ static const int Width;
+
public:
/**
* Virtual destructor
public:
/**
* Virtual destructor
@@
-62,6
+66,12
@@
public:
*/
virtual const pv::view::View* view() const;
*/
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<int, int> v_extents() const;
+
/**
* Paints the signal label.
* @param p the QPainter to paint into.
/**
* Paints the signal label.
* @param p the QPainter to paint into.
@@
-77,7
+87,7
@@
public:
* area.
* @return Returns the rectangle of the signal label.
*/
* area.
* @return Returns the rectangle of the signal label.
*/
- QRectF label_rect(int right);
+ QRectF label_rect(int right)
const
;
/**
* Determines if a point is in the header label rect.
/**
* Determines if a point is in the header label rect.