Salome HOME
setDisplayed has to be called in order to synchronize internal state of the object
[modules/shaper.git] / src / Model / Model_Session.h
index 47e40262e3ae4cab165f84103d1467b9856724da..2584a2e201aa35a14012df0e8c79c6a08ea29d9c 100644 (file)
@@ -90,6 +90,9 @@ class Model_Session : public ModelAPI_Session, public Events_Listener
   /// Returns all the opened documents of the session (without postponed)
   MODEL_EXPORT virtual std::list<std::shared_ptr<ModelAPI_Document> > allOpenedDocuments();
 
+  /// Returns true if document is not loaded yet
+  MODEL_EXPORT virtual bool isLoadByDemand(const std::string theDocID);
+
   /// Registers the plugin that creates features.
   /// It is obligatory for each plugin to call this function on loading to be found by 
   /// the plugin manager on call of the feature)
@@ -122,6 +125,7 @@ class Model_Session : public ModelAPI_Session, public Events_Listener
   FeaturePtr createFeature(std::string theFeatureID, Model_Document* theDocOwner);
 
   friend class Model_Document;
+  friend class Model_Objects;
 };
 
 #endif