1 // Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA 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.
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
19 // File: SalomeApp_Module.h
20 // Created: 10/25/2004 11:33:06 AM
21 // Author: Sergey LITONIN
22 // Copyright (C) CEA 2004
24 #ifndef SALOMEAPP_MODULE_H
25 #define SALOMEAPP_MODULE_H
27 #include "SalomeApp.h"
29 #include <LightApp_Module.h>
32 class SalomeApp_Application;
33 class LightApp_Operation;
34 class LightApp_Selection;
39 * \brief Base class for all salome modules
41 class SALOMEAPP_EXPORT SalomeApp_Module : public LightApp_Module
46 SalomeApp_Module( const QString& );
47 virtual ~SalomeApp_Module();
49 /*! engineIOR() should be a pure virtual method, to avoid logical errors!\n
50 * Implementation in derived classes can return the following values:\n
51 * module`s engine IOR - means that this is a standard SALOME module with a CORBA engine
52 * \li "" (empty string) - means that this not correct SALOME module
54 virtual QString engineIOR() const = 0;
56 /*! Convenient shortcuts*/
58 SalomeApp_Application* getApp() const;
60 virtual void storeVisualParameters(int savePoint);
61 virtual void restoreVisualParameters(int savePoint);
64 virtual CAM_DataModel* createDataModel();
65 virtual LightApp_Selection* createSelection() const;
66 virtual void extractContainers( const SALOME_ListIO&, SALOME_ListIO& ) const;