|
QCAD
Open Source 2D CAD
|
Go to the documentation of this file.
30 #include <QSwipeGesture>
31 #include <QPanGesture>
32 #include <QPinchGesture>
95 void setNoState(
bool on =
true);
98 void setUniqueGroup(
const QString& ug);
99 QString getUniqueGroup();
101 void setOverrideBase(
RAction* base);
108 QList<RGraphicsScene*> getGraphicsScenes();
114 documentInterface = di;
virtual void keyReleaseEvent(QKeyEvent &event)=0
virtual void suspendEvent()=0
Called when the action is suspended, for example when another action becomes active or the mouse curs...
virtual void pinchGestureEvent(QPinchGesture &gesture)=0
Called on pinch gesture events.
virtual void updatePreview()=0
void getDocument()
Returns the current RDocument or undefined.
Definition: simple.js:59
virtual void mouseDoubleClickEvent(RMouseEvent &event)=0
Called on mouse double click events.
virtual void entityPickEvent(REntityPickEvent &event)=0
RGuiAction * guiAction
Definition: RAction.h:268
A mouse event for a graphics scene.
Definition: RMouseEvent.h:42
virtual void mouseReleaseEvent(RMouseEvent &event)=0
Called on mouse release events.
virtual void panGestureEvent(QPanGesture &gesture)=0
Called on pan gesture events.
virtual void enterEvent()=0
Called when user presses enter (e.g.
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
virtual void coordinateEvent(RCoordinateEvent &event)=0
Called for every coordinate event.
Abstract base class for GUI action classes.
Definition: RGuiAction.h:64
virtual void finishEvent()=0
Called just before the action is deleted.
A tablet event for a graphics scene.
Definition: RTabletEvent.h:43
virtual void mousePressEvent(RMouseEvent &event)=0
Called on mouse press events.
virtual void escapeEvent()=0
Escape events are triggered if the user clicks the right mouse button or hits the Escape key.
RDocumentInterface * documentInterface
Definition: RAction.h:270
RAction::ClickMode getClickMode()
Definition: RAction.h:123
Entity pick event.
Definition: REntityPickEvent.h:38
void setDocumentInterface(RDocumentInterface *di)
Definition: RAction.h:113
Graphics view.
Definition: RGraphicsView.h:58
virtual void wheelEvent(RWheelEvent &event)=0
Called on mouse wheel events.
void getDocumentInterface()
Returns the current RDocumentInterface or undefined.
Definition: simple.js:80
Q_DECLARE_METATYPE(RMath *)
ClickMode
Current mouse click mode.
Definition: RAction.h:67
virtual void applyOperation()=0
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RCommandEvent.h:31
virtual void keyPressEvent(QKeyEvent &event)=0
A mouse wheel event for a graphics scene.
Definition: RWheelEvent.h:41
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RPropertyEvent.h:40
virtual void entityPickEventPreview(REntityPickEvent &event)=0
Abstract base class for all action classes.
Definition: RAction.h:62
@ PickCoordinateNoSnap
Definition: RAction.h:73
RAction::ClickMode clickMode
Definition: RAction.h:267
virtual void mouseMoveEvent(RMouseEvent &event)=0
Called on mouse move events.
Coordinate Event.
Definition: RCoordinateEvent.h:37
@ PickCoordinate
Mouse click will pick a coordinate and trigger coordinateEvent.
Definition: RAction.h:72
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition: RDocument.h:72
virtual void commandEvent(RCommandEvent &event)=0
Called when a command is entered in the command line.
virtual void beginEvent()=0
Called as soon as the action is created (menu chosen, toolbutton activated, etc).
Abstract base class for all graphics scenes.
Definition: RGraphicsScene.h:61
virtual void setGraphicsView(RGraphicsView *view)=0
Called if this action is set as a navigation action of a graphics view.
virtual void swipeGestureEvent(QSwipeGesture &gesture)=0
Called on swipe gesture events.
RAction * overrideBase
Definition: RAction.h:269
This is the abstract base class for all storage implementations.
Definition: RStorage.h:64
This abstract class is an interface for all operation implementations.
Definition: ROperation.h:44
virtual void propertyChangeEvent(RPropertyEvent &event)=0
Called when the value of a property is modified while this action is active.
bool terminated
Definition: RAction.h:257
virtual void coordinateEventPreview(RCoordinateEvent &event)=0
Called if the action is in PickCoordinate mode and the mouse is moved around.
virtual void resumeEvent()=0
Resumes the action (for example when another action became active and then terminated or if the mouse...
virtual void tabletEvent(RTabletEvent &event)=0
Called on tablet events.
QString uniqueGroup
Definition: RAction.h:266
virtual void zoomChangeEvent(RGraphicsView &view)=0
Called when the zoom factor or offset changed in the given view.
@ PickEntity
Mouse click will pick an entity and trigger entityPickEvent.
Definition: RAction.h:77
bool noState
Indicates whether this action is stateless (i.e.
Definition: RAction.h:264
virtual void commandEventPreview(RCommandEvent &event)=0
Called when a command is being edited in the command line.
Interface for interaction between a graphics document and a user.
Definition: RDocumentInterface.h:85
#define QCADCORE_EXPORT
Definition: core_global.h:10