projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DecodeTrace: Remove hide_hover_annotation() as it's only used once
[pulseview.git]
/
pv
/
view
/
selectableitem.hpp
diff --git
a/pv/view/selectableitem.hpp
b/pv/view/selectableitem.hpp
index 1f5944900bafa8d5ed9adafb482c3f77b32c8395..b61c54d6430bebd04c575a2ee3e101285e9ee34e 100644
(file)
--- a/
pv/view/selectableitem.hpp
+++ b/
pv/view/selectableitem.hpp
@@
-48,6
+48,11
@@
public:
SelectableItem();
public:
SelectableItem();
public:
+ /**
+ * Returns true if the item is visible and enabled.
+ */
+ virtual bool enabled() const = 0;
+
/**
* Returns true if the item has been selected by the user.
*/
/**
* Returns true if the item has been selected by the user.
*/
@@
-83,6
+88,13
@@
public:
*/
virtual QPoint point() const = 0;
*/
virtual QPoint point() const = 0;
+ /**
+ * Computes the outline rectangle of a label.
+ * @param rect the rectangle of the header area.
+ * @return Returns the rectangle of the signal label.
+ */
+ virtual QRectF label_rect(const QRectF &rect) const = 0;
+
public:
/**
* Gets the text colour.
public:
/**
* Gets the text colour.