20 #include <QMouseEvent> 25 m_diagram(dv->diagram()),
68 if (event->key() == Qt::Key_Escape)
~DVEventInterface() override=0
virtual bool keyPressEvent(QKeyEvent *event)
DVEventInterface::keyPressEvent By default, press escape key abort the curent action. isFinish return true, and emit finish.
virtual bool isRunning() const
virtual bool mouseDoubleClickEvent(QMouseEvent *event)
virtual bool KeyReleaseEvent(QKeyEvent *event)
virtual bool mouseReleaseEvent(QMouseEvent *event)
void finish()
finish emited when the interface finish is work
virtual bool mouseMoveEvent(QMouseEvent *event)
virtual bool wheelEvent(QWheelEvent *event)
virtual bool mousePressEvent(QMouseEvent *event)
virtual bool isFinish() const
DVEventInterface(DiagramView *dv)