Salome HOME
GUI callback: add MEDPresentation
[modules/med.git] / src / MEDCalc / gui / MEDModule.hxx
1 // Copyright (C) 2007-2015  CEA/DEN, EDF R&D
2 //
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.
7 //
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.
12 //
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
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 // Author : Guillaume Boulant (EDF)
21
22 #ifndef _MED_MODULE_HXX_
23 #define _MED_MODULE_HXX_
24
25 #include "StandardApp_Module.hxx"
26
27 #include "WorkspaceController.hxx"
28 #include "XmedDataModel.hxx"
29 #include "DatasourceController.hxx"
30
31 #include <SALOMEconfig.h>
32 #include CORBA_SERVER_HEADER(SALOME_Component)
33
34 #include "MEDCALCGUI.hxx"
35
36 /*!
37  * This class defines the gui of the MED module.
38  */
39 class MEDCALCGUI_EXPORT MEDModule: public StandardApp_Module
40 {
41   Q_OBJECT
42
43   // ===========================================================
44   // This part implements the standard interface of a SALOME gui
45   // ===========================================================
46
47 public:
48   MEDModule();
49   void viewManagers( QStringList& ) const;
50
51 protected:
52   virtual Engines::EngineComponent_ptr getEngine() const;
53   virtual QString studyIconName();
54   virtual void createModuleWidgets();
55   virtual void createModuleActions();
56   virtual bool activateModule( SUIT_Study* theStudy );
57   virtual bool deactivateModule( SUIT_Study* theStudy );
58
59 private:
60   DatasourceController * _datasourceController;
61   WorkspaceController *  _workspaceController;
62   XmedDataModel *        _xmedDataModel;
63 };
64
65 #endif