- MODELAPI_EXPORT virtual void close() = 0;
-
- //! Starts a new operation (opens a tansaction)
- MODELAPI_EXPORT virtual void startOperation() = 0;
- //! Finishes the previously started operation (closes the transaction)
- MODELAPI_EXPORT virtual void finishOperation() = 0;
- //! Aborts the operation
- MODELAPI_EXPORT virtual void abortOperation() = 0;
- //! Returns true if operation has been started, but not yet finished or aborted
- MODELAPI_EXPORT virtual bool isOperation() = 0;
- //! Returns true if document was modified (since creation/opening)
- MODELAPI_EXPORT virtual bool isModified() = 0;
-
- //! Returns True if there are available Undos
- MODELAPI_EXPORT virtual bool canUndo() = 0;
- //! Undoes last operation
- MODELAPI_EXPORT virtual void undo() = 0;
- //! Returns True if there are available Redos
- MODELAPI_EXPORT virtual bool canRedo() = 0;
- //! Redoes last operation
- MODELAPI_EXPORT virtual void redo() = 0;
-
- //! Adds to the document the new feature of the given group id
- //! \param theFeature a feature object that will be connected to the document in this method
- //! \param theGroupID identifier of the groups of object
- MODELAPI_EXPORT virtual void addFeature(std::shared_ptr<ModelAPI_Feature> theFeature,
- const std::string theGroupID) = 0;
+ virtual void close() = 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)
+ virtual boost::shared_ptr<ModelAPI_Feature> addFeature(std::string theID) = 0;
+
+ //! Removes the feature from the document
+ virtual void removeFeature(boost::shared_ptr<ModelAPI_Feature> theFeature,
+ const bool theCheck = true) = 0;