1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: PartSet_MouseProcessor.hxx
4 // Created: 21 Jul 2016
5 // Author: Natalia ERMOLAEVA
7 #ifndef PartSet_MouseProcessor_H
8 #define PartSet_MouseProcessor_H
12 class ModuleBase_IViewWindow;
16 * This is an interface to allow processing of mouse events. Implementation of necessary methods
17 * should be done in a child.
19 class PartSet_MouseProcessor
22 /// Processing the mouse move event in the viewer
23 /// \param theWindow a view window
24 /// \param theEvent a mouse event
25 PARTSET_EXPORT virtual void mouseMoved(ModuleBase_IViewWindow* theWindow, QMouseEvent* theEvent) {}
26 /// Processing the mouse press event in the viewer
27 /// \param theWindow a view window
28 /// \param theEvent a mouse event
29 PARTSET_EXPORT virtual void mousePressed(ModuleBase_IViewWindow* theWindow, QMouseEvent* theEvent) {}
30 /// Processing the mouse release event in the viewer
31 /// \param theWindow a view window
32 /// \param theEvent a mouse event
33 PARTSET_EXPORT virtual void mouseReleased(ModuleBase_IViewWindow* theWindow, QMouseEvent* theEvent) {}
34 /// Processing the mouse double click event in the viewer
35 /// \param theWindow a view window
36 /// \param theEvent a mouse event
37 PARTSET_EXPORT virtual void mouseDoubleClick(ModuleBase_IViewWindow* theWindow, QMouseEvent* theEvent) {}