55 #include <qcompilerdetection.h>
56 #include <QGraphicsEllipseItem>
57 #include <QGraphicsItem>
58 #include <QMetaObject>
64 #include "../ifc/xml/vabstractpattern.h"
65 #include "../vmisc/def.h"
67 #include "../vwidgets/vscenepoint.h"
77 quint32
id, quint32 idPoint,
const Document &parse,
const Source &typeCreation,
78 const QString &blockName = QString(),
const quint32 &
idTool = 0);
81 virtual int type() const Q_DECL_OVERRIDE {
return Type;}
83 virtual QString
getTagName() const Q_DECL_OVERRIDE;
102 virtual
void AllowHover(
bool enabled) Q_DECL_OVERRIDE;
108 virtual
void AddToFile() Q_DECL_OVERRIDE;
109 virtual
void mousePressEvent(QGraphicsSceneMouseEvent *event) Q_DECL_OVERRIDE;
110 virtual
void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event ) Q_DECL_OVERRIDE;
111 virtual
void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override;
112 virtual
void ShowNode() Q_DECL_OVERRIDE;
113 virtual
void HideNode() Q_DECL_OVERRIDE;
114 virtual
void contextMenuEvent(QGraphicsSceneContextMenuEvent *event) Q_DECL_OVERRIDE;
120 const QString &blockName = QString(), const quint32 &
idTool = 0, QObject *qoParent =
nullptr,
121 QGraphicsItem * parent =
nullptr );
The VAbstractNode class parent class for all detail node.
quint32 idTool
idTool id tool.
The VContainer class container of all variables.
The VMainGraphicsScene class main scene.
The VNodePoint class point detail node.
virtual void AddToFile() Q_DECL_OVERRIDE
AddToFile add tag with Information about tool into file.
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event) Q_DECL_OVERRIDE
virtual void setPointNameVisiblity(quint32 id, bool visible) Q_DECL_OVERRIDE
virtual void ShowNode() Q_DECL_OVERRIDE
virtual void setPointNamePosition(quint32 id, const QPointF &pos) Q_DECL_OVERRIDE
setPointNamePosition change name text position.
static const QString ToolType
virtual int type() const Q_DECL_OVERRIDE
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override
void allowTextHover(bool enabled)
static void Create(VAbstractPattern *doc, VContainer *data, VMainGraphicsScene *scene, quint32 id, quint32 idPoint, const Document &parse, const Source &typeCreation, const QString &blockName=QString(), const quint32 &idTool=0)
Create help create tool.
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event) Q_DECL_OVERRIDE
void allowTextSelectable(bool enabled)
virtual QString getTagName() const Q_DECL_OVERRIDE
virtual void HideNode() Q_DECL_OVERRIDE
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) Q_DECL_OVERRIDE
mouseReleaseEvent handle mouse release events.
virtual void AllowHover(bool enabled) Q_DECL_OVERRIDE
void nameChangedPosition(const QPointF &pos)
nameChangedPosition point name change position.
virtual void FullUpdateFromFile() Q_DECL_OVERRIDE
showContextMenu emit when need show tool context menu.
void EnableToolMove(bool move)
virtual void AllowSelecting(bool enabled) Q_DECL_OVERRIDE