QElectroTech  0.8-dev
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ESEventInterface Class Reference

#include <eseventinterface.h>

Inheritance diagram for ESEventInterface:
Inheritance graph
Collaboration diagram for ESEventInterface:
Collaboration graph

Public Member Functions

 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 mousePressEvent (QGraphicsSceneMouseEvent *event)
 
virtual bool mouseMoveEvent (QGraphicsSceneMouseEvent *event)
 
virtual bool mouseReleaseEvent (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
 

Protected Member Functions

void updateHelpCross (const QPointF &p)
 

Protected Attributes

ElementScenem_scene
 
QETElementEditorm_editor
 
QGraphicsLineItem * m_help_horiz
 
QGraphicsLineItem * m_help_verti
 
bool m_running
 
bool m_abort
 

Constructor & Destructor Documentation

◆ ESEventInterface()

ESEventInterface::ESEventInterface ( ElementScene scene)
Here is the call graph for this function:

◆ ~ESEventInterface()

ESEventInterface::~ESEventInterface ( )
virtual

ESEventInterface::~ESEventInterface Destructor.

Here is the call graph for this function:

Member Function Documentation

◆ init()

void ESEventInterface::init ( )

ESEventInterface::init Init this event interface.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isFinish()

bool ESEventInterface::isFinish ( ) const
virtual
Here is the caller graph for this function:

◆ isRunning()

bool ESEventInterface::isRunning ( ) const
virtual

◆ keyPressEvent()

bool ESEventInterface::keyPressEvent ( QKeyEvent *  event)
virtual

ESEventInterface::keyPressEvent By default, press escape key abort the curent action.

Parameters
event
Returns

Reimplemented in ESEventAddArc, and ESEventAddTerminal.

Here is the caller graph for this function:

◆ KeyReleaseEvent()

bool ESEventInterface::KeyReleaseEvent ( QKeyEvent *  event)
virtual

◆ mouseDoubleClickEvent()

bool ESEventInterface::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent *  event)
virtual

Reimplemented in ESEventAddPolygon.

◆ mouseMoveEvent()

bool ESEventInterface::mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
virtual

◆ mousePressEvent()

bool ESEventInterface::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
virtual

◆ mouseReleaseEvent()

bool ESEventInterface::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
virtual

◆ updateHelpCross()

void ESEventInterface::updateHelpCross ( const QPointF &  p)
protected
Here is the caller graph for this function:

◆ wheelEvent()

bool ESEventInterface::wheelEvent ( QGraphicsSceneWheelEvent *  event)
virtual

Member Data Documentation

◆ m_abort

bool ESEventInterface::m_abort
protected

◆ m_editor

QETElementEditor* ESEventInterface::m_editor
protected

◆ m_help_horiz

QGraphicsLineItem* ESEventInterface::m_help_horiz
protected

◆ m_help_verti

QGraphicsLineItem * ESEventInterface::m_help_verti
protected

◆ m_running

bool ESEventInterface::m_running
protected

◆ m_scene

ElementScene* ESEventInterface::m_scene
protected

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