QElectroTech 0.100.0-dev
|
The ESEventAddPolygon class This ESEvent manage creation of polygon in an ElementScene. More...
#include <eseventaddpolygon.h>
Public Member Functions | |
ESEventAddPolygon (ElementScene *scene) | |
ESEventAddPolygon::ESEventAddPolygon. | |
~ESEventAddPolygon () override | |
ESEventAddPolygon::~ESEventAddPolygon. | |
bool | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
ESEventAddPolygon::mousePressEvent. | |
bool | mouseMoveEvent (QGraphicsSceneMouseEvent *event) override |
ESEventAddPolygon::mouseMoveEvent. | |
bool | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override |
ESEventAddPolygon::mouseReleaseEvent. | |
bool | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override |
ESEventAddPolygon::mouseDoubleClickEvent. | |
Public Member Functions inherited from ESEventInterface | |
ESEventInterface (ElementScene *scene) | |
virtual | ~ESEventInterface () |
ESEventInterface::~ESEventInterface Destructor. | |
void | init () |
ESEventInterface::init Init this event interface. | |
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 | |
PartPolygon * | m_polygon |
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 ESEventAddPolygon class This ESEvent manage creation of polygon in an ElementScene.
ESEventAddPolygon::ESEventAddPolygon | ( | ElementScene * | scene | ) |
ESEventAddPolygon::ESEventAddPolygon.
scene |
|
override |
|
overridevirtual |
ESEventAddPolygon::mouseDoubleClickEvent.
event |
Reimplemented from ESEventInterface.
|
overridevirtual |
ESEventAddPolygon::mouseMoveEvent.
event |
Reimplemented from ESEventInterface.
|
overridevirtual |
ESEventAddPolygon::mousePressEvent.
event |
Reimplemented from ESEventInterface.
|
overridevirtual |
|
private |