committed by
Kacper Donat
parent
33ccea6835
commit
adff20f7dc
@@ -183,7 +183,7 @@ PyMOD_INIT_FUNC(Measure)
|
||||
}
|
||||
|
||||
|
||||
Base::Console().log("Loading Measure module... done\n");
|
||||
Base::Console().log("Loading Measure module… done\n");
|
||||
PyMOD_Return(mod);
|
||||
}
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ PyMOD_INIT_FUNC(MeasureGui)
|
||||
}
|
||||
|
||||
PyObject* mod = MeasureGui::initModule();
|
||||
Base::Console().log("Loading GUI of Measure module... done\n");
|
||||
Base::Console().log("Loading GUI of Measure module… done\n");
|
||||
|
||||
// instantiating the commands
|
||||
CreateMeasureCommands();
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Default property values</string>
|
||||
<string>Default Property Values</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
|
||||
@@ -93,8 +93,9 @@ TaskMeasure::TaskMeasure()
|
||||
autoSaveAction = new QAction(tr("Auto Save"));
|
||||
autoSaveAction->setCheckable(true);
|
||||
autoSaveAction->setChecked(mAutoSave);
|
||||
autoSaveAction->setToolTip(tr("Auto saving of the last measurement when starting a new "
|
||||
"measurement. Use SHIFT to temporarily invert the behaviour."));
|
||||
autoSaveAction->setToolTip(
|
||||
tr("Auto saving of the last measurement when starting a new "
|
||||
"measurement. Use the Shift key to temporarily invert the behaviour."));
|
||||
connect(autoSaveAction, &QAction::triggered, this, &TaskMeasure::autoSaveChanged);
|
||||
|
||||
newMeasurementBehaviourAction = new QAction(tr("Additive Selection"));
|
||||
@@ -102,7 +103,8 @@ TaskMeasure::TaskMeasure()
|
||||
newMeasurementBehaviourAction->setChecked(Gui::Selection().getSelectionStyle()
|
||||
== SelectionStyle::GreedySelection);
|
||||
newMeasurementBehaviourAction->setToolTip(
|
||||
tr("If checked, new selection will be added to the measurement. If unchecked, CTRL must be "
|
||||
tr("If checked, new selection will be added to the measurement. If unchecked, the Ctrl key "
|
||||
"must be "
|
||||
"pressed to add a "
|
||||
"selection to the current measurement otherwise a new measurement will be started"));
|
||||
connect(newMeasurementBehaviourAction,
|
||||
@@ -184,14 +186,14 @@ void TaskMeasure::modifyStandardButtons(QDialogButtonBox* box)
|
||||
|
||||
QPushButton* btn = box->button(QDialogButtonBox::Apply);
|
||||
btn->setText(tr("Save"));
|
||||
btn->setToolTip(tr("Save the measurement in the active document."));
|
||||
btn->setToolTip(tr("Saves the measurement in the active document"));
|
||||
connect(btn, &QPushButton::released, this, qOverload<>(&TaskMeasure::apply));
|
||||
|
||||
// Disable button by default
|
||||
btn->setEnabled(false);
|
||||
btn = box->button(QDialogButtonBox::Abort);
|
||||
btn->setText(tr("Close"));
|
||||
btn->setToolTip(tr("Close the measurement task."));
|
||||
btn->setToolTip(tr("Closes the measurement task"));
|
||||
|
||||
// Connect reset button
|
||||
btn = box->button(QDialogButtonBox::Reset);
|
||||
|
||||
@@ -129,7 +129,7 @@ SbMatrix ViewProviderMeasureAngle::getMatrix()
|
||||
|
||||
GeomAPI_ProjectPointOnCurve projection(tempPoint, heapLine2);
|
||||
if (projection.NbPoints() < 1) {
|
||||
throw Base::RuntimeError("parallel vectors: couldn't project onto line");
|
||||
throw Base::RuntimeError("parallel vectors: could not project onto line");
|
||||
}
|
||||
gp_Vec newPoint2;
|
||||
newPoint2.SetXYZ(projection.Point(1).XYZ());
|
||||
@@ -195,7 +195,7 @@ SbMatrix ViewProviderMeasureAngle::getMatrix()
|
||||
GeomAPI_ExtremaCurveCurve extrema(heapLine1, heapLine2);
|
||||
|
||||
if (extrema.NbExtrema() < 1) {
|
||||
throw Base::RuntimeError("couldn't get extrema");
|
||||
throw Base::RuntimeError("Could not get extrema");
|
||||
}
|
||||
|
||||
gp_Pnt extremaPoint1, extremaPoint2, dimensionOriginPoint;
|
||||
|
||||
@@ -39,6 +39,6 @@ import FreeCAD
|
||||
|
||||
FreeCAD.MeasureManager.addMeasureType(
|
||||
"CENTEROFMASS",
|
||||
"Center of Mass",
|
||||
"Center of mass",
|
||||
MeasureCOM,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user