Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / ModelAPI / ModelAPI_Session.h
index 54e807693d9ac7032af15e0f6e1aad3f7828a754..c97105421512fd83b16efbab28bdd012501b3666 100644 (file)
@@ -75,7 +75,11 @@ class MODELAPI_EXPORT ModelAPI_Session
   virtual boost::shared_ptr<ModelAPI_Document> activeDocument() = 0;
 
   /// Defines the current document that used for current work in the application
-  virtual void setActiveDocument(boost::shared_ptr<ModelAPI_Document> theDoc) = 0;
+  virtual void setActiveDocument(
+    boost::shared_ptr<ModelAPI_Document> theDoc, bool theSendSignal = true) = 0;
+
+  /// Returns all the opened documents of the session (without postponed)
+  virtual std::list<boost::shared_ptr<ModelAPI_Document> > allOpenedDocuments() = 0;
 
   /// Copies the document to the new one with the given id
   virtual boost::shared_ptr<ModelAPI_Document> copy(boost::shared_ptr<ModelAPI_Document> theSource,