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,
26 QMouseEvent* theEvent) {}
27 /// Processing the mouse press event in the viewer
28 /// \param theWindow a view window
29 /// \param theEvent a mouse event
30 PARTSET_EXPORT virtual void mousePressed(ModuleBase_IViewWindow* theWindow,
31 QMouseEvent* theEvent) {}
32 /// Processing the mouse release event in the viewer
33 /// \param theWindow a view window
34 /// \param theEvent a mouse event
35 PARTSET_EXPORT virtual void mouseReleased(ModuleBase_IViewWindow* theWindow,
36 QMouseEvent* theEvent) {}
37 /// Processing the mouse double click event in the viewer
38 /// \param theWindow a view window
39 /// \param theEvent a mouse event
40 PARTSET_EXPORT virtual void mouseDoubleClick(ModuleBase_IViewWindow* theWindow,
41 QMouseEvent* theEvent) {}