From 0bafb04924a4e4e583d71911f38de940b388b514 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Sun, 24 Dec 2017 11:37:44 -0500 Subject: [PATCH] PartDesign: typos --- src/Mod/PartDesign/App/FeatureDressUp.h | 2 +- src/Mod/PartDesign/App/FeatureMirrored.h | 4 ++-- src/Mod/PartDesign/App/FeaturePolarPattern.h | 4 ++-- src/Mod/PartDesign/App/FeatureTransformed.cpp | 4 ++-- src/Mod/PartDesign/Gui/TaskFeaturePick.cpp | 2 +- src/Mod/PartDesign/Gui/Utils.cpp | 4 ++-- src/Mod/PartDesign/Gui/ViewProvider.h | 2 +- src/Mod/PartDesign/Gui/ViewProviderBody.cpp | 2 +- src/Mod/PartDesign/Scripts/Gear.py | 2 +- src/Mod/PartDesign/WizardShaft/Shaft.py | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Mod/PartDesign/App/FeatureDressUp.h b/src/Mod/PartDesign/App/FeatureDressUp.h index 449baca3ad..add36a884b 100644 --- a/src/Mod/PartDesign/App/FeatureDressUp.h +++ b/src/Mod/PartDesign/App/FeatureDressUp.h @@ -40,7 +40,7 @@ public: /** * Base feature and it's subelements to which dressup operation will be applied to. * Unlike Feature::BaseFeature it includes Sublinks and set not only inside a body. - * But for consistancy if BaseFeature is nonzero this links to the same body as it. + * But for consistency if BaseFeature is nonzero this links to the same body as it. */ App::PropertyLinkSub Base; diff --git a/src/Mod/PartDesign/App/FeatureMirrored.h b/src/Mod/PartDesign/App/FeatureMirrored.h index 02c57b50c4..cfa099d845 100644 --- a/src/Mod/PartDesign/App/FeatureMirrored.h +++ b/src/Mod/PartDesign/App/FeatureMirrored.h @@ -53,8 +53,8 @@ public: /** Create transformations * Returns a list containing one transformation since the first, untransformed instance * is not counted. The transformation will mirror the shape it is applied to on a plane - * If MirrorPlane contains a feature and an face name, then the mirror plane will be - * the the given face, which must be planar + * If MirrorPlane contains a feature and a face name, then the mirror plane will be + * the given face, which must be planar */ const std::list getTransformations(const std::vector); }; diff --git a/src/Mod/PartDesign/App/FeaturePolarPattern.h b/src/Mod/PartDesign/App/FeaturePolarPattern.h index 09d195c344..57b08e2857 100644 --- a/src/Mod/PartDesign/App/FeaturePolarPattern.h +++ b/src/Mod/PartDesign/App/FeaturePolarPattern.h @@ -61,8 +61,8 @@ public: * exception is Angle = 360 degrees in which case the transformation angle will be * (Angle / Occurrences) so that the last transformed shape is not identical with the original shape * If Axis contains a feature and an edge name, then the transformation axis will be - * the the given edge, which must be linear - * If Reversed is true, the direction of rotation will be opposite + * the given edge, which must be linear. + * If Reversed is true, the direction of rotation will be opposite. */ const std::list getTransformations(const std::vector); }; diff --git a/src/Mod/PartDesign/App/FeatureTransformed.cpp b/src/Mod/PartDesign/App/FeatureTransformed.cpp index 0c4aae8c0d..77a515ae0f 100644 --- a/src/Mod/PartDesign/App/FeatureTransformed.cpp +++ b/src/Mod/PartDesign/App/FeatureTransformed.cpp @@ -150,7 +150,7 @@ void Transformed::Restore(Base::XMLReader &reader) Base::Type inputType = Base::Type::fromName(TypeName); if (prop->getTypeId().isDerivedFrom(App::PropertyFloat::getClassTypeId()) && inputType.isDerivedFrom(App::PropertyFloat::getClassTypeId())) { - // Do not directly call the property's Restore method in case the implmentation + // Do not directly call the property's Restore method in case the implementation // has changed. So, create a temporary PropertyFloat object and assign the value. App::PropertyFloat floatProp; floatProp.Restore(reader); @@ -288,7 +288,7 @@ App::DocumentObjectExecReturn *Transformed::execute(void) // above you need: // 1. The original support // 2. Any extra support gained by any previous transformation of any previous feature (multi-feature transform) - // 3. Any extra support gained by any previous tranformation of this feature (feature multi-trasform) + // 3. Any extra support gained by any previous transformation of this feature (feature multi-trasform) // // Therefore, if the transformation succeeded, then we fuse it with the support now, before checking the intersection // of the next transformation. diff --git a/src/Mod/PartDesign/Gui/TaskFeaturePick.cpp b/src/Mod/PartDesign/Gui/TaskFeaturePick.cpp index f9b43fcf78..779a6c11c8 100644 --- a/src/Mod/PartDesign/Gui/TaskFeaturePick.cpp +++ b/src/Mod/PartDesign/Gui/TaskFeaturePick.cpp @@ -340,7 +340,7 @@ App::DocumentObject* TaskFeaturePick::makeCopy(App::DocumentObject* obj, std::st cprop->Paste(*prop); //we are a independent copy, therefore no external geometry was copied. WE therefore can delete all - //contraints + //constraints if(obj->isDerivedFrom(Sketcher::SketchObject::getClassTypeId())) static_cast(copy)->delConstraintsToExternal(); } diff --git a/src/Mod/PartDesign/Gui/Utils.cpp b/src/Mod/PartDesign/Gui/Utils.cpp index 0232506fac..ba51ed0491 100644 --- a/src/Mod/PartDesign/Gui/Utils.cpp +++ b/src/Mod/PartDesign/Gui/Utils.cpp @@ -199,7 +199,7 @@ void fixSketchSupport (Sketcher::SketchObject* sketch) const App::Document* doc = sketch->getDocument(); PartDesign::Body *body = getBodyFor(sketch, /*messageIfNot*/ 0); if (!body) { - throw Base::Exception ("Coudn't find body for the sketch"); + throw Base::Exception ("Couldn't find body for the sketch"); } // Get the Origin for the body @@ -322,7 +322,7 @@ void relinkToBody (PartDesign::Feature *feature) { PartDesign::Body *body = PartDesign::Body::findBodyOf ( feature ); if (!body) { - throw Base::Exception ("Coudn't find body for the feature"); + throw Base::Exception ("Couldn't find body for the feature"); } std::string bodyName = body->getNameInDocument (); diff --git a/src/Mod/PartDesign/Gui/ViewProvider.h b/src/Mod/PartDesign/Gui/ViewProvider.h index 3b53b0d84a..b176e20d0a 100644 --- a/src/Mod/PartDesign/Gui/ViewProvider.h +++ b/src/Mod/PartDesign/Gui/ViewProvider.h @@ -55,7 +55,7 @@ public: //viewprovider properties. void setBodyMode(bool bodymode); - //makes this viewprovider visible in the scene graph without chaning any properties, + //makes this viewprovider visible in the scene graph without changing any properties, //not the visibility one and also not the display mode. This can be used to show the //shape of this viewprovider from other viewproviders without doing anything to the //document and properties. diff --git a/src/Mod/PartDesign/Gui/ViewProviderBody.cpp b/src/Mod/PartDesign/Gui/ViewProviderBody.cpp index 03a3db6acd..893ccc36cd 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderBody.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderBody.cpp @@ -412,7 +412,7 @@ void ViewProviderBody::setVisualBodyMode(bool bodymode) { std::vector< std::string > ViewProviderBody::getDisplayModes(void) const { - //we get all dislay modes and remove the "Group" mode, as this is what we use for "Through" + //we get all display modes and remove the "Group" mode, as this is what we use for "Through" //body display mode std::vector< std::string > modes = ViewProviderPart::getDisplayModes(); modes.erase(modes.begin()); diff --git a/src/Mod/PartDesign/Scripts/Gear.py b/src/Mod/PartDesign/Scripts/Gear.py index 2846006799..d8b38893cf 100644 --- a/src/Mod/PartDesign/Scripts/Gear.py +++ b/src/Mod/PartDesign/Scripts/Gear.py @@ -95,7 +95,7 @@ def compute(): y=db/2*(math.sin(math.radians(t))-math.radians(t)*math.cos(math.radians(t))) involute.append(Part.Vertex(x,y,0).Point) -#************ Drawing rigth sides of teeth +#************ Drawing right sides of teeth involutesav.extend(involute) involutee.extend(involute) diff --git a/src/Mod/PartDesign/WizardShaft/Shaft.py b/src/Mod/PartDesign/WizardShaft/Shaft.py index c06174d777..2ca56eb9f1 100644 --- a/src/Mod/PartDesign/WizardShaft/Shaft.py +++ b/src/Mod/PartDesign/WizardShaft/Shaft.py @@ -43,7 +43,7 @@ class Shaft: wstr = ["", "wy", "wz"] # Translations sigmaNstr = ["sigmax","sigmay","sigmaz"] # Normal/shear stresses sigmaBstr = ["taut","sigmabz", "sigmaby"] # Torsion/bending stresses - # For diagram labelling + # For diagram labeling Qstrings = (("Normal force [x]", "x", "mm", "N_x", "N"), ("Shear force [y]", "x", "mm", "Q_y", "N"), ("Shear force [z]", "x", "mm", "Q_z", "N"))