From f03461a85adb843e99879c25f8a3db67792b2e86 Mon Sep 17 00:00:00 2001 From: wandererfan Date: Tue, 14 Nov 2023 16:15:21 -0500 Subject: [PATCH] [TD]spelling in comments --- src/Mod/TechDraw/App/DrawPage.cpp | 2 +- src/Mod/TechDraw/App/DrawUtil.cpp | 2 +- src/Mod/TechDraw/App/ShapeUtils.cpp | 2 +- src/Mod/TechDraw/App/TechDrawExport.cpp | 2 +- src/Mod/TechDraw/Gui/Command.cpp | 6 +++--- src/Mod/TechDraw/Gui/CommandExtensionPack.cpp | 2 +- src/Mod/TechDraw/Gui/MDIViewPage.cpp | 2 +- src/Mod/TechDraw/Gui/QGIPrimPath.cpp | 2 +- src/Mod/TechDraw/Gui/QGIView.cpp | 2 +- src/Mod/TechDraw/Gui/QGIViewBalloon.cpp | 2 +- src/Mod/TechDraw/Gui/QGIViewDimension.cpp | 2 +- src/Mod/TechDraw/Gui/TaskProjGroup.cpp | 4 ++-- 12 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/Mod/TechDraw/App/DrawPage.cpp b/src/Mod/TechDraw/App/DrawPage.cpp index e3a0de09cd..96b7935de6 100644 --- a/src/Mod/TechDraw/App/DrawPage.cpp +++ b/src/Mod/TechDraw/App/DrawPage.cpp @@ -381,7 +381,7 @@ void DrawPage::unsetupObject() const std::vector currViews = Views.getValues(); for (auto& v : currViews) { //NOTE: the order of objects in Page.Views does not reflect the object hierarchy - // this means that a ProjGroup could be deleted before it's child ProjGroupItems. + // this means that a ProjGroup could be deleted before its child ProjGroupItems. // this causes problems when removing objects from document if (v->isAttachedToDocument()) { std::string viewName = v->getNameInDocument(); diff --git a/src/Mod/TechDraw/App/DrawUtil.cpp b/src/Mod/TechDraw/App/DrawUtil.cpp index 449311eb17..e6c6385eb8 100644 --- a/src/Mod/TechDraw/App/DrawUtil.cpp +++ b/src/Mod/TechDraw/App/DrawUtil.cpp @@ -935,7 +935,7 @@ QPointF DrawUtil::invertY(QPointF v) return QPointF(v.x(), -v.y()); } -//! convert a gui point into it's app space equivalent. this requires us to +//! convert a gui point into its app space equivalent. this requires us to //! perform the invert, scale, rotate operations in the reverse order from //! that used to generate the qt point. //! Note: the centering operation is not considered here diff --git a/src/Mod/TechDraw/App/ShapeUtils.cpp b/src/Mod/TechDraw/App/ShapeUtils.cpp index cd1c4d8907..8cc8ed5108 100644 --- a/src/Mod/TechDraw/App/ShapeUtils.cpp +++ b/src/Mod/TechDraw/App/ShapeUtils.cpp @@ -265,7 +265,7 @@ TopoDS_Shape ShapeUtils::mirrorShape(const TopoDS_Shape& input, const gp_Pnt& in return transShape; } try { - // Make tempTransform scale the object around it's centre point and + // Make tempTransform scale the object around its centre point and // mirror about the Y axis gp_Trsf tempTransform; //BRepBuilderAPI_Transform will loop forever if asked to use 0.0 as scale diff --git a/src/Mod/TechDraw/App/TechDrawExport.cpp b/src/Mod/TechDraw/App/TechDrawExport.cpp index ed6446fb46..dd7391eac6 100644 --- a/src/Mod/TechDraw/App/TechDrawExport.cpp +++ b/src/Mod/TechDraw/App/TechDrawExport.cpp @@ -285,7 +285,7 @@ void SVGOutput::printBezier(const BRepAdaptor_Curve& c, int id, std::ostream& ou Handle(Geom_BezierCurve) bezier = c.Bezier(); Standard_Integer poles = bezier->NbPoles(); - // if it's a bezier with degree higher than 3 convert it into a B-spline + // if its a bezier with degree higher than 3 convert it into a B-spline if (bezier->Degree() > 3 || bezier->IsRational()) { TopoDS_Edge edge = asBSpline(c, 3); if (!edge.IsNull()) { diff --git a/src/Mod/TechDraw/Gui/Command.cpp b/src/Mod/TechDraw/Gui/Command.cpp index 297b2a4cfc..53d0863695 100644 --- a/src/Mod/TechDraw/Gui/Command.cpp +++ b/src/Mod/TechDraw/Gui/Command.cpp @@ -349,7 +349,7 @@ void CmdTechDrawView::activated(int iMsg) if (parent->isDerivedFrom(App::LinkElement::getClassTypeId()) || parent->isDerivedFrom(App::LinkGroup::getClassTypeId()) || parent->isDerivedFrom(App::Link::getClassTypeId())) { - // We have a link chain from this document to obj, and obj is in another document -> it's an XLink target + // We have a link chain from this document to obj, and obj is in another document -> it is an XLink target is_linked = true; } } @@ -702,7 +702,7 @@ void execComplexSection(Gui::Command* cmd) if (parent->isDerivedFrom(App::LinkElement::getClassTypeId()) || parent->isDerivedFrom(App::LinkGroup::getClassTypeId()) || parent->isDerivedFrom(App::Link::getClassTypeId())) { - // We have a link chain from this document to obj, and obj is in another document -> it's an XLink target + // We have a link chain from this document to obj, and obj is in another document -> it is an XLink target is_linked = true; } } @@ -847,7 +847,7 @@ void CmdTechDrawProjectionGroup::activated(int iMsg) if (parent->isDerivedFrom(App::LinkElement::getClassTypeId()) || parent->isDerivedFrom(App::LinkGroup::getClassTypeId()) || parent->isDerivedFrom(App::Link::getClassTypeId())) { - // We have a link chain from this document to obj, and obj is in another document -> it's an XLink target + // We have a link chain from this document to obj, and obj is in another document -> it is an XLink target is_linked = true; } } diff --git a/src/Mod/TechDraw/Gui/CommandExtensionPack.cpp b/src/Mod/TechDraw/Gui/CommandExtensionPack.cpp index 1f0c4acb59..d067c2346d 100644 --- a/src/Mod/TechDraw/Gui/CommandExtensionPack.cpp +++ b/src/Mod/TechDraw/Gui/CommandExtensionPack.cpp @@ -2050,7 +2050,7 @@ lineAttributes& _getActiveLineAttributes() } std::string _createBalloon(Gui::Command* cmd, TechDraw::DrawViewPart* objFeat) -// create a new balloon, return it's name as string +// create a new balloon, return its name as string { std::string featName; TechDraw::DrawPage* page = objFeat->findParentPage(); diff --git a/src/Mod/TechDraw/Gui/MDIViewPage.cpp b/src/Mod/TechDraw/Gui/MDIViewPage.cpp index b93d76da0f..b8cce38da7 100644 --- a/src/Mod/TechDraw/Gui/MDIViewPage.cpp +++ b/src/Mod/TechDraw/Gui/MDIViewPage.cpp @@ -1071,7 +1071,7 @@ Py::Object MDIViewPagePy::repr() return Py::String(s_out.str()); } -// Since with PyCXX it's not possible to make a sub-class of MDIViewPy +// Since with PyCXX it is not possible to make a sub-class of MDIViewPy // a trick is to use MDIViewPy as class member and override getattr() to // join the attributes of both classes. This way all methods of MDIViewPy // appear for SheetViewPy, too. diff --git a/src/Mod/TechDraw/Gui/QGIPrimPath.cpp b/src/Mod/TechDraw/Gui/QGIPrimPath.cpp index c7b1d3263a..8f8c7179ee 100644 --- a/src/Mod/TechDraw/Gui/QGIPrimPath.cpp +++ b/src/Mod/TechDraw/Gui/QGIPrimPath.cpp @@ -148,7 +148,7 @@ void QGIPrimPath::setPrettySel() { } } -//wf: why would a face use it's parent's normal colour? +//wf: why would a face use its parent's normal colour? //this always goes to parameter QColor QGIPrimPath::getNormalColor() { diff --git a/src/Mod/TechDraw/Gui/QGIView.cpp b/src/Mod/TechDraw/Gui/QGIView.cpp index d144e33c6b..109cb440aa 100644 --- a/src/Mod/TechDraw/Gui/QGIView.cpp +++ b/src/Mod/TechDraw/Gui/QGIView.cpp @@ -130,7 +130,7 @@ bool QGIView::isVisible() return vpdo->Visibility.getValue(); } -//Set selection state for this and it's children +//Set selection state for this and its children //required for items like dimensions & balloons void QGIView::setGroupSelection(bool isSelected) { diff --git a/src/Mod/TechDraw/Gui/QGIViewBalloon.cpp b/src/Mod/TechDraw/Gui/QGIViewBalloon.cpp index bb8d6a2b10..739dbdce2c 100644 --- a/src/Mod/TechDraw/Gui/QGIViewBalloon.cpp +++ b/src/Mod/TechDraw/Gui/QGIViewBalloon.cpp @@ -313,7 +313,7 @@ QVariant QGIViewBalloon::itemChange(GraphicsItemChange change, const QVariant& v return QGIView::itemChange(change, value); } -//Set selection state for this and it's children +//Set selection state for this and its children void QGIViewBalloon::setGroupSelection(bool isSelected) { // Base::Console().Message("QGIVB::setGroupSelection(%d)\n", b); diff --git a/src/Mod/TechDraw/Gui/QGIViewDimension.cpp b/src/Mod/TechDraw/Gui/QGIViewDimension.cpp index 3844f34569..9f221cb7a8 100644 --- a/src/Mod/TechDraw/Gui/QGIViewDimension.cpp +++ b/src/Mod/TechDraw/Gui/QGIViewDimension.cpp @@ -525,7 +525,7 @@ QVariant QGIViewDimension::itemChange(GraphicsItemChange change, const QVariant& return QGIView::itemChange(change, value); } -//Set selection state for this and it's children +//Set selection state for this and its children void QGIViewDimension::setGroupSelection(bool isSelected) { // Base::Console().Message("QGIVD::setGroupSelection(%d)\n", b); diff --git a/src/Mod/TechDraw/Gui/TaskProjGroup.cpp b/src/Mod/TechDraw/Gui/TaskProjGroup.cpp index 98e5471474..78804adae6 100644 --- a/src/Mod/TechDraw/Gui/TaskProjGroup.cpp +++ b/src/Mod/TechDraw/Gui/TaskProjGroup.cpp @@ -86,7 +86,7 @@ TaskProjGroup::TaskProjGroup(TechDraw::DrawProjGroup* featView, bool mode) : blockUpdate = false; // Rotation buttons - // Note we don't do the custom one here, as it's handled by [a different function that's held up in customs] + // Note we don't do the custom one here, as it is handled by [a different function that's held up in customs] connect(ui->butTopRotate, &QPushButton::clicked, this, &TaskProjGroup::rotateButtonClicked); connect(ui->butCWRotate, &QPushButton::clicked, this, &TaskProjGroup::rotateButtonClicked); connect(ui->butRightRotate, &QPushButton::clicked, this, &TaskProjGroup::rotateButtonClicked); @@ -545,7 +545,7 @@ bool TaskProjGroup::reject() Gui::Command::doCommand(Gui::Command::Gui, "App.activeDocument().removeObject('%s')", multiViewName.c_str()); Gui::Command::doCommand(Gui::Command::Gui, "Gui.ActiveDocument.resetEdit()"); } else { - //set the DPG and it's views back to entry state. + //set the DPG and its views back to entry state. if (Gui::Command::hasPendingCommand()) { Gui::Command::abortCommand(); // std::vector undos = Gui::Application::Instance->activeDocument()->getUndoVector();