Salome HOME
Issue #1860: fix end lines with spaces
[modules/shaper.git] / src / PartSet / PartSet_MouseProcessor.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        PartSet_MouseProcessor.hxx
4 // Created:     21 Jul 2016
5 // Author:      Natalia ERMOLAEVA
6
7 #ifndef PartSet_MouseProcessor_H
8 #define PartSet_MouseProcessor_H
9
10 #include "PartSet.h"
11
12 class ModuleBase_IViewWindow;
13 class QMouseEvent;
14
15 /**
16  * This is an interface to allow processing of mouse events. Implementation of necessary methods
17 * should be done in a child.
18 */
19 class PartSet_MouseProcessor
20 {
21 public:
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) {}
42 };
43
44 #endif