QElectroTech
0.70
|
#include <eseventinterface.h>
Public Member Functions | |
ESEventInterface (ElementScene *scene) | |
virtual | ~ESEventInterface () |
ESEventInterface::~ESEventInterface Destructor. More... | |
void | init () |
ESEventInterface::init Init this event interface. More... | |
virtual bool | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) |
virtual bool | mousePressEvent (QGraphicsSceneMouseEvent *event) |
virtual bool | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
virtual bool | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
virtual bool | wheelEvent (QGraphicsSceneWheelEvent *event) |
virtual bool | keyPressEvent (QKeyEvent *event) |
ESEventInterface::keyPressEvent By default, press escape key abort the curent action. More... | |
virtual bool | KeyReleaseEvent (QKeyEvent *event) |
virtual bool | isRunning () const |
virtual bool | isFinish () const |
Protected Member Functions | |
void | updateHelpCross (const QPointF &p) |
Protected Attributes | |
ElementScene * | m_scene |
QETElementEditor * | m_editor |
QGraphicsLineItem * | m_help_horiz |
QGraphicsLineItem * | m_help_verti |
bool | m_running |
bool | m_abort |
Definition at line 29 of file eseventinterface.h.
ESEventInterface::ESEventInterface | ( | ElementScene * | scene | ) |
Definition at line 23 of file eseventinterface.cpp.
References init().
|
virtual |
ESEventInterface::~ESEventInterface Destructor.
Definition at line 48 of file eseventinterface.cpp.
References m_editor, m_help_horiz, m_help_verti, m_scene, ElementScene::setBehavior(), and QETElementEditor::slot_setRubberBandToView().
void ESEventInterface::init | ( | ) |
ESEventInterface::init Init this event interface.
Definition at line 38 of file eseventinterface.cpp.
References m_editor, m_scene, ElementScene::setBehavior(), and QETElementEditor::slot_setNoDragToView().
Referenced by ESEventInterface(), and ElementScene::setEventInterface().
|
virtual |
Definition at line 106 of file eseventinterface.cpp.
References m_running.
Referenced by ElementScene::keyPressEvent(), ElementScene::mouseDoubleClickEvent(), ElementScene::mouseMoveEvent(), ElementScene::mousePressEvent(), and ElementScene::mouseReleaseEvent().
|
virtual |
Definition at line 102 of file eseventinterface.cpp.
References m_running.
|
virtual |
ESEventInterface::keyPressEvent By default, press escape key abort the curent action.
event |
Reimplemented in ESEventAddArc, and ESEventAddTerminal.
Definition at line 88 of file eseventinterface.cpp.
References m_abort, and m_running.
Referenced by ESEventAddTerminal::keyPressEvent(), and ESEventAddArc::keyPressEvent().
|
virtual |
Definition at line 97 of file eseventinterface.cpp.
|
virtual |
Reimplemented in ESEventAddPolygon.
Definition at line 57 of file eseventinterface.cpp.
|
virtual |
Reimplemented in ESEventAddEllipse, ESEventAddArc, ESEventAddLine, ESEventAddPolygon, ESEventAddDynamicTextField, ESEventAddTerminal, ESEventAddText, and ESEventAddRect.
Definition at line 67 of file eseventinterface.cpp.
|
virtual |
Reimplemented in ESEventAddEllipse, ESEventAddArc, ESEventAddLine, ESEventAddPolygon, and ESEventAddRect.
Definition at line 62 of file eseventinterface.cpp.
|
virtual |
Reimplemented in ESEventAddEllipse, ESEventAddArc, ESEventAddLine, ESEventAddPolygon, ESEventAddDynamicTextField, ESEventAddTerminal, ESEventAddText, and ESEventAddRect.
Definition at line 72 of file eseventinterface.cpp.
|
protected |
Definition at line 110 of file eseventinterface.cpp.
References m_help_horiz, m_help_verti, and m_scene.
Referenced by ESEventAddRect::mouseMoveEvent(), ESEventAddText::mouseMoveEvent(), ESEventAddTerminal::mouseMoveEvent(), ESEventAddDynamicTextField::mouseMoveEvent(), ESEventAddPolygon::mouseMoveEvent(), ESEventAddArc::mouseMoveEvent(), ESEventAddLine::mouseMoveEvent(), and ESEventAddEllipse::mouseMoveEvent().
|
virtual |
Definition at line 77 of file eseventinterface.cpp.
|
protected |
Definition at line 54 of file eseventinterface.h.
Referenced by keyPressEvent(), ESEventAddArc::~ESEventAddArc(), ESEventAddEllipse::~ESEventAddEllipse(), ESEventAddLine::~ESEventAddLine(), ESEventAddPolygon::~ESEventAddPolygon(), and ESEventAddRect::~ESEventAddRect().
|
protected |
Definition at line 52 of file eseventinterface.h.
Referenced by ESEventAddDynamicTextField::ESEventAddDynamicTextField(), ESEventAddTerminal::ESEventAddTerminal(), ESEventAddText::ESEventAddText(), init(), ESEventAddRect::mousePressEvent(), ESEventAddArc::mousePressEvent(), ESEventAddLine::mousePressEvent(), ESEventAddPolygon::mousePressEvent(), ESEventAddEllipse::mousePressEvent(), ESEventAddTerminal::mouseReleaseEvent(), ESEventAddDynamicTextField::mouseReleaseEvent(), ESEventAddText::mouseReleaseEvent(), and ~ESEventInterface().
|
protected |
Definition at line 53 of file eseventinterface.h.
Referenced by updateHelpCross(), and ~ESEventInterface().
|
protected |
Definition at line 53 of file eseventinterface.h.
Referenced by updateHelpCross(), and ~ESEventInterface().
|
protected |
Definition at line 54 of file eseventinterface.h.
Referenced by ESEventAddDynamicTextField::ESEventAddDynamicTextField(), ESEventAddTerminal::ESEventAddTerminal(), ESEventAddText::ESEventAddText(), isFinish(), isRunning(), keyPressEvent(), ESEventAddRect::mousePressEvent(), ESEventAddArc::mousePressEvent(), ESEventAddLine::mousePressEvent(), ESEventAddPolygon::mousePressEvent(), ESEventAddEllipse::mousePressEvent(), ESEventAddRect::mouseReleaseEvent(), ESEventAddTerminal::mouseReleaseEvent(), ESEventAddDynamicTextField::mouseReleaseEvent(), ESEventAddText::mouseReleaseEvent(), ESEventAddLine::mouseReleaseEvent(), ESEventAddArc::mouseReleaseEvent(), ESEventAddPolygon::mouseReleaseEvent(), ESEventAddEllipse::mouseReleaseEvent(), ESEventAddArc::~ESEventAddArc(), ESEventAddEllipse::~ESEventAddEllipse(), ESEventAddLine::~ESEventAddLine(), ESEventAddPolygon::~ESEventAddPolygon(), and ESEventAddRect::~ESEventAddRect().
|
protected |
Definition at line 51 of file eseventinterface.h.
Referenced by ESEventAddDynamicTextField::ESEventAddDynamicTextField(), ESEventAddTerminal::ESEventAddTerminal(), ESEventAddText::ESEventAddText(), init(), ESEventAddPolygon::mouseDoubleClickEvent(), ESEventAddRect::mouseMoveEvent(), ESEventAddTerminal::mouseMoveEvent(), ESEventAddDynamicTextField::mouseMoveEvent(), ESEventAddText::mouseMoveEvent(), ESEventAddLine::mouseMoveEvent(), ESEventAddPolygon::mouseMoveEvent(), ESEventAddArc::mouseMoveEvent(), ESEventAddEllipse::mouseMoveEvent(), ESEventAddRect::mousePressEvent(), ESEventAddLine::mousePressEvent(), ESEventAddArc::mousePressEvent(), ESEventAddPolygon::mousePressEvent(), ESEventAddEllipse::mousePressEvent(), ESEventAddText::mouseReleaseEvent(), ESEventAddTerminal::mouseReleaseEvent(), ESEventAddDynamicTextField::mouseReleaseEvent(), ESEventAddPolygon::mouseReleaseEvent(), updateHelpCross(), and ~ESEventInterface().