QElectroTech
0.70
|
The ESEventAddPolygon class This ESEvent manage creation of polygon in an ElementScene. More...
#include <eseventaddpolygon.h>
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.
Definition at line 31 of file eseventaddpolygon.h.
ESEventAddPolygon::ESEventAddPolygon | ( | ElementScene * | scene | ) |
ESEventAddPolygon::ESEventAddPolygon.
scene |
Definition at line 29 of file eseventaddpolygon.cpp.
|
override |
ESEventAddPolygon::~ESEventAddPolygon.
Definition at line 37 of file eseventaddpolygon.cpp.
References ESEventInterface::m_abort, m_polygon, and ESEventInterface::m_running.
|
overridevirtual |
ESEventAddPolygon::mouseDoubleClickEvent.
event |
Reimplemented from ESEventInterface.
Definition at line 106 of file eseventaddpolygon.cpp.
References m_polygon, ESEventInterface::m_scene, PartPolygon::polygon, PartPolygon::removeLastPoint(), PartPolygon::setClosed(), QET::Icons::tr, and ElementScene::undoStack().
|
overridevirtual |
ESEventAddPolygon::mouseMoveEvent.
event |
Reimplemented from ESEventInterface.
Definition at line 70 of file eseventaddpolygon.cpp.
References m_polygon, ESEventInterface::m_scene, and ESEventInterface::updateHelpCross().
|
overridevirtual |
ESEventAddPolygon::mousePressEvent.
event |
Reimplemented from ESEventInterface.
Definition at line 47 of file eseventaddpolygon.cpp.
References ESEventInterface::m_editor, m_polygon, ESEventInterface::m_running, ESEventInterface::m_scene, QET::Icons::PartPolygon, and ElementScene::snapToGrid().
|
overridevirtual |
ESEventAddPolygon::mouseReleaseEvent.
event |
Reimplemented from ESEventInterface.
Definition at line 83 of file eseventaddpolygon.cpp.
References m_polygon, ESEventInterface::m_running, and ESEventInterface::m_scene.
|
private |
Definition at line 43 of file eseventaddpolygon.h.
Referenced by mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), and ~ESEventAddPolygon().