52 #ifndef VSIMPLECURVE_H
53 #define VSIMPLECURVE_H
55 #include <qcompilerdetection.h>
57 #include <QGraphicsItem>
58 #include <QMetaObject>
60 #include <QSharedPointer>
65 #include "../vmisc/def.h"
79 virtual
int type() const Q_DECL_OVERRIDE {
return Type;}
96 virtual void mousePressEvent( QGraphicsSceneMouseEvent * event ) Q_DECL_OVERRIDE;
97 virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event ) Q_DECL_OVERRIDE;
98 virtual void hoverEnterEvent ( QGraphicsSceneHoverEvent * event ) Q_DECL_OVERRIDE;
99 virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event ) Q_DECL_OVERRIDE;
100 virtual QVariant
itemChange ( GraphicsItemChange change,
const QVariant &value ) Q_DECL_OVERRIDE;
101 virtual void contextMenuEvent (QGraphicsSceneContextMenuEvent * event ) Q_DECL_OVERRIDE;
void CurveSelected(bool selected)
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value) Q_DECL_OVERRIDE
void RefreshGeometry(const QSharedPointer< VAbstractCurve > &curve)
virtual void keyReleaseEvent(QKeyEvent *event) Q_DECL_OVERRIDE
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event) Q_DECL_OVERRIDE
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) Q_DECL_OVERRIDE
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event) Q_DECL_OVERRIDE
void Selected(bool selected, quint32 id)
VSimpleCurve(quint32 id, const QSharedPointer< VAbstractCurve > &curve, QObject *parent=nullptr)
virtual void ScalePenWidth() Q_DECL_OVERRIDE
virtual int type() const Q_DECL_OVERRIDE
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event) Q_DECL_OVERRIDE
void Choosed(quint32 id)
Choosed send id when clicked.
virtual ~VSimpleCurve() Q_DECL_EQ_DEFAULT
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) Q_DECL_OVERRIDE
QSharedPointer< VAbstractCurve > m_curve