QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
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.
 
 ~DiagramEventAddText () override
 DiagramEventAddText::~DiagramEventAddText.
 
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 DiagramEventAddText::mousePressEvent.
 
- 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 current action.
 
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
QPointer< Diagramm_diagram
 
bool m_running {false}
 
bool m_abort {false}
 

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.

Here is the call graph for this function:

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