From 06cf1d5b70909dae9b7747e9dae02c7b6b6820c4 Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Fri, 13 Dec 2019 16:04:57 -0500 Subject: [PATCH] Fix various typos [skip ci] Fixed via ``` codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml ``` --- src/App/ApplicationPy.cpp | 2 +- src/Base/FileInfo.h | 2 +- src/Base/Persistence.h | 2 +- src/Base/PyExport.h | 8 ++++---- src/Gui/DAGView/DAGModel.h | 2 +- src/Gui/DlgPreferencesImp.h | 2 +- .../Resources/icons/Manipulator_workbench_icon.svg | 2 +- src/Mod/Mesh/App/Core/Iterator.h | 4 ++-- src/Mod/MeshPart/App/AppMeshPartPy.cpp | 4 ++-- src/Mod/Path/Tools/README.md | 2 +- src/Mod/Sandbox/exportDRAWEXE.py | 2 +- src/Tools/MakeApp.py | 2 +- src/Tools/fcbt/CreateModule.py | 2 +- src/Tools/fcbt/CreatePyModule.py | 2 +- 14 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/App/ApplicationPy.cpp b/src/App/ApplicationPy.cpp index 66bcebfad8..b82c79f77e 100644 --- a/src/App/ApplicationPy.cpp +++ b/src/App/ApplicationPy.cpp @@ -119,7 +119,7 @@ PyMethodDef Application::Methods[] = { "newDocument(name, label=None, hidden=False) -> object\n" "Create a new document with a given name.\n\n" "name: unique document name which is checked automatically.\n" - "label: optional user changable label for the document.\n" + "label: optional user changeable label for the document.\n" "hidden: whether to hide document 3D view."}, {"closeDocument", (PyCFunction) Application::sCloseDocument, METH_VARARGS, "closeDocument(string) -> None\n\n" diff --git a/src/Base/FileInfo.h b/src/Base/FileInfo.h index cbc0c82bbe..001fa21cff 100644 --- a/src/Base/FileInfo.h +++ b/src/Base/FileInfo.h @@ -48,7 +48,7 @@ public: ReadWrite = 0x03, }; - /// Constrction + /// Construction FileInfo (const char* _FileName=""); FileInfo (const std::string &_FileName); /// Set a new file name diff --git a/src/Base/Persistence.h b/src/Base/Persistence.h index 17837b658b..6276c8cc00 100644 --- a/src/Base/Persistence.h +++ b/src/Base/Persistence.h @@ -101,7 +101,7 @@ public: * writer << writer.ind() << "" << std::endl; * } * \endcode - * The writer.isForceXML() is an indication to force you to write XML. Regardless of size and effectivness. + * The writer.isForceXML() is an indication to force you to write XML. Regardless of size and effectiveness. * The second part informs the Base::writer through writer.addFile("MeshKernel.bms", this) that this object * wants to write a file with the given name. The method addFile() returns a unique name that then is written * in the XML stream. diff --git a/src/Base/PyExport.h b/src/Base/PyExport.h index 15ad55e229..a9b9147dcc 100644 --- a/src/Base/PyExport.h +++ b/src/Base/PyExport.h @@ -168,22 +168,22 @@ public: return *this; } - /// derefrence operators + /// dereference operators HandledType &operator*() { return *_pHandels; } - /// derefrence operators + /// dereference operators HandledType *operator->() { return _pHandels; } - /// derefrence operators + /// dereference operators const HandledType &operator*() const { return _pHandels; } - /// derefrence operators + /// dereference operators const HandledType *operator->() const { return _pHandels; } diff --git a/src/Gui/DAGView/DAGModel.h b/src/Gui/DAGView/DAGModel.h index 6ae263b323..e39b24dcbb 100644 --- a/src/Gui/DAGView/DAGModel.h +++ b/src/Gui/DAGView/DAGModel.h @@ -127,7 +127,7 @@ namespace Gui float pointToIcon; //!< spacing from last column points to first icon. float iconToIcon; //!< spacing between icons. float iconToText; //!< spacing between last icon and text. - float rowPadding; //!< spaces added to rectangle bacground width ends. + float rowPadding; //!< spaces added to rectangle background width ends. std::vector backgroundBrushes; //!< brushes to paint background rectangles. std::vector forgroundBrushes; //!< brushes to paint points, connectors, text. void setupViewConstants(); diff --git a/src/Gui/DlgPreferencesImp.h b/src/Gui/DlgPreferencesImp.h index d5c1578f8f..6594669ab6 100644 --- a/src/Gui/DlgPreferencesImp.h +++ b/src/Gui/DlgPreferencesImp.h @@ -53,7 +53,7 @@ class Ui_DlgPreferences; * \li For each widget inside your page - you want to save or load - you have to call * \->onSave() or \->onRestore(). The best way to this is either to * define the protected slots saveSettings() and loadSettings() in your form and overwrite - * them in a subclass or define these slots in this subclass diretly. + * them in a subclass or define these slots in this subclass directly. * * See the example below for more details: * diff --git a/src/Mod/AddonManager/Resources/icons/Manipulator_workbench_icon.svg b/src/Mod/AddonManager/Resources/icons/Manipulator_workbench_icon.svg index 03a34de896..391dfa3f64 100644 --- a/src/Mod/AddonManager/Resources/icons/Manipulator_workbench_icon.svg +++ b/src/Mod/AddonManager/Resources/icons/Manipulator_workbench_icon.svg @@ -380,7 +380,7 @@ cross - Four equally sized arrow heads at 90° to eachother, all joined at the tail + Four equally sized arrow heads at 90° to each other, all joined at the tail diff --git a/src/Mod/Mesh/App/Core/Iterator.h b/src/Mod/Mesh/App/Core/Iterator.h index 6c86bf9886..b0197ad9c3 100644 --- a/src/Mod/Mesh/App/Core/Iterator.h +++ b/src/Mod/Mesh/App/Core/Iterator.h @@ -340,7 +340,7 @@ inline void MeshFacetIterator::Transform( const Base::Matrix4D& rclTrf ) { _clTrf = rclTrf; Base::Matrix4D tmp; - // cecks for unit matrix + // checks for unit matrix _clTrf != tmp ? _bApply = true : _bApply = false; } @@ -438,7 +438,7 @@ inline void MeshPointIterator::Transform( const Base::Matrix4D& rclTrf ) { _clTrf = rclTrf; Base::Matrix4D tmp; - // cecks for unit matrix + // checks for unit matrix _clTrf != tmp ? _bApply = true : _bApply = false; } diff --git a/src/Mod/MeshPart/App/AppMeshPartPy.cpp b/src/Mod/MeshPart/App/AppMeshPartPy.cpp index a8977dc948..39905c4fde 100644 --- a/src/Mod/MeshPart/App/AppMeshPartPy.cpp +++ b/src/Mod/MeshPart/App/AppMeshPartPy.cpp @@ -134,8 +134,8 @@ public: " MinLength (required, float)\n" " Fineness (required, integer)\n" " SecondOrder (optional, integral boolean)\n" - " Optimize (optional, integeral boolean)\n" - " AllowQuad (optional, integeral boolean)\n" + " Optimize (optional, integral boolean)\n" + " AllowQuad (optional, integral boolean)\n" " GrowthRate (optional, float)\n" " SegPerEdge (optional, float)\n" " SegPerRadius (optional, float)\n" diff --git a/src/Mod/Path/Tools/README.md b/src/Mod/Path/Tools/README.md index 69f9e88a99..cdaed5a5b4 100644 --- a/src/Mod/Path/Tools/README.md +++ b/src/Mod/Path/Tools/README.md @@ -64,7 +64,7 @@ TechDraw's templates. ## How to create a new tool bit Shape -A tool bit template represents the physical shape of a tool. It does not completely desribe the bit - for that some +A tool bit template represents the physical shape of a tool. It does not completely describe the bit - for that some additional parameters are needed which will be added when an actual bit is parametrized from the template. 1. Create a new FreeCAD document diff --git a/src/Mod/Sandbox/exportDRAWEXE.py b/src/Mod/Sandbox/exportDRAWEXE.py index d447343817..b86cce5220 100644 --- a/src/Mod/Sandbox/exportDRAWEXE.py +++ b/src/Mod/Sandbox/exportDRAWEXE.py @@ -161,7 +161,7 @@ def saveShape(csg,filename,shape,name,hasplacement = True,cleanshape=False): sh=shape.copy() sh.Placement=FreeCAD.Placement() # it not yet tested if changing the placement recreated the - # tessellation. but for now we simply do the cleaing once again + # tessellation. But for now we simply do the cleaning once again # to stay on the safe side if cleanshape: shape = shape.cleaned() diff --git a/src/Tools/MakeApp.py b/src/Tools/MakeApp.py index 11ba39e98c..fd1563b687 100644 --- a/src/Tools/MakeApp.py +++ b/src/Tools/MakeApp.py @@ -30,7 +30,7 @@ sys.stdout.write("Ok\n") # replace the _TEMPLATE_ string by sys.stdout.write("Modifying files...\n") MakeAppTools.replaceTemplate("../Mod/" + Application,"_TEMPLATE_",Application) -# make the congigure script executable +# make the configure script executable #os.chmod("../Mod/" + Application + "/configure", 0777); sys.stdout.write("Modifying files done.\n") diff --git a/src/Tools/fcbt/CreateModule.py b/src/Tools/fcbt/CreateModule.py index de69f2aa1b..9c95140fda 100644 --- a/src/Tools/fcbt/CreateModule.py +++ b/src/Tools/fcbt/CreateModule.py @@ -93,7 +93,7 @@ def createApp(Application): sys.stdout.write("Modifying files...\n") MakeAppTools.replaceTemplate("../Mod/" + Application,"_TEMPLATE_",Application) MakeAppTools.replaceTemplate("../Mod/" + Application,"${CMAKE_SOURCE_DIR}/src/Tools/","${CMAKE_SOURCE_DIR}/src/Mod/") - # make the congigure script executable + # make the configure script executable #os.chmod("../Mod/" + Application + "/configure", 0777); sys.stdout.write("Modifying files done.\n") diff --git a/src/Tools/fcbt/CreatePyModule.py b/src/Tools/fcbt/CreatePyModule.py index 678b8c2a95..ab39ac6676 100644 --- a/src/Tools/fcbt/CreatePyModule.py +++ b/src/Tools/fcbt/CreatePyModule.py @@ -93,7 +93,7 @@ def createApp(Application): sys.stdout.write("Modifying files...\n") MakeAppTools.replaceTemplate("../Mod/" + Application,"_TEMPLATEPY_",Application) MakeAppTools.replaceTemplate("../Mod/" + Application,"${CMAKE_SOURCE_DIR}/src/Tools/","${CMAKE_SOURCE_DIR}/src/Mod/") - # make the congigure script executable + # make the configure script executable #os.chmod("../Mod/" + Application + "/configure", 0777); sys.stdout.write("Modifying files done.\n")