QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DefaultNavigation Class Reference

Copyright (c) 2011-2014 by Andrew Mustun. More...

Inheritance diagram for DefaultNavigation:
RActionAdapter RAction

List of all members.

Public Member Functions

void beginEvent ()
 Called as soon as the action is created (menu chosen, toolbutton activated, etc).
void DefaultNavigation (void widget)
void finishEvent ()
 Called just before the action is deleted.
void keyPressEvent (void event)
void mouseMoveEvent (void event)
void mousePressEvent (void event)
void mouseReleaseEvent (void event)
void panGestureEvent (void gesture)
 Called for pan gestures, e.g.
void pinchGestureEvent (void gesture)
 Called for pinch gestures, e.g.
void setGraphicsView (void v)
void tabletEvent (void event)
void wheelEvent (void event)
- Public Member Functions inherited from RActionAdapter
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 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 keyPressEvent (QKeyEvent &)
virtual void keyReleaseEvent (QKeyEvent &)
virtual void mouseDoubleClickEvent (RMouseEvent &)
 Called on mouse double click events.
virtual void mouseMoveEvent (RMouseEvent &)
 Called on mouse move events.
virtual void mousePressEvent (RMouseEvent &)
 Called on mouse press events.
virtual void mouseReleaseEvent (RMouseEvent &)
 Called on mouse release 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 with 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 wheelEvent (RWheelEvent &)
 Called on mouse wheel events.
- Public Member Functions inherited from RAction
RAction::ClickMode getClickMode ()
RDocumentgetDocument ()
RDocumentInterfacegetDocumentInterface ()
QList< RGraphicsScene * > getGraphicsScenes ()
virtual RGuiActiongetGuiAction ()
RActiongetOverrideBase ()
RStoragegetStorage ()
QString getUniqueGroup ()
bool hasNoState ()
bool isOverride ()
bool isTerminated ()
 RAction (RGuiAction *guiAction=NULL)
 Copyright (c) 2011-2014 by Andrew Mustun.
void setClickMode (RAction::ClickMode m)
 Sets the current click mode.
void setDocumentInterface (RDocumentInterface *di)
void setGuiAction (RGuiAction *guiAction)
void setNoState ()
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.
void terminate ()
 Terminates the action.
virtual ~RAction ()

Public Attributes

int hruler
int lastCursor
int panning
int panOrigin
int savedCursor
int view
int vruler

Detailed Description

Copyright (c) 2011-2014 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.


Constructor & Destructor Documentation

void DefaultNavigation::DefaultNavigation ( void  widget)
inline

Member Function Documentation

void DefaultNavigation::beginEvent ( )
inlinevirtual

Called as soon as the action is created (menu chosen, toolbutton activated, etc).

Reimplemented from RActionAdapter.

void DefaultNavigation::finishEvent ( )
inlinevirtual

Called just before the action is deleted.

Reimplemented from RActionAdapter.

void DefaultNavigation::keyPressEvent ( void  event)
inline
void DefaultNavigation::mouseMoveEvent ( void  event)
inline
void DefaultNavigation::mousePressEvent ( void  event)
inline
void DefaultNavigation::mouseReleaseEvent ( void  event)
inline
void DefaultNavigation::panGestureEvent ( void  gesture)
inline

Called for pan gestures, e.g.

from a track pad. Pans the current view.

void DefaultNavigation::pinchGestureEvent ( void  gesture)
inline

Called for pinch gestures, e.g.

from a track pad. Zooms in / out.

void DefaultNavigation::setGraphicsView ( void  v)
inline
void DefaultNavigation::tabletEvent ( void  event)
inline
void DefaultNavigation::wheelEvent ( void  event)
inline

Member Data Documentation

int DefaultNavigation::hruler
int DefaultNavigation::lastCursor
int DefaultNavigation::panning
int DefaultNavigation::panOrigin
int DefaultNavigation::savedCursor
int DefaultNavigation::view
int DefaultNavigation::vruler

The documentation for this class was generated from the following file: