X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_Tools.h;h=b158a62c1250e2d5af992e8d96e6eb5b24ecb52e;hb=8ebc9a7d5f87057b61b174e7568e01e44571549d;hp=4869f30377a394826de75d9436a6837e7592972f;hpb=1a7281af4aeb1c5fe521989cc66e4e8c5870a576;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Tools.h b/src/XGUI/XGUI_Tools.h index 4869f3037..b158a62c1 100644 --- a/src/XGUI/XGUI_Tools.h +++ b/src/XGUI/XGUI_Tools.h @@ -78,6 +78,11 @@ std::string XGUI_EXPORT featureInfo(FeaturePtr theFeature); */ bool XGUI_EXPORT canRemoveOrRename(QWidget* theParent, const QObjectPtrList& aList); +/*! + Returns true if theObject can be renamed in theName + */ +bool canRename(QWidget* theParent, const ObjectPtr& theObject, const QString& theName); + /*! Returns true if there are no parts in the document, which are not activated \return a boolean value @@ -114,7 +119,8 @@ bool XGUI_EXPORT isSubOfComposite(const ObjectPtr& theObject, const FeaturePtr& */ void XGUI_EXPORT refsToFeatureInAllDocuments(const ObjectPtr& theSourceObject, const ObjectPtr& theObject, - std::set& theRefFeatures); + std::set& theDirectRefFeatures, + std::set& theIndirectRefFeatures); }; #endif