|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef DIAGRAMEVENTINTERFACE_H
19 #define DIAGRAMEVENTINTERFACE_H
23 class QGraphicsSceneMouseEvent;
24 class QGraphicsSceneWheelEvent;
56 virtual void wheelEvent (QGraphicsSceneWheelEvent *event);
71 #endif // DIAGRAMEVENTINTERFACE_H
Diagram * m_diagram
Definition: diagrameventinterface.h:66
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Definition: diagrameventinterface.cpp:42
DiagramEventInterface(Diagram *diagram)
Definition: diagrameventinterface.cpp:24
virtual void keyReleaseEvent(QKeyEvent *event)
Definition: diagrameventinterface.cpp:70
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
Definition: diagrameventinterface.cpp:38
virtual void init()
Definition: diagrameventinterface.cpp:78
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition: diagram.h:56
virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
Definition: diagrameventinterface.cpp:34
virtual bool isRunning() const
Definition: diagrameventinterface.cpp:74
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
Definition: diagrameventinterface.cpp:46
virtual void wheelEvent(QGraphicsSceneWheelEvent *event)
Definition: diagrameventinterface.cpp:50
bool m_running
Definition: diagrameventinterface.h:67
bool m_abort
Definition: diagrameventinterface.h:68
The DiagramEventInterface class isRunning() return true if action is running (do something)....
Definition: diagrameventinterface.h:46
virtual void keyPressEvent(QKeyEvent *event)
DiagramEventInterface::keyPressEvent By default, press escape key abort the curent action.
Definition: diagrameventinterface.cpp:59
~DiagramEventInterface() override=0
Definition: diagrameventinterface.cpp:32