]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/AdvancedGUI/AdvancedGUI_DividedCylinderDlg.cxx
Salome HOME
Copyright update 2022
[modules/geom.git] / src / AdvancedGUI / AdvancedGUI_DividedCylinderDlg.cxx
index e87bf882a349b8fc717c31d0f27a6a5f82fd0003..c90a6ae14266b59c2759b8e366a2f3f5add7e484 100644 (file)
@@ -1,4 +1,4 @@
-// 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
@@ -6,7 +6,7 @@
 // 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
@@ -35,7 +35,6 @@
 #include <TopoDS_Shape.hxx>
 #include <TopoDS.hxx>
 #include <TopExp.hxx>
-#include <TColStd_IndexedMapOfInteger.hxx>
 #include <TopTools_IndexedMapOfShape.hxx>
 
 #include <GEOMImpl_Types.hxx>
@@ -135,7 +134,7 @@ void AdvancedGUI_DividedCylinderDlg::Init()
 // 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 @@//
 }
@@ -217,14 +216,14 @@ void AdvancedGUI_DividedCylinderDlg::ValueChangedInSpinBox()
 //=================================================================================
 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;
 
@@ -243,7 +242,7 @@ bool AdvancedGUI_DividedCylinderDlg::execute (ObjectList& objects)
 
   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();
@@ -257,7 +256,7 @@ bool AdvancedGUI_DividedCylinderDlg::execute (ObjectList& objects)
     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)