]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelAPI/ModelAPI_Document.h
Salome HOME
Correctly close the document on opening the new one
[modules/shaper.git] / src / ModelAPI / ModelAPI_Document.h
index 703ab0f881cebeb997bbf62d9fe3b5d4747ec1f8..0b67c44f1b7e526ac6297b1c62850362cdbdf3a1 100644 (file)
@@ -35,7 +35,8 @@ public:
   virtual const std::string& kind() const = 0;
 
   //! Removes document data
-  virtual void close() = 0;
+  //! \param theForever if it is false, document is just hiden (to keep possibility make it back on Undo/Redo)
+  virtual void close(const bool theForever = false) = 0;
 
   //! Adds to the document the new feature of the given feature id
   //! \param creates feature and puts it in the document (if it is not action)