Salome HOME
This commit was generated by cvs2git to track changes on a CVS vendor
[modules/med.git] / src / MEDGUI / MedGUI.h
1 //=============================================================================
2 // File      : MEDGUI.h
3 // Project   : SALOME
4 // Copyright : EDF 2001
5 //=============================================================================
6
7 #ifndef _MEDGUI_H_
8 #define _MEDGUI_H_
9
10 #include "QAD_Desktop.h"
11 #include "QAD_StudyFrame.h"
12
13 #include <SALOMEconfig.h>
14 #include CORBA_CLIENT_HEADER(Med_Gen)
15 //#include CORBA_CLIENT_HEADER(SMESH_Mesh)
16 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
17
18 class MedGUI: public QObject
19 {
20   Q_OBJECT
21
22 public:
23
24   static bool OnGUIEvent (int theCommandID, QAD_Desktop* parent);
25
26   static bool OnMousePress (QMouseEvent* pe ,
27                             QAD_Desktop* parent, 
28                             QAD_StudyFrame* studyFrame);
29  
30   static bool OnMouseMove (QMouseEvent* pe ,
31                            QAD_Desktop* parent, 
32                            QAD_StudyFrame* studyFrame);
33
34   static bool OnKeyPress (QKeyEvent* pe,
35                           QAD_Desktop* parent,
36                           QAD_StudyFrame* studyFrame);
37
38   static bool SetSettings (QAD_Desktop* parent);
39
40   static bool CustomPopup ( QAD_Desktop* parent,
41                             QPopupMenu* popup,
42                             const QString & theContext,
43                             const QString & theParent,
44                             const QString & theObject);
45
46   static void DefinePopup(QString & theContext, QString & theParent, QString & theObject);
47
48   static void ActiveStudyChanged ( QAD_Desktop* parent );
49
50   static Engines::Med_Gen_ptr InitMedGen(QAD_Desktop* parent);
51
52   static bool DumpMesh( SALOME_MED::MESH_var aMesh );
53   //  static bool DumpSubMesh( SMESH::SMESH_subMesh_ptr aSubMesh ) ;
54   static bool DumpSubMesh( SALOME_MED::FAMILY_var Fam ) ;
55
56   static void setOrb();
57
58 protected:
59
60 private:
61
62 };
63
64 #endif