QElectroTech  0.8-dev
Signals | Public Member Functions | Protected Attributes | List of all members
DVEventInterface Class Referenceabstract

The DVEventInterface class This class is the main interface for manage event of a Diagram View. This do nothing, for create new event behavior, we must to create new class from this. Each method return a bool: True if the methode do something else return false. Each method of DVEventInterface return false; isRunning() return true if action is started but not finish. By default return false. isFinish() return true when the action is finish, or not started. By default return true. More...

#include <dveventinterface.h>

Inherits QObject.

Collaboration diagram for DVEventInterface:
Collaboration graph

Signals

void finish ()
 finish emited when the interface finish is work More...
 

Public Member Functions

 DVEventInterface (DiagramView *dv)
 
 ~DVEventInterface () override=0
 
virtual bool mouseDoubleClickEvent (QMouseEvent *event)
 
virtual bool mousePressEvent (QMouseEvent *event)
 
virtual bool mouseMoveEvent (QMouseEvent *event)
 
virtual bool mouseReleaseEvent (QMouseEvent *event)
 
virtual bool wheelEvent (QWheelEvent *event)
 
virtual bool keyPressEvent (QKeyEvent *event)
 DVEventInterface::keyPressEvent By default, press escape key abort the curent action. isFinish return true, and emit finish. More...
 
virtual bool KeyReleaseEvent (QKeyEvent *event)
 
virtual bool isRunning () const
 
virtual bool isFinish () const
 

Protected Attributes

DiagramViewm_dv
 
Diagramm_diagram
 
bool m_running
 
bool m_abort
 

Detailed Description

The DVEventInterface class This class is the main interface for manage event of a Diagram View. This do nothing, for create new event behavior, we must to create new class from this. Each method return a bool: True if the methode do something else return false. Each method of DVEventInterface return false; isRunning() return true if action is started but not finish. By default return false. isFinish() return true when the action is finish, or not started. By default return true.

Constructor & Destructor Documentation

◆ DVEventInterface()

DVEventInterface::DVEventInterface ( DiagramView dv)

◆ ~DVEventInterface()

DVEventInterface::~DVEventInterface ( )
overridepure virtual

Member Function Documentation

◆ finish

void DVEventInterface::finish ( )
signal

finish emited when the interface finish is work

Here is the caller graph for this function:

◆ isFinish()

bool DVEventInterface::isFinish ( ) const
virtual

◆ isRunning()

bool DVEventInterface::isRunning ( ) const
virtual

◆ keyPressEvent()

bool DVEventInterface::keyPressEvent ( QKeyEvent *  event)
virtual

DVEventInterface::keyPressEvent By default, press escape key abort the curent action. isFinish return true, and emit finish.

Parameters
event
Returns
Here is the caller graph for this function:

◆ KeyReleaseEvent()

bool DVEventInterface::KeyReleaseEvent ( QKeyEvent *  event)
virtual
Here is the caller graph for this function:

◆ mouseDoubleClickEvent()

bool DVEventInterface::mouseDoubleClickEvent ( QMouseEvent *  event)
virtual

◆ mouseMoveEvent()

bool DVEventInterface::mouseMoveEvent ( QMouseEvent *  event)
virtual
Here is the caller graph for this function:

◆ mousePressEvent()

bool DVEventInterface::mousePressEvent ( QMouseEvent *  event)
virtual
Here is the caller graph for this function:

◆ mouseReleaseEvent()

bool DVEventInterface::mouseReleaseEvent ( QMouseEvent *  event)
virtual
Here is the caller graph for this function:

◆ wheelEvent()

bool DVEventInterface::wheelEvent ( QWheelEvent *  event)
virtual
Here is the caller graph for this function:

Member Data Documentation

◆ m_abort

bool DVEventInterface::m_abort
protected

◆ m_diagram

Diagram* DVEventInterface::m_diagram
protected

◆ m_dv

DiagramView* DVEventInterface::m_dv
protected

◆ m_running

bool DVEventInterface::m_running
protected

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