QElectroTech 0.100.0-dev
|
The ESEventAddLine class This ESEvent manage creation of line in a ElementScene. More...
#include <eseventaddline.h>
Public Member Functions | |
ESEventAddLine (ElementScene *scene) | |
ESEventAddLine::ESEventAddLine Constructor. | |
~ESEventAddLine () override | |
ESEventAddLine::~ESEventAddLine destructor. | |
bool | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
ESEventAddLine::mousePressEvent. | |
bool | mouseMoveEvent (QGraphicsSceneMouseEvent *event) override |
ESEventAddLine::mouseMoveEvent. | |
bool | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override |
ESEventAddLine::mouseReleaseEvent. | |
Public Member Functions inherited from ESEventInterface | |
ESEventInterface (ElementScene *scene) | |
virtual | ~ESEventInterface () |
ESEventInterface::~ESEventInterface Destructor. | |
void | init () |
ESEventInterface::init Init this event interface. | |
virtual bool | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) |
virtual bool | wheelEvent (QGraphicsSceneWheelEvent *event) |
virtual bool | keyPressEvent (QKeyEvent *event) |
ESEventInterface::keyPressEvent By default, press escape key abort the current action. | |
virtual bool | KeyReleaseEvent (QKeyEvent *event) |
virtual bool | isRunning () const |
virtual bool | isFinish () const |
Private Attributes | |
PartLine * | m_line |
Additional Inherited Members | |
Protected Member Functions inherited from ESEventInterface | |
void | updateHelpCross (const QPointF &p) |
Protected Attributes inherited from ESEventInterface | |
ElementScene * | m_scene |
QETElementEditor * | m_editor |
QGraphicsLineItem * | m_help_horiz |
QGraphicsLineItem * | m_help_verti |
bool | m_running |
bool | m_abort |
The ESEventAddLine class This ESEvent manage creation of line in a ElementScene.
ESEventAddLine::ESEventAddLine | ( | ElementScene * | scene | ) |
ESEventAddLine::ESEventAddLine Constructor.
scene | : scene where we operate this action |
|
override |
ESEventAddLine::~ESEventAddLine destructor.
|
overridevirtual |
ESEventAddLine::mouseMoveEvent.
event |
Reimplemented from ESEventInterface.
|
overridevirtual |
ESEventAddLine::mousePressEvent.
event |
Reimplemented from ESEventInterface.
|
overridevirtual |
|
private |