Misc typos and whitespace fixes

Found via `codespell -q 3 -I ../fc-word-whitelist.txt -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*`
This commit is contained in:
luz.paz
2019-03-25 08:06:29 -04:00
committed by wmayer
parent 6bc555c9be
commit c985f9ee79
9 changed files with 30 additions and 32 deletions

View File

@@ -165,7 +165,7 @@ void UnitExpression::setUnit(const Quantity &_quantity)
}
/**
* Evaulate the expression
* Evaluate the expression
*
* @returns A NumberExpression set to 1.0.
*/

View File

@@ -684,7 +684,7 @@ void Application::slotNewDocument(const App::Document& Doc)
pDoc->signalActivatedObject.connect(boost::bind(&Gui::Application::slotActivatedObject, this, _1));
pDoc->signalInEdit.connect(boost::bind(&Gui::Application::slotInEdit, this, _1));
pDoc->signalResetEdit.connect(boost::bind(&Gui::Application::slotResetEdit, this, _1));
signalNewDocument(*pDoc);
pDoc->createView(View3DInventor::getClassTypeId());
// FIXME: Do we really need this further? Calling processEvents() mixes up order of execution in an
@@ -1700,7 +1700,7 @@ void Application::runApplication(void)
}
#if QT_VERSION >= 0x050600
//Enable automatic scaling based on pixel density fo display (added in Qt 5.6)
//Enable automatic scaling based on pixel density of display (added in Qt 5.6)
mainApp.setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
#if QT_VERSION >= 0x050100

View File

