Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef __MEDGUI_HXX_
00028 #define __MEDGUI_HXX__
00029
00030 #include <SalomeApp_Module.h>
00031 #include <SUIT_Desktop.h>
00032
00033 #include <SALOMEconfig.h>
00034 #include CORBA_CLIENT_HEADER(MED_Gen)
00035 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
00036
00037 class MEDGUIDataBaseDockWidget;
00038
00039 class MedGUI: public SalomeApp_Module
00040 {
00041 Q_OBJECT
00042
00043 public:
00044 MedGUI();
00045
00046 virtual void initialize( CAM_Application* );
00047 virtual QString engineIOR() const;
00048 virtual void windows( QMap<int, int>& mappa ) const;
00049
00050 virtual bool OnGUIEvent(int theCommandID);
00051 virtual bool OnKeyPress(QKeyEvent* pe, SUIT_ViewWindow* );
00052 virtual bool OnMousePress(QMouseEvent* pe, SUIT_ViewWindow* );
00053 virtual bool OnMouseMove(QMouseEvent* pe, SUIT_ViewWindow* );
00054
00055 void createMedAction( const int, const QString&, const QString& = "" );
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065 SALOME_MED::MED_Gen_ptr InitMedGen() const;
00066
00067 static bool DumpMesh( SALOME_MED::MESH_var aMesh );
00068 static bool DumpSubMesh( SALOME_MED::FAMILY_var Fam ) ;
00069
00070 static void setOrb();
00071
00072 void EmitSignalCloseAllDialogs();
00073
00074 signals :
00075 void SignalCloseAllDialogs();
00076
00077 public slots:
00078 virtual bool deactivateModule( SUIT_Study* );
00079 virtual bool activateModule( SUIT_Study* );
00080
00081 protected:
00082 MEDGUIDataBaseDockWidget *_data_base;
00083
00084 private slots:
00085 void onGUIEvent();
00086 void onWindowActivated( SUIT_ViewWindow* );
00087
00088 };
00089
00090 #endif