18 #ifndef DIAGRAMEVENTADDSHAPE_H 19 #define DIAGRAMEVENTADDSHAPE_H 51 #endif // DIAGRAMEVENTADDSHAPE_H QetShapeItem::ShapeType m_shape_type
DiagramEventAddShape(Diagram *diagram, QetShapeItem::ShapeType shape_type)
DiagramEventAddShape::DiagramEventAddShape Default constructor.
QetShapeItem * m_shape_item
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddShape::mouseDoubleClickEvent Action when mouse button is double clicked.
QGraphicsLineItem * m_help_verti
void updateHelpCross(const QPointF &p)
DiagramEventAddShape::updateHelpCross Create and update the position of the cross to help user for dr...
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddShape::mouseMoveEvent Action when mouse move.
The DiagramEventAddShape class This event manage the creation of a shape.
~DiagramEventAddShape() override
DiagramEventAddShape::~DiagramEventAddShape.
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddShape::mouseReleaseEvent Action when mouse button is released.
The QetShapeItem class this class is used to draw a basic shape (line, rectangle, ellipse) into a dia...
The DiagramEventInterface class isRunning() return true if action is running (do something). By default return false.
QGraphicsLineItem * m_help_horiz
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddShape::mousePressEvent Action when mouse is pressed.