QElectroTech
0.8-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. 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 | |
Diagram * | m_diagram |
bool | m_running |
bool | m_abort |
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.