Salome HOME
Merging with the MAN_SALOME2 branch
[modules/med.git] / src / MEDGUI / MedGUI.h
1 //  MED MEDGUI : MED component GUI implemetation 
2 //
3 //  Copyright (C) 2003  CEA/DEN, EDF R&D
4 //
5 //
6 //
7 //  File   : MEDGUI.h
8 //  Module : MED
9
10 #ifndef _MEDGUI_H_
11 #define _MEDGUI_H_
12
13 #include "QAD_Desktop.h"
14 #include "QAD_StudyFrame.h"
15
16 #include <SALOMEconfig.h>
17 #include CORBA_CLIENT_HEADER(MED_Gen)
18 //#include CORBA_CLIENT_HEADER(SMESH_Mesh)
19 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
20
21 class MedGUI: public QObject
22 {
23   Q_OBJECT
24
25 public:
26
27   static bool OnGUIEvent (int theCommandID, QAD_Desktop* parent);
28
29   static bool OnMousePress (QMouseEvent* pe ,
30                             QAD_Desktop* parent, 
31                             QAD_StudyFrame* studyFrame);
32  
33   static bool OnMouseMove (QMouseEvent* pe ,
34                            QAD_Desktop* parent, 
35                            QAD_StudyFrame* studyFrame);
36
37   static bool OnKeyPress (QKeyEvent* pe,
38                           QAD_Desktop* parent,
39                           QAD_StudyFrame* studyFrame);
40
41   static bool SetSettings (QAD_Desktop* parent);
42
43   static bool CustomPopup ( QAD_Desktop* parent,
44                             QPopupMenu* popup,
45                             const QString & theContext,
46                             const QString & theParent,
47                             const QString & theObject);
48
49   static void DefinePopup(QString & theContext, QString & theParent, QString & theObject);
50
51   static void ActiveStudyChanged ( QAD_Desktop* parent );
52
53   static SALOME_MED::MED_Gen_ptr InitMedGen(QAD_Desktop* parent);
54
55   static bool DumpMesh( SALOME_MED::MESH_var aMesh );
56   //  static bool DumpSubMesh( SMESH::SMESH_subMesh_ptr aSubMesh ) ;
57   static bool DumpSubMesh( SALOME_MED::FAMILY_var Fam ) ;
58
59   static void setOrb();
60
61 protected:
62
63 private:
64
65 };
66
67 #endif