21 #ifndef PULSEVIEW_PV_VIEWITEM_HPP
22 #define PULSEVIEW_PV_VIEWITEM_HPP
59 virtual bool enabled()
const = 0;
95 virtual void drag_by(
const QPoint &delta) = 0;
101 virtual QPoint
point(
const QRect &rect)
const = 0;
109 virtual QRectF
label_rect(
const QRectF &rect)
const;
125 virtual void paint_label(QPainter &p,
const QRect &rect,
bool hover);
178 #endif // PULSEVIEW_PV_VIEWITEM_HPP
virtual void drag_release()
static const QSizeF LabelPadding
virtual QMenu * create_context_menu(QWidget *parent)
virtual bool enabled() const =0
virtual bool is_draggable() const
virtual void paint_fore(QPainter &p, const ViewItemPaintParams &pp)
QWidget * context_parent_
virtual pv::widgets::Popup * create_popup(QWidget *parent)
virtual void paint_label(QPainter &p, const QRect &rect, bool hover)
static QColor select_text_colour(QColor background)
virtual void delete_pressed()
virtual void paint_mid(QPainter &p, const ViewItemPaintParams &pp)
virtual void select(bool select=true)
virtual QRectF label_rect(const QRectF &rect) const
static const int HighlightRadius
virtual void paint_back(QPainter &p, const ViewItemPaintParams &pp)
virtual QRectF hit_box_rect(const ViewItemPaintParams &pp) const
virtual QPoint point(const QRect &rect) const =0
static QPen highlight_pen()
virtual void drag_by(const QPoint &delta)=0