18#ifndef DIAGRAMEVENTADDSHAPE_H
19#define DIAGRAMEVENTADDSHAPE_H
21#include "../qetgraphicsitem/qetshapeitem.h"
The DiagramEventAddShape class This event manage the creation of a shape.
Definition diagrameventaddshape.h:29
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddShape::mousePressEvent Action when mouse is pressed.
Definition diagrameventaddshape.cpp:62
QetShapeItem::ShapeType m_shape_type
Definition diagrameventaddshape.h:46
~DiagramEventAddShape() override
DiagramEventAddShape::~DiagramEventAddShape.
Definition diagrameventaddshape.cpp:43
QetShapeItem * m_shape_item
Definition diagrameventaddshape.h:47
void init() override
Definition diagrameventaddshape.cpp:201
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddShape::mouseReleaseEvent Action when mouse button is released.
Definition diagrameventaddshape.cpp:136
void updateHelpCross(const QPointF &p)
DiagramEventAddShape::updateHelpCross Create and update the position of the cross to help user for dr...
Definition diagrameventaddshape.cpp:212
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddShape::mouseMoveEvent Action when mouse move.
Definition diagrameventaddshape.cpp:115
QGraphicsLineItem * m_help_horiz
Definition diagrameventaddshape.h:48
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddShape::mouseDoubleClickEvent Action when mouse button is double clicked.
Definition diagrameventaddshape.cpp:178
QGraphicsLineItem * m_help_verti
Definition diagrameventaddshape.h:48
The DiagramEventInterface class isRunning() return true if action is running (do something)....
Definition diagrameventinterface.h:47
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition diagram.h:56
The QetShapeItem class this class is used to draw a basic shape (line, rectangle, ellipse) into a dia...
Definition qetshapeitem.h:37
ShapeType
Definition qetshapeitem.h:58