projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge RowItem() into ViewItem()
[pulseview.git]
/
pv
/
views
/
trace
/
viewitem.hpp
diff --git
a/pv/views/trace/viewitem.hpp
b/pv/views/trace/viewitem.hpp
index 89a57e5edeb248b2dab9b59618cab71b9d268667..c445f609063df6386579d6fa6cebf74fd4a11c19 100644
(file)
--- a/
pv/views/trace/viewitem.hpp
+++ b/
pv/views/trace/viewitem.hpp
@@
-53,12
+53,16
@@
public:
public:
ViewItem();
public:
ViewItem();
-public:
/**
* Returns true if the item is visible and enabled.
*/
virtual bool enabled() const = 0;
/**
* Returns true if the item is visible and enabled.
*/
virtual bool enabled() const = 0;
+ /**
+ * Returns true if the item may be selected.
+ */
+ virtual bool is_selectable(QPoint pos) const;
+
/**
* Returns true if the item has been selected by the user.
*/
/**
* Returns true if the item has been selected by the user.
*/
@@
-72,7
+76,7
@@
public:
/**
* Returns true if the item may be dragged/moved.
*/
/**
* Returns true if the item may be dragged/moved.
*/
- virtual bool is_draggable() const;
+ virtual bool is_draggable(
QPoint pos
) const;
/**
* Returns true if the item is being dragged.
/**
* Returns true if the item is being dragged.
@@
-146,7
+150,6
@@
public:
*/
virtual void paint_fore(QPainter &p, ViewItemPaintParams &pp);
*/
virtual void paint_fore(QPainter &p, ViewItemPaintParams &pp);
-public:
/**
* Gets the text color.
* @remarks This color is computed by comparing the lightness
/**
* Gets the text color.
* @remarks This color is computed by comparing the lightness
@@
-164,6
+167,8
@@
public:
virtual void delete_pressed();
virtual void delete_pressed();
+ virtual void hover_point_changed(const QPoint &hp);
+
protected:
static QPen highlight_pen();
protected:
static QPen highlight_pen();