From ed40de3e2390f11b3ce3f5951fc083f954d7d088 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Wed, 16 Oct 2024 14:36:02 +0000 Subject: [PATCH] Fix various typos Found via codespell. --- src/Gui/Icons/Std_DemoMode.svg | 2 +- src/Gui/PreferencePages/DlgSettingsUI.ui | 2 +- src/Gui/Stylesheets/images_classic/icons classic.svg | 2 +- src/Mod/AddonManager/package_list.py | 2 +- src/Mod/CAM/CAMTests/TestPathPost.py | 2 +- src/Mod/CAM/Path/Op/Drilling.py | 2 +- src/Mod/CAM/Path/Tool/Gui/BitEdit.py | 2 +- src/Mod/Measure/Gui/ViewProviderMeasureDistance.cpp | 2 +- src/Mod/MeshPart/App/MeshFlatteningLscmRelax.cpp | 4 ++-- src/Mod/Part/App/Attacher.cpp | 6 +++--- src/Mod/Part/App/FeatureExtrusion.h | 2 +- src/Mod/Part/App/FeatureRevolution.h | 2 +- src/Mod/Part/BOPTools/GeneralFuseResult.py | 2 +- src/Mod/Start/README.md | 2 +- src/Mod/TechDraw/App/CosmeticExtension.cpp | 2 +- src/Mod/TechDraw/App/DrawView.cpp | 6 +++--- src/Mod/TechDraw/Gui/QGIViewDimension.cpp | 4 ++-- 17 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/Gui/Icons/Std_DemoMode.svg b/src/Gui/Icons/Std_DemoMode.svg index 55cfacaf4c..b01c8cc257 100644 --- a/src/Gui/Icons/Std_DemoMode.svg +++ b/src/Gui/Icons/Std_DemoMode.svg @@ -260,7 +260,7 @@ disc - Shapes spining on a disc + Shapes spinning on a disc diff --git a/src/Gui/PreferencePages/DlgSettingsUI.ui b/src/Gui/PreferencePages/DlgSettingsUI.ui index f1a421b7a6..5bf0459cd2 100644 --- a/src/Gui/PreferencePages/DlgSettingsUI.ui +++ b/src/Gui/PreferencePages/DlgSettingsUI.ui @@ -432,7 +432,7 @@ - Automatically hide overlayed dock panels when in non 3D view (like TechDraw or Spreadsheet). + Automatically hide overlaid dock panels when in non 3D view (like TechDraw or Spreadsheet). Auto hide in non 3D view diff --git a/src/Gui/Stylesheets/images_classic/icons classic.svg b/src/Gui/Stylesheets/images_classic/icons classic.svg index ec43b2aaed..2409f99fe3 100644 --- a/src/Gui/Stylesheets/images_classic/icons classic.svg +++ b/src/Gui/Stylesheets/images_classic/icons classic.svg @@ -2197,7 +2197,7 @@ id="tspan3" style="stroke-width:0.264583" x="0.53167272" - y="-1.7943953">TransparantTransparentq_l_g.row(i) << r21_norm, r31.dot(r21), r31.cross(r21).norm(); } } @@ -531,7 +531,7 @@ void LscmRelax::set_q_l_m() Vector2 r31 = r3 - r1; double r21_norm = r21.norm(); r21.normalize(); - // if triangle is fliped this gives wrong results! + // if triangle is flipped this gives wrong results! this->q_l_m.row(i) << r21_norm, r31.dot(r21), -(r31.x() * r21.y() - r31.y() * r21.x()); } } diff --git a/src/Mod/Part/App/Attacher.cpp b/src/Mod/Part/App/Attacher.cpp index 1353f14dd8..2c555179dc 100644 --- a/src/Mod/Part/App/Attacher.cpp +++ b/src/Mod/Part/App/Attacher.cpp @@ -1980,7 +1980,7 @@ TYPESYSTEM_SOURCE(Attacher::AttachEnginePlane, Attacher::AttachEngine) AttachEnginePlane::AttachEnginePlane() { - //re-used 3d modes: all of Attacher3d + //reused 3d modes: all of Attacher3d AttachEngine3D attacher3D; this->modeRefTypes = attacher3D.modeRefTypes; this->EnableAllSupportedModes(); @@ -2016,7 +2016,7 @@ AttachEngineLine::AttachEngineLine() modeRefTypes.resize(mmDummy_NumberOfModes); refTypeString s; - //re-used 3d modes + //reused 3d modes AttachEngine3D attacher3D; modeRefTypes[mm1AxisX] = attacher3D.modeRefTypes[mmObjectYZ]; modeRefTypes[mm1AxisY] = attacher3D.modeRefTypes[mmObjectXZ]; @@ -2413,7 +2413,7 @@ AttachEnginePoint::AttachEnginePoint() modeRefTypes.resize(mmDummy_NumberOfModes); refTypeString s; - //re-used 3d modes + //reused 3d modes AttachEngine3D attacher3D; modeRefTypes[mm0Origin] = attacher3D.modeRefTypes[mmObjectXY]; modeRefTypes[mm0CenterOfCurvature] = attacher3D.modeRefTypes[mmRevolutionSection]; diff --git a/src/Mod/Part/App/FeatureExtrusion.h b/src/Mod/Part/App/FeatureExtrusion.h index f89a8d3400..31e5fb8973 100644 --- a/src/Mod/Part/App/FeatureExtrusion.h +++ b/src/Mod/Part/App/FeatureExtrusion.h @@ -75,7 +75,7 @@ public: /** * @brief fetchAxisLink: read AxisLink to obtain the direction and - * length. Note: this routine is re-used in Extrude dialog, hence it + * length. Note: this routine is reused in Extrude dialog, hence it * is static. * @param axisLink (input): the link * @param basepoint (output): starting point of edge. Not used by extrude as of now. diff --git a/src/Mod/Part/App/FeatureRevolution.h b/src/Mod/Part/App/FeatureRevolution.h index 27da2fb1e8..aed3e9e1f5 100644 --- a/src/Mod/Part/App/FeatureRevolution.h +++ b/src/Mod/Part/App/FeatureRevolution.h @@ -64,7 +64,7 @@ public: /** * @brief fetchAxisLink: read AxisLink to obtain the axis parameters and - * angle span. Note: this routine is re-used in Revolve dialog, hence it + * angle span. Note: this routine is reused in Revolve dialog, hence it * is static. * @param axisLink (input): the link * @param center (output): base point of axis diff --git a/src/Mod/Part/BOPTools/GeneralFuseResult.py b/src/Mod/Part/BOPTools/GeneralFuseResult.py index 377890db51..80cb72794f 100644 --- a/src/Mod/Part/BOPTools/GeneralFuseResult.py +++ b/src/Mod/Part/BOPTools/GeneralFuseResult.py @@ -270,7 +270,7 @@ def myCustomFusionRoutine(list_of_shapes): """Splits aggregates inside compound. Returns None if nothing is split, otherwise returns compound. existing_pieces is a dict. Key is deep hash. Value is tuple (int, shape). It is - used to search for if this split piece was already generated, and re-use the old + used to search for if this split piece was already generated, and reuse the old one.""" changed = False diff --git a/src/Mod/Start/README.md b/src/Mod/Start/README.md index 1fb29fe3c4..395965e037 100644 --- a/src/Mod/Start/README.md +++ b/src/Mod/Start/README.md @@ -8,7 +8,7 @@ to things like FreeCAD's Recent Files list. This switch will happen sometime aft on Ubuntu 20.04 LTS, which still uses Qt 5.12. The cMake integration of QML and C++ together in a single project is greatly improved in Qt 5.15 and later. -In the meantime the workbench is written in C++ so that the models can be re-used later, and only the UI itself will +In the meantime the workbench is written in C++ so that the models can be reused later, and only the UI itself will have to change. ### Structure diff --git a/src/Mod/TechDraw/App/CosmeticExtension.cpp b/src/Mod/TechDraw/App/CosmeticExtension.cpp index a1a19e71d9..48c40af539 100644 --- a/src/Mod/TechDraw/App/CosmeticExtension.cpp +++ b/src/Mod/TechDraw/App/CosmeticExtension.cpp @@ -427,7 +427,7 @@ void CosmeticExtension::removeCosmeticEdge(const std::string& delTag) /// remove the cosmetic edges with the given tags from the list property void CosmeticExtension::removeCosmeticEdge(const std::vector& delTags) { - // Base::Console().Message("DVP::removeCE(%d tages)\n", delTags.size()); + // Base::Console().Message("DVP::removeCE(%d tags)\n", delTags.size()); std::vector cEdges = CosmeticEdges.getValues(); for (auto& t: delTags) { removeCosmeticEdge(t); diff --git a/src/Mod/TechDraw/App/DrawView.cpp b/src/Mod/TechDraw/App/DrawView.cpp index f4257726c6..f1fcda1ca6 100644 --- a/src/Mod/TechDraw/App/DrawView.cpp +++ b/src/Mod/TechDraw/App/DrawView.cpp @@ -653,10 +653,10 @@ void DrawView::setScaleAttribute() } } -//! due to changes made for the "intelligent" view creation tool, testing for a view being an +//! Due to changes made for the "intelligent" view creation tool, testing for a view being an //! instance of DrawProjGroupItem is no longer reliable, as views not in a group are sometimes -//! created as DrawProjGroupItem without belonging to a group. We now need to test for the existance -//! of the parent DrawProjGroup +//! created as DrawProjGroupItem without belonging to a group. We now need to test for the +//! existence of the parent DrawProjGroup bool DrawView::isProjGroupItem(DrawViewPart* item) { auto dpgi = dynamic_cast(item); diff --git a/src/Mod/TechDraw/Gui/QGIViewDimension.cpp b/src/Mod/TechDraw/Gui/QGIViewDimension.cpp index fcc2a39ab0..cc93a1b02c 100644 --- a/src/Mod/TechDraw/Gui/QGIViewDimension.cpp +++ b/src/Mod/TechDraw/Gui/QGIViewDimension.cpp @@ -362,10 +362,10 @@ void QGIDatumLabel::updateFrameRect() { int paddingRight = fontSize * 0.3; int paddingBottom = fontSize * 0.125; // Why top and bottom padding different? - // Because the m_dimText bouding box isn't relative to X height :( + // Because the m_dimText bounding box isn't relative to X height :( // And we want padding to be relative to X height // TODO: make QGCustomLabel::boundingBoxXHeight - m_frame->setRect(m_textItems->childrenBoundingRect().adjusted(-paddingLeft, -paddingTop, paddingRight, paddingBottom)); // Update bouding rect + m_frame->setRect(m_textItems->childrenBoundingRect().adjusted(-paddingLeft, -paddingTop, paddingRight, paddingBottom)); // Update bounding rect } void QGIDatumLabel::setLineWidth(double lineWidth)