From 3d4c5eda21a6122e997a1aa377c402b8a9b943fc Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Fri, 15 Jun 2018 17:15:33 +0200 Subject: [PATCH] Sketcher: Fix typos --- src/Mod/Sketcher/Gui/CommandConstraints.cpp | 22 ++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Mod/Sketcher/Gui/CommandConstraints.cpp b/src/Mod/Sketcher/Gui/CommandConstraints.cpp index e353337ed8..82b3cfc69f 100644 --- a/src/Mod/Sketcher/Gui/CommandConstraints.cpp +++ b/src/Mod/Sketcher/Gui/CommandConstraints.cpp @@ -5535,7 +5535,7 @@ void CmdSketcherConstrainDiameter::activated(int iMsg) if(!externalGeoIdDiameterMap.empty()) { // Create the non-driving radius constraints now - openCommand("Add radius constraint"); + openCommand("Add diameter constraint"); commandopened=true; unsigned int constrSize = 0; @@ -5579,7 +5579,7 @@ void CmdSketcherConstrainDiameter::activated(int iMsg) bool constrainEqual = false; if (geoIdDiameterMap.size() > 1 && constraintCreationMode==Driving) { int ret = QMessageBox::question(Gui::getMainWindow(), QObject::tr("Constrain equal"), - QObject::tr("Do you want to share the same radius for all selected elements?"), + QObject::tr("Do you want to share the same diameter for all selected elements?"), QMessageBox::Yes, QMessageBox::No, QMessageBox::Cancel); // use an equality constraint if (ret == QMessageBox::Yes) { @@ -5597,7 +5597,7 @@ void CmdSketcherConstrainDiameter::activated(int iMsg) double diameter = geoIdDiameterMap.front().second; if(!commandopened) - openCommand("Add radius constraint"); + openCommand("Add diameter constraint"); Gui::Command::doCommand( Doc,"App.ActiveDocument.%s.addConstraint(Sketcher.Constraint('Diameter',%d,%f)) ", @@ -5611,9 +5611,9 @@ void CmdSketcherConstrainDiameter::activated(int iMsg) } } else { - // Create the radius constraints now + // Create the diameter constraints now if(!commandopened) - openCommand("Add radius constraint"); + openCommand("Add diameter constraint"); for (std::vector< std::pair >::iterator it = geoIdDiameterMap.begin(); it != geoIdDiameterMap.end(); ++it) { Gui::Command::doCommand( Doc,"App.ActiveDocument.%s.addConstraint(Sketcher.Constraint('Diameter',%d,%f)) ", @@ -5650,12 +5650,12 @@ void CmdSketcherConstrainDiameter::activated(int iMsg) ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Sketcher"); bool show = hGrp->GetBool("ShowDialogOnDistanceConstraint", true); - // Ask for the value of the radius immediately + // Ask for the value of the diameter immediately if (show && constraintCreationMode==Driving) { QDialog dlg(Gui::getMainWindow()); Ui::InsertDatum ui_Datum; ui_Datum.setupUi(&dlg); - dlg.setWindowTitle(EditDatumDialog::tr("Change radius")); + dlg.setWindowTitle(EditDatumDialog::tr("Change diameter")); ui_Datum.label->setText(EditDatumDialog::tr("Diameter:")); Base::Quantity init_val; init_val.setUnit(Base::Unit::Length); @@ -5767,8 +5767,8 @@ void CmdSketcherConstrainDiameter::applyConstraint(std::vector &selSe return; } - // Create the radius constraint now - openCommand("Add radius constraint"); + // Create the diameter constraint now + openCommand("Add diameter constraint"); Gui::Command::doCommand(Doc, "App.ActiveDocument.%s.addConstraint(Sketcher.Constraint('Diameter',%d,%f)) ", Obj->getNameInDocument(), GeoId, diameter); @@ -5795,12 +5795,12 @@ void CmdSketcherConstrainDiameter::applyConstraint(std::vector &selSe ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Sketcher"); bool show = hGrp->GetBool("ShowDialogOnDistanceConstraint", true); - // Ask for the value of the radius immediately + // Ask for the value of the diameter immediately if (show && constraintCreationMode==Driving && !fixed) { QDialog dlg(Gui::getMainWindow()); Ui::InsertDatum ui_Datum; ui_Datum.setupUi(&dlg); - dlg.setWindowTitle(EditDatumDialog::tr("Change radius")); + dlg.setWindowTitle(EditDatumDialog::tr("Change diameter")); ui_Datum.label->setText(EditDatumDialog::tr("Diameter:")); Base::Quantity init_val; init_val.setUnit(Base::Unit::Length);