QCAD
Open Source 2D CAD
|
Copyright (c) 2011-2018 by Andrew Mustun. More...
Public Member Functions | |
void | beginEvent () |
Called as soon as the action is created (menu chosen, toolbutton activated, etc). More... | |
void | DefaultNavigation (void widget) |
void | finishEvent () |
Called just before the action is deleted. More... | |
void | handleMiddleMouseButtonZoom (void event) |
void | mouseMoveEvent (void event) |
void | mousePressEvent (void event) |
Implement panning with arrow keys. More... | |
void | mouseReleaseEvent (void event) |
void | panGestureEvent (void gesture) |
Called for pan gestures, e.g. More... | |
void | pinchGestureEvent (void gesture) |
Called for pinch gestures, e.g. More... | |
void | setGraphicsView (void v) |
void | tabletEvent (void event) |
void | wheelEvent (void event) |
Public Member Functions inherited from RActionAdapter | |
virtual void | applyOperation () |
virtual void | commandEvent (RCommandEvent &) |
Called when a command is entered in the command line. More... | |
virtual void | commandEventPreview (RCommandEvent &) |
Called when a command is being edited in the command line. More... | |
virtual void | coordinateEvent (RCoordinateEvent &) |
Called for every coordinate event. More... | |
virtual void | coordinateEventPreview (RCoordinateEvent &) |
Called if the action is in PickCoordinate mode and the mouse is moved around. More... | |
virtual void | enterEvent () |
Called when user presses enter (e.g. More... | |
virtual void | entityPickEvent (REntityPickEvent &) |
virtual void | entityPickEventPreview (REntityPickEvent &) |
virtual void | escapeEvent () |
Escape events are triggered if the user clicks the right mouse button or hits the Escape key. More... | |
virtual void | keyPressEvent (QKeyEvent &) |
virtual void | keyReleaseEvent (QKeyEvent &) |
virtual void | mouseDoubleClickEvent (RMouseEvent &) |
Called on mouse double click events. More... | |
virtual void | mouseMoveEvent (RMouseEvent &) |
Called on mouse move events. More... | |
virtual void | mousePressEvent (RMouseEvent &) |
Called on mouse press events. More... | |
virtual void | mouseReleaseEvent (RMouseEvent &) |
Called on mouse release events. More... | |
virtual void | panGestureEvent (QPanGesture &) |
Called on pan gesture events. More... | |
virtual void | pinchGestureEvent (QPinchGesture &) |
Called on pinch gesture events. More... | |
virtual void | propertyChangeEvent (RPropertyEvent &) |
Called when the value of a property is modified while this action is active. More... | |
RActionAdapter (RGuiAction *guiAction=NULL) | |
virtual void | resumeEvent () |
Resumes the action (for example when another action became active and then terminated or if the mouse cursor enters the view). More... | |
virtual void | setGraphicsView (RGraphicsView *) |
Called if this action is set as a navigation action of a graphics view. More... | |
virtual void | suspendEvent () |
Called when the action is suspended, for example when another action becomes active or the mouse cursor leaves the view. More... | |
virtual void | swipeGestureEvent (QSwipeGesture &) |
Called on swipe gesture events. More... | |
virtual void | tabletEvent (RTabletEvent &) |
Called on tablet events. More... | |
virtual void | updatePreview () |
virtual void | wheelEvent (RWheelEvent &) |
Called on mouse wheel events. More... | |
virtual void | zoomChangeEvent (RGraphicsView &) |
Called when the zoom factor or offset changed in the given view. More... | |
virtual | ~RActionAdapter () |
Public Member Functions inherited from RAction | |
RAction::ClickMode | getClickMode () |
RDocument * | getDocument () |
RDocumentInterface * | getDocumentInterface () |
QList< RGraphicsScene * > | getGraphicsScenes () |
virtual RGuiAction * | getGuiAction () |
RAction * | getOverrideBase () |
RStorage * | getStorage () |
QString | getUniqueGroup () |
bool | hasNoState () |
bool | isOverride () |
bool | isTerminated () |
RAction (RGuiAction *guiAction=NULL) | |
Copyright (c) 2011-2018 by Andrew Mustun. More... | |
void | setClickMode (RAction::ClickMode m) |
Sets the current click mode. More... | |
void | setDocumentInterface (RDocumentInterface *di) |
void | setGuiAction (RGuiAction *guiAction) |
void | setNoState (bool on=true) |
void | setOverride () |
void | setOverrideBase (RAction *base) |
void | setUniqueGroup (const QString &ug) |
RVector | snap (RMouseEvent &event) |
Uses the currently active snap function to snap to the closest object or grid point. More... | |
void | terminate () |
Terminates the action. More... | |
virtual | ~RAction () |
Public Attributes | |
int | hruler |
int | lastCursor |
int | panFirstOrigin |
int | panning |
int | panOrigin |
int | savedCursor |
int | view |
int | vruler |
Additional Inherited Members | |
Public Types inherited from RAction | |
enum | ClickMode { PickCoordinate, PickCoordinateNoSnap, PickEntity, PickingDisabled } |
Current mouse click mode. More... | |
Protected Attributes inherited from RAction | |
RAction::ClickMode | clickMode |
RDocumentInterface * | documentInterface |
RGuiAction * | guiAction |
bool | noState |
Indicates whether this action is stateless (i.e. More... | |
bool | override |
RAction * | overrideBase |
bool | terminated |
QString | uniqueGroup |
Copyright (c) 2011-2018 by Andrew Mustun.
All rights reserved.
This file is part of the QCAD project.
QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with QCAD.
|
inline |
|
inlinevirtual |
Called as soon as the action is created (menu chosen, toolbutton activated, etc).
Reimplemented from RActionAdapter.
|
inlinevirtual |
Called just before the action is deleted.
Reimplemented from RActionAdapter.
|
inline |
|
inline |
|
inline |
Implement panning with arrow keys.
Only has an effect if no actions are triggered using arrows as shortcuts.
|
inline |
|
inline |
Called for pan gestures, e.g.
from a track pad. Pans the current view.
|
inline |
Called for pinch gestures, e.g.
from a track pad. Zooms in / out.
|
inline |
|
inline |
|
inline |
int DefaultNavigation::hruler |
int DefaultNavigation::lastCursor |
int DefaultNavigation::panFirstOrigin |
int DefaultNavigation::panning |
int DefaultNavigation::panOrigin |
int DefaultNavigation::savedCursor |
int DefaultNavigation::view |
int DefaultNavigation::vruler |