QElectroTech 0.100.0-dev
|
The DiagramEventAddText class This diagram event handle the creation of a new text in a diagram. More...
#include <diagrameventaddtext.h>
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< Diagram > | m_diagram |
bool | m_running {false} |
bool | m_abort {false} |
The DiagramEventAddText class This diagram event handle the creation of a new text in a diagram.
DiagramEventAddText::DiagramEventAddText | ( | Diagram * | diagram | ) |
DiagramEventAddText::DiagramEventAddText Default constructor.
diagram | : the diagram where this event must operate |
|
override |
|
overridevirtual |
DiagramEventAddText::mousePressEvent.
event | : event of mouse press event. |
Reimplemented from DiagramEventInterface.