Salome HOME
Fix for crash on multi-selection of group-vertices on imported body with Shift-key...
[modules/shaper.git] / src / ModuleBase / ModuleBase_Tools.h
index a0e250914ed12f73bbd4180292a26379d2abb18c..3c9006d9a65a1f376da3de9e824be1a9538e164f 100644 (file)
@@ -9,10 +9,13 @@
 
 #include "ModuleBase.h"
 
+#include <ModelAPI_Feature.h>
+
 #include <QPixmap>
 
 class QWidget;
 class QLayout;
+class QDoubleSpinBox;
 
 namespace ModuleBase_Tools {
 
@@ -27,8 +30,10 @@ MODULEBASE_EXPORT void zeroMargins(QLayout* theLayout);
 
 
 /**
+ * \ingroup GUI
  * Methods to modify a resource pixmap
  */
+
 //! Create composite pixmap. 
 //! Pixmap \a theAdditionalIcon is drawn over pixmap \a dest with coordinates
 //! specified relatively to the upper left corner of \a theIcon.
@@ -48,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