Documentation for nodes.
--HG-- branch : develop
This commit is contained in:
parent
84fce7ec86
commit
b711410ee6
|
@ -32,42 +32,42 @@
|
||||||
#include "../vabstracttool.h"
|
#include "../vabstracttool.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The VAbstractNode class
|
* @brief The VAbstractNode class parent class for all detail node.
|
||||||
*/
|
*/
|
||||||
class VAbstractNode : public VAbstractTool
|
class VAbstractNode : public VAbstractTool
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* @brief VAbstractNode
|
* @brief VAbstractNode constructor.
|
||||||
* @param doc dom document container
|
* @param doc dom document container.
|
||||||
* @param data container with variables
|
* @param data container with variables.
|
||||||
* @param id object id in container
|
* @param id object id in container.
|
||||||
* @param id object id in containerNode
|
* @param id object id in containerNode.
|
||||||
* @param parent parent object
|
* @param parent parent object.
|
||||||
*/
|
*/
|
||||||
VAbstractNode(VDomDocument *doc, VContainer *data, const qint64 &id, const qint64 &idNode,
|
VAbstractNode(VDomDocument *doc, VContainer *data, const qint64 &id, const qint64 &idNode,
|
||||||
const qint64 &idTool, QObject *parent = 0);
|
const qint64 &idTool, QObject *parent = 0);
|
||||||
virtual ~VAbstractNode() {}
|
virtual ~VAbstractNode() {}
|
||||||
/**
|
|
||||||
* @brief AttrIdObject
|
|
||||||
*/
|
|
||||||
static const QString AttrIdObject;
|
static const QString AttrIdObject;
|
||||||
static const QString AttrIdTool;
|
static const QString AttrIdTool;
|
||||||
virtual void DeleteNode();
|
virtual void DeleteNode();
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
* @brief idNode
|
* @brief idNodenode id.
|
||||||
*/
|
*/
|
||||||
qint64 idNode;
|
qint64 idNode;
|
||||||
|
/**
|
||||||
|
* @brief idTool id tool.
|
||||||
|
*/
|
||||||
qint64 idTool;
|
qint64 idTool;
|
||||||
/**
|
/**
|
||||||
* @brief AddToModeling
|
* @brief AddToModeling add tag to modeling tag current pattern peace.
|
||||||
* @param domElement
|
* @param domElement tag.
|
||||||
*/
|
*/
|
||||||
void AddToModeling(const QDomElement &domElement);
|
void AddToModeling(const QDomElement &domElement);
|
||||||
/**
|
/**
|
||||||
* @brief decrementReferens
|
* @brief decrementReferens decrement reference for all parent objects.
|
||||||
*/
|
*/
|
||||||
virtual void decrementReferens();
|
virtual void decrementReferens();
|
||||||
};
|
};
|
||||||
|
|
|
@ -33,43 +33,40 @@
|
||||||
#include <QGraphicsPathItem>
|
#include <QGraphicsPathItem>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The VNodeArc class
|
* @brief The VNodeArc class arc detail node.
|
||||||
*/
|
*/
|
||||||
class VNodeArc :public VAbstractNode, public QGraphicsPathItem
|
class VNodeArc :public VAbstractNode, public QGraphicsPathItem
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* @brief VNodeArc
|
* @brief VNodeArc constructor.
|
||||||
* @param doc dom document container
|
* @param doc dom document container.
|
||||||
* @param data container with variables
|
* @param data container with variables.
|
||||||
* @param id object id in container
|
* @param id object id in container.
|
||||||
* @param id object id in containerArc
|
* @param id object id in containerArc.
|
||||||
* @param typeCreation way we create this tool.
|
* @param typeCreation way we create this tool.
|
||||||
* @param parent parent object
|
* @param parent parent object.
|
||||||
*/
|
*/
|
||||||
VNodeArc(VDomDocument *doc, VContainer *data, qint64 id, qint64 idArc,
|
VNodeArc(VDomDocument *doc, VContainer *data, qint64 id, qint64 idArc,
|
||||||
const Tool::Sources &typeCreation, const qint64 &idTool = 0, QObject *qoParent = 0,
|
const Tool::Sources &typeCreation, const qint64 &idTool = 0, QObject *qoParent = 0,
|
||||||
QGraphicsItem * parent = 0);
|
QGraphicsItem * parent = 0);
|
||||||
/**
|
/**
|
||||||
* @brief Create help create tool
|
* @brief Create help create tool.
|
||||||
* @param doc dom document container
|
* @param doc dom document container.
|
||||||
* @param data container with variables
|
* @param data container with variables.
|
||||||
* @param id object id in container
|
* @param id object id in container.
|
||||||
* @param id object id in containerArc
|
* @param id object id in containerArc.
|
||||||
* @param parse parser file mode.
|
* @param parse parser file mode.
|
||||||
* @param typeCreation way we create this tool.
|
* @param typeCreation way we create this tool.
|
||||||
*/
|
*/
|
||||||
static void Create(VDomDocument *doc, VContainer *data, qint64 id, qint64 idArc, const Document::Documents &parse,
|
static void Create(VDomDocument *doc, VContainer *data, qint64 id, qint64 idArc, const Document::Documents &parse,
|
||||||
const Tool::Sources &typeCreation, const qint64 &idTool = 0, QObject *parent = 0);
|
const Tool::Sources &typeCreation, const qint64 &idTool = 0, QObject *parent = 0);
|
||||||
/**
|
|
||||||
* @brief TagName
|
|
||||||
*/
|
|
||||||
static const QString TagName;
|
static const QString TagName;
|
||||||
/**
|
|
||||||
* @brief ToolType
|
|
||||||
*/
|
|
||||||
static const QString ToolType;
|
static const QString ToolType;
|
||||||
|
/**
|
||||||
|
* @brief DeleteNode delete node from detail.
|
||||||
|
*/
|
||||||
virtual void DeleteNode();
|
virtual void DeleteNode();
|
||||||
public slots:
|
public slots:
|
||||||
/**
|
/**
|
||||||
|
@ -86,23 +83,23 @@ protected:
|
||||||
*/
|
*/
|
||||||
virtual void RefreshDataInFile();
|
virtual void RefreshDataInFile();
|
||||||
/**
|
/**
|
||||||
* @brief mouseReleaseEvent handle mouse release events.
|
* @brief mouseReleaseEvent handle mouse release events.
|
||||||
* @param event
|
* @param event mouse release event.
|
||||||
*/
|
*/
|
||||||
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
|
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
|
||||||
/**
|
/**
|
||||||
* @brief hoverMoveEvent handle hover move events.
|
* @brief hoverMoveEvent handle hover move events.
|
||||||
* @param event
|
* @param event hover move event.
|
||||||
*/
|
*/
|
||||||
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
|
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
|
||||||
/**
|
/**
|
||||||
* @brief hoverLeaveEvent handle hover leave events.
|
* @brief hoverLeaveEvent handle hover leave events.
|
||||||
* @param event
|
* @param event hover leave event.
|
||||||
*/
|
*/
|
||||||
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );
|
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );
|
||||||
private:
|
private:
|
||||||
/**
|
/**
|
||||||
* @brief RefreshGeometry refresh item on scene.
|
* @brief RefreshGeometry refresh item on scene.
|
||||||
*/
|
*/
|
||||||
void RefreshGeometry();
|
void RefreshGeometry();
|
||||||
};
|
};
|
||||||
|
|
|
@ -33,44 +33,41 @@
|
||||||
#include "../../widgets/vgraphicssimpletextitem.h"
|
#include "../../widgets/vgraphicssimpletextitem.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The VNodePoint class
|
* @brief The VNodePoint class point detail node.
|
||||||
*/
|
*/
|
||||||
class VNodePoint: public VAbstractNode, public QGraphicsEllipseItem
|
class VNodePoint: public VAbstractNode, public QGraphicsEllipseItem
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* @brief VNodePoint
|
* @brief VNodePoint constructor.
|
||||||
* @param doc dom document container
|
* @param doc dom document container.
|
||||||
* @param data container with variables
|
* @param data container with variables.
|
||||||
* @param id object id in container
|
* @param id object id in container.
|
||||||
* @param id object id in containerPoint
|
* @param id object id in containerPoint.
|
||||||
* @param typeCreation way we create this tool.
|
* @param typeCreation way we create this tool.
|
||||||
* @param parent parent object
|
* @param parent parent object.
|
||||||
*/
|
*/
|
||||||
VNodePoint(VDomDocument *doc, VContainer *data, qint64 id, qint64 idPoint,
|
VNodePoint(VDomDocument *doc, VContainer *data, qint64 id, qint64 idPoint,
|
||||||
const Tool::Sources &typeCreation, const qint64 &idTool = 0, QObject *qoParent = 0,
|
const Tool::Sources &typeCreation, const qint64 &idTool = 0, QObject *qoParent = 0,
|
||||||
QGraphicsItem * parent = 0 );
|
QGraphicsItem * parent = 0 );
|
||||||
/**
|
/**
|
||||||
* @brief Create help create tool
|
* @brief Create help create tool.
|
||||||
* @param doc dom document container
|
* @param doc dom document container.
|
||||||
* @param data container with variables
|
* @param data container with variables.
|
||||||
* @param id object id in container
|
* @param id object id in container.
|
||||||
* @param id object id in containerPoint
|
* @param id object id in containerPoint.
|
||||||
* @param parse parser file mode.
|
* @param parse parser file mode.
|
||||||
* @param typeCreation way we create this tool.
|
* @param typeCreation way we create this tool.
|
||||||
*/
|
*/
|
||||||
static void Create(VDomDocument *doc, VContainer *data, qint64 id, qint64 idPoint,
|
static void Create(VDomDocument *doc, VContainer *data, qint64 id, qint64 idPoint,
|
||||||
const Document::Documents &parse, const Tool::Sources &typeCreation, const qint64 &idTool = 0,
|
const Document::Documents &parse, const Tool::Sources &typeCreation, const qint64 &idTool = 0,
|
||||||
QObject *parent = 0);
|
QObject *parent = 0);
|
||||||
/**
|
|
||||||
* @brief TagName
|
|
||||||
*/
|
|
||||||
static const QString TagName;
|
static const QString TagName;
|
||||||
/**
|
|
||||||
* @brief ToolType
|
|
||||||
*/
|
|
||||||
static const QString ToolType;
|
static const QString ToolType;
|
||||||
|
/**
|
||||||
|
* @brief DeleteNode delete node from detail.
|
||||||
|
*/
|
||||||
virtual void DeleteNode();
|
virtual void DeleteNode();
|
||||||
public slots:
|
public slots:
|
||||||
/**
|
/**
|
||||||
|
@ -78,21 +75,21 @@ public slots:
|
||||||
*/
|
*/
|
||||||
virtual void FullUpdateFromFile();
|
virtual void FullUpdateFromFile();
|
||||||
/**
|
/**
|
||||||
* @brief NameChangePosition
|
* @brief NameChangePosition label change position.
|
||||||
* @param pos
|
* @param pos new position.
|
||||||
*/
|
*/
|
||||||
void NameChangePosition(const QPointF &pos);
|
void NameChangePosition(const QPointF &pos);
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
* @brief radius
|
* @brief radius radius circle.
|
||||||
*/
|
*/
|
||||||
qreal radius;
|
qreal radius;
|
||||||
/**
|
/**
|
||||||
* @brief namePoint
|
* @brief namePoint label name.
|
||||||
*/
|
*/
|
||||||
VGraphicsSimpleTextItem *namePoint;
|
VGraphicsSimpleTextItem *namePoint;
|
||||||
/**
|
/**
|
||||||
* @brief lineName
|
* @brief lineName pointer to label line.
|
||||||
*/
|
*/
|
||||||
QGraphicsLineItem *lineName;
|
QGraphicsLineItem *lineName;
|
||||||
/**
|
/**
|
||||||
|
@ -104,33 +101,33 @@ protected:
|
||||||
*/
|
*/
|
||||||
virtual void RefreshDataInFile();
|
virtual void RefreshDataInFile();
|
||||||
/**
|
/**
|
||||||
* @brief mouseReleaseEvent handle mouse release events.
|
* @brief mouseReleaseEvent handle mouse release events.
|
||||||
* @param event
|
* @param event mouse release event.
|
||||||
*/
|
*/
|
||||||
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
|
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
|
||||||
/**
|
/**
|
||||||
* @brief hoverMoveEvent handle hover move events.
|
* @brief hoverMoveEvent handle hover move events.
|
||||||
* @param event
|
* @param event hover move event.
|
||||||
*/
|
*/
|
||||||
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
|
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
|
||||||
/**
|
/**
|
||||||
* @brief hoverLeaveEvent handle hover leave events.
|
* @brief hoverLeaveEvent handle hover leave events.
|
||||||
* @param event
|
* @param event hover leave event.
|
||||||
*/
|
*/
|
||||||
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );
|
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );
|
||||||
/**
|
/**
|
||||||
* @brief UpdateNamePosition
|
* @brief UpdateNamePosition update label position in file.
|
||||||
* @param mx label bias x axis.
|
* @param mx label bias x axis.
|
||||||
* @param my label bias y axis.
|
* @param my label bias y axis.
|
||||||
*/
|
*/
|
||||||
virtual void UpdateNamePosition(qreal mx, qreal my);
|
virtual void UpdateNamePosition(qreal mx, qreal my);
|
||||||
/**
|
/**
|
||||||
* @brief RefreshPointGeometry
|
* @brief RefreshPointGeometry refresh point on scene.
|
||||||
* @param point
|
* @param point point position.
|
||||||
*/
|
*/
|
||||||
virtual void RefreshPointGeometry(const VPointF &point);
|
virtual void RefreshPointGeometry(const VPointF &point);
|
||||||
/**
|
/**
|
||||||
* @brief RefreshLine
|
* @brief RefreshLine refresh label line on scene.
|
||||||
*/
|
*/
|
||||||
void RefreshLine();
|
void RefreshLine();
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -33,30 +33,30 @@
|
||||||
#include <QGraphicsPathItem>
|
#include <QGraphicsPathItem>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The VNodeSpline class
|
* @brief The VNodeSpline class spline detail node.
|
||||||
*/
|
*/
|
||||||
class VNodeSpline:public VAbstractNode, public QGraphicsPathItem
|
class VNodeSpline:public VAbstractNode, public QGraphicsPathItem
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* @brief VNodeSpline
|
* @brief VNodeSpline constructor.
|
||||||
* @param doc dom document container
|
* @param doc dom document container.
|
||||||
* @param data container with variables
|
* @param data container with variables.
|
||||||
* @param id object id in container
|
* @param id object id in container.
|
||||||
* @param id object id in containerSpline
|
* @param id object id in containerSpline.
|
||||||
* @param typeCreation way we create this tool.
|
* @param typeCreation way we create this tool.
|
||||||
* @param parent parent object
|
* @param parent parent object.
|
||||||
*/
|
*/
|
||||||
VNodeSpline(VDomDocument *doc, VContainer *data, qint64 id, qint64 idSpline,
|
VNodeSpline(VDomDocument *doc, VContainer *data, qint64 id, qint64 idSpline,
|
||||||
const Tool::Sources &typeCreation, const qint64 &idTool = 0, QObject *qoParent = 0,
|
const Tool::Sources &typeCreation, const qint64 &idTool = 0, QObject *qoParent = 0,
|
||||||
QGraphicsItem * parent = 0);
|
QGraphicsItem * parent = 0);
|
||||||
/**
|
/**
|
||||||
* @brief Create help create tool
|
* @brief Create help create tool.
|
||||||
* @param doc dom document container
|
* @param doc dom document container.
|
||||||
* @param data container with variables
|
* @param data container with variables.
|
||||||
* @param id object id in container
|
* @param id object id in container.
|
||||||
* @param id object id in containerSpline
|
* @param id object id in containerSpline.
|
||||||
* @param parse parser file mode.
|
* @param parse parser file mode.
|
||||||
* @param typeCreation way we create this tool.
|
* @param typeCreation way we create this tool.
|
||||||
* @return
|
* @return
|
||||||
|
@ -64,14 +64,11 @@ public:
|
||||||
static VNodeSpline *Create(VDomDocument *doc, VContainer *data, qint64 id, qint64 idSpline,
|
static VNodeSpline *Create(VDomDocument *doc, VContainer *data, qint64 id, qint64 idSpline,
|
||||||
const Document::Documents &parse, const Tool::Sources &typeCreation,
|
const Document::Documents &parse, const Tool::Sources &typeCreation,
|
||||||
const qint64 &idTool = 0, QObject *parent = 0);
|
const qint64 &idTool = 0, QObject *parent = 0);
|
||||||
/**
|
|
||||||
* @brief TagName
|
|
||||||
*/
|
|
||||||
static const QString TagName;
|
static const QString TagName;
|
||||||
/**
|
|
||||||
* @brief ToolType
|
|
||||||
*/
|
|
||||||
static const QString ToolType;
|
static const QString ToolType;
|
||||||
|
/**
|
||||||
|
* @brief DeleteNode delete node from detail.
|
||||||
|
*/
|
||||||
virtual void DeleteNode();
|
virtual void DeleteNode();
|
||||||
public slots:
|
public slots:
|
||||||
/**
|
/**
|
||||||
|
@ -88,23 +85,23 @@ protected:
|
||||||
*/
|
*/
|
||||||
virtual void RefreshDataInFile();
|
virtual void RefreshDataInFile();
|
||||||
/**
|
/**
|
||||||
* @brief mouseReleaseEvent handle mouse release events.
|
* @brief mouseReleaseEvent handle mouse release events.
|
||||||
* @param event
|
* @param event mouse release event.
|
||||||
*/
|
*/
|
||||||
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
|
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
|
||||||
/**
|
/**
|
||||||
* @brief hoverMoveEvent handle hover move events.
|
* @brief hoverMoveEvent handle hover move events.
|
||||||
* @param event
|
* @param event hover move event.
|
||||||
*/
|
*/
|
||||||
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
|
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
|
||||||
/**
|
/**
|
||||||
* @brief hoverLeaveEvent handle hover leave events.
|
* @brief hoverLeaveEvent handle hover leave events.
|
||||||
* @param event
|
* @param event hover leave event.
|
||||||
*/
|
*/
|
||||||
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );
|
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );
|
||||||
private:
|
private:
|
||||||
/**
|
/**
|
||||||
* @brief RefreshGeometry refresh item on scene.
|
* @brief RefreshGeometry refresh item on scene.
|
||||||
*/
|
*/
|
||||||
void RefreshGeometry ();
|
void RefreshGeometry ();
|
||||||
};
|
};
|
||||||
|
|
|
@ -33,44 +33,41 @@
|
||||||
#include <QGraphicsPathItem>
|
#include <QGraphicsPathItem>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The VNodeSplinePath class
|
* @brief The VNodeSplinePath class spline path detail node.
|
||||||
*/
|
*/
|
||||||
class VNodeSplinePath : public VAbstractNode, public QGraphicsPathItem
|
class VNodeSplinePath : public VAbstractNode, public QGraphicsPathItem
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* @brief VNodeSplinePath
|
* @brief VNodeSplinePath constructor.
|
||||||
* @param doc dom document container
|
* @param doc dom document container.
|
||||||
* @param data container with variables
|
* @param data container with variables.
|
||||||
* @param id object id in container
|
* @param id object id in container.
|
||||||
* @param id object id in containerSpline
|
* @param id object id in containerSpline.
|
||||||
* @param typeCreation way we create this tool.
|
* @param typeCreation way we create this tool.
|
||||||
* @param parent parent object
|
* @param parent parent object.
|
||||||
*/
|
*/
|
||||||
VNodeSplinePath(VDomDocument *doc, VContainer *data, qint64 id, qint64 idSpline,
|
VNodeSplinePath(VDomDocument *doc, VContainer *data, qint64 id, qint64 idSpline,
|
||||||
const Tool::Sources &typeCreation, const qint64 &idTool = 0, QObject *qoParent = 0,
|
const Tool::Sources &typeCreation, const qint64 &idTool = 0, QObject *qoParent = 0,
|
||||||
QGraphicsItem * parent = 0);
|
QGraphicsItem * parent = 0);
|
||||||
/**
|
/**
|
||||||
* @brief Create help create tool
|
* @brief Create help create tool.
|
||||||
* @param doc dom document container
|
* @param doc dom document container.
|
||||||
* @param data container with variables
|
* @param data container with variables.
|
||||||
* @param id object id in container
|
* @param id object id in container.
|
||||||
* @param id object id in containerSpline
|
* @param id object id in containerSpline.
|
||||||
* @param parse parser file mode.
|
* @param parse parser file mode.
|
||||||
* @param typeCreation way we create this tool.
|
* @param typeCreation way we create this tool.
|
||||||
*/
|
*/
|
||||||
static void Create(VDomDocument *doc, VContainer *data, qint64 id, qint64 idSpline,
|
static void Create(VDomDocument *doc, VContainer *data, qint64 id, qint64 idSpline,
|
||||||
const Document::Documents &parse, const Tool::Sources &typeCreation, const qint64 &idTool = 0,
|
const Document::Documents &parse, const Tool::Sources &typeCreation, const qint64 &idTool = 0,
|
||||||
QObject *parent = 0);
|
QObject *parent = 0);
|
||||||
/**
|
|
||||||
* @brief TagName
|
|
||||||
*/
|
|
||||||
static const QString TagName;
|
static const QString TagName;
|
||||||
/**
|
|
||||||
* @brief ToolType
|
|
||||||
*/
|
|
||||||
static const QString ToolType;
|
static const QString ToolType;
|
||||||
|
/**
|
||||||
|
* @brief DeleteNode delete node from detail.
|
||||||
|
*/
|
||||||
virtual void DeleteNode();
|
virtual void DeleteNode();
|
||||||
public slots:
|
public slots:
|
||||||
/**
|
/**
|
||||||
|
@ -87,23 +84,23 @@ protected:
|
||||||
*/
|
*/
|
||||||
virtual void RefreshDataInFile();
|
virtual void RefreshDataInFile();
|
||||||
/**
|
/**
|
||||||
* @brief mouseReleaseEvent handle mouse release events.
|
* @brief mouseReleaseEvent handle mouse release events.
|
||||||
* @param event
|
* @param event mouse release event.
|
||||||
*/
|
*/
|
||||||
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
|
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
|
||||||
/**
|
/**
|
||||||
* @brief hoverMoveEvent handle hover move events.
|
* @brief hoverMoveEvent handle hover move events.
|
||||||
* @param event
|
* @param event hover move event.
|
||||||
*/
|
*/
|
||||||
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
|
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
|
||||||
/**
|
/**
|
||||||
* @brief hoverLeaveEvent handle hover leave events.
|
* @brief hoverLeaveEvent handle hover leave events.
|
||||||
* @param event
|
* @param event hover leave event.
|
||||||
*/
|
*/
|
||||||
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );
|
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );
|
||||||
private:
|
private:
|
||||||
/**
|
/**
|
||||||
* @brief RefreshGeometry refresh item on scene.
|
* @brief RefreshGeometry refresh item on scene.
|
||||||
*/
|
*/
|
||||||
void RefreshGeometry();
|
void RefreshGeometry();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user