From a225b13befc99cf8ff4c3cc1ee1fa0537ffae482 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Wed, 22 Nov 2017 10:12:46 -0500 Subject: [PATCH] Misc. typos - Tooltip uniformity - source comment typo fixes - remove double whitespaces --- src/App/DocumentObjectExtension.h | 2 +- src/App/Extension.h | 14 +++++++------- src/Base/Parameter.cpp | 2 +- src/Gui/Document.cpp | 2 +- src/Gui/Document.h | 4 ++-- src/Gui/GestureNavigationStyle.cpp | 2 +- src/Gui/Splashscreen.h | 2 +- src/Gui/ViewProvider.cpp | 2 +- src/Gui/WaitCursor.h | 2 +- src/Gui/lex.SelectionFilter.c | 8 ++++---- src/Mod/Arch/ArchAxis.py | 4 ++-- src/Mod/Assembly/App/AppAssembly.cpp | 2 +- src/Mod/Assembly/Gui/ViewProviderConstraint.cpp | 4 ++-- src/Mod/Cam/App/AppCam.cpp | 2 +- src/Mod/Cam/App/BRepAdaptor_CompCurve2.h | 8 ++++---- src/Mod/Cam/App/cutting_tools.cpp | 12 ++++++------ src/Mod/Cam/Gui/AppCamGui.cpp | 2 +- src/Mod/JtReader/App/AppJtReader.cpp | 2 +- src/Mod/Part/Gui/Command.cpp | 2 +- src/Mod/Path/PathScripts/PathDressupTag.py | 2 +- src/Mod/Robot/RobotExample.py | 6 +++--- src/Mod/Ship/shipOutlineDraw/Preview.py | 2 +- 22 files changed, 44 insertions(+), 44 deletions(-) diff --git a/src/App/DocumentObjectExtension.h b/src/App/DocumentObjectExtension.h index ece396d1d4..248ee119cd 100644 --- a/src/App/DocumentObjectExtension.h +++ b/src/App/DocumentObjectExtension.h @@ -48,7 +48,7 @@ public: App::DocumentObject* getExtendedObject(); const App::DocumentObject* getExtendedObject() const; - //override if execution is nesseccary + //override if execution is necessary virtual short extensionMustExecute(void); virtual App::DocumentObjectExecReturn *extensionExecute(void); diff --git a/src/App/Extension.h b/src/App/Extension.h index ad764d6c88..dceaba443a 100644 --- a/src/App/Extension.h +++ b/src/App/Extension.h @@ -63,7 +63,7 @@ void * _class_::create(void){\ return new _class_ ();\ } -/// define to implement a subclass of Base::BaseClass +/// define to implement a subclass of Base::BaseClass #define EXTENSION_TYPESYSTEM_SOURCE_ABSTRACT_P(_class_) \ Base::Type _class_::getExtensionClassTypeId(void) { return _class_::classTypeId; } \ Base::Type _class_::getExtensionTypeId(void) const { return _class_::classTypeId; } \ @@ -155,7 +155,7 @@ template<> void _class_::init(void){\ * The special python extension type created above is important, as only those python extensions * can be added to an object from python. It does not work to add the c++ version directly there. * - * Note that every method of the extension becomes part of the extendded object when added from c++. + * Note that every method of the extension becomes part of the extended object when added from c++. * This means one should carefully design the API and make only necessary methods public or protected. * Every internal method should be private. * @@ -210,7 +210,7 @@ template<> void _class_::init(void){\ * }; * @endcode * @Note As seen in the code there are multiple helper macros to ease the repetitive work of querying - * and calling methods of the proxy object. See the maco documentation for howto use them. + * and calling methods of the proxy object. See the macro documentation for how to use them. * * To ensure that your wrapper is used when a extension is created from python the extension type must * be exposed as follows: @@ -218,8 +218,8 @@ template<> void _class_::init(void){\ * typedef ExtensionPythonT> MyExtensionPython; * @endcode * - * This boilerplate is absolutely nesseccary to allow overridable methods in python and it is the - * exension creators responsibility to ensure full implementation. + * This boilerplate is absolutely necessary to allow overridable methods in python and it is the + * extension creator's responsibility to ensure full implementation. * */ class AppExport Extension @@ -315,8 +315,8 @@ private: /** - * Generic Python extension class which allows to behave every extension - * derived class as Python extension -- simply by subclassing. + * Generic Python extension class which allows every extension derived + * class to behave as a Python extension -- simply by subclassing. */ template class ExtensionPythonT : public ExtensionT diff --git a/src/Base/Parameter.cpp b/src/Base/Parameter.cpp index 93341eae4b..b344774417 100644 --- a/src/Base/Parameter.cpp +++ b/src/Base/Parameter.cpp @@ -151,7 +151,7 @@ public: }; private: - // unimplemented copy ctor and assignement operator + // unimplemented copy ctor and assignment operator DOMPrintFilter(const DOMPrintFilter&); DOMPrintFilter & operator = (const DOMPrintFilter&); diff --git a/src/Gui/Document.cpp b/src/Gui/Document.cpp index 3519770198..9a143dbf0c 100644 --- a/src/Gui/Document.cpp +++ b/src/Gui/Document.cpp @@ -1161,7 +1161,7 @@ void Document::detachView(Gui::BaseView* pcView, bool bPassiv) it = d->passiveViews.begin(); } - // is already closing the document + // is already closing the document if (d->_isClosing == false) d->_pcAppWnd->onLastWindowClosed(this); } diff --git a/src/Gui/Document.h b/src/Gui/Document.h index 40d09bb399..1af6b39b77 100644 --- a/src/Gui/Document.h +++ b/src/Gui/Document.h @@ -236,9 +236,9 @@ public: std::vector getUndoVector(void) const; /// Get an Redo string vector with the Redo names std::vector getRedoVector(void) const; - /// Will UNDO one or more steps + /// Will UNDO one or more steps void undo(int iSteps); - /// Will REDO one or more steps + /// Will REDO one or more steps void redo(int iSteps) ; //@} diff --git a/src/Gui/GestureNavigationStyle.cpp b/src/Gui/GestureNavigationStyle.cpp index 13ad7e7680..5ed95bf53a 100644 --- a/src/Gui/GestureNavigationStyle.cpp +++ b/src/Gui/GestureNavigationStyle.cpp @@ -272,7 +272,7 @@ SbBool GestureNavigationStyle::processSoEvent(const SoEvent * const ev) //----------all this were preparations. Now comes the event handling! ---------- - SbBool processed = false;//a return value for the BlahblahblahNavigationStyle::processSoEvent + SbBool processed = false;//a return value for the BlahblahblahNavigationStyle::processSoEvent bool propagated = false;//an internal flag indicating that the event has been already passed to inherited, to suppress the automatic doing of this at the end. //goto finalize = return processed. Might be important to do something before done (none now). diff --git a/src/Gui/Splashscreen.h b/src/Gui/Splashscreen.h index e31d7d0811..e36910d6ac 100644 --- a/src/Gui/Splashscreen.h +++ b/src/Gui/Splashscreen.h @@ -31,7 +31,7 @@ namespace Gui { class SplashObserver; -/** This widget provides a splash screen that can be shown during application startup. +/** This widget provides a splash screen that can be shown during application startup. * * \author Werner Mayer */ diff --git a/src/Gui/ViewProvider.cpp b/src/Gui/ViewProvider.cpp index fdd4c5f7fa..b76e34eedf 100644 --- a/src/Gui/ViewProvider.cpp +++ b/src/Gui/ViewProvider.cpp @@ -532,7 +532,7 @@ SoPickedPoint* ViewProvider::getPointOnRay(const SbVec2s& pos, const View3DInven SoPickedPoint* ViewProvider::getPointOnRay(const SbVec3f& pos,const SbVec3f& dir, const View3DInventorViewer* viewer) const { - // Note: There seems to be a bug with setRay() which causes SoRayPickAction + // Note: There seems to be a bug with setRay() which causes SoRayPickAction // to fail to get intersections between the ray and a line //first get the path to this node and calculate the current setTransformation diff --git a/src/Gui/WaitCursor.h b/src/Gui/WaitCursor.h index 3c194659f1..3761f89562 100644 --- a/src/Gui/WaitCursor.h +++ b/src/Gui/WaitCursor.h @@ -29,7 +29,7 @@ namespace Gui { /** - * This class sets a waitcursor automatically while a slow operation is running. + * This class sets a waitcursor automatically while a slow operation is running. * Therefore you just have to create an instance of WaitCursor before the time * consuming operation starts. * diff --git a/src/Gui/lex.SelectionFilter.c b/src/Gui/lex.SelectionFilter.c index 7a5af02755..f1e4160613 100644 --- a/src/Gui/lex.SelectionFilter.c +++ b/src/Gui/lex.SelectionFilter.c @@ -33,7 +33,7 @@ #define FLEX_BETA #endif -/* First, we deal with platform-specific or compiler-specific issues. */ +/* First, we deal with platform-specific or compiler-specific issues. */ /* begin standard C headers. */ #include @@ -622,7 +622,7 @@ static int input (void ); #define ECHO do { if (fwrite( SelectionFiltertext, SelectionFilterleng, 1, SelectionFilterout )) {} } while (0) #endif -/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, +/* Gets input and stuffs it into "buf". Number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT @@ -1639,10 +1639,10 @@ static void yy_fatal_error (yyconst char* msg ) } \ while ( 0 ) -/* Accessor methods (get/set functions) to struct members. */ +/* Accessor methods (get/set functions) to struct members. */ /** Get the current line number. - * + * */ int SelectionFilterget_lineno (void) { diff --git a/src/Mod/Arch/ArchAxis.py b/src/Mod/Arch/ArchAxis.py index 542bcbfd5e..2c02f4248a 100644 --- a/src/Mod/Arch/ArchAxis.py +++ b/src/Mod/Arch/ArchAxis.py @@ -101,7 +101,7 @@ class _CommandAxis: return {'Pixmap' : 'Arch_Axis', 'MenuText': QT_TRANSLATE_NOOP("Arch_Axis","Axis"), 'Accel': "A, X", - 'ToolTip': QT_TRANSLATE_NOOP("Arch_Axis","Creates a set of axes.")} + 'ToolTip': QT_TRANSLATE_NOOP("Arch_Axis","Creates a set of axes")} def Activated(self): FreeCAD.ActiveDocument.openTransaction(translate("Arch","Create Axis")) @@ -120,7 +120,7 @@ class _CommandAxisSystem: return {'Pixmap' : 'Arch_Axis_System', 'MenuText': QT_TRANSLATE_NOOP("Arch_AxisSystem","Axis System"), 'Accel': "X, S", - 'ToolTip': QT_TRANSLATE_NOOP("Arch_AxisSystem","Creates an axis system from a set of axes.")} + 'ToolTip': QT_TRANSLATE_NOOP("Arch_AxisSystem","Creates an axis system from a set of axes")} def Activated(self): if FreeCADGui.Selection.getSelection(): diff --git a/src/Mod/Assembly/App/AppAssembly.cpp b/src/Mod/Assembly/App/AppAssembly.cpp index 899a8dbc04..89292fd4a5 100644 --- a/src/Mod/Assembly/App/AppAssembly.cpp +++ b/src/Mod/Assembly/App/AppAssembly.cpp @@ -48,7 +48,7 @@ PyDoc_STRVAR(module_Assembly_doc, extern "C" { void AssemblyExport initAssembly() { - // load dependend module + // load dependent module try { Base::Interpreter().runString("import Part"); //Base::Interpreter().runString("import PartDesign"); diff --git a/src/Mod/Assembly/Gui/ViewProviderConstraint.cpp b/src/Mod/Assembly/Gui/ViewProviderConstraint.cpp index 87518db9b5..8c5a0a12a4 100644 --- a/src/Mod/Assembly/Gui/ViewProviderConstraint.cpp +++ b/src/Mod/Assembly/Gui/ViewProviderConstraint.cpp @@ -44,7 +44,7 @@ PROPERTY_SOURCE(AssemblyGui::ViewProviderConstraintInternal, PartGui::ViewProvid ViewProviderConstraintInternal::ViewProviderConstraintInternal() { - //constraint entiti color + //constraint entity color ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View"); unsigned long scol = hGrp->GetUnsigned("ConstructionColor", 56319UL); float r, g, b; @@ -294,7 +294,7 @@ void ViewProviderConstraint::draw() if(!obj2) return; - //here it's a bit more involved, as the coind tree structure let's the first transform node + //here it's a bit more involved, as the coind tree structure let's the first transform node //transform the second part too. Assembly::PartRef* part2 = static_cast(obj2); diff --git a/src/Mod/Cam/App/AppCam.cpp b/src/Mod/Cam/App/AppCam.cpp index 97699d4c58..9e4d09c321 100644 --- a/src/Mod/Cam/App/AppCam.cpp +++ b/src/Mod/Cam/App/AppCam.cpp @@ -39,7 +39,7 @@ extern "C" { void CamExport initCam() { - // load dependend module + // load dependent module try { Base::Interpreter().loadModule("Part"); Base::Interpreter().loadModule("Mesh"); diff --git a/src/Mod/Cam/App/BRepAdaptor_CompCurve2.h b/src/Mod/Cam/App/BRepAdaptor_CompCurve2.h index 9751123794..b43013dc53 100644 --- a/src/Mod/Cam/App/BRepAdaptor_CompCurve2.h +++ b/src/Mod/Cam/App/BRepAdaptor_CompCurve2.h @@ -120,13 +120,13 @@ public: Standard_EXPORT BRepAdaptor_CompCurve2(const TopoDS_Wire& W,const Standard_Boolean KnotByCurvilinearAbcissa = Standard_False); -//! Creates a Curve to access to the geometry of edge \p W. +//! Creates a Curve to access to the geometry of edge \p W. Standard_EXPORT BRepAdaptor_CompCurve2(const TopoDS_Wire& W,const Standard_Boolean KnotByCurvilinearAbcissa,const Standard_Real First,const Standard_Real Last,const Standard_Real Tol); -//! Sets the wire \p W. +//! Sets the wire \p W. Standard_EXPORT void Initialize(const TopoDS_Wire& W,const Standard_Boolean KnotByCurvilinearAbcissa) ; -//! Sets wire \p W and trimmed parameter. +//! Sets wire \p W and trimmed parameter. Standard_EXPORT void Initialize(const TopoDS_Wire& W,const Standard_Boolean KnotByCurvilinearAbcissa,const Standard_Real First,const Standard_Real Last,const Standard_Real Tol) ; //! Set the flag Periodic.
@@ -155,7 +155,7 @@ public: //! Stores in \ the parameters bounding the intervals of continuity \.
-//! The array must provide enough room to accommodate for the parameters. +//! The array must provide enough room to accommodate for the parameters. //! i.e. T.Length() > NbIntervals() Standard_EXPORT void Intervals(TColStd_Array1OfReal& T,const GeomAbs_Shape S) ; diff --git a/src/Mod/Cam/App/cutting_tools.cpp b/src/Mod/Cam/App/cutting_tools.cpp index 8697391caf..fb42e3afca 100644 --- a/src/Mod/Cam/App/cutting_tools.cpp +++ b/src/Mod/Cam/App/cutting_tools.cpp @@ -2198,7 +2198,7 @@ bool cutting_tools::OffsetWires_Spiral() } } - //now we know where to start at our PointCloud, its the index t + //now we know where to start at our PointCloud, it's the index t //Calculate the Slave Toolpath for the current flat area if (!slave_done)//if we did not calculate the slave toolpath for the current flat area @@ -2256,7 +2256,7 @@ bool cutting_tools::OffsetWires_Spiral() //direction_vector.SetZ(0.0); direction_vector.Normalize(); direction_vector.Multiply(1.0); //Zum testen bauen wir keinen Offset ein - //switch the Spiral-direction if the clockwise flag is checked and the + //switch the Spiral-direction if the clockwise flag is checked and the //angle between the last and current round is more then 90° double angle = direction_vector.Angle(last_direction_vector); if (m_UserSettings.clockwise && angle<(D_PI*0.5)) @@ -2374,7 +2374,7 @@ bool cutting_tools::OffsetWires_Spiral() continue; } //We switch to the end and skip the last point - //as its the same as the point at j=0; + //as it's the same as the point at j=0; j=j-2;//As the for puts +1 for each step } } @@ -2514,7 +2514,7 @@ bool cutting_tools::OffsetWires_Spiral() } } - //now we know where to start at our PointCloud, its the index t + //now we know where to start at our PointCloud, it's the index t //Calculate the Slave Toolpath for the current flat area if (!slave_done)//if we did not calculate the slave toolpath for the current flat area @@ -2559,7 +2559,7 @@ bool cutting_tools::OffsetWires_Spiral() //direction_vector.SetZ(0.0); direction_vector.Normalize(); direction_vector.Multiply(10.0); - //switch the Spiral-direction if the clockwise flag is checked and the + //switch the Spiral-direction if the clockwise flag is checked and the //angle between the last and current round is more then 90° double angle = direction_vector.Angle(last_direction_vector); @@ -2677,7 +2677,7 @@ bool cutting_tools::OffsetWires_Spiral() continue; } //We switch to the end and skip the last point - //as its the same as the point at j=0; + //as it's the same as the point at j=0; j=j-2;//As the for puts +1 for each step } } diff --git a/src/Mod/Cam/Gui/AppCamGui.cpp b/src/Mod/Cam/Gui/AppCamGui.cpp index 542fd8cab7..749574eb6e 100644 --- a/src/Mod/Cam/Gui/AppCamGui.cpp +++ b/src/Mod/Cam/Gui/AppCamGui.cpp @@ -55,7 +55,7 @@ extern "C" return; } - // load dependend module + // load dependent module try { Base::Interpreter().loadModule("Cam"); } diff --git a/src/Mod/JtReader/App/AppJtReader.cpp b/src/Mod/JtReader/App/AppJtReader.cpp index 3badf0ecf9..f407480f1e 100644 --- a/src/Mod/JtReader/App/AppJtReader.cpp +++ b/src/Mod/JtReader/App/AppJtReader.cpp @@ -39,7 +39,7 @@ void AppJtReaderExport initJtReader() { (void) Py_InitModule("JtReader", JtReader_methods); /* mod name, table ptr */ - // load dependend module + // load dependent module Base::Interpreter().loadModule("Mesh"); // Initialize JtTk diff --git a/src/Mod/Part/Gui/Command.cpp b/src/Mod/Part/Gui/Command.cpp index 7be9dbf6e9..c5176db318 100644 --- a/src/Mod/Part/Gui/Command.cpp +++ b/src/Mod/Part/Gui/Command.cpp @@ -1210,7 +1210,7 @@ CmdPartMakeFace::CmdPartMakeFace() sAppModule = "Part"; sGroup = QT_TR_NOOP("Part"); sMenuText = QT_TR_NOOP("Make face from wires"); - sToolTipText = QT_TR_NOOP("Part_MakeFace: Make face from set of wires (e.g., from a sketch)."); + sToolTipText = QT_TR_NOOP("Part_MakeFace: Make face from set of wires (e.g. from a sketch)"); sWhatsThis = "Part_MakeFace"; sStatusTip = sToolTipText; } diff --git a/src/Mod/Path/PathScripts/PathDressupTag.py b/src/Mod/Path/PathScripts/PathDressupTag.py index 7650130025..d794ec65ac 100644 --- a/src/Mod/Path/PathScripts/PathDressupTag.py +++ b/src/Mod/Path/PathScripts/PathDressupTag.py @@ -117,7 +117,7 @@ class ObjectDressup: obj.addProperty('App::PropertyLength', 'Height', 'Tag', QtCore.QT_TRANSLATE_NOOP('PathDressup_Tag', 'Height of tags.')) obj.addProperty('App::PropertyAngle', 'Angle', 'Tag', QtCore.QT_TRANSLATE_NOOP('PathDressup_Tag', 'Angle of tag plunge and ascent.')) obj.addProperty('App::PropertyLength', 'Radius', 'Tag', QtCore.QT_TRANSLATE_NOOP('PathDressup_Tag', 'Radius of the fillet for the tag.')) - obj.addProperty('App::PropertyVectorList', 'Positions', 'Tag', QtCore.QT_TRANSLATE_NOOP('PathDressup_Tag', 'Locations of interted holding tags')) + obj.addProperty('App::PropertyVectorList', 'Positions', 'Tag', QtCore.QT_TRANSLATE_NOOP('PathDressup_Tag', 'Locations of inserted holding tags')) obj.addProperty('App::PropertyIntegerList', 'Disabled', 'Tag', QtCore.QT_TRANSLATE_NOOP('PathDressup_Tag', 'IDs of disabled holding tags')) obj.addProperty('App::PropertyInteger', 'SegmentationFactor', 'Tag', QtCore.QT_TRANSLATE_NOOP('PathDressup_Tag', 'Factor determining the # of segments used to approximate rounded tags.')) diff --git a/src/Mod/Robot/RobotExample.py b/src/Mod/Robot/RobotExample.py index 54bbbf86f2..d048f21ea0 100644 --- a/src/Mod/Robot/RobotExample.py +++ b/src/Mod/Robot/RobotExample.py @@ -1,5 +1,5 @@ # Example how to use the basic robot class Robot6Axis which represent a 6-Axis -# industrial robot. The Robot Module is dependend on Part but nor on other Modules. +# industrial robot. The Robot Module is dependent on Part but not on other Modules. # It works mostly with the basic types Placement, Vector and Matrix. So we need # only: from Robot import * @@ -56,7 +56,7 @@ del rob,Start,t,l,w # === working with the document === # # Working with the robot document objects: -# first creat a robot in the active document +# first create a robot in the active document if(App.activeDocument() == None):App.newDocument() App.activeDocument().addObject("Robot::RobotObject","Robot") @@ -96,7 +96,7 @@ print(App.activeDocument().Trajectory.Trajectory) # === Exporting the trajectory === # the Trajectory is exported by python. That means for every Control Cabinet type is a Post processor -# python module. Here is in detail the Kuka Postprocessor descriped +# python module. Here is in detail the Kuka Postprocessor described from KukaExporter import ExportCompactSub ExportCompactSub(App.activeDocument().Robot,App.activeDocument().Trajectory,tempfile.gettempdir()+'/TestOut.src') diff --git a/src/Mod/Ship/shipOutlineDraw/Preview.py b/src/Mod/Ship/shipOutlineDraw/Preview.py index f66a2c37e8..8beb69167d 100644 --- a/src/Mod/Ship/shipOutlineDraw/Preview.py +++ b/src/Mod/Ship/shipOutlineDraw/Preview.py @@ -122,7 +122,7 @@ class Preview(object): if bbox.YMin < -0.01 * B * Units.Metre.Value: del edges[k] sections.extend(edges) - # Trabform and join all the BSplines into a shape + # Transform and join all the B-splines into a shape if not sections: msg = QtGui.QApplication.translate( "ship_console",