X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_Tools.h;h=3c9006d9a65a1f376da3de9e824be1a9538e164f;hb=af851100774c4ff33b515c884abe0cd03c3f0528;hp=c6ad57e8c5ae1676005dc1802882681e1c961802;hpb=83b022b15cfd77512967f4328484371e46c525ae;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_Tools.h b/src/ModuleBase/ModuleBase_Tools.h index c6ad57e8c..3c9006d9a 100644 --- a/src/ModuleBase/ModuleBase_Tools.h +++ b/src/ModuleBase/ModuleBase_Tools.h @@ -9,10 +9,13 @@ #include "ModuleBase.h" +#include + #include class QWidget; class QLayout; +class QDoubleSpinBox; namespace ModuleBase_Tools { @@ -50,6 +53,18 @@ MODULEBASE_EXPORT QPixmap composite(const QString& theAdditionalIcon, const QStr //! \param theLighterValue a lighter factor //! \return resulting pixmap MODULEBASE_EXPORT QPixmap lighter(const QString& theIcon, const int theLighterValue = 200); + +/// Sets programmatically the value to the spin box without emitting any signals(e.g. valueChanged) +/// \param theSpin an X or Y coordinate widget +/// \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