X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_Tools.h;h=6c903d3fbd7b41d7aeba8ff97694fa2aef27cd87;hb=f40895b4d881810ef7d19c27ce6e952d72353d2c;hp=3a2dbacfffacbc88b11387e7bffbb6d3183d5ff9;hpb=d3b42dea410986c9fa81711e5cf0b0e18bbf6d6a;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_Tools.h b/src/ModuleBase/ModuleBase_Tools.h index 3a2dbacff..6c903d3fb 100644 --- a/src/ModuleBase/ModuleBase_Tools.h +++ b/src/ModuleBase/ModuleBase_Tools.h @@ -2,27 +2,27 @@ // Created: 11 July 2014 // Author: Vitaly Smetannikov - #ifndef ModuleBase_Tools_H #define ModuleBase_Tools_H #include "ModuleBase.h" -#include -#include +#include +#include class GeomAPI_Shape; -namespace ModuleBase_Tools -{ +namespace ModuleBase_Tools { - /** - * Returns returns a shape if the result has a shape method. Otherwise returns NULL pointer - */ - MODULEBASE_EXPORT boost::shared_ptr shape(ResultPtr theResult); +/* + * Methods to adjust margins and spacings. + */ +MODULEBASE_EXPORT void adjustMargins(QWidget* theWidget); +MODULEBASE_EXPORT void adjustMargins(QLayout* theLayout); - MODULEBASE_EXPORT FeaturePtr feature(ObjectPtr theObject); +MODULEBASE_EXPORT void zeroMargins(QWidget* theWidget); +MODULEBASE_EXPORT void zeroMargins(QLayout* theLayout); -}; +} -#endif \ No newline at end of file +#endif