Skip to content

Commit

Permalink
Fix various typos throughout the codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
luzpaz committed Jul 7, 2024
1 parent dfe0c5d commit 75b020c
Show file tree
Hide file tree
Showing 20 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/App/MeasureManagerPy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<Author Licence="LGPL" Name="David Friedli" EMail="[email protected]" />
<UserDocu>MeasureManager class.

The MeasureManager handles measure types and geometry handler accross FreeCAD.</UserDocu>
The MeasureManager handles measure types and geometry handler across FreeCAD.</UserDocu>
<DeveloperDocu>MeasureManager</DeveloperDocu>
</Documentation>
<Methode Name="addMeasureType" Static="true">
Expand Down
2 changes: 1 addition & 1 deletion src/Gui/ParamHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class ParamDelayedHandlerT : public ParamHandler
// the registered parameter key is changed, the manager will call the
// registered handler function ParamHandler::onChange(). If it returns True,
// then the handler will be appended to a queue to be invoked later by a timer
// to avoid repeatitive processing on change of multiple keys.
// to avoid repetitive processing on change of multiple keys.
//
// The handler manager is meant to be initiated by some static function, e.g.
// DlgSettingsGeneral::attachObserver(). It is intended to be one and only
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Assembly/App/AssemblyObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ std::vector<App::DocumentObject*> AssemblyObject::getJoints(bool updateJCS, bool
auto* part1 = getObjFromProp(joint, "Part1");
auto* part2 = getObjFromProp(joint, "Part2");
if (!part1 || !part2 || part1->getFullName() == part2->getFullName()) {
// Remove incomplete joints. Left-over when the user delets a part.
// Remove incomplete joints. Left-over when the user deletes a part.
// Remove incoherent joints (self-pointing joints)
if (delBadJoints) {
getDocument()->removeObject(joint->getNameInDocument());
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Assembly/App/BomObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ std::string Assembly::BomObject::getText(size_t row, size_t col)
if (cell) {
cell->getStringContent(cellName);

// getStringContent is addind a ' before the string for whatever reason.
// getStringContent is adding a ' before the string for whatever reason.
if (!cellName.empty() && cellName.front() == '\'') {
cellName.erase(0, 1); // Remove the first character if it's a '
}
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Assembly/CommandCreateView.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ def onAlignTo(self):
self.alignMode = "Custom"
self.selectingFeature = True
# We use greedy selection to prevent that clicking again on the solid
# clears selection before trying to select the whole assemly
# clears selection before trying to select the whole assembly
Gui.Selection.setSelectionStyle(Gui.Selection.SelectionStyle.GreedySelection)
self.enableDragger(False)
self.form.LabelAlignDragger.setVisible(True)
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Assembly/Gui/ViewProviderAssembly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ void ViewProviderAssembly::onSelectionChanged(const Gui::SelectionChanges& msg)

bool ViewProviderAssembly::onDelete(const std::vector<std::string>& subNames)
{
// Delete the assembly goups when assembly is deleted
// Delete the assembly groups when assembly is deleted
for (auto obj : getObject()->getOutList()) {
if (obj->getTypeId() == Assembly::JointGroup::getClassTypeId()
|| obj->getTypeId() == Assembly::ViewGroup::getClassTypeId()
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/BIM/nativeifc/ifc_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
def generate_geometry(obj, cached=False):
"""Sets the geometry of the given object from a corresponding IFC element.
This is the main function called by the execute method of FreeCAD document objects
It is only meant to be called form there, as it is always the responsability of the
It is only meant to be called form there, as it is always the responsibility of the
NativeIFC document object to know when it needs to regenerate its geometry.
The generate_geometry will call either generate_shape or generate_coin, depending
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/BIM/nativeifc/ifc_materials.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def load_materials(obj):


def get_material(obj):
"""Returns a material attched to this object"""
"""Returns a material attached to this object"""

element = ifc_tools.get_ifc_element(obj)
if not element:
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/BIM/nativeifc/ifc_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def convert_document(document, filename=None, shapemode=0, strategy=0, silent=Fa


def setup_project(proj, filename, shapemode, silent):
"""Setups a project (common operations between signle doc/not single doc modes)
"""Sets up a project (common operations between single doc/not single doc modes)
Returns the ifcfile object, the project ifc entity, and full (True/False)"""

full = False
Expand Down Expand Up @@ -1189,7 +1189,7 @@ def get_elem_attribs(ifcentity):
# This function can become pure IFC

# usually info_ifcentity = ifcentity.get_info() would de the trick
# the above could raise an unhandled excption on corrupted ifc files
# the above could raise an unhandled exception on corrupted ifc files
# in IfcOpenShell
# see https://github.com/IfcOpenShell/IfcOpenShell/issues/2811
# thus workaround
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/BIM/utils/convertPsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# ***************************************************************************

"""This script converts a xml file containing pset definitions to a csv file.

Check warning on line 23 in src/Mod/BIM/utils/convertPsets.py

View workflow job for this annotation

GitHub Actions / Lint / Lint

"""This script converts a xml file containing pset definitions to a csv file. <-- trailing whitespace
Python3 only!! (py2 csv doesn't suppot utf8"""
Python3 only!! (py2 csv doesn't support utf8"""

import xml.sax, os

Expand Down
2 changes: 1 addition & 1 deletion src/Mod/CAM/Path/Main/Gui/SimulatorGL.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def GetToolProfile(self, tool, resolution):
while edge is not None:
sideEdgeList.remove(edge)
if type(edge.Curve) is Part.Circle:
# if edge is curved, aproximate it with lines based on resolution
# if edge is curved, approximate it with lines based on resolution
nsegments = int(edge.Length / resolution) + 1
step = (p2 - p1) / nsegments
location = p1 + step
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/CAM/Path/Op/Adaptive.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def convertTo2d(pathArray):


sceneGraph = None
scenePathNodes = [] # for scene cleanup aftewards
scenePathNodes = [] # for scene cleanup afterwards
topZ = 10


Expand Down
2 changes: 1 addition & 1 deletion src/Mod/CAM/Path/Op/Vcarve.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def _cutWire(wire, currentPosition=None):
pathlist = []
pathlist.append(Path.Command("(starting)"))

# iterate over each face separatedly
# iterate over each face separately
for face, wires in self.buildMedialWires(obj, faces).items():

geom = _Geometry.FromObj(obj, self.model[0])
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/CAM/PathSimulator/AppGL/MillSimulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ namespace MillSim {
{
if (mCodeParser.Parse(fileName))
{
std::cout << "GCode file loaded successfuly" << std::endl;
std::cout << "GCode file loaded successfully" << std::endl;
return true;
}
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/CAM/Tests/TestLinuxCNCPost.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def test190(self):
)

def test200(self):
"""Test A, B, & C axis output for values below -360 degress
"""Test A, B, & C axis output for values below -360 degrees
"""
self.compare_sixth_line(
"G1 X10 Y20 Z30 A-440 B-450 C-460",
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Draft/draftgeoutils/offsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def offsetWire(wire, dvec, bind=False, occ=False,
if not isinstance(basewireOffset, list):
basewireOffset = [basewireOffset]
else:
basewireOffset = basewireOffset # for backward compatability
basewireOffset = basewireOffset # for backward compatibility

for i in range(len(edges)):
# make a copy so it do not reverse the self.baseWires edges
Expand Down
6 changes: 3 additions & 3 deletions src/Mod/Measure/App/MeasureBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ std::vector<App::DocumentObject*> MeasureBase::getSubject() const {

Py::Object proxy = getProxyObject();

// Pass the feture object to the proxy
// Pass the feature object to the proxy
Py::Tuple args(1);
args.setItem(0, Py::Object(const_cast<MeasureBase*>(this)->getPyObject()));

Expand Down Expand Up @@ -99,7 +99,7 @@ void MeasureBase::parseSelection(const App::MeasureSelection& selection) {

Py::Tuple args(2);

// Pass the feture object to the proxy
// Pass the feature object to the proxy
args.setItem(0, Py::Object(const_cast<MeasureBase*>(this)->getPyObject()));
args.setItem(1, selectionPy);

Expand Down Expand Up @@ -149,7 +149,7 @@ QString MeasureBase::getResultString() {

if (!proxy.isNone()) {

// Pass the feture object to the proxy
// Pass the feature object to the proxy
Py::Tuple args(1);
args.setItem(0, Py::Object(const_cast<MeasureBase*>(this)->getPyObject()));

Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Measure/UtilsMeasure.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ class MeasureBasePython(ABC):

@abstractclassmethod
def isValidSelection(cls, selection):
"""Returns True if the given selection is valid for this measurment"""
"""Returns True if the given selection is valid for this measurement"""
pass

@abstractclassmethod
def isPrioritySelection(cls, selection):
"""Returns True if creation of this measurment should be priorized over other measurements for the given selection"""
"""Returns True if creation of this measurement should be priorized over other measurements for the given selection"""

Check warning on line 34 in src/Mod/Measure/UtilsMeasure.py

View workflow job for this annotation

GitHub Actions / Lint / Lint

priorized ==> prioritized
pass

@abstractclassmethod
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Part/parttests/ColorTransparencyTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def test_default_shape_color(self):
This test isn't currently valid as it draws from the hard coded default material.
The preference editor doesn't allow for setting transparencies. The default value
of 0 corresponds to a fully transparent color, which is not desireable. It changes
of 0 corresponds to a fully transparent color, which is not desirable. It changes
the transparency when loading to 1.0
"""

Check warning on line 49 in src/Mod/Part/parttests/ColorTransparencyTest.py

View workflow job for this annotation

GitHub Actions / Lint / Lint

<-- trailing whitespace
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Robot/App/kdl_cp/joint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ namespace KDL {

class joint_type_exception: public std::exception{
const char* what() const throw() override{
return "Joint Type excption";}
return "Joint Type exception";}
} joint_type_ex;

};
Expand Down

0 comments on commit 75b020c

Please sign in to comment.