X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSUIT%2FSUIT_Study.h;h=fe552b1edeb999c1dc1a12333c5fa3a0007bd5b9;hb=d5d7a7ea728b883f5af1ef4fe69aa8cffc477b1f;hp=15f78a351c3e75f3676dc7b3473808147523957a;hpb=f830c97c748d8f8a6a7eccc8e3a58e19066a1181;p=modules%2Fgui.git diff --git a/src/SUIT/SUIT_Study.h b/src/SUIT/SUIT_Study.h index 15f78a351..fe552b1ed 100755 --- a/src/SUIT/SUIT_Study.h +++ b/src/SUIT/SUIT_Study.h @@ -1,34 +1,37 @@ -// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D -// +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// +// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // + #ifndef SUIT_STUDY_H #define SUIT_STUDY_H #include "SUIT.h" -#include "SUIT_Operation.h" - -#include -#include +#include +#include +#include class SUIT_DataObject; class SUIT_Application; -class QDialog; +class SUIT_Operation; #ifdef WIN32 #pragma warning( disable:4251 ) @@ -45,16 +48,16 @@ public: virtual int id() const; SUIT_DataObject* root() const; - QString studyName() const; + virtual QString studyName() const; SUIT_Application* application() const; virtual bool isSaved() const; virtual bool isModified() const; virtual void Modified(); - virtual void createDocument(); virtual void closeDocument( bool = true ); virtual bool openDocument( const QString& ); + virtual bool createDocument( const QString& ); bool saveDocument(); virtual bool saveDocumentAs( const QString& ); @@ -66,7 +69,7 @@ public: // Operation management SUIT_Operation* activeOperation() const; virtual void abortAllOperations(); - const QPtrList& operations() const; + const QList& operations() const; virtual SUIT_Operation* blockingOperation( SUIT_Operation* ) const; @@ -87,18 +90,18 @@ protected: virtual void setRoot( SUIT_DataObject* ); virtual void setStudyName( const QString& ); - virtual void operationStarted( SUIT_Operation* ); - virtual void operationAborted( SUIT_Operation* ); - virtual void operationStopped( SUIT_Operation* ); - virtual void operationCommited( SUIT_Operation* ); + virtual void operationStarted( SUIT_Operation* ); + virtual void operationAborted( SUIT_Operation* ); + virtual void operationStopped( SUIT_Operation* ); + virtual void operationCommited( SUIT_Operation* ); virtual bool openTransaction(); virtual bool abortTransaction(); virtual bool hasTransaction() const; - virtual bool commitTransaction( const QString& = QString::null ); + virtual bool commitTransaction( const QString& = QString() ); private: - typedef QPtrList Operations; + typedef QList Operations; void stop( SUIT_Operation* ); private: