From 79a4aa3ef4a938aba8ec487fc2aa97ef30305350 Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Thu, 31 May 2018 12:50:40 -0400 Subject: [PATCH] Misc. typos Found via `codespell` [skip ci] --- src/Gui/NaviCube.cpp | 4 ++-- src/Mod/Fem/Gui/ViewProviderFemMesh.cpp | 2 +- src/Mod/Fem/femguiobjects/FemSelectionWidgets.py | 2 +- src/Mod/Fem/femguiobjects/_ViewProviderFemMaterial.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Gui/NaviCube.cpp b/src/Gui/NaviCube.cpp index 91ddc438ae..157bea86df 100644 --- a/src/Gui/NaviCube.cpp +++ b/src/Gui/NaviCube.cpp @@ -133,7 +133,7 @@ using namespace Gui; // corner angle // menu actions // size -// XYZ postion +// XYZ position // menu feedback // colors // antialise cube icon @@ -785,7 +785,7 @@ void NaviCubeImplementation::handleResize() { } void NaviCubeImplementation::drawNaviCube(bool pickMode) { - // initilizes stuff here when we actually have a context + // initializes stuff here when we actually have a context // FIXME actually now that we have Qt5, we could probably do this earlier (as we do not need the opengl context) if (!m_NaviCubeInitialised) { QtGLWidget* gl = static_cast(m_View3DInventorViewer->viewport()); diff --git a/src/Mod/Fem/Gui/ViewProviderFemMesh.cpp b/src/Mod/Fem/Gui/ViewProviderFemMesh.cpp index 40312713e1..8a2f3d060e 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemMesh.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemMesh.cpp @@ -1097,7 +1097,7 @@ void ViewProviderFEMMeshBuilder::createMesh(const App::Property* prop, vFaceElementIdx.resize(triangleCount); int index=0,indexIdx=0; int32_t* indices = faces->coordIndex.startEditing(); - // iterate all not hided element faces, always assure CLOCKWISE triangle ordering to allow backface culling + // iterate all non-hidden element faces, always assure CLOCKWISE triangle ordering to allow backface culling for(int l=0; l< FaceSize;l++){ if(! facesHelper[l].hide){ switch( facesHelper[l].Element->NbNodes()){ diff --git a/src/Mod/Fem/femguiobjects/FemSelectionWidgets.py b/src/Mod/Fem/femguiobjects/FemSelectionWidgets.py index 04f0607611..2cdbd68bfb 100644 --- a/src/Mod/Fem/femguiobjects/FemSelectionWidgets.py +++ b/src/Mod/Fem/femguiobjects/FemSelectionWidgets.py @@ -456,7 +456,7 @@ class GeometryElementsSelection(QtGui.QWidget): FreeCADGui.Selection.clearSelection() # selected shape will not added to the list message = self.get_item_text(selection) + ' is in reference list already!\n' FreeCAD.Console.PrintMessage(message) - QtGui.QMessageBox.critical(None, "Geomety already in list", message) + QtGui.QMessageBox.critical(None, "Geometry already in list", message) else: FreeCADGui.Selection.clearSelection() # selected shape will not added to the list message = ele_ShapeType + ' is not allowed to add to the list!\n' diff --git a/src/Mod/Fem/femguiobjects/_ViewProviderFemMaterial.py b/src/Mod/Fem/femguiobjects/_ViewProviderFemMaterial.py index 5bd45fe00d..a8dac09fa2 100644 --- a/src/Mod/Fem/femguiobjects/_ViewProviderFemMaterial.py +++ b/src/Mod/Fem/femguiobjects/_ViewProviderFemMaterial.py @@ -125,7 +125,7 @@ class _TaskPanelFemMaterial: QtCore.QObject.connect(self.parameterWidget.input_fd_kinematic_viscosity, QtCore.SIGNAL("valueChanged(double)"), self.kinematic_viscosity_changed) QtCore.QObject.connect(self.parameterWidget.input_fd_vol_expansion_coefficient, QtCore.SIGNAL("valueChanged(double)"), self.vtec_changed) - # init all parameter input fiels with read only + # init all parameter input files with read only self.parameterWidget.chbu_allow_edit.setCheckState(QtCore.Qt.CheckState.Unchecked) self.toggleInputFieldsReadOnly()