From 831bf318171edd87e9bc1749b215c19128e8225e Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Thu, 4 Jan 2018 22:58:46 -0500 Subject: [PATCH] Misc. typos + stepcode typo submitted upsream https://github.com/stepcode/stepcode/pull/372 --- src/App/Document.cpp | 2 +- src/App/DocumentObserver.h | 2 +- src/Base/PyExport.h | 4 ++-- src/Gui/PythonConsole.cpp | 4 ++-- src/Gui/TaskView/TaskView.h | 2 +- src/Gui/View3DInventorRiftViewer.cpp | 2 +- src/Mod/Assembly/Gui/ViewProviderConstraint.h | 2 +- src/Mod/Draft/DraftTools.py | 2 +- src/Mod/Import/App/SCL/Builtin.py | 2 +- src/Mod/OpenSCAD/OpenSCAD2Dgeom.py | 8 ++++---- src/Mod/Part/App/Attacher.cpp | 2 +- src/Mod/Part/App/TopologyPy.h | 2 +- src/Mod/Part/Gui/TaskDimension.h | 4 ++-- src/Mod/PartDesign/Gui/ViewProviderBody.cpp | 2 +- src/Mod/Robot/App/RobotAlgos.cpp | 2 +- vagrant/etc/matplotlibrc | 2 +- 16 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/App/Document.cpp b/src/App/Document.cpp index 8a641145e1..c808d70062 100644 --- a/src/App/Document.cpp +++ b/src/App/Document.cpp @@ -2537,7 +2537,7 @@ DocumentObject * Document::addObject(const char* sType, const char* pObjectName, pcObject->pcNameInDocument = &(d->objectMap.find(ObjectName)->first); // insert in the vector d->objectArray.push_back(pcObject); - // insert in the adjacence list and referenc through the ConectionMap + // insert in the adjacence list and reference through the ConectionMap //_DepConMap[pcObject] = add_vertex(_DepList); // If we are restoring, don't set the Label object now; it will be restored later. This is to avoid potential duplicate diff --git a/src/App/DocumentObserver.h b/src/App/DocumentObserver.h index 0ecc8fd98a..af987018d5 100644 --- a/src/App/DocumentObserver.h +++ b/src/App/DocumentObserver.h @@ -198,7 +198,7 @@ private: /** The property of an observed object has changed */ virtual void slotChangedObject(const App::DocumentObject& Obj, const App::Property& Prop); /** This method gets called when all observed objects are deleted or the whole document is deleted. - * This method can be re-implemented to perform an extra step like closing a dialog tht observes + * This method can be re-implemented to perform an extra step like closing a dialog that observes * a document. */ virtual void cancelObservation(); diff --git a/src/Base/PyExport.h b/src/Base/PyExport.h index 3e4303e61f..2a16200598 100644 --- a/src/Base/PyExport.h +++ b/src/Base/PyExport.h @@ -101,7 +101,7 @@ class PyObjectBase; /** Python Object handle class * Using pointers on classes derived from PyObjectBase would * be potentionaly dangerous because you would have to take - * care of the referenc counting of python by your self. There + * care of the reference counting of python by your self. There * fore this class was designd. It takes care of references and * as long as a object of this class exists the handled class get * not destructed. That means a PyObjectBase derived object you can @@ -135,7 +135,7 @@ public: } /** destructor - * Release the referenc count which cause, + * Release the reference count which cause, * if was the last one, the referenced object to * destruct! */ diff --git a/src/Gui/PythonConsole.cpp b/src/Gui/PythonConsole.cpp index 951856701a..0a1c3b0b2b 100644 --- a/src/Gui/PythonConsole.cpp +++ b/src/Gui/PythonConsole.cpp @@ -784,8 +784,8 @@ void PythonConsole::appendOutput(const QString& output, int state) void PythonConsole::runSource(const QString& line) { /** - * Check if there's a "source drain", which want's to consume the source in another way then just executing it. - * If so, put the source to the drain and emit a signal to notify the consumer, whoever this may be. + * Check if there's a "source drain", which wants to consume the source in another way then just executing it. + * If so, put the source to the drain and emit a signal to notify the consumer, whomever this may be. */ if (this->_sourceDrain) { diff --git a/src/Gui/TaskView/TaskView.h b/src/Gui/TaskView/TaskView.h index 7491d6e8d9..621482ebfb 100644 --- a/src/Gui/TaskView/TaskView.h +++ b/src/Gui/TaskView/TaskView.h @@ -201,7 +201,7 @@ protected: void removeTaskWatcher(void); /// update the visibility of the TaskWatcher accordant to the selection void updateWatcher(void); - /// used by Gui::Contol to register Dialogs + /// used by Gui::Control to register Dialogs void showDialog(TaskDialog *dlg); // removes the running dialog after accept() or reject() from the TaskView void removeDialog(void); diff --git a/src/Gui/View3DInventorRiftViewer.cpp b/src/Gui/View3DInventorRiftViewer.cpp index 40f4a30f4f..9718d497ec 100644 --- a/src/Gui/View3DInventorRiftViewer.cpp +++ b/src/Gui/View3DInventorRiftViewer.cpp @@ -52,7 +52,7 @@ View3DInventorRiftViewer::View3DInventorRiftViewer() : CoinRiftWidget() scale = new SoScale ; - scale->scaleFactor.setValue(0.001f,0.001f,0.001f); // scale from mm to m as neede by the Rift + scale->scaleFactor.setValue(0.001f,0.001f,0.001f); // scale from mm to m as needed by the Rift workplace->addChild(scale); ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Oculus"); diff --git a/src/Mod/Assembly/Gui/ViewProviderConstraint.h b/src/Mod/Assembly/Gui/ViewProviderConstraint.h index a0ca36a56b..a5d99e976a 100644 --- a/src/Mod/Assembly/Gui/ViewProviderConstraint.h +++ b/src/Mod/Assembly/Gui/ViewProviderConstraint.h @@ -32,7 +32,7 @@ namespace AssemblyGui { -//class for internal use to alllow access to protected functions of view provider part. +//class for internal use to allow access to protected functions of view provider part. class AssemblyGuiExport ViewProviderConstraintInternal : public PartGui::ViewProviderPart { PROPERTY_HEADER(AssemblyGui::ViewProviderConstraintInternal); diff --git a/src/Mod/Draft/DraftTools.py b/src/Mod/Draft/DraftTools.py index 42d410c670..e1ba0f341e 100644 --- a/src/Mod/Draft/DraftTools.py +++ b/src/Mod/Draft/DraftTools.py @@ -277,7 +277,7 @@ class DraftTool: self.commitList.append((name,func)) def getStrings(self,addrot=None): - "returns a couple of useful strings fro building python commands" + "returns a couple of useful strings for building python commands" # current plane rotation p = plane.getRotation() diff --git a/src/Mod/Import/App/SCL/Builtin.py b/src/Mod/Import/App/SCL/Builtin.py index e0a20e0b80..67f5900078 100644 --- a/src/Mod/Import/App/SCL/Builtin.py +++ b/src/Mod/Import/App/SCL/Builtin.py @@ -580,7 +580,7 @@ def SQRT(V): # =================== #15.24 Tan - arithmetic function #FUNCTION TAN ( V:NUMBER ) : REAL; -#The tan function returns the tangent of of an angle. +#The tan function returns the tangent of an angle. #Parameters : V is a number representing an angle expressed in radians. #Result : The tangent of the angle. If the angle is npi/2, where n is an odd integer, indeterminate #(?) is returned. diff --git a/src/Mod/OpenSCAD/OpenSCAD2Dgeom.py b/src/Mod/OpenSCAD/OpenSCAD2Dgeom.py index e7a9ca256a..9edc96bb67 100644 --- a/src/Mod/OpenSCAD/OpenSCAD2Dgeom.py +++ b/src/Mod/OpenSCAD/OpenSCAD2Dgeom.py @@ -276,9 +276,9 @@ def findConnectedEdges(edgelist,eps=1e-6,debug=False): return retlist def endpointdistance(edges): - '''return the distance of of vertices in path (list of edges) as + '''return the distance of vertices in path (list of edges) as maximum, minimum and distance between start and endpoint - it expects the edges to be traversed forward from starting from Vertex 0''' + it expects the edges to be traversed forward starting from Vertex 0''' numedges=len(edges) if numedges == 1 and len(edges[0].Vertexes) == 1: return 0.0,0.0,0.0 @@ -292,9 +292,9 @@ def endpointdistance(edges): return 0.0,0.0,outerdistance def endpointdistancedebuglist(debuglist): - '''return the distance of of vertices in path (list of edges) as + '''return the distance of vertices in path (list of edges) as maximum, minimum and distance between start and endpoint - it it expects a 'not reversed' flag for every edge''' + it expects a 'not reversed' flag for every edge''' numedges=len(debuglist) if numedges == 1 and len(debuglist[0][0].Vertexes) == 1: return 0.0,0.0,0.0 diff --git a/src/Mod/Part/App/Attacher.cpp b/src/Mod/Part/App/Attacher.cpp index f12190cbfa..d11a119ffd 100644 --- a/src/Mod/Part/App/Attacher.cpp +++ b/src/Mod/Part/App/Attacher.cpp @@ -1302,7 +1302,7 @@ Base::Placement AttachEngine3D::calculateAttachedPlacement(Base::Placement origP case mmFrenetTB: if (N.Magnitude() == 0.0) throw Base::ValueError("AttachEngine3D::calculateAttachedPlacement: Frenet-Serret normal is undefined. Can't align to TB plane."); - SketchNormal = N.Reversed();//it is more convenient to sketch on something looking it it so it is convex. + SketchNormal = N.Reversed();//it is more convenient to sketch on something looking at it so it is convex. SketchXAxis = T; break; default: diff --git a/src/Mod/Part/App/TopologyPy.h b/src/Mod/Part/App/TopologyPy.h index 33a8241ea6..070a197e5b 100644 --- a/src/Mod/Part/App/TopologyPy.h +++ b/src/Mod/Part/App/TopologyPy.h @@ -52,7 +52,7 @@ protected: public: - /// Constructer + /// Constructor TopoShapePyOld(PyTypeObject *T = &Type); TopoShapePyOld(const TopoDS_Shape &cShape, PyTypeObject *T = &TopoShapePyOld::Type); /// for Construction in python diff --git a/src/Mod/Part/Gui/TaskDimension.h b/src/Mod/Part/Gui/TaskDimension.h index 9557df7b7c..8723b11fcb 100644 --- a/src/Mod/Part/Gui/TaskDimension.h +++ b/src/Mod/Part/Gui/TaskDimension.h @@ -63,7 +63,7 @@ namespace PartGui */ bool getShapeFromStrings(TopoDS_Shape &shapeOut, const std::string &doc, const std::string &object, const std::string &sub); /*!examine pre selection - * @param shape1 firt shape in current selection + * @param shape1 first shape in current selection * @param shape2 second shape in current selection * @return signal if preselection is valid. false means shape1 and shape2 are invalid. */ @@ -349,7 +349,7 @@ private: /*!start of the measure angular command*/ void goDimensionAngularRoot(); /*!examine angular pre selection - * @param vector1Out firt shape in current selection + * @param vector1Out first shape in current selection * @param vector2Out second shape in current selection * @return signal if preselection is valid. false means vector1Out and vector2Out are invalid. */ diff --git a/src/Mod/PartDesign/Gui/ViewProviderBody.cpp b/src/Mod/PartDesign/Gui/ViewProviderBody.cpp index 56cb0525ed..43ab901a77 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderBody.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderBody.cpp @@ -111,7 +111,7 @@ void ViewProviderBody::setDisplayMode(const char* ModeName) { //if we show "Through" we must avoid to set the display mask modes, as this would result //in going into "tip" mode. When through is chosen the child features are displayed, and all - //we need to ensure is that the display mode change is propagated to them fro within the + //we need to ensure is that the display mode change is propagated to them from within the //onChanged() method. if(DisplayModeBody.getValue() == 1) PartGui::ViewProviderPartExt::setDisplayMode(ModeName); diff --git a/src/Mod/Robot/App/RobotAlgos.cpp b/src/Mod/Robot/App/RobotAlgos.cpp index df1442147b..cabcc4bbbc 100644 --- a/src/Mod/Robot/App/RobotAlgos.cpp +++ b/src/Mod/Robot/App/RobotAlgos.cpp @@ -108,7 +108,7 @@ void RobotAlgos::Test(void) kinematics_status = fksolver.JntToCart(jointpositions,cartpos); if(kinematics_status>=0){ std::cout << cartpos <