From: Jérôme Date: Thu, 12 Nov 2020 10:05:56 +0000 (+0100) Subject: Clean sources X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=28fb70d21be028520247bc5b3be3420184a7d216;p=modules%2Fshaper.git Clean sources --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_BasicProperties.h b/src/GeomAlgoAPI/GeomAlgoAPI_BasicProperties.h new file mode 100644 index 000000000..5450ea726 --- /dev/null +++ b/src/GeomAlgoAPI/GeomAlgoAPI_BasicProperties.h @@ -0,0 +1,42 @@ +// Copyright (C) 2014-2020 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// + +#ifndef GeomAlgoAPI_BasicProperties_H_ +#define GeomAlgoAPI_BasicProperties_H_ + +#include +#include +#include + +/// Run chamfer operation with two distances or with a distance and an angle . + /// \param theShape the shape + /// \param theTolerance tolerance desirated + /// \param theLength lenght calculated + /// \param theSurfArea Surface Area calculated + /// \param theVolume Volume calculated + /// \param theError error +GEOMALGOAPI_EXPORT +bool GetBasicProperties( const std::shared_ptr& theShape, + const Standard_Real theTolerance, + Standard_Real& theLength, + Standard_Real& theSurfArea, + Standard_Real& theVolume, + std::string& theError); + +#endif diff --git a/src/ModuleBase/ModuleBase_WidgetSelectionFilter.cpp b/src/ModuleBase/ModuleBase_WidgetSelectionFilter.cpp index 33bb8470c..4184e2999 100644 --- a/src/ModuleBase/ModuleBase_WidgetSelectionFilter.cpp +++ b/src/ModuleBase/ModuleBase_WidgetSelectionFilter.cpp @@ -178,6 +178,7 @@ ModuleBase_FilterItem::ModuleBase_FilterItem( connect(aWidget, SIGNAL(focusOutWidget(ModuleBase_ModelWidget*)), theParent, SIGNAL(focusOutWidget(ModuleBase_ModelWidget*))); connect(aWidget, SIGNAL(objectUpdated()), theParent, SLOT(onObjectUpdated())); + aWidget->enableFocusProcessing(); } aLayout->addWidget(aParamsWgt); }