|
QElectroTech
0.70
|
The ESEventAddEllipse class This ESEvent manage creation of ellpise in an ElementScene. More...
#include <eseventaddellipse.h>
Public Member Functions | |
| ESEventAddEllipse (ElementScene *scene) | |
| ESEventAddEllipse::ESEventAddEllipse. More... | |
| ~ESEventAddEllipse () override | |
| ESEventAddEllipse::~ESEventAddEllipse. More... | |
| bool | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
| ESEventAddEllipse::mousePressEvent. More... | |
| bool | mouseMoveEvent (QGraphicsSceneMouseEvent *event) override |
| ESEventAddRect::mouseMoveEvent. More... | |
| bool | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override |
| ESEventAddEllipse::mouseReleaseEvent. More... | |
Public Member Functions inherited from ESEventInterface | |
| 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 | 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 |
Private Attributes | |
| PartEllipse * | m_ellipse |
| QPointF | m_origin |
| QPointF | m_new_pos |
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 ESEventAddEllipse class This ESEvent manage creation of ellpise in an ElementScene.
Definition at line 32 of file eseventaddellipse.h.
| ESEventAddEllipse::ESEventAddEllipse | ( | ElementScene * | scene | ) |
ESEventAddEllipse::ESEventAddEllipse.
| scene |
Definition at line 29 of file eseventaddellipse.cpp.
|
override |
ESEventAddEllipse::~ESEventAddEllipse.
Definition at line 37 of file eseventaddellipse.cpp.
References ESEventInterface::m_abort, m_ellipse, and ESEventInterface::m_running.
|
overridevirtual |
ESEventAddRect::mouseMoveEvent.
| event |
Reimplemented from ESEventInterface.
Definition at line 79 of file eseventaddellipse.cpp.
References m_ellipse, m_new_pos, m_origin, ESEventInterface::m_scene, and ESEventInterface::updateHelpCross().
|
overridevirtual |
ESEventAddEllipse::mousePressEvent.
| event |
Reimplemented from ESEventInterface.
Definition at line 48 of file eseventaddellipse.cpp.
References ESEventInterface::m_editor, m_ellipse, m_new_pos, m_origin, ESEventInterface::m_running, ESEventInterface::m_scene, QET::Icons::PartEllipse, ElementScene::snapToGrid(), and QET::Icons::tr.
|
overridevirtual |
ESEventAddEllipse::mouseReleaseEvent.
| event |
Reimplemented from ESEventInterface.
Definition at line 101 of file eseventaddellipse.cpp.
References m_ellipse, and ESEventInterface::m_running.
|
private |
Definition at line 43 of file eseventaddellipse.h.
Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), and ~ESEventAddEllipse().
|
private |
Definition at line 44 of file eseventaddellipse.h.
Referenced by mouseMoveEvent(), and mousePressEvent().
|
private |
Definition at line 44 of file eseventaddellipse.h.
Referenced by mouseMoveEvent(), and mousePressEvent().
1.8.15