-// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
#include <GEOMImpl_Types.hxx>
+#include <QButtonGroup>
+
//=================================================================================
// class : BasicGUI_CurveDlg()
// purpose : Constructs a BasicGUI_CurveDlg which is a child of 'parent', with the
//=================================================================================
GEOM::GEOM_IOperations_ptr BasicGUI_CurveDlg::createOperation()
{
- return myGeomGUI->GetGeomGen()->GetICurvesOperations(getStudyId());
+ return myGeomGUI->GetGeomGen()->GetICurvesOperations();
}
//=================================================================================
if (myBySelectionBtn->isChecked())
anObj = anOper->MakePolyline(points.in(), myGroupPoints->CheckButton1->isChecked());
else
- anObj = anOper->MakeCurveParametricNew(qPrintable(myGroupParams->myXExpr->text()),
- qPrintable(myGroupParams->myYExpr->text()),
- qPrintable(myGroupParams->myZExpr->text()),
+ anObj = anOper->MakeCurveParametricNew(qUtf8Printable(myGroupParams->myXExpr->text()),
+ qUtf8Printable(myGroupParams->myYExpr->text()),
+ qUtf8Printable(myGroupParams->myZExpr->text()),
myGroupParams->myPMin->value(),
myGroupParams->myPMax->value(),
myGroupParams->myPStep->value(),
if (myBySelectionBtn->isChecked())
anObj = anOper->MakeSplineBezier(points.in(), myGroupPoints->CheckButton1->isChecked());
else
- anObj = anOper->MakeCurveParametricNew(qPrintable(myGroupParams->myXExpr->text()),
- qPrintable(myGroupParams->myYExpr->text()),
- qPrintable(myGroupParams->myZExpr->text()),
+ anObj = anOper->MakeCurveParametricNew(qUtf8Printable(myGroupParams->myXExpr->text()),
+ qUtf8Printable(myGroupParams->myYExpr->text()),
+ qUtf8Printable(myGroupParams->myZExpr->text()),
myGroupParams->myPMin->value(),
myGroupParams->myPMax->value(),
myGroupParams->myPStep->value(),
myGroupPoints->CheckButton2->isChecked());
}
else
- anObj = anOper->MakeCurveParametricNew(qPrintable(myGroupParams->myXExpr->text()),
- qPrintable(myGroupParams->myYExpr->text()),
- qPrintable(myGroupParams->myZExpr->text()),
+ anObj = anOper->MakeCurveParametricNew(qUtf8Printable(myGroupParams->myXExpr->text()),
+ qUtf8Printable(myGroupParams->myYExpr->text()),
+ qUtf8Printable(myGroupParams->myZExpr->text()),
myGroupParams->myPMin->value(),
myGroupParams->myPMax->value(),
myGroupParams->myPStep->value(),
aParameters<<myGroupParams->myPMin->text();
aParameters<<myGroupParams->myPMax->text();
aParameters<<myGroupParams->myPStep->text();
- anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+ anObj->SetParameters(aParameters.join(":").toUtf8().constData());
}
objects.push_back(anObj._retn());
}