X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_PluginManager.h;h=4efef6a4cd5034c79e8ff69a405cc49b852ceb33;hb=4ee6972a725f02500c2c543abeef2909180e09c1;hp=7f405573fea644010a96dc6c53757e2be75b83af;hpb=37bf139347283d16d59b08079d52be5f6f29a38c;p=modules%2Fshaper.git diff --git a/src/Model/Model_PluginManager.h b/src/Model/Model_PluginManager.h index 7f405573f..4efef6a4c 100644 --- a/src/Model/Model_PluginManager.h +++ b/src/Model/Model_PluginManager.h @@ -26,6 +26,7 @@ class Model_PluginManager : public ModelAPI_PluginManager, public Events_Listene std::map myPluginObjs; ///< instances of the already plugins std::string myCurrentPluginName; ///< name of the plugin that must be loaded currently boost::shared_ptr myCurrentDoc; ///< current working document + bool myCheckTransactions; ///< if true, generates error if document is updated outside of transaction public: /// Returns the root document of the application (that may contains sub-documents) MODEL_EXPORT virtual boost::shared_ptr rootDocument(); @@ -47,6 +48,12 @@ public: /// Processes the configuration file reading MODEL_EXPORT virtual void processEvent(const Events_Message* theMessage); + /// Copies the document to the new one wit hthe given id + MODEL_EXPORT virtual boost::shared_ptr copy( + boost::shared_ptr theSource, std::string theID); + + void setCheckTransactions(const bool theCheck) {myCheckTransactions = theCheck;} + /// Is called only once, on startup of the application Model_PluginManager();