X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_Tools.h;h=3c9006d9a65a1f376da3de9e824be1a9538e164f;hb=af851100774c4ff33b515c884abe0cd03c3f0528;hp=1f55bec750a28fb7a9e5b04df2273543c3ff44e6;hpb=cedbcc9f78684b65af0d19da1066710314374f93;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_Tools.h b/src/ModuleBase/ModuleBase_Tools.h index 1f55bec75..3c9006d9a 100644 --- a/src/ModuleBase/ModuleBase_Tools.h +++ b/src/ModuleBase/ModuleBase_Tools.h @@ -9,6 +9,8 @@ #include "ModuleBase.h" +#include + #include class QWidget; @@ -57,6 +59,12 @@ MODULEBASE_EXPORT QPixmap lighter(const QString& theIcon, const int theLighterVa /// \param theValue a new value MODULEBASE_EXPORT void setSpinValue(QDoubleSpinBox* theSpin, double theValue); +/// Converts the object to the feature or a result and generate information string +/// \param theObj an object +/// \param isUseAttributesInfo a flag whether the attribute values information is used +/// \return a string +MODULEBASE_EXPORT QString objectInfo(const ObjectPtr& theObj, const bool isUseAttributesInfo = false); + } #endif