5#ifndef DIAGRAMEVENTADDMACRO_H
6#define DIAGRAMEVENTADDMACRO_H
11#include <QDomDocument>
12#include <QGraphicsPixmapItem>
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
Definition diagrameventaddmacro.cpp:131
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
Definition diagrameventaddmacro.cpp:114
DiagramEventAddMacro(const ElementsLocation &location, Diagram *diagram, QPointF pos=QPointF(0, 0))
Definition diagrameventaddmacro.cpp:21
QGraphicsPixmapItem * m_preview_item
Definition diagrameventaddmacro.h:41
QPointer< QStatusBar > m_status_bar
Definition diagrameventaddmacro.h:42
bool loadMacro()
Definition diagrameventaddmacro.cpp:171
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override
Definition diagrameventaddmacro.cpp:148
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
Definition diagrameventaddmacro.cpp:127
void keyPressEvent(QKeyEvent *event) override
DiagramEventInterface::keyPressEvent By default, press escape key abort the current action.
Definition diagrameventaddmacro.cpp:160
ElementsLocation m_location
Definition diagrameventaddmacro.h:39
QDomDocument m_macro_doc
Definition diagrameventaddmacro.h:40
void addMacro(QPointF final_pos)
Definition diagrameventaddmacro.cpp:232
void init() override
Definition diagrameventaddmacro.cpp:165
~DiagramEventAddMacro() override
Definition diagrameventaddmacro.cpp:99
DiagramEventInterface(Diagram *diagram)
Definition diagrameventinterface.cpp:25
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition diagram.h:54
The ElementsLocation class This class represents the location, the location of an element or of a cat...
Definition elementslocation.h:47