32 #ifndef OPENPSTD_MOUSEHANDLERS_H 33 #define OPENPSTD_MOUSEHANDLERS_H 40 class MouseVoidStrategy;
42 class MouseMoveSceneStrategy;
44 class MouseCreateDomainStrategy;
46 class MouseCreateSpeakerReceiverStrategy;
51 #include "operations/BaseOperation.h" 53 #include <QtGui/qevent.h> 62 std::shared_ptr<OperationRunner> operationRunner;
65 void SetOperationRunner(std::shared_ptr<OperationRunner> operationRunner);
67 virtual void mousePressEvent(std::shared_ptr<Model>
const &model, QMouseEvent *, QVector2D pos)
70 virtual void mouseReleaseEvent(std::shared_ptr<Model>
const &model, QMouseEvent *mouseEvent, QVector2D pos)
73 virtual void mouseMoveEvent(std::shared_ptr<Model>
const &model, QMouseEvent *mouseEvent, QVector2D pos)
76 virtual void wheelEvent(std::shared_ptr<Model>
const &model, QWheelEvent *mouseEvent, QVector2D pos)
87 virtual void mouseReleaseEvent(std::shared_ptr<Model>
const &model, QMouseEvent *mouseEvent,
88 QVector2D pos)
override;
96 virtual void mousePressEvent(std::shared_ptr<Model>
const &model, QMouseEvent *, QVector2D pos)
override;
98 virtual void mouseMoveEvent(std::shared_ptr<Model>
const &model, QMouseEvent *mouseEvent,
99 QVector2D pos)
override;
101 virtual void wheelEvent(std::shared_ptr<Model>
const &model, QWheelEvent *mouseEvent,
102 QVector2D pos)
override;
111 virtual void mousePressEvent(std::shared_ptr<Model>
const &model, QMouseEvent *, QVector2D pos)
override;
113 virtual void mouseMoveEvent(std::shared_ptr<Model>
const &model, QMouseEvent *mouseEvent,
114 QVector2D pos)
override;
116 virtual void mouseReleaseEvent(std::shared_ptr<Model>
const &model, QMouseEvent *mouseEvent,
117 QVector2D pos)
override;
123 PstdObjectType _type;
127 virtual void mouseMoveEvent(std::shared_ptr<Model>
const &model, QMouseEvent *mouseEvent,
128 QVector2D pos)
override;
130 virtual void mouseReleaseEvent(std::shared_ptr<Model>
const &model, QMouseEvent *mouseEvent,
131 QVector2D pos)
override;
137 #endif //OPENPSTD_MOUSEHANDLERS_H This is the general namespace of the OpenPSTD application.
Definition: Boundary.cpp:33
Definition: MouseHandlers.h:80
Definition: MouseHandlers.h:105
Definition: MouseHandlers.h:91
Definition: MouseHandlers.h:84
Definition: MouseHandlers.h:120
Definition: MouseHandlers.h:59