QElectroTech  0.70
Public Member Functions | Private Attributes | List of all members
ESEventAddEllipse Class Reference

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

PartEllipsem_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
ElementScenem_scene
 
QETElementEditorm_editor
 
QGraphicsLineItem * m_help_horiz
 
QGraphicsLineItem * m_help_verti
 
bool m_running
 
bool m_abort
 

Detailed Description

The ESEventAddEllipse class This ESEvent manage creation of ellpise in an ElementScene.

Definition at line 32 of file eseventaddellipse.h.

Constructor & Destructor Documentation

◆ ESEventAddEllipse()

ESEventAddEllipse::ESEventAddEllipse ( ElementScene scene)

ESEventAddEllipse::ESEventAddEllipse.

Parameters
scene

Definition at line 29 of file eseventaddellipse.cpp.

◆ ~ESEventAddEllipse()

ESEventAddEllipse::~ESEventAddEllipse ( )
override

Member Function Documentation

◆ mouseMoveEvent()

bool ESEventAddEllipse::mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
overridevirtual

ESEventAddRect::mouseMoveEvent.

Parameters
event
Returns

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().

◆ mousePressEvent()

bool ESEventAddEllipse::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
overridevirtual

◆ mouseReleaseEvent()

bool ESEventAddEllipse::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
overridevirtual

ESEventAddEllipse::mouseReleaseEvent.

Parameters
event
Returns

Reimplemented from ESEventInterface.

Definition at line 101 of file eseventaddellipse.cpp.

References m_ellipse, and ESEventInterface::m_running.

Member Data Documentation

◆ m_ellipse

PartEllipse* ESEventAddEllipse::m_ellipse
private

◆ m_new_pos

QPointF ESEventAddEllipse::m_new_pos
private

Definition at line 44 of file eseventaddellipse.h.

Referenced by mouseMoveEvent(), and mousePressEvent().

◆ m_origin

QPointF ESEventAddEllipse::m_origin
private

Definition at line 44 of file eseventaddellipse.h.

Referenced by mouseMoveEvent(), and mousePressEvent().


The documentation for this class was generated from the following files: