QElectroTech  0.70
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ESEventInterface Class Reference

#include <eseventinterface.h>

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
 

Detailed Description

Definition at line 29 of file eseventinterface.h.

Constructor & Destructor Documentation

◆ ESEventInterface()

ESEventInterface::ESEventInterface ( ElementScene scene)

Definition at line 23 of file eseventinterface.cpp.

References init().

◆ ~ESEventInterface()

ESEventInterface::~ESEventInterface ( )
virtual

Member Function Documentation

◆ init()

void ESEventInterface::init ( )

◆ isFinish()

bool ESEventInterface::isFinish ( ) const
virtual

◆ isRunning()

bool ESEventInterface::isRunning ( ) const
virtual

Definition at line 102 of file eseventinterface.cpp.

References m_running.

◆ 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.

Definition at line 88 of file eseventinterface.cpp.

References m_abort, and m_running.

Referenced by ESEventAddTerminal::keyPressEvent(), and ESEventAddArc::keyPressEvent().

◆ KeyReleaseEvent()

bool ESEventInterface::KeyReleaseEvent ( QKeyEvent *  event)
virtual

Definition at line 97 of file eseventinterface.cpp.

◆ mouseDoubleClickEvent()

bool ESEventInterface::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent *  event)
virtual

Reimplemented in ESEventAddPolygon.

Definition at line 57 of file eseventinterface.cpp.

◆ 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

◆ wheelEvent()

bool ESEventInterface::wheelEvent ( QGraphicsSceneWheelEvent *  event)
virtual

Definition at line 77 of file eseventinterface.cpp.

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

Definition at line 53 of file eseventinterface.h.

Referenced by updateHelpCross(), and ~ESEventInterface().

◆ m_help_verti

QGraphicsLineItem * ESEventInterface::m_help_verti
protected

Definition at line 53 of file eseventinterface.h.

Referenced by updateHelpCross(), and ~ESEventInterface().

◆ 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: