[TD]spelling in comments

This commit is contained in:
wandererfan
2023-11-14 16:15:21 -05:00
committed by WandererFan
parent ca90c73811
commit f03461a85a
12 changed files with 15 additions and 15 deletions

View File

@@ -381,7 +381,7 @@ void DrawPage::unsetupObject()
const std::vector<App::DocumentObject*> 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();

View File

@@ -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

View File

@@ -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

View File

@@ -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()) {

View File

@@ -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;
}
}

View File

@@ -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();

View File

@@ -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.

View File

@@ -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()
{

View File

@@ -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)
{

View File

@@ -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);

View File

@@ -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);

View File

@@ -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<std::string> undos = Gui::Application::Instance->activeDocument()->getUndoVector();