18#ifndef DIAGRAMEVENTINTERFACE_H
19#define DIAGRAMEVENTINTERFACE_H
24class QGraphicsSceneMouseEvent;
25class QGraphicsSceneWheelEvent;
57 virtual void wheelEvent (QGraphicsSceneWheelEvent *event);
The DiagramEventInterface class isRunning() return true if action is running (do something)....
Definition diagrameventinterface.h:47
virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
Definition diagrameventinterface.cpp:35
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
Definition diagrameventinterface.cpp:47
virtual bool isRunning() const
Definition diagrameventinterface.cpp:75
virtual void init()
Definition diagrameventinterface.cpp:80
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
Definition diagrameventinterface.cpp:39
QPointer< Diagram > m_diagram
Definition diagrameventinterface.h:67
bool m_running
Definition diagrameventinterface.h:68
~DiagramEventInterface() override=0
Definition diagrameventinterface.cpp:32
bool m_abort
Definition diagrameventinterface.h:69
virtual void keyReleaseEvent(QKeyEvent *event)
Definition diagrameventinterface.cpp:71
virtual void keyPressEvent(QKeyEvent *event)
DiagramEventInterface::keyPressEvent By default, press escape key abort the current action.
Definition diagrameventinterface.cpp:60
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Definition diagrameventinterface.cpp:43
virtual void wheelEvent(QGraphicsSceneWheelEvent *event)
Definition diagrameventinterface.cpp:51
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition diagram.h:56