Skip to content

Commit

Permalink
Fix various typos
Browse files Browse the repository at this point in the history
Found with codespell
  • Loading branch information
luzpaz authored and chennes committed Dec 5, 2024
1 parent a97677e commit 96c838f
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/Gui/Action.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ class GuiExport Action : public QObject
/** Obtain the menu text of a given command
* @param cmd: input command
* @return Return the command menu text that is stripped with its mnemonic
* symbol '&' and ending punctuations
* symbol '&' and ending punctuation
*/
static QString commandMenuText(const Command *cmd);

/// Clean the title by stripping the mnemonic symbol '&' and ending punctuations
/// Clean the title by stripping the mnemonic symbol '&' and ending punctuation
static QString cleanTitle(const QString &title);

Command *command() const {
Expand Down
2 changes: 1 addition & 1 deletion src/Gui/GuiApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ bool GUIApplication::event(QEvent * ev)
if (ev->type() == QEvent::FileOpen) {
// (macOS workaround when opening FreeCAD by opening a .FCStd file in 1.0)
// With the current implementation of the splash screen boot procedure, Qt will
// start an event loop before FreeCAD is fully initalized. This event loop will
// start an event loop before FreeCAD is fully initialized. This event loop will
// process the QFileOpenEvent that is sent by macOS before the main window is ready.
if (!Gui::getMainWindow()->property("eventLoop").toBool()) {
// If we never reach this point when opening FreeCAD by double clicking an
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Assembly/CommandInsertNewPart.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def createPart(self):
doc.recompute()

def expandLinkManually(self, link):
# Shoud not be necessary
# Should not be necessary
# This is a workaround of https://github.com/FreeCAD/FreeCAD/issues/17904
mw = Gui.getMainWindow()
trees = mw.findChildren(QtGui.QTreeWidget)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
<item>
<widget class="QPushButton" name="offset1Button">
<property name="toolTip">
<string>By clicking this button, you can set the attachement offset of the first marker (coordinate system) of the joint.</string>
<string>By clicking this button, you can set the attachment offset of the first marker (coordinate system) of the joint.</string>
</property>
<property name="text">
<string></string>
Expand All @@ -162,7 +162,7 @@
<item>
<widget class="QPushButton" name="offset2Button">
<property name="toolTip">
<string>By clicking this button, you can set the attachement offset of the second marker (coordinate system) of the joint.</string>
<string>By clicking this button, you can set the attachment offset of the second marker (coordinate system) of the joint.</string>
</property>
<property name="text">
<string></string>
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/BIM/Dice3DS/dom3ds.py
Original file line number Diff line number Diff line change
Expand Up @@ -1717,7 +1717,7 @@ class HIDE_TRACK_TAG(UndefinedChunk):
class DUMMY(ChunkBase): tag = 0xFFFF

#
# Obsolute Chunks
# Obsolete Chunks
#

class VIEWPORT_LAYOUT_OLD(UndefinedChunk): tag = 0x7000
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/BIM/nativeifc/ifc_psets.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def add_property(ifcfile, pset, name, value=""):


def get_freecad_type(ptype):
"""Returns a FreeCAD property type correspinding to an IFC property type"""
"""Returns a FreeCAD property type corresponding to an IFC property type"""

conv = read_properties_conversion()
for key, values in conv.items():
Expand All @@ -310,7 +310,7 @@ def get_freecad_type(ptype):


def get_ifc_type(fctype):
"""Returns an IFC property type correspinding to a FreeCAD property type"""
"""Returns an IFC property type corresponding to a FreeCAD property type"""

conv = read_properties_conversion()
for key, values in conv.items():
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Draft/draftgeoutils/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def is_same(a, b):


def getQuad(face):
"""Return a list of 3 vectors if the face is a quad, ortherwise None.
"""Return a list of 3 vectors if the face is a quad, otherwise None.
Returns
-------
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Draft/draftutils/init_draft_statusbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def init_draft_statusbar_scale():
# prevent the widget from showing up in the toolbar area context menu:
scale_widget.toggleViewAction().setVisible(False)
scale_widget.setObjectName("draft_scale_widget")
# WindowTitle is just in case, should not be visble in the GUI.
# WindowTitle is just in case, should not be visible in the GUI.
scale_widget.setWindowTitle(translate("draft", "Draft scale widget"))

# get scales list according to system units
Expand Down Expand Up @@ -245,7 +245,7 @@ def _spacer():
# prevent the widget from showing up in the toolbar area context menu:
snap_widget.toggleViewAction().setVisible(False)
snap_widget.setObjectName("draft_snap_widget")
# WindowTitle is just in case, should not be visble in the GUI.
# WindowTitle is just in case, should not be visible in the GUI.
snap_widget.setWindowTitle(translate("draft", "Draft snap widget"))
snap_widget.setOrientation(QtCore.Qt.Orientation.Horizontal)
snap_widget.setIconSize(QtCore.QSize(16, 16))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

def get_information():
return {
"name": "CCX cantilever prescibed displacement",
"name": "CCX cantilever prescribed displacement",
"meshtype": "solid",
"meshelement": "Tet10",
"constraints": ["fixed", "displacement"],
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Fem/femobjects/mesh_netgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def _get_properties(self):
type="App::PropertyInteger",
name="GiveUpToleranceOpenQuads",
group="Mesh Parameters",
doc="Give up quality class, for closing open quads, greather than 100 for free pyramids",
doc="Give up quality class, for closing open quads, greater than 100 for free pyramids",
value=15,
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,8 @@ def testPartDesignElementMapRevolution(self):
# Previously the condition counted the number of ";" (element map operations prefix)
# If the number of operations changes then the number of ";" will change accordingly
#
# However, it is more useful to count the number of times an elemement name is
# present in the MappedName of an element (a MappedName is definined also using the
# However, it is more useful to count the number of times an element name is
# present in the MappedName of an element (a MappedName is defined also using the
# element names - "Vertex*", "Edge*", "Face*" - used by an OCCT operation to generate
# output elements)
self.assertEqual( revolution.Shape.ElementReverseMap["Face8"].count("Face8"), 3)
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Sketcher/Gui/DrawSketchHandlerRotate.h
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ class DrawSketchHandlerRotate: public DrawSketchHandlerRotateBase
else {
// We should be able to handle cases where rotation is 90 or 180, but
// this is segfaulting. The same is reported in
// SketchObject::addSymmetric. There's apparantly a problem with
// SketchObject::addSymmetric. There's apparently a problem with
// creation of DistanceX/Y. On top of the segfault the DistanceX/Y flips
// the new geometry.
/*if (cstr->Type == DistanceX || cstr->Type == DistanceY) {
Expand Down

0 comments on commit 96c838f

Please sign in to comment.