18#ifndef DIAGRAMEVENTADDELEMENT_H
19#define DIAGRAMEVENTADDELEMENT_H
21#include "../ElementsCollection/elementslocation.h"
The DiagramEventAddElement class This diagram event add a new element, for each left click button at ...
Definition diagrameventaddelement.h:33
QPointer< QStatusBar > m_status_bar
Definition diagrameventaddelement.h:55
Element * m_element
Definition diagrameventaddelement.h:53
bool buildElement()
DiagramEventAddElement::buildElement Build the element, if the element is build successfully,...
Definition diagrameventaddelement.cpp:198
void init() override
DiagramEventAddElement::init Init this event.
Definition diagrameventaddelement.cpp:188
~DiagramEventAddElement() override
DiagramEventAddElement::~DiagramEventAddElement Destructor Enable context menu for each view of diagr...
Definition diagrameventaddelement.cpp:72
ElementsLocation m_location
Definition diagrameventaddelement.h:52
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddElement::mouseReleaseEvent Right button finish this event (isRunning = false) and emit...
Definition diagrameventaddelement.cpp:125
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddElement::mousePressEvent Do nothing, but return true for not transit the event to othe...
Definition diagrameventaddelement.cpp:114
void keyPressEvent(QKeyEvent *event) override
DiagramEventAddElement::keyPressEvent Press space key rotate the element to 90° (return true) else ca...
Definition diagrameventaddelement.cpp:172
QString m_integrate_path
Definition diagrameventaddelement.h:54
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddElement::mouseMoveEvent Move the element to new pos of mouse the event is always accep...
Definition diagrameventaddelement.cpp:94
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddElement::mouseDoubleClickEvent If mouse left double clic, finish this event (isRunning...
Definition diagrameventaddelement.cpp:152
void addElement()
DiagramEventAddElement::addElement Add an element at the current pos en current rotation,...
Definition diagrameventaddelement.cpp:226
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 ElementsLocation class This class represents the location, the location of an element or of a cat...
Definition elementslocation.h:47