[Sketcher] [WIP] Add periodic B-spline support for interpolation DSH
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"
This commit is contained in:
committed by
abdullahtahiriyo
parent
69a56bc3fa
commit
94db5271b3
@@ -955,6 +955,9 @@ void CmdSketcherCompCreateBSpline::activated(int iMsg)
|
||||
else if (iMsg == 2) {
|
||||
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandlerBSplineByInterpolation(0));
|
||||
}
|
||||
else if (iMsg == 3) {
|
||||
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandlerBSplineByInterpolation(1));
|
||||
}
|
||||
else {
|
||||
return;
|
||||
}
|
||||
@@ -981,7 +984,10 @@ Gui::Action * CmdSketcherCompCreateBSpline::createAction()
|
||||
periodicbspline->setIcon(Gui::BitmapFactory().iconFromTheme("Sketcher_Create_Periodic_BSpline"));
|
||||
|
||||
QAction* bsplinebyknot = pcAction->addAction(QString());
|
||||
bsplinebyknot->setIcon(Gui::BitmapFactory().iconFromTheme("Sketcher_Create_BSplineByKnot"));
|
||||
bsplinebyknot->setIcon(Gui::BitmapFactory().iconFromTheme("Sketcher_Create_BSpline_By_Knot"));
|
||||
|
||||
QAction* periodicbsplinebyknot = pcAction->addAction(QString());
|
||||
periodicbsplinebyknot->setIcon(Gui::BitmapFactory().iconFromTheme("Sketcher_Create_Periodic_BSpline_By_Knot"));
|
||||
|
||||
_pcAction = pcAction;
|
||||
languageChange();
|
||||
|
||||
Reference in New Issue
Block a user