|
QCAD
Open Source 2D CAD
|
#include <RNavigationAction.h>
Public Member Functions | |
| virtual void | mouseMoveEvent (RMouseEvent &event) |
| Called on mouse move events. | |
| virtual void | mousePressEvent (RMouseEvent &event) |
| Called on mouse press events. | |
| virtual void | mouseReleaseEvent (RMouseEvent &event) |
| Called on mouse release events. | |
| RNavigationAction (RGuiAction *guiAction=NULL) | |
| Copyright (c) 2011-2018 by Andrew Mustun. | |
Public Member Functions inherited from RActionAdapter | |
| virtual void | applyOperation () |
| virtual void | beginEvent () |
| Called as soon as the action is created (menu chosen, toolbutton activated, etc). | |
| virtual void | commandEvent (RCommandEvent &) |
| Called when a command is entered in the command line. | |
| virtual void | commandEventPreview (RCommandEvent &) |
| Called when a command is being edited in the command line. | |
| virtual void | coordinateEvent (RCoordinateEvent &) |
| Called for every coordinate event. | |
| virtual void | coordinateEventPreview (RCoordinateEvent &) |
Called if the action is in PickCoordinate mode and the mouse is moved around. | |
| virtual void | enterEvent () |
| Called when user presses enter (e.g. | |
| 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. | |
| virtual void | finishEvent () |
| Called just before the action is deleted. | |
| virtual void | keyPressEvent (QKeyEvent &) |
| virtual void | keyReleaseEvent (QKeyEvent &) |
| virtual void | mouseDoubleClickEvent (RMouseEvent &) |
| Called on mouse double click events. | |
| virtual void | panGestureEvent (QPanGesture &) |
| Called on pan gesture events. | |
| virtual void | pinchGestureEvent (QPinchGesture &) |
| Called on pinch gesture events. | |
| virtual void | propertyChangeEvent (RPropertyEvent &) |
| Called when the value of a property is modified while this action is active. | |
| 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). | |
| virtual void | setGraphicsView (RGraphicsView *) |
| Called if this action is set as a navigation action of a graphics view. | |
| virtual void | suspendEvent () |
| Called when the action is suspended, for example when another action becomes active or the mouse cursor leaves the view. | |
| virtual void | swipeGestureEvent (QSwipeGesture &) |
| Called on swipe gesture events. | |
| virtual void | tabletEvent (RTabletEvent &) |
| Called on tablet events. | |
| virtual void | updatePreview () |
| virtual void | wheelEvent (RWheelEvent &) |
| Called on mouse wheel events. | |
| virtual void | zoomChangeEvent (RGraphicsView &) |
| Called when the zoom factor or offset changed in the given view. | |
| virtual | ~RActionAdapter () |
Public Member Functions inherited from RAction | |
| RAction::ClickMode | getClickMode () |
| virtual RDocument * | getDocument () |
| virtual 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. | |
| void | setClickMode (RAction::ClickMode m) |
| Sets the current click mode. | |
| virtual void | setDocumentInterface (RDocumentInterface *di) |
| void | setGuiAction (RGuiAction *guiAction) |
| void | setNoState (bool on=true) |
| void | setOverride () |
| void | setOverrideBase (RAction *base) |
| void | setUniqueGroup (const QString &ug) |
| virtual RVector | snap (RMouseEvent &event, bool preview=false) |
| Uses the currently active snap function to snap to the closest object or grid point. | |
| void | terminate () |
| Terminates the action. | |
| virtual | ~RAction () |
Private Attributes | |
| bool | panning |
| RVector | panOrigin |
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. | |
| bool | override |
| RAction * | overrideBase |
| bool | terminated |
| QString | uniqueGroup |
| RNavigationAction::RNavigationAction | ( | RGuiAction * | guiAction = NULL | ) |
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.
|
virtual |
Called on mouse move events.
Reimplemented from RActionAdapter.
|
virtual |
Called on mouse press events.
Reimplemented from RActionAdapter.
|
virtual |
Called on mouse release events.
Reimplemented from RActionAdapter.
|
private |
|
private |