Salome HOME
Issue #1834: Fix length of lines
[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, 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) {}
38 };
39
40 #endif