QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
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.
void init ()
 ESEventInterface::init Init this event interface.
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 current action.
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:
Here is the caller graph for this function:

◆ ~ESEventInterface()

ESEventInterface::~ESEventInterface ( )
virtual

Member Function Documentation

◆ init()

void ESEventInterface::init ( )

ESEventInterface::init Init this event interface.

Here is the caller graph for this function:

◆ isFinish()

bool ESEventInterface::isFinish ( ) const
virtual

◆ isRunning()

bool ESEventInterface::isRunning ( ) const
virtual

◆ keyPressEvent()

bool ESEventInterface::keyPressEvent ( QKeyEvent * event)
virtual

ESEventInterface::keyPressEvent By default, press escape key abort the current 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: