Misc. typos

- Tooltip uniformity 
- source comment typo fixes
- remove double whitespaces
This commit is contained in:
luzpaz
2017-11-22 10:12:46 -05:00
committed by Yorik van Havre
parent 794a39684a
commit a225b13bef
22 changed files with 44 additions and 44 deletions

View File

@@ -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);

View File

@@ -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<MyExtensionPythonT<MyExtension>> 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 ExtensionT>
class ExtensionPythonT : public ExtensionT

View File

@@ -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&);

View File

@@ -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);
}

View File

@@ -236,9 +236,9 @@ public:
std::vector<std::string> getUndoVector(void) const;
/// Get an Redo string vector with the Redo names
std::vector<std::string> 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) ;
//@}

View File

@@ -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).

View File

@@ -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
*/

View File

@@ -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

View File

@@ -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.
*

View File

@@ -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 <stdio.h>
@@ -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)
{

View File

@@ -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():

View File

@@ -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");

View File

@@ -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<Assembly::PartRef*>(obj2);

View File

@@ -39,7 +39,7 @@ extern "C"
{
void CamExport initCam()
{
// load dependend module
// load dependent module
try {
Base::Interpreter().loadModule("Part");
Base::Interpreter().loadModule("Mesh");

View File

@@ -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. <br>
@@ -155,7 +155,7 @@ public:
//! Stores in \<T\> the parameters bounding the intervals of continuity \<S\>. <br>
//! 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) ;

View File

@@ -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
}
}

View File

@@ -55,7 +55,7 @@ extern "C"
return;
}
// load dependend module
// load dependent module
try {
Base::Interpreter().loadModule("Cam");
}

View File

@@ -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

View File

@@ -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;
}

View File

@@ -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.'))

View File

@@ -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')

View File

@@ -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",