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/
24 #include "CAM_DataModel.h"
26 #include <SUIT_Study.h>
31 #pragma warning( disable:4251 )
34 class CAM_EXPORT CAM_Study : public SUIT_Study
39 typedef QPtrList<CAM_DataModel> ModelList;
40 typedef QPtrListIterator<CAM_DataModel> ModelListIterator;
43 CAM_Study( SUIT_Application* );
46 virtual void closeDocument(bool permanently = true);
48 /** @name Insert data model methods.*/
50 bool appendDataModel( const CAM_DataModel* );
51 virtual bool insertDataModel( const CAM_DataModel*, const int = -1 );
52 bool insertDataModel( const CAM_DataModel*, const CAM_DataModel* );
55 virtual bool removeDataModel( const CAM_DataModel* );
57 bool containsDataModel( const CAM_DataModel* ) const;
59 void dataModels( ModelList& ) const;
62 virtual void dataModelInserted( const CAM_DataModel* );
63 virtual bool openDataModel( const QString&, CAM_DataModel* );
64 virtual bool saveDataModel( const QString&, CAM_DataModel* );
67 virtual void updateModelRoot( const CAM_DataModel* );
71 ModelList myDataModels;
75 #pragma warning( default:4251 )