spelling fixes (#18688)
* Fixes spelling of "Allow to" to "Allow one to" and those variants: Allows to -> Allows one to allow to -> allow one to allows to -> allows one to * Fix "Let's -> Lets" (and lower case variant.) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update src/3rdParty/salomesmesh/inc/MED_Wrapper.hxx Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org> * Update src/Base/PyObjectBase.cpp Update src/App/ExtensionContainer.h Update src/App/PropertyContainer.h Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org> * Use gerund in user-facing texts. * Use gerund for two more user-facing strings. Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org> * Update src/Mod/Fem/App/FemMeshShapeNetgenObject.cpp Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org> * Update src/Mod/Fem/App/FemMeshShapeNetgenObject.cpp Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org> * Update src/Mod/Fem/App/FemMeshShapeNetgenObject.cpp Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org> --------- Co-authored-by: Tobias Frost <tobi@debian.org> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
This commit is contained in:
@@ -125,7 +125,7 @@ class BezCurve(gui_lines.Line):
|
||||
self.finish(cont=None, closed=False)
|
||||
if len(self.node) > 2:
|
||||
# does this make sense for a BCurve?
|
||||
# DNC: allows to close the curve
|
||||
# DNC: allows one to close the curve
|
||||
# by placing ends close to each other
|
||||
# with tol = Draft tolerance
|
||||
# old code has been to insensitive
|
||||
@@ -327,7 +327,7 @@ class CubicBezCurve(gui_lines.Line):
|
||||
# add point to "clicked list"
|
||||
self.node.append(self.point)
|
||||
self.drawUpdate(self.point)
|
||||
# DNC: allows to close the curve
|
||||
# DNC: allows one to close the curve
|
||||
# by placing ends close to each other
|
||||
# with tol = Draft tolerance
|
||||
# old code has been to insensitive
|
||||
@@ -363,7 +363,7 @@ class CubicBezCurve(gui_lines.Line):
|
||||
if len(self.node) > 2:
|
||||
self.node[-3] = 2 * self.node[-2] - self.node[-1]
|
||||
self.drawUpdate(self.point)
|
||||
# DNC: allows to close the curve
|
||||
# DNC: allows one to close the curve
|
||||
# by placing ends close to each other
|
||||
# with tol = Draft tolerance
|
||||
# old code has been to insensitive
|
||||
|
||||
@@ -648,7 +648,7 @@ class DraftBezCurveGuiTools(GuiTools):
|
||||
(object, Points as list, nodeIndex as Int, App.Vector of new point, moveTrackers as Bool)
|
||||
return the new point list, applying the App.Vector to the given index point
|
||||
"""
|
||||
# DNC: allows to close the curve by placing ends close to each other
|
||||
# DNC: allows one to close the curve by placing ends close to each other
|
||||
tol = 0.001
|
||||
if ( ( idx == 0 ) and ( (v - pts[-1]).Length < tol) ) or (
|
||||
idx == len(pts) - 1 ) and ( (v - pts[0]).Length < tol):
|
||||
@@ -716,7 +716,7 @@ class DraftBezCurveGuiTools(GuiTools):
|
||||
if deg < 2:
|
||||
return
|
||||
if point % deg != 0: # point is a pole
|
||||
if deg >=3: # allow to select poles
|
||||
if deg >=3: # allow one to select poles
|
||||
if (point % deg == 1) and (point > 2 or obj.Closed): #right pole
|
||||
knot = point -1
|
||||
keepp = point
|
||||
|
||||
@@ -142,7 +142,7 @@ class LayerManager:
|
||||
self.dialog.tree.setItemDelegate(Layers_Delegate())
|
||||
self.dialog.tree.setItemsExpandable(False)
|
||||
self.dialog.tree.setRootIsDecorated(False) # removes spacing in first column
|
||||
self.dialog.tree.setSelectionMode(QtWidgets.QTreeView.ExtendedSelection) # allow to select many
|
||||
self.dialog.tree.setSelectionMode(QtWidgets.QTreeView.ExtendedSelection) # allow one to select many
|
||||
|
||||
# fill the tree view
|
||||
self.update()
|
||||
|
||||
@@ -112,7 +112,7 @@ class BSpline(gui_lines.Line):
|
||||
if self.mode == "line" and len(self.node) == 2:
|
||||
self.finish(cont=None, closed=False)
|
||||
if len(self.node) > 2:
|
||||
# DNC: allows to close the curve
|
||||
# DNC: allows one to close the curve
|
||||
# by placing ends close to each other
|
||||
# with tol = Draft tolerance
|
||||
# old code has been to insensitive
|
||||
|
||||
@@ -439,7 +439,7 @@ class bsplineTracker(Tracker):
|
||||
self.sep.removeChild(self.bspline)
|
||||
self.bspline = None
|
||||
c = Part.BSplineCurve()
|
||||
# DNC: allows to close the curve by placing ends close to each other
|
||||
# DNC: allows one to close the curve by placing ends close to each other
|
||||
if len(self.points) >= 3 and ( (self.points[0] - self.points[-1]).Length < Draft.tolerance() ):
|
||||
# YVH: Added a try to bypass some hazardous situations
|
||||
try:
|
||||
@@ -695,7 +695,7 @@ class arcTracker(Tracker):
|
||||
|
||||
|
||||
class ghostTracker(Tracker):
|
||||
"""A Ghost tracker, that allows to copy whole object representations.
|
||||
"""A Ghost tracker, that allows one to copy whole object representations.
|
||||
|
||||
You can pass it an object or a list of objects, or a shape.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user