From 96c838f3b9338265570656457c191a02587bffcf Mon Sep 17 00:00:00 2001 From: luzpaz Date: Tue, 3 Dec 2024 18:56:38 +0000 Subject: [PATCH] Fix various typos Found with codespell --- src/Gui/Action.h | 4 ++-- src/Gui/GuiApplication.cpp | 2 +- src/Mod/Assembly/CommandInsertNewPart.py | 2 +- .../Assembly/Gui/Resources/panels/TaskAssemblyCreateJoint.ui | 4 ++-- src/Mod/BIM/Dice3DS/dom3ds.py | 2 +- src/Mod/BIM/nativeifc/ifc_psets.py | 4 ++-- src/Mod/Draft/draftgeoutils/general.py | 2 +- src/Mod/Draft/draftutils/init_draft_statusbar.py | 4 ++-- .../Fem/femexamples/ccx_cantilever_prescribeddisplacement.py | 2 +- src/Mod/Fem/femobjects/mesh_netgen.py | 2 +- .../PartDesignTests/TestTopologicalNamingProblem.py | 4 ++-- src/Mod/Sketcher/Gui/DrawSketchHandlerRotate.h | 2 +- 12 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/Gui/Action.h b/src/Gui/Action.h index 1ae1062a15c9..d31c8e4563c3 100644 --- a/src/Gui/Action.h +++ b/src/Gui/Action.h @@ -93,11 +93,11 @@ class GuiExport Action : public QObject /** Obtain the menu text of a given command * @param cmd: input command * @return Return the command menu text that is stripped with its mnemonic - * symbol '&' and ending punctuations + * symbol '&' and ending punctuation */ static QString commandMenuText(const Command *cmd); - /// Clean the title by stripping the mnemonic symbol '&' and ending punctuations + /// Clean the title by stripping the mnemonic symbol '&' and ending punctuation static QString cleanTitle(const QString &title); Command *command() const { diff --git a/src/Gui/GuiApplication.cpp b/src/Gui/GuiApplication.cpp index 00500179b482..df39c0baf951 100644 --- a/src/Gui/GuiApplication.cpp +++ b/src/Gui/GuiApplication.cpp @@ -161,7 +161,7 @@ bool GUIApplication::event(QEvent * ev) if (ev->type() == QEvent::FileOpen) { // (macOS workaround when opening FreeCAD by opening a .FCStd file in 1.0) // With the current implementation of the splash screen boot procedure, Qt will - // start an event loop before FreeCAD is fully initalized. This event loop will + // start an event loop before FreeCAD is fully initialized. This event loop will // process the QFileOpenEvent that is sent by macOS before the main window is ready. if (!Gui::getMainWindow()->property("eventLoop").toBool()) { // If we never reach this point when opening FreeCAD by double clicking an diff --git a/src/Mod/Assembly/CommandInsertNewPart.py b/src/Mod/Assembly/CommandInsertNewPart.py index edcc2cee73ce..29828a423443 100644 --- a/src/Mod/Assembly/CommandInsertNewPart.py +++ b/src/Mod/Assembly/CommandInsertNewPart.py @@ -157,7 +157,7 @@ def createPart(self): doc.recompute() def expandLinkManually(self, link): - # Shoud not be necessary + # Should not be necessary # This is a workaround of https://github.com/FreeCAD/FreeCAD/issues/17904 mw = Gui.getMainWindow() trees = mw.findChildren(QtGui.QTreeWidget) diff --git a/src/Mod/Assembly/Gui/Resources/panels/TaskAssemblyCreateJoint.ui b/src/Mod/Assembly/Gui/Resources/panels/TaskAssemblyCreateJoint.ui index 596f540aae89..feeaf817b8a2 100644 --- a/src/Mod/Assembly/Gui/Resources/panels/TaskAssemblyCreateJoint.ui +++ b/src/Mod/Assembly/Gui/Resources/panels/TaskAssemblyCreateJoint.ui @@ -141,7 +141,7 @@ - By clicking this button, you can set the attachement offset of the first marker (coordinate system) of the joint. + By clicking this button, you can set the attachment offset of the first marker (coordinate system) of the joint. @@ -162,7 +162,7 @@ - By clicking this button, you can set the attachement offset of the second marker (coordinate system) of the joint. + By clicking this button, you can set the attachment offset of the second marker (coordinate system) of the joint. diff --git a/src/Mod/BIM/Dice3DS/dom3ds.py b/src/Mod/BIM/Dice3DS/dom3ds.py index e592bdf9a6cf..0ea31e27ee58 100644 --- a/src/Mod/BIM/Dice3DS/dom3ds.py +++ b/src/Mod/BIM/Dice3DS/dom3ds.py @@ -1717,7 +1717,7 @@ class HIDE_TRACK_TAG(UndefinedChunk): class DUMMY(ChunkBase): tag = 0xFFFF # -# Obsolute Chunks +# Obsolete Chunks # class VIEWPORT_LAYOUT_OLD(UndefinedChunk): tag = 0x7000 diff --git a/src/Mod/BIM/nativeifc/ifc_psets.py b/src/Mod/BIM/nativeifc/ifc_psets.py index fac71f71358f..6976fd53ebbf 100644 --- a/src/Mod/BIM/nativeifc/ifc_psets.py +++ b/src/Mod/BIM/nativeifc/ifc_psets.py @@ -300,7 +300,7 @@ def add_property(ifcfile, pset, name, value=""): def get_freecad_type(ptype): - """Returns a FreeCAD property type correspinding to an IFC property type""" + """Returns a FreeCAD property type corresponding to an IFC property type""" conv = read_properties_conversion() for key, values in conv.items(): @@ -310,7 +310,7 @@ def get_freecad_type(ptype): def get_ifc_type(fctype): - """Returns an IFC property type correspinding to a FreeCAD property type""" + """Returns an IFC property type corresponding to a FreeCAD property type""" conv = read_properties_conversion() for key, values in conv.items(): diff --git a/src/Mod/Draft/draftgeoutils/general.py b/src/Mod/Draft/draftgeoutils/general.py index ab77cb853073..90f32795179a 100644 --- a/src/Mod/Draft/draftgeoutils/general.py +++ b/src/Mod/Draft/draftgeoutils/general.py @@ -176,7 +176,7 @@ def is_same(a, b): def getQuad(face): - """Return a list of 3 vectors if the face is a quad, ortherwise None. + """Return a list of 3 vectors if the face is a quad, otherwise None. Returns ------- diff --git a/src/Mod/Draft/draftutils/init_draft_statusbar.py b/src/Mod/Draft/draftutils/init_draft_statusbar.py index 3fd6e0232c1c..8546edeb15e0 100644 --- a/src/Mod/Draft/draftutils/init_draft_statusbar.py +++ b/src/Mod/Draft/draftutils/init_draft_statusbar.py @@ -184,7 +184,7 @@ def init_draft_statusbar_scale(): # prevent the widget from showing up in the toolbar area context menu: scale_widget.toggleViewAction().setVisible(False) scale_widget.setObjectName("draft_scale_widget") - # WindowTitle is just in case, should not be visble in the GUI. + # WindowTitle is just in case, should not be visible in the GUI. scale_widget.setWindowTitle(translate("draft", "Draft scale widget")) # get scales list according to system units @@ -245,7 +245,7 @@ def _spacer(): # prevent the widget from showing up in the toolbar area context menu: snap_widget.toggleViewAction().setVisible(False) snap_widget.setObjectName("draft_snap_widget") - # WindowTitle is just in case, should not be visble in the GUI. + # WindowTitle is just in case, should not be visible in the GUI. snap_widget.setWindowTitle(translate("draft", "Draft snap widget")) snap_widget.setOrientation(QtCore.Qt.Orientation.Horizontal) snap_widget.setIconSize(QtCore.QSize(16, 16)) diff --git a/src/Mod/Fem/femexamples/ccx_cantilever_prescribeddisplacement.py b/src/Mod/Fem/femexamples/ccx_cantilever_prescribeddisplacement.py index b94a2069413f..5deefd70937c 100644 --- a/src/Mod/Fem/femexamples/ccx_cantilever_prescribeddisplacement.py +++ b/src/Mod/Fem/femexamples/ccx_cantilever_prescribeddisplacement.py @@ -31,7 +31,7 @@ def get_information(): return { - "name": "CCX cantilever prescibed displacement", + "name": "CCX cantilever prescribed displacement", "meshtype": "solid", "meshelement": "Tet10", "constraints": ["fixed", "displacement"], diff --git a/src/Mod/Fem/femobjects/mesh_netgen.py b/src/Mod/Fem/femobjects/mesh_netgen.py index 21f9dd70ba74..a437cdaedd93 100644 --- a/src/Mod/Fem/femobjects/mesh_netgen.py +++ b/src/Mod/Fem/femobjects/mesh_netgen.py @@ -337,7 +337,7 @@ def _get_properties(self): type="App::PropertyInteger", name="GiveUpToleranceOpenQuads", group="Mesh Parameters", - doc="Give up quality class, for closing open quads, greather than 100 for free pyramids", + doc="Give up quality class, for closing open quads, greater than 100 for free pyramids", value=15, ) ) diff --git a/src/Mod/PartDesign/PartDesignTests/TestTopologicalNamingProblem.py b/src/Mod/PartDesign/PartDesignTests/TestTopologicalNamingProblem.py index d9615e8f70eb..0ec83504f046 100644 --- a/src/Mod/PartDesign/PartDesignTests/TestTopologicalNamingProblem.py +++ b/src/Mod/PartDesign/PartDesignTests/TestTopologicalNamingProblem.py @@ -639,8 +639,8 @@ def testPartDesignElementMapRevolution(self): # Previously the condition counted the number of ";" (element map operations prefix) # If the number of operations changes then the number of ";" will change accordingly # - # However, it is more useful to count the number of times an elemement name is - # present in the MappedName of an element (a MappedName is definined also using the + # However, it is more useful to count the number of times an element name is + # present in the MappedName of an element (a MappedName is defined also using the # element names - "Vertex*", "Edge*", "Face*" - used by an OCCT operation to generate # output elements) self.assertEqual( revolution.Shape.ElementReverseMap["Face8"].count("Face8"), 3) diff --git a/src/Mod/Sketcher/Gui/DrawSketchHandlerRotate.h b/src/Mod/Sketcher/Gui/DrawSketchHandlerRotate.h index 353a34c0f107..e46ecc9e2c23 100644 --- a/src/Mod/Sketcher/Gui/DrawSketchHandlerRotate.h +++ b/src/Mod/Sketcher/Gui/DrawSketchHandlerRotate.h @@ -403,7 +403,7 @@ class DrawSketchHandlerRotate: public DrawSketchHandlerRotateBase else { // We should be able to handle cases where rotation is 90 or 180, but // this is segfaulting. The same is reported in - // SketchObject::addSymmetric. There's apparantly a problem with + // SketchObject::addSymmetric. There's apparently a problem with // creation of DistanceX/Y. On top of the segfault the DistanceX/Y flips // the new geometry. /*if (cstr->Type == DistanceX || cstr->Type == DistanceY) {