Sketcher: add further commands to the toolbars
Most tools should be exposed in the toolbars and not kept "hidden" in the menus. * `ConstrainInternalAlignment` is added in the "constraints" toolbar. * `SelectElementsWithDoF` is added in the "tools" toolbar. Also amend the name of the `Sketcher_BSplineConvertToNURB` command.
This commit is contained in:
@@ -347,7 +347,7 @@ CmdSketcherConvertToNURB::CmdSketcherConvertToNURB()
|
||||
sGroup = QT_TR_NOOP("Sketcher");
|
||||
sMenuText = QT_TR_NOOP("Convert Geometry to B-spline");
|
||||
sToolTipText = QT_TR_NOOP("Converts the given Geometry to a B-spline");
|
||||
sWhatsThis = "Sketcher_ConvertToNURB";
|
||||
sWhatsThis = "Sketcher_BSplineConvertToNURB";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "Sketcher_BSplineApproximate";
|
||||
sAccel = "";
|
||||
|
||||
@@ -261,6 +261,7 @@ inline void SketcherAddWorkbenchConstraints<Gui::ToolBarItem>(Gui::ToolBarItem&
|
||||
<< "Sketcher_CompConstrainRadDia"
|
||||
<< "Sketcher_ConstrainAngle"
|
||||
<< "Sketcher_ConstrainSnellsLaw"
|
||||
<< "Sketcher_ConstrainInternalAlignment"
|
||||
<< "Separator"
|
||||
<< "Sketcher_ToggleDrivingConstraint"
|
||||
<< "Sketcher_ToggleActiveConstraint";
|
||||
@@ -292,7 +293,8 @@ inline void SketcherAddWorkbenchTools<Gui::MenuItem>(Gui::MenuItem& consaccel){
|
||||
}
|
||||
template <>
|
||||
inline void SketcherAddWorkbenchTools<Gui::ToolBarItem>(Gui::ToolBarItem& consaccel){
|
||||
consaccel << "Sketcher_CloseShape"
|
||||
consaccel << "Sketcher_SelectElementsWithDoFs"
|
||||
<< "Sketcher_CloseShape"
|
||||
<< "Sketcher_ConnectLines"
|
||||
<< "Sketcher_SelectConstraints"
|
||||
<< "Sketcher_SelectElementsAssociatedWithConstraints"
|
||||
@@ -313,6 +315,7 @@ inline void SketcherAddWorkbenchBSplines<Gui::MenuItem>(Gui::MenuItem& bspline){
|
||||
<< "Sketcher_BSplineKnotMultiplicity"
|
||||
<< "Sketcher_BSplineConvertToNURB"
|
||||
<< "Sketcher_BSplineIncreaseDegree"
|
||||
// << "Sketcher_BSplineDecreaseDegree" TODO: implement this
|
||||
<< "Sketcher_BSplineIncreaseKnotMultiplicity"
|
||||
<< "Sketcher_BSplineDecreaseKnotMultiplicity";
|
||||
}
|
||||
@@ -322,6 +325,7 @@ inline void SketcherAddWorkbenchBSplines<Gui::ToolBarItem>(Gui::ToolBarItem& bsp
|
||||
bspline << "Sketcher_CompBSplineShowHideGeometryInformation"
|
||||
<< "Sketcher_BSplineConvertToNURB"
|
||||
<< "Sketcher_BSplineIncreaseDegree"
|
||||
// << "Sketcher_BSplineDecreaseDegree" TODO: implement this
|
||||
<< "Sketcher_CompModifyKnotMultiplicity";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user