Salome HOME
#29481: Show parts in study tree (parts drag and drop)
[modules/shaper.git] / src / ModelAPI / ModelAPI_Tools.h
index 6f61423e8e666c5b512c97c26e8164ad8cd0fcc6..0ad6923412cf3eb5551368159c05110b17a95d84 100644 (file)
@@ -356,6 +356,16 @@ MODELAPI_EXPORT bool isInResults(AttributeSelectionListPtr theSelection,
 */
 MODELAPI_EXPORT void findRandomColor(std::vector<int>& theValues, bool theReset = false);
 
+/*!
+* Checks the movement of features possibility. The feature cannot appear before the feature
+* depended on it. Used in drag and drop part features.
+* \param theAfter feature after which the moved features are placed, or null for the first place
+* \param theMoved ordered list of the moved features
+* \returns string with error text, dependencies that do not allow make movement or empty string
+*/
+MODELAPI_EXPORT std::wstring validateMovement(
+  const FeaturePtr& theAfter, const std::list<FeaturePtr> theMoved);
+
 }
 
 #endif