Typos and whitespace fixes

This commit is contained in:
luz.paz
2018-08-06 08:47:24 -04:00
committed by luz paz
parent f991d89ec2
commit baa6d89328
24 changed files with 38 additions and 38 deletions

View File

@@ -438,7 +438,7 @@ void PropertyFileIncluded::Restore(Base::XMLReader &reader)
if (reader.hasAttribute("file")) {
string file (reader.getAttribute("file") );
if (!file.empty()) {
// initate a file read
// initiate a file read
reader.addFile(file.c_str(),this);
// is in the document transient path
aboutToSetValue();

View File

@@ -408,7 +408,7 @@ void PropertyVectorList::Restore(Base::XMLReader &reader)
std::string file (reader.getAttribute("file") );
if (!file.empty()) {
// initate a file read
// initiate a file read
reader.addFile(file.c_str(),this);
}
}
@@ -907,7 +907,7 @@ void PropertyPlacementList::Restore(Base::XMLReader &reader)
std::string file (reader.getAttribute("file") );
if (!file.empty()) {
// initate a file read
// initiate a file read
reader.addFile(file.c_str(),this);
}
}

View File

@@ -1370,7 +1370,7 @@ void PropertyFloatList::Restore(Base::XMLReader &reader)
string file (reader.getAttribute("file") );
if (!file.empty()) {
// initate a file read
// initiate a file read
reader.addFile(file.c_str(),this);
}
}
@@ -2608,7 +2608,7 @@ void PropertyColorList::Restore(Base::XMLReader &reader)
std::string file (reader.getAttribute("file"));
if (!file.empty()) {
// initate a file read
// initiate a file read
reader.addFile(file.c_str(),this);
}
}
@@ -2887,7 +2887,7 @@ void PropertyMaterialList::Restore(Base::XMLReader &reader)
std::string file(reader.getAttribute("file"));
if (!file.empty()) {
// initate a file read
// initiate a file read
reader.addFile(file.c_str(), this);
}
}

View File

@@ -183,7 +183,7 @@ void ToolBarManager::setup(ToolBarItem* toolBarItems)
int max_width = getMainWindow()->width();
int top_width = 0;
ParameterGrp::handle hPref = App::GetApplication().GetUserParameter().GetGroup("BaseApp")
->GetGroup("MainWindow")->GetGroup("Toolbars");
QList<ToolBarItem*> items = toolBarItems->getItems();
@@ -272,8 +272,8 @@ void ToolBarManager::setup(ToolBarItem* item, QToolBar* toolbar) const
// set the tool button user data
if (action) action->setData(QString::fromLatin1((*it)->command().c_str()));
} else {
// Note: For toolbars we do not remove and readd the actions
// because this causes flicker effects. So, it could happen that the order of
// Note: For toolbars we do not remove and re-add the actions
// because this causes flicker effects. So, it could happen that the order of
// buttons doesn't match with the order of commands in the workbench.
int index = actions.indexOf(action);
actions.removeAt(index);

View File

@@ -245,7 +245,7 @@ public:
}
#endif
// Bug #0000607: Some mices also support horizontal scrolling which however might
// Bug #0000607: Some mice also support horizontal scrolling which however might
// lead to some unwanted zooming when pressing the MMB for panning.
// Thus, we filter out horizontal scrolling.
if (event->type() == QEvent::Wheel) {

View File

@@ -4,7 +4,7 @@
# Project related configuration options
#---------------------------------------------------------------------------
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = "FreeCAD CAM Modul"
PROJECT_NAME = "FreeCAD CAM Module"
PROJECT_NUMBER = 0.1
OUTPUT_DIRECTORY = Doc
CREATE_SUBDIRS = NO

View File

@@ -1585,7 +1585,7 @@ class DraftToolBar:
def checkSpecialChars(self,txt):
'''
checks for special characters in the entered coords that mut be
checks for special characters in the entered coords that must be
treated as shortcuts
'''

View File

@@ -1656,7 +1656,7 @@ void FemMesh::Restore(Base::XMLReader &reader)
std::string file (reader.getAttribute("file") );
if (!file.empty()) {
// initate a file read
// initiate a file read
reader.addFile(file.c_str(),this);
}
if( reader.hasAttribute("a11")){

View File

@@ -235,7 +235,7 @@ void PropertyPostDataObject::Restore(Base::XMLReader &reader)
std::string file (reader.getAttribute("file") );
if (!file.empty()) {
// initate a file read
// initiate a file read
reader.addFile(file.c_str(),this);
}
}

View File

@@ -591,7 +591,7 @@ void PropertyDistanceList::Restore(Base::XMLReader &reader)
std::string file (reader.getAttribute("file") );
if (!file.empty()) {
// initate a file read
// initiate a file read
reader.addFile(file.c_str(),this);
}
}

