QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RActionAdapter.h
Go to the documentation of this file.
1 
20 #ifndef RACTIONADAPTER_H
21 #define RACTIONADAPTER_H
22 
23 #include "core_global.h"
24 #include "RAction.h"
25 #include "RVector.h"
26 #include "RDebug.h"
27 #include "REntity.h"
28 
29 class RPropertyEvent;
30 class RGraphicsScene;
31 class RDocumentInterface;
32 class RCommandEvent;
33 class RCoordinateEvent;
34 class RDocument;
35 class REntityPickEvent;
36 class RMouseEvent;
37 class RWheelEvent;
38 class RGuiAction;
39 class RStorage;
40 class RTabletEvent;
41 
53 public:
54  RActionAdapter(RGuiAction* guiAction=NULL) : RAction(guiAction) {}
55  virtual void beginEvent() {}
56  virtual void setGraphicsView(RGraphicsView* /*view*/) {}
57  virtual void finishEvent() {}
58  virtual void suspendEvent() {}
59  virtual void resumeEvent() {}
60  virtual void escapeEvent() {}
61  virtual void keyPressEvent(QKeyEvent& /*event*/) {}
62  virtual void keyReleaseEvent(QKeyEvent& /*event*/) {}
63  virtual void mousePressEvent(RMouseEvent& /*event*/) {}
64  virtual void mouseMoveEvent(RMouseEvent& /*event*/) {}
65  virtual void mouseReleaseEvent(RMouseEvent& /*event*/) {}
66  virtual void mouseDoubleClickEvent(RMouseEvent& /*event*/) {}
67  virtual void wheelEvent(RWheelEvent& /*event*/) {}
68  virtual void tabletEvent(RTabletEvent& /*event*/) {}
69  virtual void swipeGestureEvent(QSwipeGesture& /*gesture*/) {}
70  virtual void panGestureEvent(QPanGesture& /*gesture*/) {}
71  virtual void pinchGestureEvent(QPinchGesture& /*gesture*/) {}
72  virtual void commandEvent(RCommandEvent& /*event*/) {}
73  virtual void commandEventPreview(RCommandEvent& /*event*/) {}
74  virtual void coordinateEvent(RCoordinateEvent& /*event*/) {}
75  virtual void coordinateEventPreview(RCoordinateEvent& /*event*/) {}
76  virtual void entityPickEvent(REntityPickEvent& /*event*/) {}
77  virtual void entityPickEventPreview(REntityPickEvent& /*event)*/) {}
78  virtual void propertyChangeEvent(RPropertyEvent& /*event*/) {}
79 };
80 
82 
83 #endif