1 // MED MEDGUI : MED component GUI implemetation
3 // Copyright (C) 2003 CEA/DEN, EDF R&D
13 #include <SalomeApp_Module.h>
14 #include <SUIT_Desktop.h>
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)
21 class MedGUI: public SalomeApp_Module
28 virtual void initialize ( CAM_Application* );
29 virtual QString engineIOR() const;
30 virtual void windows( QMap<int, int>& mappa ) const;
31 virtual bool OnGUIEvent (int theCommandID);
32 virtual bool OnKeyPress (QKeyEvent* pe, SUIT_ViewWindow* );
33 virtual bool OnMousePress (QMouseEvent* pe, SUIT_ViewWindow* );
34 virtual bool OnMouseMove (QMouseEvent* pe, SUIT_ViewWindow* );
36 void createMedAction( const int, const QString&, const QString& = "" );
37 void createPopupItem( const int, const QString&, const QString&, const QString& = "", const int = -1 );
39 virtual void contextMenuPopup( const QString&, QPopupMenu*, QString& );
41 //virtual bool SetSettings ();
42 //virtual bool CustomPopup ( QAD_Desktop* parent, QPopupMenu* popup, const QString & theContext,
43 // const QString & theParent, const QString & theObject );
44 //virtual void DefinePopup ( QString & theContext, QString & theParent, QString & theObject );
45 //virtual bool ActiveStudyChanged( QAD_Desktop* parent );
47 /*static*/ SALOME_MED::MED_Gen_ptr InitMedGen() const;
49 static bool DumpMesh( SALOME_MED::MESH_var aMesh );
50 // static bool DumpSubMesh( SMESH::SMESH_subMesh_ptr aSubMesh ) ;
51 static bool DumpSubMesh( SALOME_MED::FAMILY_var Fam ) ;
55 void EmitSignalCloseAllDialogs();
58 void SignalCloseAllDialogs();
61 virtual bool deactivateModule( SUIT_Study* );
62 virtual bool activateModule( SUIT_Study* );
67 void onWindowActivated( SUIT_ViewWindow* );