52 #ifndef VSIMPLEPOINT_H
53 #define VSIMPLEPOINT_H
55 #include <qcompilerdetection.h>
57 #include <QGraphicsItem>
58 #include <QMetaObject>
65 #include "../vmisc/def.h"
67 #include "../vwidgets/vscenepoint.h"
76 VSimplePoint(quint32
id,
const QColor ¤tColor, QObject *parent =
nullptr);
79 virtual int type() const Q_DECL_OVERRIDE {
return Type;}
112 virtual void mousePressEvent( QGraphicsSceneMouseEvent * event ) Q_DECL_OVERRIDE;
113 virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event ) Q_DECL_OVERRIDE;
114 virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event) Q_DECL_OVERRIDE;
115 virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) Q_DECL_OVERRIDE;
117 virtual QVariant
itemChange ( GraphicsItemChange change,
const QVariant &value ) Q_DECL_OVERRIDE;
118 virtual void contextMenuEvent (QGraphicsSceneContextMenuEvent * event ) Q_DECL_OVERRIDE;
The VGraphicsSimpleTextItem class pointer label.
The VPointF class keep data of point.
void setOnlyPoint(bool value)
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event) Q_DECL_OVERRIDE
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value) Q_DECL_OVERRIDE
VSimplePoint(quint32 id, const QColor ¤tColor, QObject *parent=nullptr)
void nameChangedPosition(const QPointF &pos, quint32 id)
void SetEnabled(bool enabled)
void SetPointHighlight(bool value)
void EnableToolMove(bool move)
void Choosed(quint32 id)
Choosed send id when clicked.
void SetVisualizationMode(bool value)
void allowTextHover(bool enabled)
void allowTextSelectable(bool enabled)
bool IsVisualizationMode() const
virtual int type() const Q_DECL_OVERRIDE
void Selected(bool selected, quint32 id)
virtual void keyReleaseEvent(QKeyEvent *event) Q_DECL_OVERRIDE
void pointnameChangedPosition(const QPointF &pos)
virtual ~VSimplePoint()=default
void pointSelected(bool selected)
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) Q_DECL_OVERRIDE
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event) Q_DECL_OVERRIDE
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) Q_DECL_OVERRIDE
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event) Q_DECL_OVERRIDE
virtual void ToolSelectionType(const SelectionType &type) Q_DECL_OVERRIDE