QElectroTech  0.8-dev
Public Member Functions | Private Attributes | List of all members
ESEventAddLine Class Reference

The ESEventAddLine class This ESEvent manage creation of line in a ElementScene. More...

#include <eseventaddline.h>

Inheritance diagram for ESEventAddLine:
Inheritance graph
Collaboration diagram for ESEventAddLine:
Collaboration graph

Public Member Functions

 ESEventAddLine (ElementScene *scene)
 ESEventAddLine::ESEventAddLine Constructor. More...
 
 ~ESEventAddLine () override
 ESEventAddLine::~ESEventAddLine destructor. More...
 
bool mousePressEvent (QGraphicsSceneMouseEvent *event) override
 ESEventAddLine::mousePressEvent. More...
 
bool mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
 ESEventAddLine::mouseMoveEvent. More...
 
bool mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 ESEventAddLine::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

PartLinem_line
 

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 ESEventAddLine class This ESEvent manage creation of line in a ElementScene.

Constructor & Destructor Documentation

◆ ESEventAddLine()

ESEventAddLine::ESEventAddLine ( ElementScene scene)

ESEventAddLine::ESEventAddLine Constructor.

Parameters
scene: scene where we operate this action

◆ ~ESEventAddLine()

ESEventAddLine::~ESEventAddLine ( )
override

Member Function Documentation

◆ mouseMoveEvent()

bool ESEventAddLine::mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
overridevirtual

ESEventAddLine::mouseMoveEvent.

Parameters
event
Returns

Reimplemented from ESEventInterface.

Here is the call graph for this function:

◆ mousePressEvent()

bool ESEventAddLine::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
overridevirtual

ESEventAddLine::mousePressEvent.

Parameters
event
Returns

Reimplemented from ESEventInterface.

Here is the call graph for this function:

◆ mouseReleaseEvent()

bool ESEventAddLine::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
overridevirtual

ESEventAddLine::mouseReleaseEvent.

Parameters
event
Returns

Reimplemented from ESEventInterface.

Member Data Documentation

◆ m_line

PartLine* ESEventAddLine::m_line
private

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