6 #include "ui/objects/gobject.h" 8 #include "ui/objects/grect.h" 11 class QGraphicsSceneMouseEvent;
85 GLine *object()
const;
99 GRect *object()
const;
114 GText *object()
const;
130 #endif // OPERATION_H
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Process a mouseMoveEvent. The base implementation does nothing.
A scene operation that is triggered when the user wants to insert a rectangle.
Definition: operations.h:91
A specialized QGraphicsScene containing a sheet of paper.
Definition: sheetscene.h:27
virtual void keyPressEvent(QKeyEvent *event)
Process a keyPressEvent. The base implementation does nothing.
SceneOperation(SheetScene *scene)
Construct a scene operation in the specified scene.
A graphical text object that wraps a Text.
Definition: gtext.h:24
virtual void cancel()
Cancel the operation.
Model of an electrical component.
Definition: component.h:16
The base class of all objects represented in a graphical scene.
Definition: gobject.h:24
Graphical rectangle object that wraps a Rect.
Definition: grect.h:13
A scene operation that is triggered when the user wants to insert a line.
Definition: operations.h:75
A scene operation that is triggered when the user wants to insert a component.
Definition: operations.h:121
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
Process a mouseReleaseEvent. The base implementation does nothing.
void finished()
Emitted when the operation has finished, either successfully or not.
The base class of all scene operations.
Definition: operations.h:22
A scene operation that is triggered when the user wants to insert a text.
Definition: operations.h:105
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
Process a mousePressEvent. The base implementation does nothing.
Graphical line object that wraps a Line.
Definition: gline.h:15