View File

@@ -367,8 +367,8 @@ private:
};
/**
* The MeshFixDeformedFacets class tries to fix deformed facets by swapping the commong edge with one of their neighbours.
* @note Degenerated facets are also deformed facet but this algorithm tries to fix deformed facets that or not degenrated.
* The MeshFixDeformedFacets class tries to fix deformed facets by swapping the common edge with one of their neighbours.
* @note Degenerated facets are also deformed facet but this algorithm tries to fix deformed facets that or not degenerated.
* The removal of degenerated facets is done by @ref MeshFixDegeneratedFacets.
* @see MeshEvalDeformedFacets
* @author Werner Mayer

View File

@@ -77,9 +77,9 @@ public:
float fMaxAngle);
/**
* Swaps the common edge of two adjacent facets even if the operation might
* be illegal. To be sure that this operation is legal check either with
* be illegal. To be sure that this operation is legal, check either with
* IsSwapEdgeLegal() or ShouldSwapEdge() before.
* An illegel swap edge operation can produce non-manifolds, degenrated
* An illegel swap edge operation can produce non-manifolds, degenerated
* facets or it might create a fold on the surface, i.e. geometric overlaps
* of several triangles.
*/
@@ -200,7 +200,7 @@ public:
*/
bool SnapVertex(unsigned long ulFacetPos, const Base::Vector3f& rP);
/**
* Checks whether a swap edge operation is legel that is fulfilled if the
* Checks whether a swap edge operation is legal, that is fulfilled if the
* two adjacent facets builds a convex polygon. If this operation is legal
* true is returned, false is returned if this operation is illegal or if
* \a ulFacetPos and \a ulNeighbour are not adjacent facets.

View File

@@ -146,7 +146,7 @@ void PropertyNormalList::Restore(Base::XMLReader &reader)
std::string file (reader.getAttribute("file") );
if (!file.empty()) {
// initate a file read
// initiate a file read
reader.addFile(file.c_str(),this);
}
}
@@ -349,7 +349,7 @@ void PropertyCurvatureList::Restore(Base::XMLReader &reader)
std::string file (reader.getAttribute("file") );
if (!file.empty()) {
// initate a file read
// initiate a file read
reader.addFile(file.c_str(),this);
}
}
@@ -606,7 +606,7 @@ void PropertyMeshKernel::Restore(Base::XMLReader &reader)
hasSetValue();
}
else {
// initate a file read
// initiate a file read
reader.addFile(file.c_str(),this);
}
}

View File

@@ -263,7 +263,7 @@ void PropertyPartShape::Restore(Base::XMLReader &reader)
std::string file (reader.getAttribute("file") );
if (!file.empty()) {
// initate a file read
// initiate a file read
reader.addFile(file.c_str(),this);
}
}
@@ -591,7 +591,7 @@ void PropertyFilletEdges::Restore(Base::XMLReader &reader)
std::string file (reader.getAttribute("file") );
if (!file.empty()) {
// initate a file read
// initiate a file read
reader.addFile(file.c_str(),this);
}
}

View File

@@ -2415,8 +2415,8 @@ struct ShapeInfo{
if(myWires.empty())
foreachSubshape(myShape,GetWires(myWires,myRTree,myParams),TopAbs_WIRE);
// Now find the ture nearest point among the wires returned. Currently
// only closed wire has a ture nearest point, using OCC's
// Now find the true nearest point among the wires returned. Currently
// only closed wire has a true nearest point, using OCC's
// BRepExtrema_DistShapeShape. We don't do this on open wires, because
// we haven't implemented wire breaking on open wire yet, and I doubt
// its usefulness.

View File

@@ -338,7 +338,7 @@ void Toolpath::Restore(XMLReader &reader)
std::string file (reader.getAttribute("file") );
if (!file.empty()) {
// initate a file read
// initiate a file read
reader.addFile(file.c_str(),this);
}
}

View File

@@ -114,7 +114,7 @@ void PropertyPath::Restore(Base::XMLReader &reader)
std::string file (reader.getAttribute("file") );
if (!file.empty()) {
// initate a file read
// initiate a file read
reader.addFile(file.c_str(),this);
}

View File

@@ -176,7 +176,7 @@ void PointKernel::Restore(Base::XMLReader &reader)
std::string file (reader.getAttribute("file") );
if (!file.empty()) {
// initate a file read
// initiate a file read
reader.addFile(file.c_str(),this);
}
if (reader.DocumentSchema > 3) {

View File

@@ -144,7 +144,7 @@ void PropertyGreyValueList::Restore(Base::XMLReader &reader)
string file (reader.getAttribute("file") );
if (!file.empty()) {
// initate a file read
// initiate a file read
reader.addFile(file.c_str(),this);
}
}
@@ -318,7 +318,7 @@ void PropertyNormalList::Restore(Base::XMLReader &reader)
std::string file (reader.getAttribute("file") );
if (!file.empty()) {
// initate a file read
// initiate a file read
reader.addFile(file.c_str(),this);
}
}
@@ -578,7 +578,7 @@ void PropertyCurvatureList::Restore(Base::XMLReader &reader)
std::string file (reader.getAttribute("file") );
if (!file.empty()) {
// initate a file read
// initiate a file read
reader.addFile(file.c_str(),this);
}
}

View File

@@ -104,7 +104,7 @@ void PropertyPointKernel::Restore(Base::XMLReader &reader)
std::string file (reader.getAttribute("file") );
if (!file.empty()) {
// initate a file read
// initiate a file read
reader.addFile(file.c_str(),this);
}
if(reader.DocumentSchema > 3)

View File

@@ -98,7 +98,7 @@ class Path_Line : public Path
* of the frame in which you express your path.
* Other implementations for RotationalInterpolations COULD be
* (not implemented) (yet) :
* 1) quaternion interpolation : but this is more difficult for the human to interprete
* 1) quaternion interpolation : but this is more difficult for the human to interpret
* 2) 3-axis interpolation : express the orientation of the frame in e.g.
* euler zyx angles alfa,beta, gamma and interpolate these parameters.
* But this is dependent of the frame you choose as a reference and

View File

@@ -23,7 +23,7 @@
namespace KDL {
// Trace of the call stack of the I/O routines to help user
// interprete error messages from I/O
// interpret error messages from I/O
typedef std::stack<std::string> ErrorStack;
// should be in Thread Local Storage if this gets multithreaded one day...

View File

@@ -319,7 +319,7 @@ class TempoVis(FrozenClass):
def _enableClipPlane(self, obj, enable, placement = None, offset = 0.0):
"""Enables or disables clipping for an object. Placement specifies the plane (plane
is placement's XY plane), and should be in global CS.
Offest shifts the plane; positive offset reveals more material, negative offset
Offset shifts the plane; positive offset reveals more material, negative offset
hides more material."""
if not hasattr(obj, 'getGlobalPlacement'):
print(" {obj} has no attribute 'getGlobalPlacement'".format(obj= obj.Name))

View File

@@ -41,7 +41,7 @@ FileTools.cpallWithFilter('../../lib',DistDir+DistBin+'/lib',FileTools.SetUpFilt
#====================================================================
# copy Modules
sys.stdout.write( 'Copy modul Tree ...\n')
sys.stdout.write( 'Copy module Tree ...\n')
DistTools.EnsureDir(DistDir+DistBin+'/Mod')
FileTools.cpallWithFilter('../../src/Mod',DistDir+DistBin+'/Mod',FileTools.SetUpFilter(DistTools.ModFilter))