-// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
// 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.
+// 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
#include <TopoDS_Shape.hxx>
#include <TopoDS.hxx>
#include <TopExp.hxx>
-#include <TColStd_IndexedMapOfInteger.hxx>
#include <TopTools_IndexedMapOfShape.hxx>
#include <GEOMImpl_Types.hxx>
// function : SetDoubleSpinBoxStep()
// purpose : Double spin box management
//=================================================================================
-void AdvancedGUI_DividedCylinderDlg::SetDoubleSpinBoxStep (double step)
+void AdvancedGUI_DividedCylinderDlg::SetDoubleSpinBoxStep (double /*step*/)
{
//@@ set double spin box step for all spin boxes here @@//
}
//=================================================================================
GEOM::GEOM_IOperations_ptr AdvancedGUI_DividedCylinderDlg::createOperation()
{
- return getGeomEngine()->GetIAdvancedOperations(getStudyId());
+ return getGeomEngine()->GetPluginOperations("AdvancedEngine");
}
//=================================================================================
// function : isValid
// purpose :
//=================================================================================
-bool AdvancedGUI_DividedCylinderDlg::isValid (QString& msg)
+bool AdvancedGUI_DividedCylinderDlg::isValid (QString& /*msg*/)
{
bool ok = true;
GEOM::GEOM_Object_var anObj;
- GEOM::GEOM_IAdvancedOperations_var anOper = GEOM::GEOM_IAdvancedOperations::_narrow(getOperation());
+ GEOM::IAdvancedOperations_var anOper = GEOM::IAdvancedOperations::_narrow(getOperation());
//@@ retrieve input values from the widgets here @@//
CORBA::Double theR = GroupParams->SpinBox_DX->value();
QStringList aParameters;
aParameters << GroupParams->SpinBox_DX->text(); // R parameter
aParameters << GroupParams->SpinBox_DY->text(); // H parameter
- if ( aParameters.count() > 0 ) anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+ if ( aParameters.count() > 0 ) anObj->SetParameters(aParameters.join(":").toUtf8().constData());
}
if (res)