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 class ROperation;
42 
54 public:
55  RActionAdapter(RGuiAction* guiAction=NULL) : RAction(guiAction) {
56 // qDebug() << "RActionAdapter " << QString("0x%1").arg((int)this, 0, 16);
57  }
58  virtual ~RActionAdapter() {
59 // qDebug() << "~RActionAdapter " << QString("0x%1").arg((int)this, 0, 16);
60  }
61  virtual void beginEvent() {}
62  virtual void setGraphicsView(RGraphicsView* /*view*/) {}
63  virtual void finishEvent() {}
64  virtual void suspendEvent() {}
65  virtual void resumeEvent() {}
66  virtual void escapeEvent() {}
67  virtual void keyPressEvent(QKeyEvent& /*event*/) {}
68  virtual void keyReleaseEvent(QKeyEvent& /*event*/) {}
69  virtual void mousePressEvent(RMouseEvent& /*event*/) {}
70  virtual void mouseMoveEvent(RMouseEvent& /*event*/) {}
71  virtual void mouseReleaseEvent(RMouseEvent& /*event*/) {}
72  virtual void mouseDoubleClickEvent(RMouseEvent& /*event*/) {}
73  virtual void wheelEvent(RWheelEvent& /*event*/) {}
74  virtual void tabletEvent(RTabletEvent& /*event*/) {}
75  virtual void swipeGestureEvent(QSwipeGesture& /*gesture*/) {}
76  virtual void panGestureEvent(QPanGesture& /*gesture*/) {}
77  virtual void pinchGestureEvent(QPinchGesture& /*gesture*/) {}
78  virtual void commandEvent(RCommandEvent& /*event*/) {}
79  virtual void commandEventPreview(RCommandEvent& /*event*/) {}
80  virtual void coordinateEvent(RCoordinateEvent& /*event*/) {}
81  virtual void coordinateEventPreview(RCoordinateEvent& /*event*/) {}
82  virtual void entityPickEvent(REntityPickEvent& /*event*/) {}
83  virtual void entityPickEventPreview(REntityPickEvent& /*event)*/) {}
84  virtual void propertyChangeEvent(RPropertyEvent& /*event*/) {}
85  //virtual void setMultiSnapPoints(const QList<RVector>& /*points*/) {}
86  //virtual void setMultiSnapAngles(const QList<double>& /*angles*/) {}
87  virtual void updatePreview() {}
88  virtual void applyOperation() {}
89 };
90 
92 
93 #endif