X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_Tools.h;h=1f55bec750a28fb7a9e5b04df2273543c3ff44e6;hb=676e0178fdedf35ba607ef9d4f02d871dd06fa28;hp=9435d485b2b5ff7103a26aa462ce7f0f0a17c7c4;hpb=3e5ce33f52af713f431dd0aae09602fd072cb42c;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_Tools.h b/src/ModuleBase/ModuleBase_Tools.h index 9435d485b..1f55bec75 100644 --- a/src/ModuleBase/ModuleBase_Tools.h +++ b/src/ModuleBase/ModuleBase_Tools.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: ModuleBase_Tools.h // Created: 11 July 2014 // Author: Vitaly Smetannikov @@ -11,6 +13,7 @@ class QWidget; class QLayout; +class QDoubleSpinBox; namespace ModuleBase_Tools { @@ -25,8 +28,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. @@ -46,6 +51,12 @@ 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); + } #endif