From e43a3b17c8e370d1a4cf03e4043101cbfba7f585 Mon Sep 17 00:00:00 2001 From: Max Wilfinger Date: Sun, 24 Dec 2023 10:07:01 +0100 Subject: [PATCH] Change tool description of rotate and polygon tool to hint users to modify with U and J keys. --- src/Mod/Sketcher/Gui/DrawSketchHandlerPolygon.h | 5 +++-- src/Mod/Sketcher/Gui/DrawSketchHandlerRotate.h | 13 +++++++------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/Mod/Sketcher/Gui/DrawSketchHandlerPolygon.h b/src/Mod/Sketcher/Gui/DrawSketchHandlerPolygon.h index bee05c7031..afac9a032b 100644 --- a/src/Mod/Sketcher/Gui/DrawSketchHandlerPolygon.h +++ b/src/Mod/Sketcher/Gui/DrawSketchHandlerPolygon.h @@ -302,8 +302,9 @@ template<> void DSHPolygonController::configureToolWidget() { - toolWidget->setParameterLabel(OnViewParameter::First, - QApplication::translate("ToolWidgetManager_p4", "Sides 'U'/'J'")); + toolWidget->setParameterLabel( + OnViewParameter::First, + QApplication::translate("ToolWidgetManager_p4", "Sides (+'U'/ -'J')")); toolWidget->setParameter(OnViewParameter::First, handler->numberOfCorners); // unconditionally set toolWidget->configureParameterUnit(OnViewParameter::First, Base::Unit()); diff --git a/src/Mod/Sketcher/Gui/DrawSketchHandlerRotate.h b/src/Mod/Sketcher/Gui/DrawSketchHandlerRotate.h index 83b11167a0..7fd637d74e 100644 --- a/src/Mod/Sketcher/Gui/DrawSketchHandlerRotate.h +++ b/src/Mod/Sketcher/Gui/DrawSketchHandlerRotate.h @@ -490,11 +490,12 @@ void DSHRotateController::configureToolWidget() QApplication::translate("TaskSketcherTool_c1_offset", "Clone constraints")); toolWidget->setCheckboxToolTip( WCheckbox::FirstBox, - QApplication::translate( - "TaskSketcherTool_c1_offset", - "This concerns the datum constraints like distances. If you activate Clone, " - "then the tool will copy the datum. Else it will try to replace them with " - "equalities between the initial geometries and the new copies.")); + QString::fromLatin1("

") + + QApplication::translate("TaskSketcherTool_c1_offset", + "This concerns the datum constraints (e.g. distance)." + "If you activate Clone, the tool will copy the datum." + "Else it will try to replace them with equalities.") + + QString::fromLatin1("

")); } onViewParameters[OnViewParameter::First]->setLabelType(Gui::SoDatumLabel::DISTANCEX); @@ -508,7 +509,7 @@ void DSHRotateController::configureToolWidget() toolWidget->setParameterLabel( WParameter::First, - QApplication::translate("TaskSketcherTool_p4_rotate", "Copies 'U'/'J'")); + QApplication::translate("TaskSketcherTool_p4_rotate", "Copies (+'U'/ -'J')")); toolWidget->setParameter(OnViewParameter::First, 0.0); toolWidget->configureParameterUnit(OnViewParameter::First, Base::Unit()); toolWidget->configureParameterMin(OnViewParameter::First, 0.0); // NOLINT