From 9a1f487cdb60244f7d7ac41f5140f4c39d2132c9 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Sun, 7 Jul 2024 15:08:15 +0000 Subject: [PATCH] Fix various typos throughout the codebase --- src/App/MeasureManagerPy.xml | 2 +- src/Gui/ParamHandler.h | 2 +- src/Mod/Assembly/App/AssemblyObject.cpp | 2 +- src/Mod/Assembly/App/BomObject.cpp | 2 +- src/Mod/Assembly/CommandCreateView.py | 2 +- src/Mod/Assembly/Gui/ViewProviderAssembly.cpp | 2 +- src/Mod/BIM/nativeifc/ifc_generator.py | 2 +- src/Mod/BIM/nativeifc/ifc_materials.py | 2 +- src/Mod/BIM/nativeifc/ifc_tools.py | 4 ++-- src/Mod/BIM/utils/convertPsets.py | 2 +- src/Mod/CAM/Path/Main/Gui/SimulatorGL.py | 2 +- src/Mod/CAM/Path/Op/Adaptive.py | 2 +- src/Mod/CAM/Path/Op/Vcarve.py | 2 +- src/Mod/CAM/PathSimulator/AppGL/MillSimulation.cpp | 2 +- src/Mod/CAM/Tests/TestLinuxCNCPost.py | 2 +- src/Mod/Draft/draftgeoutils/offsets.py | 2 +- src/Mod/Measure/App/MeasureBase.cpp | 6 +++--- src/Mod/Measure/UtilsMeasure.py | 4 ++-- src/Mod/Part/parttests/ColorTransparencyTest.py | 2 +- src/Mod/Robot/App/kdl_cp/joint.hpp | 2 +- 20 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/App/MeasureManagerPy.xml b/src/App/MeasureManagerPy.xml index 51b082c6ce..9fcecced83 100644 --- a/src/App/MeasureManagerPy.xml +++ b/src/App/MeasureManagerPy.xml @@ -15,7 +15,7 @@ MeasureManager class. -The MeasureManager handles measure types and geometry handler accross FreeCAD. +The MeasureManager handles measure types and geometry handler across FreeCAD. MeasureManager diff --git a/src/Gui/ParamHandler.h b/src/Gui/ParamHandler.h index 2c692483d5..d7fbf6d9c5 100644 --- a/src/Gui/ParamHandler.h +++ b/src/Gui/ParamHandler.h @@ -116,7 +116,7 @@ private: // the registered parameter key is changed, the manager will call the // registered handler function ParamHandler::onChange(). If it returns True, // then the handler will be appended to a queue to be invoked later by a timer -// to avoid repeatitive processing on change of multiple keys. +// to avoid repetitive processing on change of multiple keys. // // The handler manager is meant to be initiated by some static function, e.g. // DlgSettingsGeneral::attachObserver(). It is intended to be one and only diff --git a/src/Mod/Assembly/App/AssemblyObject.cpp b/src/Mod/Assembly/App/AssemblyObject.cpp index aa53438354..adb19272d3 100644 --- a/src/Mod/Assembly/App/AssemblyObject.cpp +++ b/src/Mod/Assembly/App/AssemblyObject.cpp @@ -510,7 +510,7 @@ std::vector AssemblyObject::getJoints(bool updateJCS, bool auto* part1 = getObjFromProp(joint, "Part1"); auto* part2 = getObjFromProp(joint, "Part2"); if (!part1 || !part2 || part1->getFullName() == part2->getFullName()) { - // Remove incomplete joints. Left-over when the user delets a part. + // Remove incomplete joints. Left-over when the user deletes a part. // Remove incoherent joints (self-pointing joints) if (delBadJoints) { getDocument()->removeObject(joint->getNameInDocument()); diff --git a/src/Mod/Assembly/App/BomObject.cpp b/src/Mod/Assembly/App/BomObject.cpp index 4fe002914f..59c6c8cccf 100644 --- a/src/Mod/Assembly/App/BomObject.cpp +++ b/src/Mod/Assembly/App/BomObject.cpp @@ -281,7 +281,7 @@ std::string Assembly::BomObject::getText(size_t row, size_t col) if (cell) { cell->getStringContent(cellName); - // getStringContent is addind a ' before the string for whatever reason. + // getStringContent is adding a ' before the string for whatever reason. if (!cellName.empty() && cellName.front() == '\'') { cellName.erase(0, 1); // Remove the first character if it's a ' } diff --git a/src/Mod/Assembly/CommandCreateView.py b/src/Mod/Assembly/CommandCreateView.py index 3cfdc62be8..9cfd6c1e98 100644 --- a/src/Mod/Assembly/CommandCreateView.py +++ b/src/Mod/Assembly/CommandCreateView.py @@ -632,7 +632,7 @@ class TaskAssemblyCreateView(QtCore.QObject): self.alignMode = "Custom" self.selectingFeature = True # We use greedy selection to prevent that clicking again on the solid - # clears selection before trying to select the whole assemly + # clears selection before trying to select the whole assembly Gui.Selection.setSelectionStyle(Gui.Selection.SelectionStyle.GreedySelection) self.enableDragger(False) self.form.LabelAlignDragger.setVisible(True) diff --git a/src/Mod/Assembly/Gui/ViewProviderAssembly.cpp b/src/Mod/Assembly/Gui/ViewProviderAssembly.cpp index ada7a71d9b..6361de1088 100644 --- a/src/Mod/Assembly/Gui/ViewProviderAssembly.cpp +++ b/src/Mod/Assembly/Gui/ViewProviderAssembly.cpp @@ -908,7 +908,7 @@ void ViewProviderAssembly::onSelectionChanged(const Gui::SelectionChanges& msg) bool ViewProviderAssembly::onDelete(const std::vector& subNames) { - // Delete the assembly goups when assembly is deleted + // Delete the assembly groups when assembly is deleted for (auto obj : getObject()->getOutList()) { if (obj->getTypeId() == Assembly::JointGroup::getClassTypeId() || obj->getTypeId() == Assembly::ViewGroup::getClassTypeId() diff --git a/src/Mod/BIM/nativeifc/ifc_generator.py b/src/Mod/BIM/nativeifc/ifc_generator.py index 23b00e7b78..061094fb49 100644 --- a/src/Mod/BIM/nativeifc/ifc_generator.py +++ b/src/Mod/BIM/nativeifc/ifc_generator.py @@ -39,7 +39,7 @@ from pivy import coin def generate_geometry(obj, cached=False): """Sets the geometry of the given object from a corresponding IFC element. This is the main function called by the execute method of FreeCAD document objects - It is only meant to be called form there, as it is always the responsability of the + It is only meant to be called form there, as it is always the responsibility of the NativeIFC document object to know when it needs to regenerate its geometry. The generate_geometry will call either generate_shape or generate_coin, depending diff --git a/src/Mod/BIM/nativeifc/ifc_materials.py b/src/Mod/BIM/nativeifc/ifc_materials.py index 0c35511783..94d03662d6 100644 --- a/src/Mod/BIM/nativeifc/ifc_materials.py +++ b/src/Mod/BIM/nativeifc/ifc_materials.py @@ -88,7 +88,7 @@ def load_materials(obj): def get_material(obj): - """Returns a material attched to this object""" + """Returns a material attached to this object""" element = ifc_tools.get_ifc_element(obj) if not element: diff --git a/src/Mod/BIM/nativeifc/ifc_tools.py b/src/Mod/BIM/nativeifc/ifc_tools.py index 758e577fe5..26135b7b1b 100644 --- a/src/Mod/BIM/nativeifc/ifc_tools.py +++ b/src/Mod/BIM/nativeifc/ifc_tools.py @@ -139,7 +139,7 @@ def convert_document(document, filename=None, shapemode=0, strategy=0, silent=Fa def setup_project(proj, filename, shapemode, silent): - """Setups a project (common operations between signle doc/not single doc modes) + """Sets up a project (common operations between single doc/not single doc modes) Returns the ifcfile object, the project ifc entity, and full (True/False)""" full = False @@ -1189,7 +1189,7 @@ def get_elem_attribs(ifcentity): # This function can become pure IFC # usually info_ifcentity = ifcentity.get_info() would de the trick - # the above could raise an unhandled excption on corrupted ifc files + # the above could raise an unhandled exception on corrupted ifc files # in IfcOpenShell # see https://github.com/IfcOpenShell/IfcOpenShell/issues/2811 # thus workaround diff --git a/src/Mod/BIM/utils/convertPsets.py b/src/Mod/BIM/utils/convertPsets.py index 98bf4368fc..843f04d9f7 100644 --- a/src/Mod/BIM/utils/convertPsets.py +++ b/src/Mod/BIM/utils/convertPsets.py @@ -21,7 +21,7 @@ # *************************************************************************** """This script converts a xml file containing pset definitions to a csv file. -Python3 only!! (py2 csv doesn't suppot utf8""" +Python3 only!! (py2 csv doesn't support utf8""" import xml.sax, os diff --git a/src/Mod/CAM/Path/Main/Gui/SimulatorGL.py b/src/Mod/CAM/Path/Main/Gui/SimulatorGL.py index 0f90e3538c..cbcd646dbc 100644 --- a/src/Mod/CAM/Path/Main/Gui/SimulatorGL.py +++ b/src/Mod/CAM/Path/Main/Gui/SimulatorGL.py @@ -152,7 +152,7 @@ class CAMSimulation: while edge is not None: sideEdgeList.remove(edge) if type(edge.Curve) is Part.Circle: - # if edge is curved, aproximate it with lines based on resolution + # if edge is curved, approximate it with lines based on resolution nsegments = int(edge.Length / resolution) + 1 step = (p2 - p1) / nsegments location = p1 + step diff --git a/src/Mod/CAM/Path/Op/Adaptive.py b/src/Mod/CAM/Path/Op/Adaptive.py index 420f025744..98c12c48be 100644 --- a/src/Mod/CAM/Path/Op/Adaptive.py +++ b/src/Mod/CAM/Path/Op/Adaptive.py @@ -71,7 +71,7 @@ def convertTo2d(pathArray): sceneGraph = None -scenePathNodes = [] # for scene cleanup aftewards +scenePathNodes = [] # for scene cleanup afterwards topZ = 10 diff --git a/src/Mod/CAM/Path/Op/Vcarve.py b/src/Mod/CAM/Path/Op/Vcarve.py index 8a32139775..d797dd71a1 100644 --- a/src/Mod/CAM/Path/Op/Vcarve.py +++ b/src/Mod/CAM/Path/Op/Vcarve.py @@ -493,7 +493,7 @@ class ObjectVcarve(PathEngraveBase.ObjectOp): pathlist = [] pathlist.append(Path.Command("(starting)")) - # iterate over each face separatedly + # iterate over each face separately for face, wires in self.buildMedialWires(obj, faces).items(): geom = _Geometry.FromObj(obj, self.model[0]) diff --git a/src/Mod/CAM/PathSimulator/AppGL/MillSimulation.cpp b/src/Mod/CAM/PathSimulator/AppGL/MillSimulation.cpp index 661df0a253..e0f7556949 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/MillSimulation.cpp +++ b/src/Mod/CAM/PathSimulator/AppGL/MillSimulation.cpp @@ -584,7 +584,7 @@ namespace MillSim { { if (mCodeParser.Parse(fileName)) { - std::cout << "GCode file loaded successfuly" << std::endl; + std::cout << "GCode file loaded successfully" << std::endl; return true; } return false; diff --git a/src/Mod/CAM/Tests/TestLinuxCNCPost.py b/src/Mod/CAM/Tests/TestLinuxCNCPost.py index 3697e31667..465818c805 100644 --- a/src/Mod/CAM/Tests/TestLinuxCNCPost.py +++ b/src/Mod/CAM/Tests/TestLinuxCNCPost.py @@ -424,7 +424,7 @@ M2 ) def test200(self): - """Test A, B, & C axis output for values below -360 degress + """Test A, B, & C axis output for values below -360 degrees """ self.compare_sixth_line( "G1 X10 Y20 Z30 A-440 B-450 C-460", diff --git a/src/Mod/Draft/draftgeoutils/offsets.py b/src/Mod/Draft/draftgeoutils/offsets.py index 8ef9fe1e48..94df93fc63 100644 --- a/src/Mod/Draft/draftgeoutils/offsets.py +++ b/src/Mod/Draft/draftgeoutils/offsets.py @@ -323,7 +323,7 @@ def offsetWire(wire, dvec, bind=False, occ=False, if not isinstance(basewireOffset, list): basewireOffset = [basewireOffset] else: - basewireOffset = basewireOffset # for backward compatability + basewireOffset = basewireOffset # for backward compatibility for i in range(len(edges)): # make a copy so it do not reverse the self.baseWires edges diff --git a/src/Mod/Measure/App/MeasureBase.cpp b/src/Mod/Measure/App/MeasureBase.cpp index 07883d42bb..097bc14284 100644 --- a/src/Mod/Measure/App/MeasureBase.cpp +++ b/src/Mod/Measure/App/MeasureBase.cpp @@ -64,7 +64,7 @@ std::vector MeasureBase::getSubject() const { Py::Object proxy = getProxyObject(); - // Pass the feture object to the proxy + // Pass the feature object to the proxy Py::Tuple args(1); args.setItem(0, Py::Object(const_cast(this)->getPyObject())); @@ -99,7 +99,7 @@ void MeasureBase::parseSelection(const App::MeasureSelection& selection) { Py::Tuple args(2); - // Pass the feture object to the proxy + // Pass the feature object to the proxy args.setItem(0, Py::Object(const_cast(this)->getPyObject())); args.setItem(1, selectionPy); @@ -149,7 +149,7 @@ QString MeasureBase::getResultString() { if (!proxy.isNone()) { - // Pass the feture object to the proxy + // Pass the feature object to the proxy Py::Tuple args(1); args.setItem(0, Py::Object(const_cast(this)->getPyObject())); diff --git a/src/Mod/Measure/UtilsMeasure.py b/src/Mod/Measure/UtilsMeasure.py index d013c8d5f0..1fc5d12efe 100644 --- a/src/Mod/Measure/UtilsMeasure.py +++ b/src/Mod/Measure/UtilsMeasure.py @@ -26,12 +26,12 @@ class MeasureBasePython(ABC): @abstractclassmethod def isValidSelection(cls, selection): - """Returns True if the given selection is valid for this measurment""" + """Returns True if the given selection is valid for this measurement""" pass @abstractclassmethod def isPrioritySelection(cls, selection): - """Returns True if creation of this measurment should be priorized over other measurements for the given selection""" + """Returns True if creation of this measurement should be priorized over other measurements for the given selection""" pass @abstractclassmethod diff --git a/src/Mod/Part/parttests/ColorTransparencyTest.py b/src/Mod/Part/parttests/ColorTransparencyTest.py index 706a8c4c4e..9def11d7b7 100644 --- a/src/Mod/Part/parttests/ColorTransparencyTest.py +++ b/src/Mod/Part/parttests/ColorTransparencyTest.py @@ -43,7 +43,7 @@ class ColorTransparencyTest(unittest.TestCase): This test isn't currently valid as it draws from the hard coded default material. The preference editor doesn't allow for setting transparencies. The default value - of 0 corresponds to a fully transparent color, which is not desireable. It changes + of 0 corresponds to a fully transparent color, which is not desirable. It changes the transparency when loading to 1.0 """ diff --git a/src/Mod/Robot/App/kdl_cp/joint.hpp b/src/Mod/Robot/App/kdl_cp/joint.hpp index 820956b2e2..e357111ed2 100644 --- a/src/Mod/Robot/App/kdl_cp/joint.hpp +++ b/src/Mod/Robot/App/kdl_cp/joint.hpp @@ -214,7 +214,7 @@ namespace KDL { class joint_type_exception: public std::exception{ const char* what() const throw() override{ - return "Joint Type excption";} + return "Joint Type exception";} } joint_type_ex; };