Skip to content

Commit

Permalink
Typo fixes for doxygen and source comments
Browse files Browse the repository at this point in the history
issue #2914
  • Loading branch information
luzpaz authored and yorikvanhavre committed Mar 31, 2017
1 parent ce56bdb commit 784edd3
Show file tree
Hide file tree
Showing 41 changed files with 67 additions and 67 deletions.
2 changes: 1 addition & 1 deletion src/App/Application.cpp
Expand Up @@ -2281,7 +2281,7 @@ std::string Application::FindHomePath(const char* sCall)

std::string Application::FindHomePath(const char* call)
{
// If Python is intialized at this point, then we're being run from
// If Python is initialized at this point, then we're being run from
// MainPy.cpp, which hopefully rewrote argv[0] to point at the
// FreeCAD shared library.
if (!Py_IsInitialized()) {
Expand Down
2 changes: 1 addition & 1 deletion src/App/DocumentObject.h
Expand Up @@ -224,7 +224,7 @@ class AppExport DocumentObject: public App::TransactionalObject
/// recompute only this object
virtual App::DocumentObjectExecReturn *recompute(void);
/** get called by the document to recompute this feature
* Normaly this method get called in the processing of
* Normally this method get called in the processing of
* Document::recompute().
* In execute() the outpupt properties get recomputed
* with the data from linked objects and objects own
Expand Down
2 changes: 1 addition & 1 deletion src/FCConfig.h
Expand Up @@ -334,7 +334,7 @@ typedef unsigned __int64 uint64_t;
//# pragma warning( disable : 4503 )
//# pragma warning( disable : 4786 ) // specifier longer then 255 chars
//# pragma warning( disable : 4290 ) // not implemented throw specification
# pragma warning( disable : 4996 ) // suppress depricated warning for e.g. open()
# pragma warning( disable : 4996 ) // suppress deprecated warning for e.g. open()
#if defined(WIN64) || defined(_WIN64) || defined(__WIN64__)
# pragma warning( disable : 4244 )
# pragma warning( disable : 4267 )
Expand Down
2 changes: 1 addition & 1 deletion src/Gui/DlgParameterImp.h
Expand Up @@ -167,7 +167,7 @@ protected Q_SLOTS:
void onCreateBoolItem();
/** Defines that the first column is editable.
* @note We need to reimplement this method as QTreeWidgetItem::flags()
* doesn't have an int paramater.
* doesn't have an int parameter.
*/
bool edit ( const QModelIndex & index, EditTrigger trigger, QEvent * event );

Expand Down
2 changes: 1 addition & 1 deletion src/Gui/Macro.h
Expand Up @@ -82,7 +82,7 @@ class GuiExport MacroManager : public Base::Observer<const char*>
/// insert a new line in the macro
void addLine(LineType Type,const char* sLine);
/** Set the active module
* This is normaly done by the workbench switch. It sets
* This is normally done by the workbench switch. It sets
* the actually active application module so when the macro
* gets started the right import can be issued.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Gui/MayaGestureNavigationStyle.cpp
Expand Up @@ -445,7 +445,7 @@ SbBool MayaGestureNavigationStyle::processSoEvent(const SoEvent * const ev)
this->mousedownConsumedCount = 0;

// start DRAGGING mode (orbit)
// if not pressing left mouse button then it asumes is right mouse button and starts ZOOMING mode
// if not pressing left mouse button then it assumes is right mouse button and starts ZOOMING mode
setViewingMode(this->button1down ? NavigationStyle::DRAGGING : NavigationStyle::ZOOMING);
processed = true;
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/Gui/ProgressBar.cpp
Expand Up @@ -428,7 +428,7 @@ void ProgressBar::leaveControlEvents()
{
qApp->removeEventFilter(this);

// relase the keyboard again
// release the keyboard again
releaseKeyboard();
}

Expand Down
2 changes: 1 addition & 1 deletion src/Gui/ProgressDialog.cpp
Expand Up @@ -307,7 +307,7 @@ void ProgressDialog::leaveControlEvents()
{
qApp->removeEventFilter(this);

// relase the keyboard again
// release the keyboard again
releaseKeyboard();
}

Expand Down
2 changes: 1 addition & 1 deletion src/Gui/WinNativeGestureRecognizers.cpp
Expand Up @@ -48,7 +48,7 @@ QT_BEGIN_NAMESPACE
#if !defined(QT_NO_NATIVE_GESTURES)

//#include <private/qevent_p.h>
//this include is not avalable on conda Qt, see https://forum.freecadweb.org/viewtopic.php?f=4&t=21405&p=167395#p167395
//this include is not available on conda Qt, see https://forum.freecadweb.org/viewtopic.php?f=4&t=21405&p=167395#p167395
//copy-pasted from this header:
class QNativeGestureEvent : public QEvent
{
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Assembly/App/CMakeLists.txt
Expand Up @@ -62,7 +62,7 @@ SET(Module_SRCS
)
SOURCE_GROUP("Module" FILES ${Module_SRCS})

#externalisation is not possible for msvc as a stupid bug prevents the function definition resolving
#externalization is not possible for msvc as a stupid bug prevents the function definition resolving
if(MSVC)
set(Solver_SRC )
else(MSVC)
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Assembly/App/opendcm/core/imp/geometry_imp.hpp
Expand Up @@ -164,7 +164,7 @@ void Geometry<Kernel, Dim, TagList>::setClusterMode(bool iscluster, bool isFixed
m_isInCluster = iscluster;
m_clusterFixed = isFixed;
if(iscluster) {
//we are in cluster, therfore the parameter map should not point to a solver value but to
//we are in cluster, therefore the parameter map should not point to a solver value but to
//the rotated original value;
new(&m_parameter) typename Kernel::VectorMap(&m_rotated(0), m_parameterCount, DS(1,1));
//the local value is the global one as no transformation was applied yet
Expand Down
16 changes: 8 additions & 8 deletions src/Mod/Assembly/App/opendcm/core/object.hpp
Expand Up @@ -98,7 +98,7 @@ struct SignalOwner {
/**
* @brief Disconnects a slot for a specific signal.
*
* Disconnects a slot so that it dosn't get called at signal emittion. It's important to
* Disconnects a slot so that it doesn't get called at signal emission. It's important to
* disconnect the slot by the same boost:function it was connected with.
*
* @tparam S the signal type of interest
Expand All @@ -110,10 +110,10 @@ struct SignalOwner {


/**
* @brief Enable or disable signal emittion
* @brief Enable or disable signal emission
*
* If you want to suppress all signals emitted by a object you can do this by calling this function.
* All calls to emitSignal() will be blocked until signals aer reenabled by using this function with
* If you want to suppress all signals emitted by an object you can do this by calling this function.
* All calls to emitSignal() will be blocked until signals are reenabled by using this function with
* onoff = true. Note that signals are not queued, if emitting is disabled all signals are lost.
*
* @param onoff bool value if signals shall be emitted or if they are disabled
Expand Down Expand Up @@ -145,14 +145,14 @@ struct SignalOwner {
/**
* @brief Base class for all object types
*
* This class add's property and signal capabilitys to all deriving classes. For properties it is tigthly
* This class adds property and signal capabilities to all deriving classes. For properties it is tightly
* integrated with the system class: It searches systems property map for the derived class as specified by
* the second template parameter and makes it accessible via appopriate functions. Signals are speciefied by a
* the second template parameter and makes it accessible via appropriate functions. Signals are specified by a
* mpl::map with signal name type as key and a boost::function as values.
*
* \tparam Sys class of type System of which the properties are taken
* \tparam Obj the type of the derived object
* \tparam Sig a mpl::map specifing the object's signals by (type - boost::function) pairs
* \tparam Sig an mpl::map specifying the object's signals by (type - boost::function) pairs
**/
template<typename Sys, typename Derived, typename Sig>
struct Object : public PropertyOwner<typename details::properties_by_object<typename Sys::properties, Derived>::type>,
Expand All @@ -165,7 +165,7 @@ struct Object : public PropertyOwner<typename details::properties_by_object<type
/**
* @brief Create a new object of the same type with the same values
*
* Returns a new shared_ptr for the Drived type with the same properties as the initial one. If
* Returns a new shared_ptr for the Derived type with the same properties as the initial one. If
* the new pointer should be used in a new system the parameter \param newSys needs to be that
* new system. Overload this function if you have datamembers in any derived class which are not
* copyconstructable.
Expand Down
6 changes: 3 additions & 3 deletions src/Mod/Assembly/App/opendcm/core/property.hpp
Expand Up @@ -458,11 +458,11 @@ PropertyOwner<PropertyList>::PropertyOwner() {
};

/**
* @brief Convienience spezialisation to ease interaction with system class
* @brief Convienience specialization to ease interaction with system class
*
* Normaly property lists are retrieved from the system class, however, there are no empty lists. If no
* Normally property lists are retrieved from the system class, however, there are no empty lists. If no
* property is supplied for a PropertyOwner derived class, a mpl::void_ type will be retrieved. To
* remove the burdon of checking for that type in the class definition this spezialisation is supplied.
* remove the burden of checking for that type in the class definition this specialization is supplied.
**/
template<>
struct PropertyOwner<mpl::void_> {
Expand Down
Expand Up @@ -24,7 +24,7 @@
#include "opendcm/core/imp/constraint_holder_imp.hpp"

#ifdef DCM_EXTERNAL_CORE
//following macros are used for externalisation. As the holder type can hould a very big set of combinations,
//following macros are used for externalization. As the holder type can hould a very big set of combinations,
//especially with module states recursive incarnation, we explicitly initiate all possible versions of this
//struct so that it must only be compiled once. To get all possible equation
//combinations boost pp is needed.
Expand Down
Expand Up @@ -29,7 +29,7 @@
#endif

// #ifdef DCM_EXTERNAL_CORE
// //following macros are used for externalisation. As constraint->initalize is very compiler intensive,
// //following macros are used for externalization. As constraint->initialize is very compiler intensive,
// //especially with module states recursive incarnation, we explicitly initiate all possible calls to this
// //function so that it must only be compiled once, one function at a time. To get all possible equation
// //combinations boost pp is needed.
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Assembly/App/opendcm/module3d/imp/state_imp.hpp
Expand Up @@ -289,7 +289,7 @@ struct inject_set {
g->set(gt);
};
};
//spezialisation if no type in the typelist has the right weight
//specialization if no type in the typelist has the right weight
template<>
struct inject_set<mpl::void_> {

Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Assembly/App/opendcm/moduleShape3d/fixed.hpp
Expand Up @@ -20,8 +20,8 @@
#ifndef GCM_FIXED_SHAPE3D_H
#define GCM_FIXED_SHAPE3D_H

//we need constraints to identifie connections between geometries in our shapes, however, if the
//geometries are linked to each other a calculation is not necessary. Therfore a no-equation constraint
//we need constraints to identify connections between geometries in our shapes, however, if the
//geometries are linked to each other a calculation is not necessary. Therefore a no-equation constraint
//is needed

#include <opendcm/core/equations.hpp>
Expand Down
Expand Up @@ -18,7 +18,7 @@
*/

//move the traits specializations outside of the traits definition to avoid the spirit header parsing every
//time this module is included and just parse it in externalisation mode when the generator is build
//time this module is included and just parse it in externalization mode when the generator is built

#ifndef DCM_PARSER_TRAITS_IMPL_H
#define DCM_PARSER_TRAITS_IMPL_H
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Assembly/Gui/ViewProviderConstraint.cpp
Expand Up @@ -230,7 +230,7 @@ void ViewProviderConstraint::updateData(const App::Property* prop) {
void ViewProviderConstraint::onChanged(const App::Property* prop)
{
// parent expects the app object to be part::feature, but it isn't. so we have to avoid
// the visability prop as this results in accessing of the part::feature and would crash
// the visibility prop as this results in accessing of the part::feature and would crash
if(prop == &Visibility) {
if(Visibility.getValue() && m_selected) {
internal_vp.show();
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Fem/App/FemVTKTools.cpp
Expand Up @@ -539,7 +539,7 @@ App::DocumentObject* FemVTKTools::readResult(const char* filename, App::Document
}

App::DocumentObject* mesh = pcDoc->addObject("Fem::FemMeshObject", "ResultMesh");
FemMesh* fmesh = new FemMesh(); // PropertyFemMesh instance is responsible to relase FemMesh ??
FemMesh* fmesh = new FemMesh(); // PropertyFemMesh instance is responsible to release FemMesh ??
importVTKMesh(dataset, fmesh, scale);
static_cast<PropertyFemMesh*>(mesh->getPropertyByName("FemMesh"))->setValue(*fmesh);
static_cast<App::PropertyLink*>(result->getPropertyByName("Mesh"))->setValue(mesh);
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/OpenSCAD/OpenSCAD2Dgeom.py
Expand Up @@ -392,13 +392,13 @@ def edgestofaces(edges,algo=3,eps=0.001):
comp=Part.Compound(edges2)
w = comp.connectEdgesToWires(False,eps).Wires[0]
facel.append(Part.Face(w))
#if w.isValid: #debuging
#if w.isValid: #debugging
# facel.append(Part.Face(w))
#else:
# Part.show(w)
if algo is None:
return facel
elif algo == 1: #stabale behavior
elif algo == 1: #stable behavior
return subtractfaces(facel)
elif algo == 0: #return all faces
return Part.Compound(facel)
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Part/TestPartApp.py
Expand Up @@ -40,7 +40,7 @@ def testBoxCase(self):
def tearDown(self):
#closing doc
FreeCAD.closeDocument("PartTest")
#print ("omit clos document for debuging")
#print ("omit closing document for debugging")

class PartTestBSplineCurve(unittest.TestCase):
def setUp(self):
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/PartDesign/TestPartDesignApp.py
Expand Up @@ -42,7 +42,7 @@ def testBoxCase(self):
def tearDown(self):
#closing doc
FreeCAD.closeDocument("PartDesignTest")
# print ("omit clos document for debuging")
# print ("omit closing document for debugging")

class PartDesignRevolveTestCases(unittest.TestCase):
def setUp(self):
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Path/App/Area.cpp
Expand Up @@ -1422,7 +1422,7 @@ struct ShapeInfo{

// Now find the ture nearest point among the wires returned. Currently
// only closed wire has a ture nearest point, using OCC's
// BRepExtrema_DistShapeShape. We don't do this on open wires, becuase
// 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.

Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Plot/plotAxes/TaskPanel.py
Expand Up @@ -397,7 +397,7 @@ def onAlign(self, value):
axesList = [plt.axes]
if form.all.isChecked():
axesList = plt.axesList
# Set new alignement
# Set new alignment
for axes in axesList:
if form.xAlign.currentIndex() == 0:
axes.xaxis.tick_bottom()
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Ship/shipCreateShip/Preview.py
Expand Up @@ -168,7 +168,7 @@ def DrawText(name,
string -- Text to draw (it is strongly recommended to use format u'').
position -- Point to draw the text.
angle -- Counter clockwise rotation of text.
justification -- Alignement of the text ("Left", "Right" or "Center").
justification -- Alignment of the text ("Left", "Right" or "Center").
colour -- Colour of the text.
size -- Font size (in points pt).
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Sketcher/App/planegcs/Constraints.h
Expand Up @@ -27,7 +27,7 @@
#include "Util.h"
#include <boost/graph/graph_concepts.hpp>

//#define _GCS_EXTRACT_SOLVER_SUBSYSTEM_ // This enables debuging code intended to extract information to file bug reports against Eigen, not for production code
//#define _GCS_EXTRACT_SOLVER_SUBSYSTEM_ // This enables debugging code intended to extract information to file bug reports against Eigen, not for production code

#ifdef _GCS_EXTRACT_SOLVER_SUBSYSTEM_
#define _PROTECTED_UNLESS_EXTRACT_MODE_ public
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Sketcher/Gui/SoDatumLabel.cpp
Expand Up @@ -289,7 +289,7 @@ void SoDatumLabel::generatePrimitives(SoAction * action)
// Only the angle intersection point is needed
SbVec3f p0 = pnts[0];

// Load the Paramaters
// Load the Parameters
float length = this->param1.getValue();
float startangle = this->param2.getValue();
float range = this->param3.getValue();
Expand Down Expand Up @@ -716,7 +716,7 @@ void SoDatumLabel::GLRender(SoGLRenderAction * action)
// Only the angle intersection point is needed
SbVec3f p0 = pnts[0];

// Load the Paramaters
// Load the Parameters
float length = this->param1.getValue();
float startangle = this->param2.getValue();
float range = this->param3.getValue();
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Sketcher/TestSketcherApp.py
Expand Up @@ -129,4 +129,4 @@ def testHexagonCase(self):
def tearDown(self):
#closing doc
FreeCAD.closeDocument("SketchSolverTest")
#print ("omit close document for debuging")
#print ("omit closing document for debugging")
2 changes: 1 addition & 1 deletion src/Mod/TechDraw/TestTechDrawApp.py
Expand Up @@ -60,4 +60,4 @@ def testPageCase(self):
def tearDown(self):
#closing doc
FreeCAD.closeDocument("TechDrawTest")
#print ("omit clos document for debuging")
#print ("omit closing document for debugging")
2 changes: 1 addition & 1 deletion src/Mod/TemplatePyMod/Mesh2Shape.py
Expand Up @@ -26,7 +26,7 @@
for i in wires:
i.reverse()

# make sure that the exterior wires comes as first in the lsit
# make sure that the exterior wires comes as first in the list
wires.insert(0, ext)
faces.append(Part.Face(wires))

Expand Down
2 changes: 1 addition & 1 deletion src/Tools/MakeMacBundleRelocatable.py
Expand Up @@ -64,7 +64,7 @@ def get_node(self, name):

def visit(self, operation, op_args=[]):
""""
Preform a depth first visit of the graph, calling operation
Perform a depth first visit of the graph, calling operation
on each node.
"""
stack = []
Expand Down
20 changes: 10 additions & 10 deletions src/Tools/SubWCRev.py
Expand Up @@ -170,12 +170,12 @@ def geturl(self):

def revisionNumber(self, srcdir,origin=None):
"""sets the revision number
for master and release branches all commits are counted
for other branches the version numver is split in two parts
the first number reflects the number of commits in common with the
blessed master repository.
the second part, seperated by " +"reflects the number of commits that are
different form the master repository"""
for master and release branches all commits are counted
for other branches the version numver is split in two parts
the first number reflects the number of commits in common with the
blessed master repository.
the second part, separated by " +" reflects the number of commits that are
different from the master repository"""
#referencecommit="f119e740c87918b103140b66b2316ae96f136b0e"
#referencerevision=4138
referencecommit="6b3d7b17a749e03bcbf2cf79bbbb903137298c44"
Expand Down Expand Up @@ -208,10 +208,10 @@ def revisionNumber(self, srcdir,origin=None):

def namebranchbyparents(self):
"""name multiple branches in case that the last commit was a merge
a merge is identified by having two or more parents
if the describe does not return a ref name (the hash is added)
if one parent is the master and the second one has no ref name, one branch was
merged."""
a merge is identified by having two or more parents
if the describe does not return a ref name (the hash is added)
if one parent is the master and the second one has no ref name, one branch was
merged."""
parents=os.popen("git log -n1 --pretty=%P").read()\
.strip().split(' ')
if len(parents) >= 2: #merge commit
Expand Down
2 changes: 1 addition & 1 deletion src/Tools/fcbt/BuildDoc.py
Expand Up @@ -14,7 +14,7 @@
ds = os.sep

#====================================================================
# script asume to run in src/Doc
# script assumes to run in src/Doc
#os.chdir("e:/Develop/FreeCADWin/src/Doc")
LogFile = open("MakeDoc.log",'w')
if not os.path.isdir("../../doc"):
Expand Down
2 changes: 1 addition & 1 deletion src/Tools/fcbt/DistBin.py
Expand Up @@ -19,7 +19,7 @@
DistDir = "../../DistTemp/"

#====================================================================
# script asume to run in src/Tools
# script assumes to run in src/Tools

DistTools.EnsureDir(DistDir)
if (DistTools.EnsureDir(DistDir+DistBin) == 1):
Expand Down

0 comments on commit 784edd3

Please sign in to comment.