Salome HOME
9ec37d3876094a798bc3e21f8a78742f5042a119
[modules/filter.git] / src / FILTERGUI / FilterGUI.h
1 //  FILTER FILTERGUI : FILTER component GUI implemetation
2 //
3 //  Copyright (C) 2003  CEA/DEN, EDF R&D
4 //
5 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
6 //
7 //  File   : FILTERGUI.h
8 //  Module : FILTER
9
10 #ifndef _FILTERGUI_H_
11 #define _FILTERGUI_H_
12
13 #include <SalomeApp_Module.h>
14 #include <SUIT_Desktop.h>
15
16 #include <SALOMEconfig.h>
17 #include CORBA_CLIENT_HEADER(FILTER_Gen)
18 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
19
20 class SelectField;
21
22 class FilterGUI: public SalomeApp_Module
23 {
24   Q_OBJECT
25
26 public:
27   FilterGUI();
28
29   virtual void initialize        ( CAM_Application* );
30   virtual QString                engineIOR() const;
31   virtual void windows( QMap<int, int>& mappa ) const;
32   virtual bool OnGUIEvent        (int theCommandID);
33   virtual bool OnKeyPress        (QKeyEvent* pe, SUIT_ViewWindow* );
34   virtual bool OnMousePress      (QMouseEvent* pe, SUIT_ViewWindow* );
35   virtual bool OnMouseMove       (QMouseEvent* pe, SUIT_ViewWindow* );
36
37   void createFilterAction( const int, const QString&, const QString& = "" );
38   void createPopupItem( const int, const QString&, const QString&, const QString& = "", const int = -1 );
39
40   virtual void contextMenuPopup( const QString&, QPopupMenu*, QString& );
41
42   static void setOrb();
43
44   void EmitSignalCloseAllDialogs();
45
46 signals :
47   void                        SignalCloseAllDialogs();
48
49 public slots:
50   virtual bool                deactivateModule( SUIT_Study* );
51   virtual bool                activateModule( SUIT_Study* );
52
53 protected:
54 private slots:
55   void onGUIEvent();
56   void onWindowActivated( SUIT_ViewWindow* );
57   SelectField *_sel;
58
59 };
60
61 #endif