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: LightApp_DataModel.h
20 // Created: 10/25/2004 10:32:33 AM
21 // Author: Sergey LITONIN
22 // Copyright (C) CEA 2004
24 #ifndef LIGHTAPP_DATAMODEL_H
25 #define LIGHTAPP_DATAMODEL_H
29 #endif // _MSC_VER > 1000
32 #include "CAM_DataModel.h"
34 class LightApp_Module;
36 class LightApp_DataObject;
39 Description : Base class of data model
41 class LIGHTAPP_EXPORT LightApp_DataModel : public CAM_DataModel
46 LightApp_DataModel ( CAM_Module* theModule );
47 virtual ~LightApp_DataModel();
49 virtual bool open( const QString&, CAM_Study*, QStringList );
50 virtual bool save( QStringList& );
51 virtual bool saveAs( const QString&, CAM_Study*, QStringList& );
54 virtual void update( LightApp_DataObject* = 0, LightApp_Study* = 0 );
56 virtual bool isModified() const;
57 virtual bool isSaved() const;
59 LightApp_Module* getModule() const;
67 LightApp_Study* getStudy() const;
69 virtual void updateWidgets();