QElectroTech 0.100.0-dev
|
The DiagramEventAddImage class This diagram event, handle the adding of an image in a diagram. More...
#include <diagrameventaddimage.h>
Public Member Functions | |
DiagramEventAddImage (Diagram *diagram) | |
DiagramEventAddImage::DiagramEventAddImage Default constructor. | |
~DiagramEventAddImage () override | |
DiagramEventAddImage::~DiagramEventAddImage. | |
void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
DiagramEventAddImage::mousePressEvent Action when mouse is pressed. | |
void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) override |
DiagramEventAddImage::mouseMoveEvent Action when mouse move. | |
void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override |
DiagramEventAddImage::mouseDoubleClickEvent This method is used only to overwrite double click. When double click, image properties dialog isn't open. | |
void | wheelEvent (QGraphicsSceneWheelEvent *event) override |
DiagramEventAddImage::wheelEvent Action when mouse wheel is rotated. | |
bool | isNull () const |
DiagramEventAddImage::isNull. | |
Public Member Functions inherited from DiagramEventInterface | |
DiagramEventInterface (Diagram *diagram) | |
~DiagramEventInterface () override=0 | |
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *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 () |
Private Member Functions | |
void | openDialog () |
DiagramEventAddImage::openDialog Open dialog to select the image to add. | |
Private Attributes | |
DiagramImageItem * | m_image |
bool | m_is_added |
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 DiagramEventAddImage class This diagram event, handle the adding of an image in a diagram.
DiagramEventAddImage::DiagramEventAddImage | ( | Diagram * | diagram | ) |
DiagramEventAddImage::DiagramEventAddImage Default constructor.
diagram | : diagram where operate this event |
|
override |
bool DiagramEventAddImage::isNull | ( | ) | const |
|
overridevirtual |
DiagramEventAddImage::mouseDoubleClickEvent This method is used only to overwrite double click. When double click, image properties dialog isn't open.
event | : event of mouse double click. |
Reimplemented from DiagramEventInterface.
|
overridevirtual |
DiagramEventAddImage::mouseMoveEvent Action when mouse move.
event | : event of mouse move |
Reimplemented from DiagramEventInterface.
|
overridevirtual |
DiagramEventAddImage::mousePressEvent Action when mouse is pressed.
event | : event of mouse pressed |
Reimplemented from DiagramEventInterface.
|
private |
DiagramEventAddImage::openDialog Open dialog to select the image to add.
|
overridevirtual |
DiagramEventAddImage::wheelEvent Action when mouse wheel is rotated.
event | evet of mouse wheel |
Reimplemented from DiagramEventInterface.
|
private |
|
private |