@@ -112,9 +112,9 @@ View3DInventor::View3DInventor(Gui::Document* pcDocument, QWidget* parent,
: MDIView(pcDocument, parent, wflags), _viewerPy(0)
{
stack = new QStackedWidget(this);
// important for highlighting
// important for highlighting
setMouseTracking(true);
// accept drops on the window, get handled in dropEvent, dragEnterEvent
// accept drops on the window, get handled in dropEvent, dragEnterEvent
setAcceptDrops(true);
// attach parameter Observer
@@ -196,7 +196,7 @@ View3DInventor::~View3DInventor()
{
hGrp->Detach(this);
//If we destroy this viewer by calling 'delete' directly the focus proxy widget which is defined
//If we destroy this viewer by calling 'delete' directly the focus proxy widget which is defined
//by a widget in SoQtViewer isn't reset. This widget becomes a dangling pointer and makes
//the application crash. (Probably it's better to destroy this viewer by calling close().)
//See also Gui::Document::~Document().
@@ -462,7 +462,7 @@ void View3DInventor::print()
void View3DInventor::printPdf()
{
QString filename = FileDialog::getSaveFileName(this, tr("Export PDF"), QString(),
QString filename = FileDialog::getSaveFileName(this, tr("Export PDF"), QString(),
QString::fromLatin1("%1 (*.pdf)").arg(tr("PDF file")));
if (!filename.isEmpty()) {
Gui::WaitCursor wc;
@@ -657,11 +657,11 @@ bool View3DInventor::onHasMsg(const char* pMsg) const
return doc && doc->getAvailableRedos() > 0;
}
else if (strcmp("Print",pMsg) == 0)
return true;
return true;
else if (strcmp("PrintPreview",pMsg) == 0)
return true;
return true;
else if (strcmp("PrintPdf",pMsg) == 0)
return true;
return true;
else if(strcmp("SetStereoRedGreen",pMsg) == 0)
return true;
else if(strcmp("SetStereoQuadBuff",pMsg) == 0)
@@ -685,7 +685,7 @@ bool View3DInventor::onHasMsg(const char* pMsg) const
return true;
#else
return false;
#endif
#endif
else if(strcmp("ViewSelection",pMsg) == 0)
return true;
else if(strcmp("ViewBottom",pMsg) == 0)
@@ -728,7 +728,7 @@ bool View3DInventor::setCamera(const char* pCamera)
throw Base::RuntimeError("Camera settings failed to read");
}
// toggle between persepective and orthographic camera
// toggle between perspective and orthographic camera
if (Cam->getTypeId() != CamViewer->getTypeId())
{
_viewer->setCameraType(Cam->getTypeId());
@@ -822,7 +822,7 @@ void View3DInventor::windowStateChanged(MDIView* view)
{
bool canStartTimer = false;
if (this != view) {
// If both views are child widgets of the workspace and view is maximized this view
// If both views are child widgets of the workspace and view is maximized this view
// must be hidden, hence we can start the timer.
// Note: If view is top-level or fullscreen it doesn't necessarily hide the other view
// e.g. if it is on a second monitor.
@@ -906,7 +906,7 @@ void View3DInventor::setCurrentViewMode(ViewMode newmode)
//}
#endif
// This widget becomes the focus proxy of the embedded GL widget if we leave
// This widget becomes the focus proxy of the embedded GL widget if we leave
// the 'Child' mode. If we reenter 'Child' mode the focus proxy is reset to 0.
// If we change from 'TopLevel' mode to 'Fullscreen' mode or vice versa nothing
// happens.
@@ -918,7 +918,7 @@ void View3DInventor::setCurrentViewMode(ViewMode newmode)
// control after redirecting the first key event to the GL widget.
if (oldmode == Child) {
// To make a global shortcut working from this window we need to add
// all existing actions from the mainwindow and its sub-widgets
// all existing actions from the mainwindow and its sub-widgets
QList<QAction*> acts = getMainWindow()->findChildren<QAction*>();
this->addActions(acts);
_viewer->getGLWidget()->setFocusProxy(this);
@@ -944,7 +944,7 @@ void View3DInventor::setCurrentViewMode(ViewMode newmode)
bool View3DInventor::eventFilter(QObject* watched, QEvent* e)
{
// As long as this widget is a top-level window (either in 'TopLevel' or 'FullScreen' mode) we
// need to be notified when an action is added to a widget. This action must also be added to
// need to be notified when an action is added to a widget. This action must also be added to
// this window to allow to make use of its shortcut (if defined).
// Note: We don't need to care about removing an action if its parent widget gets destroyed.
// This does the action itself for us.
@@ -967,7 +967,7 @@ void View3DInventor::keyPressEvent (QKeyEvent* e)
ViewMode mode = MDIView::currentViewMode();
if (mode != Child) {
// If the widget is in fullscreen mode then we can return to normal mode either
// by pressing the matching accelerator or ESC.
// by pressing the matching accelerator or ESC.
if (e->key() == Qt::Key_Escape) {
setCurrentViewMode(Child);
}

View File

@@ -667,7 +667,7 @@ std::map<std::string, std::string> _getFreeCADMechResultVectorProperties() {
return resFCVecProp;
}
// see https://forum.freecadweb.org/viewtopic.php?f=18&t=33106&start=30#p277434 for further information in the regard of names etc
// see https://forum.freecadweb.org/viewtopic.php?f=18&t=33106&start=30#p277434 for further information regarding names etc...
// some scalar list are not needed on VTK file export but they are needed for internal VTK pipeline
// TODO some filter to only export the needed values to VTK file but have all in FreeCAD VTK pipline
std::map<std::string, std::string> _getFreeCADMechResultScalarProperties() {

View File

@@ -46,7 +46,7 @@ class _CommandFemAnalysis(CommandManager):
FreeCADGui.addModule("ObjectsFem")
FreeCADGui.doCommand("ObjectsFem.makeAnalysis(FreeCAD.ActiveDocument, 'Analysis')")
FreeCADGui.doCommand("FemGui.setActiveAnalysis(FreeCAD.ActiveDocument.ActiveObject)")
# create a CalculiX ccx tools solver for any new analysis, to be on the save side fo rnew users
# create a CalculiX ccx tools solver for any new analysis, to be on the safe side for new users
FreeCADGui.doCommand("ObjectsFem.makeSolverCalculixCcxTools(FreeCAD.ActiveDocument)")
FreeCADGui.doCommand("FemGui.getActiveAnalysis().addObject(FreeCAD.ActiveDocument.ActiveObject)")
FreeCAD.ActiveDocument.recompute()

View File

@@ -37,7 +37,7 @@ def shapeset(shapelst):
return set([shape.hashCode() for shape in shapelst])
def mostbasiccompound(comp):
'''searches fo the most basic shape in a Compound'''
'''searches for the most basic shape in a Compound'''
solids=shapeset(comp.Solids)
shells=shapeset(comp.Shells)
faces=shapeset(comp.Faces)

View File

@@ -404,7 +404,7 @@ bool PartGui::DlgProjectionOnSurface::store_part_in_vector(SShapeStore& iCurrent
}
}
}
if (currentType == TopAbs_FACE)
{
iCurrentShape.aFace = TopoDS::Face(iCurrentShape.inputShape);
@@ -590,7 +590,7 @@ void PartGui::DlgProjectionOnSurface::higlight_object(Part::Feature* iCurrentObj
TopoDS_Shape currentShape = subShape;
if (subShape.IsNull()) currentShape = partenShape;
auto currentShapeType = currentShape.ShapeType();
TopTools_IndexedMapOfShape anIndices;
TopExp::MapShapes(partenShape, currentShapeType, anIndices);
@@ -668,7 +668,7 @@ void PartGui::DlgProjectionOnSurface::create_projection_face_from_wire(std::vect
auto surface = BRep_Tool::Surface(itCurrentShape.surfaceToProject);
//create a wire of all edges in parametric space on the surface of the face to projected
// --> othwerwise BRepBuilderAPI_MakeFace can not make a face from the wire!
// --> otherwise BRepBuilderAPI_MakeFace can not make a face from the wire!
for (auto itWireVec : itCurrentShape.aProjectedWireVec)
{
std::vector<TopoDS_Shape> edgeVec;
@@ -764,7 +764,7 @@ TopoDS_Wire PartGui::DlgProjectionOnSurface::sort_and_heal_wire(const std::vecto
Handle(TopTools_HSequenceOfShape) shapeList = new TopTools_HSequenceOfShape;
Handle(TopTools_HSequenceOfShape) aWireHandle;
Handle(TopTools_HSequenceOfShape) aWireWireHandle;
for (auto it : iEdgeVec)
{
shapeList->Append(it);
@@ -826,7 +826,7 @@ void PartGui::DlgProjectionOnSurface::store_wire_in_vector(const SShapeStore& iC
if (iCurrentShape.inputShape.IsNull()) return;
auto currentType = iCurrentShape.inputShape.ShapeType();
if (currentType != TopAbs_EDGE) return;
std::vector<TopoDS_Wire> aWireVec;
for (TopExp_Explorer aExplorer(iParentShape, TopAbs_WIRE); aExplorer.More(); aExplorer.Next())
{
@@ -1045,5 +1045,3 @@ void TaskProjectionOnSurface::clicked(int id)
}
#include "moc_DlgProjectionOnSurface.cpp"

View File

@@ -321,7 +321,7 @@
PARAM_TYPE(_param) _src(_param);
/**
* Delcares parameters using the given field as name
* Declares parameters using the given field as name
*
* \arg \c _src: \anchor ParamSrc Macro to generate source variable. The
* signature must be <tt>_src(_param)<\tt>, where \c _param is the tuple
@@ -349,7 +349,7 @@
PARAM_TYPE(_param) _src(_param) = PARAM_FDEF(_param);
/**
* Delcares parameters with initialization to default using the given field as
* Declares parameters with initialization to default using the given field as
* name
*
* \arg \c _src: macro to generate source field. See \ref ParamSrc "here" for
@@ -635,7 +635,7 @@
#define PARAM_ARGS_DEF_(_,_src,_i,_param) \
BOOST_PP_COMMA_IF(_i) PARAM_TYPE(_param) _src(_param)=PARAM_FDEF(_param)
/** Delcare the parameters as function argument list with defaults.
/** Declare the parameters as function argument list with defaults.
*
* \arg \c _src: macro to generate source field. See \ref ParamSrc "here" for
* more details
@@ -654,7 +654,7 @@
#define PARAM_ARGS_(_,_src,_i,_param) \
BOOST_PP_COMMA_IF(_i) PARAM_TYPE(_param) _src(_param)
/** Delcare the parameters as function argument list without defaults.
/** Declare the parameters as function argument list without defaults.
*
* \arg \c _src: macro to generate source field. See \ref ParamSrc "here" for
* more details

View File

@@ -420,7 +420,7 @@ class ObjectOp(object):
It also sets the following instance variables that can and should be safely be used by
implementation of opExecute():
self.model ... List of base objects of the Job itself
self.stock ... Stock object fo the Job itself
self.stock ... Stock object for the Job itself
self.vertFeed ... vertical feed rate of assigned tool
self.vertRapid ... vertical rapid rate of assigned tool
self.horizFeed ... horizontal feed rate of assigned tool