Fix various typos

Found via codespell.
This commit is contained in:
luzpaz
2024-10-16 14:36:02 +00:00
committed by Max Wilfinger
parent b3a2268289
commit ed40de3e23
17 changed files with 23 additions and 23 deletions

View File

@@ -260,7 +260,7 @@
<rdf:li>disc</rdf:li>
</rdf:Bag>
</dc:subject>
<dc:description>Shapes spining on a disc</dc:description>
<dc:description>Shapes spinning on a disc</dc:description>
</cc:Work>
</rdf:RDF>
</metadata>

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -432,7 +432,7 @@
<item row="3" column="0">
<widget class="Gui::PrefCheckBox" name="overlayAutoHideCheckBox">
<property name="toolTip">
<string>Automatically hide overlayed dock panels when in non 3D view (like TechDraw or Spreadsheet).</string>
<string>Automatically hide overlaid dock panels when in non 3D view (like TechDraw or Spreadsheet).</string>
</property>
<property name="text">
<string>Auto hide in non 3D view</string>

View File

@@ -2197,7 +2197,7 @@
id="tspan3"
style="stroke-width:0.264583"
x="0.53167272"
y="-1.7943953">Transparant</tspan></text><g
y="-1.7943953">Transparent</tspan></text><g
inkscape:label="Hmovetoolbar-lightgray"
id="Hmovetoolbar-lightgray"
transform="matrix(0,0.50484638,-0.50484638,0,216.99307,-319.42126)"

Before

Width:  |  Height:  |  Size: 390 KiB

After

Width:  |  Height:  |  Size: 390 KiB

View File

@@ -306,7 +306,7 @@ class PackageListItemDelegate(QtWidgets.QStyledItemDelegate):
self.widget = self.compact
self._setup_compact_view(repo)
elif self.displayStyle == AddonManagerDisplayStyle.COMPOSITE:
self.widget = self.compact # For now re-use the compact list
self.widget = self.compact # For now reuse the compact list
self._setup_composite_view(repo)
self.widget.adjustSize()

View File

@@ -475,7 +475,7 @@ class TestPostProcessorClass(unittest.TestCase):
# #
# PATHTESTS_LOCATION = "Mod/CAM/CAMTests"
# #
# # The following code tries to re-use an open FreeCAD document
# # The following code tries to reuse an open FreeCAD document
# # as much as possible. It compares the current document with
# # the document for the next test. If the names are different
# # then the current document is closed and the new document is

View File

@@ -253,7 +253,7 @@ class ObjectDrilling(PathCircularHoleBase.ObjectOp):
holes = PathUtils.sort_locations(holes, ["x", "y"])
# This section is technical debt. The computation of the
# target shapes should be factored out for re-use.
# target shapes should be factored out for reuse.
# This will likely mean refactoring upstream CircularHoleBase to pass
# spotshapes instead of holes.

View File

@@ -119,7 +119,7 @@ class ToolBitEditor(object):
usedRows = 0
for nr, name in enumerate(tool.Proxy.toolShapeProperties(tool)):
if nr < len(self.widgets):
Path.Log.debug("re-use row: {} [{}]".format(nr, name))
Path.Log.debug("reuse row: {} [{}]".format(nr, name))
label, qsb, editor = self.widgets[nr]
label.setText(labelText(name))
editor.attachTo(tool, name)

View File

@@ -254,7 +254,7 @@ SbMatrix ViewProviderMeasureDistance::getMatrix()
Base::Vector3d localXAxis = (vec2 - vec1).Normalize();
Base::Vector3d localYAxis = getTextDirection(localXAxis, tolerance).Normalize();
// X and Y axis have to be 90° to eachother
// X and Y axis have to be 90° to each other
assert(fabs(localYAxis.Dot(localXAxis)) < tolerance);
Base::Vector3d localZAxis = localYAxis.Cross(localXAxis).Normalize();

View File

@@ -511,7 +511,7 @@ void LscmRelax::set_q_l_g()
Vector3 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_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());
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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<std::string>& delTags)
{
// Base::Console().Message("DVP::removeCE(%d tages)\n", delTags.size());
// Base::Console().Message("DVP::removeCE(%d tags)\n", delTags.size());
std::vector<CosmeticEdge*> cEdges = CosmeticEdges.getValues();
for (auto& t: delTags) {
removeCosmeticEdge(t);

View File

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

View File

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