Misc. typo fix

Found via `codespell`
This commit is contained in:
luz.paz
2018-10-10 14:54:11 -04:00
committed by luz paz
parent f6e9faa62c
commit 125f41e3e8
8 changed files with 33 additions and 32 deletions

View File

@@ -399,7 +399,7 @@ void PropertyExpressionEngine::setValue(const ObjectIdentifier & path, boost::sh
ExpressionMap::iterator it = expressions.find(usePath);
if(it != expressions.end() && expr == it->second.expression)
return;
if (expr) {
std::string error = validateExpression(usePath, expr);
@@ -565,7 +565,7 @@ std::vector<App::ObjectIdentifier> PropertyExpressionEngine::computeEvaluationOr
}
/**
* @brief Compute and update values of all registered experssions.
* @brief Compute and update values of all registered expressions.
* @return StdReturn on success.
*/
@@ -864,9 +864,9 @@ void PropertyExpressionEngine::renameExpressions(const std::map<ObjectIdentifier
aboutToSetValue();
expressions = newExpressions;
for (ExpressionMap::const_iterator i = expressions.begin(); i != expressions.end(); ++i)
for (ExpressionMap::const_iterator i = expressions.begin(); i != expressions.end(); ++i)
expressionChanged(i->first);
hasSetValue();
}

View File

@@ -51,7 +51,7 @@ class AppExport PropertyExpressionEngine : public App::Property, private App::At
public:
typedef boost::function<std::string (const App::ObjectIdentifier & path, boost::shared_ptr<const App::Expression> expr)> ValidatorFunc;
/**
* @brief The ExpressionInfo struct encapsulates an expression and a comment.
*/
@@ -123,9 +123,9 @@ public:
void slotObjectRenamed(const App::DocumentObject & obj);
void slotObjectDeleted(const DocumentObject &obj);
///signal called when a expression was changed
boost::signal<void (const App::ObjectIdentifier &)> expressionChanged;
///signal called when an expression was changed
boost::signal<void (const App::ObjectIdentifier &)> expressionChanged;
void onDocumentRestored();

View File

@@ -21,7 +21,7 @@
#* *
#***************************************************************************
__title__="FreeCAD Arch API"
__title__= "FreeCAD Arch API"
__author__ = "Yorik van Havre"
__url__ = "http://www.freecadweb.org"
@@ -30,7 +30,7 @@ __url__ = "http://www.freecadweb.org"
# \brief Architecture and BIM tools
#
# This module provides tools specialized in Building Information Modeling (BIM).
# such as convenience tools to build walls, windows or structures, and
# such as convenience tools to build walls, windows or structures, and
# IFC import/export capabilities.
'''The Arch module provides tools specialized in BIM modeling.'''

View File

@@ -20,7 +20,7 @@
#* *
#***************************************************************************
__title__="FreeCAD Precast concrete module"
__title__= "FreeCAD Precast concrete module"
__author__ = "Yorik van Havre"
__url__ = "http://www.freecadweb.org"
@@ -1380,7 +1380,7 @@ class _DentsTaskPanel:
def makePrecast(precasttype=None,length=0,width=0,height=0,slabtype="",chamfer=0,dentlength=0,dentwidth=0,dentheight=0,dents=[],base=0,holenumber=0,holemajor=0,holeminor=0,holespacing=0,groovenumber=0,groovedepth=0,grooveheight=0,groovespacing=0,risernumber=0,downlength=0,riser=0,tread=0):
"creates one of the precast objects in the current document"
"Creates one of the precast objects in the current document"
if precasttype == "Beam":
obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython","Beam")
@@ -1449,4 +1449,3 @@ def makePrecast(precasttype=None,length=0,width=0,height=0,slabtype="",chamfer=0
if FreeCAD.GuiUp:
_ViewProviderPrecast(obj.ViewObject)
return obj

View File

@@ -21,6 +21,18 @@
#* *
#***************************************************************************
__title__= "FreeCAD Profile"
__author__ = "Yorik van Havre"
__url__ = "http://www.freecadweb.org"
## @package ArchProfile
# \ingroup ARCH
# \brief Profile tools for ArchStructure
#
# This module provides tools to build base profiles
# for Arch Structure elements
import FreeCAD, Draft, os
from FreeCAD import Vector
import csv
@@ -38,16 +50,6 @@ else:
return txt
# \endcond
## @package ArchProfile
# \ingroup ARCH
# \brief Profile tools for ArchStructure
#
# This module provides tools to build base profiles
# for Arch Structure elements
__title__="FreeCAD Profile"
__author__ = "Yorik van Havre"
__url__ = "http://www.freecadweb.org"
# Presets in the form: Class, Name, Profile type, [profile data]
# Search for profiles.csv in data/Mod/Arch/Presets and in the same folder as this file

View File

@@ -68,7 +68,7 @@ class _PropertyEditor(object):
pass
class _PropertyEnumEditor(_PropertyEditor):
'''Editor for enumation values - uses a combo box.'''
'''Editor for enumeration values - uses a combo box.'''
def widget(self, parent):
PathLog.track(self.prop.name, self.prop.getEnumValues())
@@ -194,4 +194,3 @@ def Editor(prop):
if factory:
return factory(prop)
return None

View File

@@ -1151,11 +1151,12 @@ int SketchObject::transferConstraints(int fromGeoId, PointPos fromPosId, int toG
if(vals[i]->Type == Sketcher::Tangent || vals[i]->Type == Sketcher::Perpendicular){
constNew->Type = Sketcher::Coincident;
}
// with respect to angle constraints, if it is a DeepSOIC style angle constraint (segment+segment+point), then no problem arises
// as the segments are PosId=none. In this case there is not call to this function.
// With respect to angle constraints, if it is a DeepSOIC style angle constraint (segment+segment+point),
// then no problem arises as the segments are PosId=none. In this case there is no call to this function.
//
// However, other angle constraints are problematic because they are created on segments, but internally operate on vertices, PosId=start
// such constraint may not be succesfully transfered on deletion of the segments.
// However, other angle constraints are problematic because they are created on segments, but internally
// operate on vertices, PosId=start
// Such constraint may not be successfully transferred on deletion of the segments.
else if(vals[i]->Type == Sketcher::Angle) {
continue;
}

View File

@@ -473,14 +473,14 @@ def handle():
Start.tempfolder = tempfolder
# make sure we are always returning unicode
# HTML should be a str-object and therefor:
# HTML should be a str-object and therefore:
# - for py2 HTML is a bytes object and has to be decoded to unicode
# - for py3 HTML is already a unicode object and the next 2 lines can be removed
# once py2-support is removed.
# once py2-support is removed.
if isinstance(HTML, bytes):
HTML = HTML.decode("utf8")
return HTML