|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef DIAGRAMEVENTADDIMAGE_H
19 #define DIAGRAMEVENTADDIMAGE_H
41 void wheelEvent (QGraphicsSceneWheelEvent *event)
override;
51 #endif // DIAGRAMEVENTADDIMAGE_H
DiagramImageItem * m_image
Definition: diagrameventaddimage.h:47
Diagram * m_diagram
Definition: diagrameventinterface.h:66
virtual void addItem(QGraphicsItem *item)
Diagram::addItem Réimplemented from QGraphicsScene::addItem(QGraphicsItem *item) Do some specific ope...
Definition: diagram.cpp:1550
bool isEmpty() const
Diagram::isEmpty An empty schema contains no element, conductor, or text field.
Definition: diagram.cpp:680
DiagramEventAddImage(Diagram *diagram)
DiagramEventAddImage::DiagramEventAddImage Default constructor.
Definition: diagrameventaddimage.cpp:29
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddImage::mousePressEvent Action when mouse is pressed.
Definition: diagrameventaddimage.cpp:57
Definition: diagramimageitem.h:31
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition: diagram.h:56
QRectF boundingRect() const override
DiagramImageItem::boundingRect the outer bounds of the item as a rectangle, if no pixmap are set,...
Definition: diagramimageitem.cpp:109
bool m_is_added
Definition: diagrameventaddimage.h:48
virtual void removeItem(QGraphicsItem *item)
Diagram::removeItem Reimplemented from QGraphicsScene::removeItem(QGraphicsItem *item) Do some specif...
Definition: diagram.cpp:1581
The AddItemCommand class This command add an item in a diagram The item to add is template,...
Definition: diagramcommands.h:42
bool isNull() const
DiagramEventAddImage::isNull.
Definition: diagrameventaddimage.cpp:142
void wheelEvent(QGraphicsSceneWheelEvent *event) override
DiagramEventAddImage::wheelEvent Action when mouse wheel is rotate.
Definition: diagrameventaddimage.cpp:123
~DiagramEventAddImage() override
DiagramEventAddImage::~DiagramEventAddImage.
Definition: diagrameventaddimage.cpp:40
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddImage::mouseDoubleClickEvent This method is only use to overwrite double click....
Definition: diagrameventaddimage.cpp:114
bool m_running
Definition: diagrameventinterface.h:67
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddImage::mouseMoveEvent Action when mouse move.
Definition: diagrameventaddimage.cpp:86
QMessageBox::StandardButton critical(QWidget *, const QString &, const QString &, QMessageBox::StandardButtons=QMessageBox::Ok, QMessageBox::StandardButton=QMessageBox::NoButton)
Definition: qetmessagebox.cpp:23
bool m_abort
Definition: diagrameventinterface.h:68
void openDialog()
DiagramEventAddImage::openDialog Open dialog for select the image to add.
Definition: diagrameventaddimage.cpp:152
The DiagramEventAddImage class This diagram event, handle the adding of an image in a diagram.
Definition: diagrameventaddimage.h:31
The DiagramEventInterface class isRunning() return true if action is running (do something)....
Definition: diagrameventinterface.h:46
virtual void setPos(const QPointF &p)
Definition: qetgraphicsitem.cpp:49
QIcon tr
Definition: qeticons.cpp:206