From 9c0b75ddf021b2f416d9025bc41881295ca050cd Mon Sep 17 00:00:00 2001 From: Ajinkya Dahale Date: Wed, 22 Feb 2023 19:55:02 +0530 Subject: [PATCH] [Sketcher] Clarify keyboard input for B-spline DSH Specifically, when drawing by interpolation, only cubic splines are currently supported. Some related "TODO" comments are also removed or modified. This commit is part of a project funded by the Open Toolchain Foundation under the title "Open Toolchain Foundation - Curve drawing tool in Sketcher Workbench" --- .../Sketcher/Gui/DrawSketchHandlerBSplineByInterpolation.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Sketcher/Gui/DrawSketchHandlerBSplineByInterpolation.h b/src/Mod/Sketcher/Gui/DrawSketchHandlerBSplineByInterpolation.h index 9c5c783b25..caaf0b8f16 100644 --- a/src/Mod/Sketcher/Gui/DrawSketchHandlerBSplineByInterpolation.h +++ b/src/Mod/Sketcher/Gui/DrawSketchHandlerBSplineByInterpolation.h @@ -201,7 +201,8 @@ public: SplineDegree = QInputDialog::getInt( Gui::getMainWindow(), QObject::tr("B-Spline Degree"), - QObject::tr("Define B-Spline Degree, between 1 and %1:") + QObject::tr("NOTE: For construction by interpolation, this degree is ignored for now.\n" + "Define B-Spline Degree, between 1 and %1:") .arg(QString::number(Geom_BSplineCurve::MaxDegree())), SplineDegree, 1, Geom_BSplineCurve::MaxDegree(), 1); // FIXME: Pressing Esc here also finishes the B-Spline creation. @@ -263,8 +264,7 @@ public: return; } } - // TODO: On pressing, say, W, modify last pole's weight - // TODO: On pressing, say, M, modify next knot's multiplicity + // TODO: On pressing, say, M, modify the knot's multiplicity return; }