Salome HOME
KERNEL_ROOT_DIR/include/salome -> KERNEL_INCLUDE_DIRS
[modules/med.git] / src / MEDOP / gui / MEDOPModule.hxx
1 // Copyright (C) 2007-2013  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.
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 _MEDOP_MODULE_HXX_
23 #define _MEDOP_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 "MEDOPGUI.hxx"
35
36 /*!
37  * This class defines the gui of the MEDOP module.
38  */
39 class MEDOPGUI_EXPORT MEDOPModule: 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   MEDOPModule();
49
50 protected:
51   virtual Engines::EngineComponent_ptr getEngine() const;
52   virtual QString studyIconName();
53   virtual void createModuleWidgets();
54   virtual void createModuleActions();
55   virtual bool activateModule( SUIT_Study* theStudy );
56   virtual bool deactivateModule( SUIT_Study* theStudy );
57
58 private:
59   DatasourceController * _datasourceController;
60   WorkspaceController *  _workspaceController;
61   XmedDataModel *        _xmedDataModel;
62 };
63
64 #endif