QCAD
Open Source 2D CAD
RNavigationAction.h
Go to the documentation of this file.
1 
20 #ifndef RNAVIGATIONACTION_H
21 #define RNAVIGATIONACTION_H
22 
23 #include "core_global.h"
24 
25 #include "RActionAdapter.h"
26 #include "RMouseEvent.h"
27 #include "RGraphicsView.h"
28 #include "RGuiAction.h"
29 
35 public:
36  RNavigationAction(RGuiAction* guiAction=NULL);
37 
38  virtual void mousePressEvent(RMouseEvent& event);
39  virtual void mouseReleaseEvent(RMouseEvent& event);
40  virtual void mouseMoveEvent(RMouseEvent& event);
41 
42 private:
43  bool panning;
45 };
46 
48 
49 #endif
Abstract base class for all action classes.
Definition: RActionAdapter.h:53
virtual void mouseMoveEvent(RMouseEvent &)
Called on mouse move events.
Definition: RActionAdapter.h:71
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
bool panning
Definition: RNavigationAction.h:43
#define QCADCORE_EXPORT
Definition: core_global.h:10
Copyright (c) 2011-2016 by Andrew Mustun.
Definition: RNavigationAction.h:34
Q_DECLARE_METATYPE(RMath *)
A mouse event for a graphics scene.
Definition: RMouseEvent.h:42
virtual void mousePressEvent(RMouseEvent &)
Called on mouse press events.
Definition: RActionAdapter.h:70
RVector panOrigin
Definition: RNavigationAction.h:44
Abstract base class for GUI action classes.
Definition: RGuiAction.h:60
virtual void mouseReleaseEvent(RMouseEvent &)
Called on mouse release events.
Definition: RActionAdapter.h:72