90 void setNoState(
bool on =
true);
93 void setUniqueGroup(
const QString& ug);
94 QString getUniqueGroup();
96 void setOverrideBase(
RAction* base);
103 QList<RGraphicsScene*> getGraphicsScenes();
109 documentInterface = di;
Q_DECLARE_METATYPE(RMath *)
Abstract base class for all action classes.
Definition RAction.h:57
bool noState
Indicates whether this action is stateless (i.e.
Definition RAction.h:259
virtual void finishEvent()=0
Called just before the action is deleted.
virtual void keyPressEvent(QKeyEvent &event)=0
virtual void zoomChangeEvent(RGraphicsView &view)=0
Called when the zoom factor or offset changed in the given view.
virtual void commandEventPreview(RCommandEvent &event)=0
Called when a command is being edited in the command line.
virtual void mouseMoveEvent(RMouseEvent &event)=0
Called on mouse move events.
virtual void pinchGestureEvent(QPinchGesture &gesture)=0
Called on pinch gesture events.
virtual void applyOperation()=0
ClickMode
Current mouse click mode.
Definition RAction.h:62
@ PickCoordinate
Mouse click will pick a coordinate and trigger coordinateEvent.
Definition RAction.h:67
@ PickEntity
Mouse click will pick an entity and trigger entityPickEvent.
Definition RAction.h:72
@ PickCoordinateNoSnap
Definition RAction.h:68
RDocumentInterface * documentInterface
Definition RAction.h:265
RAction * overrideBase
Definition RAction.h:264
virtual void resumeEvent()=0
Resumes the action (for example when another action became active and then terminated or if the mouse...
virtual void setDocumentInterface(RDocumentInterface *di)
Definition RAction.h:108
virtual void mousePressEvent(RMouseEvent &event)=0
Called on mouse press events.
virtual void coordinateEventPreview(RCoordinateEvent &event)=0
Called if the action is in PickCoordinate mode and the mouse is moved around.
virtual void tabletEvent(RTabletEvent &event)=0
Called on tablet events.
virtual void mouseDoubleClickEvent(RMouseEvent &event)=0
Called on mouse double click events.
virtual void coordinateEvent(RCoordinateEvent &event)=0
Called for every coordinate event.
virtual void setGraphicsView(RGraphicsView *view)=0
Called if this action is set as a navigation action of a graphics view.
virtual void mouseReleaseEvent(RMouseEvent &event)=0
Called on mouse release events.
virtual void panGestureEvent(QPanGesture &gesture)=0
Called on pan gesture events.
virtual void suspendEvent()=0
Called when the action is suspended, for example when another action becomes active or the mouse curs...
virtual void entityPickEventPreview(REntityPickEvent &event)=0
virtual void enterEvent()=0
Called when user presses enter (e.g.
QString uniqueGroup
Definition RAction.h:261
virtual void beginEvent()=0
Called as soon as the action is created (menu chosen, toolbutton activated, etc).
RAction::ClickMode clickMode
Definition RAction.h:262
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:252
virtual void wheelEvent(RWheelEvent &event)=0
Called on mouse wheel events.
virtual void keyReleaseEvent(QKeyEvent &event)=0
virtual void entityPickEvent(REntityPickEvent &event)=0
RAction::ClickMode getClickMode()
Definition RAction.h:118
virtual void escapeEvent()=0
Escape events are triggered if the user clicks the right mouse button or hits the Escape key.
RGuiAction * guiAction
Definition RAction.h:263
virtual void updatePreview()=0
virtual void swipeGestureEvent(QSwipeGesture &gesture)=0
Called on swipe gesture events.
virtual void commandEvent(RCommandEvent &event)=0
Called when a command is entered in the command line.
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RCommandEvent.h:34
Coordinate Event.
Definition RCoordinateEvent.h:39
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition RDocument.h:78
Interface for interaction between a graphics document and a user.
Definition RDocumentInterface.h:97
Entity pick event.
Definition REntityPickEvent.h:38
Abstract base class for all graphics scenes.
Definition RGraphicsScene.h:64
Graphics view.
Definition RGraphicsView.h:67
Abstract base class for GUI action classes.
Definition RGuiAction.h:62
A mouse event for a graphics scene.
Definition RMouseEvent.h:42
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RPropertyEvent.h:40
This is the abstract base class for all storage implementations.
Definition RStorage.h:67
A tablet event for a graphics scene.
Definition RTabletEvent.h:43
Represents a 3d vector (x/y/z).
Definition RVector.h:47
A mouse wheel event for a graphics scene.
Definition RWheelEvent.h:41
#define QCADCORE_EXPORT
Definition core_global.h:10
void getDocument()
Returns the current RDocument or undefined.
Definition simple.js:63
void getDocumentInterface()
Returns the current RDocumentInterface or undefined.
Definition simple.js:69
#define NULL
Definition opennurbs_system.h:256