X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_PluginManager.h;h=8fc49bdf2c6e9ccb84c136360b34c33a91bd933b;hb=053481dcc854e8f47d2674bf2cf04b424f773cde;hp=64811f82f48bb751d6a7a534de40046fcde4f6cf;hpb=b0d2c2eb9107fe9e69b321bfc0ecba9cb5eab961;p=modules%2Fshaper.git diff --git a/src/Model/Model_PluginManager.h b/src/Model/Model_PluginManager.h index 64811f82f..8fc49bdf2 100644 --- a/src/Model/Model_PluginManager.h +++ b/src/Model/Model_PluginManager.h @@ -27,13 +27,12 @@ class Model_PluginManager : public ModelAPI_PluginManager, public Event_Listener std::string myCurrentPluginName; ///< name of the plugin that must be loaded currently std::shared_ptr myCurrentDoc; ///< current working document public: - /// Creates the feature object using plugins functionality - MODEL_EXPORT virtual std::shared_ptr createFeature( - std::string theFeatureID, const bool theAddToDoc = true); - /// Returns the root document of the application (that may contains sub-documents) MODEL_EXPORT virtual std::shared_ptr rootDocument(); + /// Return true if root document has been already created + MODEL_EXPORT virtual bool hasRootDocument(); + /// Returns the current document that used for current work in the application MODEL_EXPORT virtual std::shared_ptr currentDocument(); @@ -51,9 +50,12 @@ public: /// Is called only once, on startup of the application Model_PluginManager(); -private: +protected: /// Loads (if not done yet) the information about the features and plugins void LoadPluginsInfo(); + + /// Creates the feature object using plugins functionality + virtual std::shared_ptr createFeature(std::string theFeatureID); }; #endif