Salome HOME
fix PAL10042: "Dump study failed" message box isn't appears.
[modules/gui.git] / src / SalomeApp / SalomeApp_EventFilter.h
1 #ifndef SALOMEAPP_EVENTFILTER_H
2 #define SALOMEAPP_EVENTFILTER_H
3
4 #include "SalomeApp.h"
5 #include <qobject.h>
6
7 #if defined WNT
8 #pragma warning( disable: 4251 )
9 #endif
10
11 class SALOME_Event;
12
13 /*!
14   Class provide event filter.
15 */
16 class SALOMEAPP_EXPORT SalomeApp_EventFilter: public QObject 
17 {
18 public:
19   static void Init();
20   static void Destroy();
21
22 protected:
23   SalomeApp_EventFilter();
24   virtual ~SalomeApp_EventFilter();
25
26 private:
27   /*! global event filter for qapplication */
28   virtual bool eventFilter( QObject* o, QEvent* e );
29   void processEvent( SALOME_Event* );
30
31 private:
32   static SalomeApp_EventFilter* myFilter;
33 };
34
35 #if defined WNT
36 #pragma warning( default: 4251 )
37 #endif
38
39 #endif