#include <list>
+#include <QMouseEvent>
#include <QPen>
#include <QPoint>
public:
ViewItem();
-public:
/**
* Returns true if the item is visible and enabled.
*/
/**
* 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.
*/
virtual void paint_fore(QPainter &p, ViewItemPaintParams &pp);
-public:
/**
* Gets the text color.
* @remarks This color is computed by comparing the lightness
virtual void delete_pressed();
+ virtual void hover_point_changed(const QPoint &hp);
+
+ /**
+ * Handles left mouse button press events.
+ * @param event the mouse event that triggered this handler.
+ */
+ virtual void mouse_left_press_event(const QMouseEvent* event);
+
protected:
static QPen highlight_pen();