QElectroTech  0.8-dev
Public Member Functions | List of all members
DiagramEventAddText Class Reference

The DiagramEventAddText class This diagram event handle the creation of a new text in a diagram. More...

#include <diagrameventaddtext.h>

Inheritance diagram for DiagramEventAddText:
Inheritance graph
Collaboration diagram for DiagramEventAddText:
Collaboration graph

Public Member Functions

 DiagramEventAddText (Diagram *diagram)
 DiagramEventAddText::DiagramEventAddText Default constructor. More...
 
 ~DiagramEventAddText () override
 DiagramEventAddText::~DiagramEventAddText. More...
 
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 DiagramEventAddText::mousePressEvent. More...
 
- Public Member Functions inherited from DiagramEventInterface
 DiagramEventInterface (Diagram *diagram)
 
 ~DiagramEventInterface () override=0
 
virtual void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 
virtual void wheelEvent (QGraphicsSceneWheelEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 DiagramEventInterface::keyPressEvent By default, press escape key abort the curent action. More...
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual bool isRunning () const
 
virtual void init ()
 

Additional Inherited Members

- Signals inherited from DiagramEventInterface
void finish ()
 
- Protected Attributes inherited from DiagramEventInterface
Diagramm_diagram
 
bool m_running
 
bool m_abort
 

Detailed Description

The DiagramEventAddText class This diagram event handle the creation of a new text in a diagram.

Constructor & Destructor Documentation

◆ DiagramEventAddText()

DiagramEventAddText::DiagramEventAddText ( Diagram diagram)

DiagramEventAddText::DiagramEventAddText Default constructor.

Parameters
diagram: the diagram where this event must operate

◆ ~DiagramEventAddText()

DiagramEventAddText::~DiagramEventAddText ( )
override

Member Function Documentation

◆ mousePressEvent()

void DiagramEventAddText::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
overridevirtual

DiagramEventAddText::mousePressEvent.

Parameters
event: event of mouse press event.

Reimplemented from DiagramEventInterface.


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