1 // Copyright (C) 2007-2016 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // Author : Guillaume Boulant (EDF)
22 #ifndef _MED_MODULE_HXX_
23 #define _MED_MODULE_HXX_
25 #include "MEDCALCGUI.hxx"
27 #include <SalomeApp_Module.h>
29 #include "WorkspaceController.hxx"
30 #include "XmedDataModel.hxx"
31 #include "DatasourceController.hxx"
33 #include <SALOMEconfig.h>
34 #include CORBA_CLIENT_HEADER(MED_Gen)
36 class SalomeApp_Application;
39 * This class defines the gui of the MED module.
41 class MEDCALCGUI_EXPORT MEDModule: public SalomeApp_Module
45 // ===========================================================
46 // This part implements the standard interface of a SALOME gui
47 // ===========================================================
53 static MED_ORB::MED_Gen_var engine();
55 virtual void initialize( CAM_Application* app );
56 virtual QString engineIOR() const;
58 virtual QString iconName() const;
60 virtual void windows( QMap<int, int>& theMap ) const;
61 virtual void viewManagers( QStringList& theList ) const;
63 int createStandardAction(const QString& label,
65 const char* slotmember,
66 const QString& iconName,
67 const QString& tooltip=QString());
68 void addActionInPopupMenu(int actionId,const QString& menus="",const QString& rule="client='ObjectBrowser'");
71 virtual bool activateModule( SUIT_Study* theStudy );
72 virtual bool deactivateModule( SUIT_Study* theStudy );
75 void createModuleWidgets();
76 void createModuleActions();
80 DatasourceController * _datasourceController;
81 WorkspaceController * _workspaceController;
82 XmedDataModel * _xmedDataModel;
83 static MED_ORB::MED_Gen_var myEngine;