Skip to content

Commit

Permalink
Fix various typos
Browse files Browse the repository at this point in the history
Found via codespell.
  • Loading branch information
luzpaz committed Oct 16, 2024
1 parent 9806a46 commit b2f4e80
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/Gui/Icons/Std_DemoMode.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/Gui/PreferencePages/DlgSettingsUI.ui
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/Gui/Stylesheets/images_classic/icons classic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/Mod/AddonManager/package_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def update_content(self, index):
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()

Expand Down
2 changes: 1 addition & 1 deletion src/Mod/CAM/Path/Op/Drilling.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def circularHoleExecute(self, obj, holes):
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.

Expand Down
2 changes: 1 addition & 1 deletion src/Mod/CAM/Path/Tool/Gui/BitEdit.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def labelText(name):
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)
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/CAM/Tests/TestPathPost.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def test030(self):
# #
# PATHTESTS_LOCATION = "Mod/CAM/Tests"
# #
# # 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
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Measure/Gui/ViewProviderMeasureDistance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
4 changes: 2 additions & 2 deletions src/Mod/MeshPart/App/MeshFlatteningLscmRelax.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand All @@ -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());
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/Mod/Part/App/Attacher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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];
Expand Down Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Part/App/FeatureExtrusion.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class PartExport Extrusion : public Part::Feature

/**
* @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.
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Part/App/FeatureRevolution.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class PartExport Revolution : public Part::Feature

/**
* @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
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Part/BOPTools/GeneralFuseResult.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def _splitInCompound(self, compound, existing_pieces):
"""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
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Start/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/TechDraw/App/CosmeticExtension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions src/Mod/TechDraw/App/DrawView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/TechDraw/Gui/QGIViewDimension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b2f4e80

Please sign in to comment.