Fix various typos
Found with codespell
This commit is contained in:
@@ -93,11 +93,11 @@ public:
|
||||
/** 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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -157,7 +157,7 @@ class TaskAssemblyNewPart(JointObject.TaskAssemblyCreateJoint):
|
||||
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)
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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():
|
||||
@@ -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():
|
||||
|
||||
@@ -176,7 +176,7 @@ def isAligned(edge, axis="x"):
|
||||
|
||||
|
||||
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
|
||||
-------
|
||||
|
||||
@@ -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
|
||||
@@ -245,7 +245,7 @@ def init_draft_statusbar_snap():
|
||||
# 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))
|
||||
|
||||
@@ -31,7 +31,7 @@ from .manager import init_doc
|
||||
|
||||
def get_information():
|
||||
return {
|
||||
"name": "CCX cantilever prescibed displacement",
|
||||
"name": "CCX cantilever prescribed displacement",
|
||||
"meshtype": "solid",
|
||||
"meshelement": "Tet10",
|
||||
"constraints": ["fixed", "displacement"],
|
||||
|
||||
@@ -337,7 +337,7 @@ class MeshNetgen(base_fempythonobject.BaseFemPythonObject):
|
||||
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,
|
||||
)
|
||||
)
|
||||
|
||||
@@ -639,8 +639,8 @@ class TestTopologicalNamingProblem(unittest.TestCase):
|
||||
# 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)
|
||||
|
||||
@@ -403,7 +403,7 @@ private:
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user