Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Found via  
```
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml
```
  • Loading branch information
luzpaz authored and berndhahnebach committed Mar 6, 2020
1 parent a934000 commit 180805c
Show file tree
Hide file tree
Showing 33 changed files with 45 additions and 45 deletions.
4 changes: 2 additions & 2 deletions src/App/Application.cpp
Expand Up @@ -707,8 +707,8 @@ std::vector<Document*> Application::openDocuments(const std::vector<std::string>
std::vector<Document*> docs;
docs.reserve(newDocs.size());
for (auto &v : newDocs) {
// Notify ProeprtyXLink to attach newly opened documents and restore
// relavant external links
// Notify PropertyXLink to attach newly opened documents and restore
// relevant external links
PropertyXLink::restoreDocument(*v.first);
docs.push_back(v.first);
}
Expand Down
2 changes: 1 addition & 1 deletion src/App/FreeCADInit.py
Expand Up @@ -456,7 +456,7 @@ def _log(self,level,msg,frame=0,args=(),kargs=None):
function, and you want to show the callers source
location, then set frame to one.
* args: tuple for postiional arguments to be passed to
* args: tuple for positional arguments to be passed to
string.format()
* kargs: dictionary for keyword arguments to be passed to
Expand Down
2 changes: 1 addition & 1 deletion src/Gui/DlgPropertyLink.ui
Expand Up @@ -96,7 +96,7 @@
<item>
<widget class="QCheckBox" name="checkSubObject">
<property name="toolTip">
<string>If enabled, then 3D view selection will be syncrhonize with full object hierarchy.</string>
<string>If enabled, then 3D view selection will be sychronize with full object hierarchy.</string>
</property>
<property name="text">
<string>Sync sub-object selection</string>
Expand Down
2 changes: 1 addition & 1 deletion src/Gui/PythonConsole.cpp
Expand Up @@ -490,7 +490,7 @@ PythonConsole::~PythonConsole()
delete d;
}

/** Set new font and colors according to the paramerts. */
/** Set new font and colors according to the parameters. */
void PythonConsole::OnChange( Base::Subject<const char*> &rCaller,const char* sReason )
{
Q_UNUSED(rCaller);
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/.gitattributes
Expand Up @@ -4,7 +4,7 @@ JtReader export-ignore
# ****************************************************************************
# line endings

# to surpress line ending changes in github, add ?w=1 at link end of a diff
# to suppress line ending changes in github, add ?w=1 at link end of a diff

# for more information see forum topic and a specific pull request
# https://forum.freecadweb.org/viewtopic.php?f=17&t=41117
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Arch/ArchBuildingPart.py
Expand Up @@ -532,7 +532,7 @@ def setProperties(self,vobj):

# inventor saving
if not "SaveInventor" in pl:
vobj.addProperty("App::PropertyBool","SaveInventor","Interaction",QT_TRANSLATE_NOOP("App::Property","If this is enabled, the inventor representation of this object will be saved in the FreeCAD file, allowing to reference it in other file sin lightweight mode."))
vobj.addProperty("App::PropertyBool","SaveInventor","Interaction",QT_TRANSLATE_NOOP("App::Property","If this is enabled, the inventor representation of this object will be saved in the FreeCAD file, allowing to reference it in other files in lightweight mode."))
if not "SavedInventor" in pl:
vobj.addProperty("App::PropertyFileIncluded","SavedInventor","Interaction",QT_TRANSLATE_NOOP("App::Property","A slot to save the inventor representation of this object, if enabled"))
vobj.setEditorMode("SavedInventor",2)
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Assembly/Gui/TaskAssemblyConstraints.ui
Expand Up @@ -192,7 +192,7 @@
</sizepolicy>
</property>
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Fixes the first geometry in its rotation and translation. Note that fix only works its the direct parent assembly. If you stack assemblys, the parent assembly will not be fixed inside the other ones.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Fixes the first geometry in its rotation and translation. Note that fix only works its the direct parent assembly. If you stack assemblies, the parent assembly will not be fixed inside the other ones.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Fix</string>
Expand Down
10 changes: 5 additions & 5 deletions src/Mod/Draft/DraftEdit.py
Expand Up @@ -75,7 +75,7 @@ class Edit():
self._mouseMovedCB -> self._mouseMovedCB
if self._mousePressedCB -> self.mousePressed
when trackers are displayed for selected objects,
theese callbacks capture user events and forward
these callbacks capture user events and forward
them to related functions
Expand Down Expand Up @@ -133,7 +133,7 @@ class Edit():
populates the menu with custom actions
evaluate_menu_action
evaluate user choosen action and launch corresponding
evaluate user chosen action and launch corresponding
function.
Expand All @@ -160,7 +160,7 @@ class Edit():
self.pl, self.invpl.
Due to multiple object editing, i'm planning to keep
just self.trackers. Any other object will be identified
and processed starting from editTracker informations.
and processed starting from editTracker information.
editing : Int
Index of the editTracker that has been clicked by the
Expand Down Expand Up @@ -363,7 +363,7 @@ def register_selection_callback(self):

def unregister_selection_callback(self):
"""
remove selection callback if it exhists
remove selection callback if it exists
"""
if self.selection_callback:
self.view.removeEventCallback("SoEvent",self.selection_callback)
Expand All @@ -389,7 +389,7 @@ def register_editing_callbacks(self):

def unregister_editing_callbacks(self):
"""
remove callbacks used during editing if they exhist
remove callbacks used during editing if they exist
"""
view = Gui.ActiveDocument.ActiveView
if self._keyPressedCB:
Expand Down
6 changes: 3 additions & 3 deletions src/Mod/Draft/DraftGeomUtils.py
Expand Up @@ -1227,7 +1227,7 @@ def offsetWire(wire,dvec,bind=False,occ=False,widthList=None, offsetMode=None, a
elif isinstance(wire, list):
if isinstance(wire[0],Part.Edge):
edges = wire.copy()
wire = Part.Wire( Part.__sortEdges__(edges) ) # How to avoid __sortEdges__ again? Make getNormal direclty tackle edges ?
wire = Part.Wire( Part.__sortEdges__(edges) ) # How to avoid __sortEdges__ again? Make getNormal directly tackle edges ?
else:
print ("Either Part.Wire or Part.Edges should be provided, returning None ")
return None
Expand Down Expand Up @@ -1346,7 +1346,7 @@ def offsetWire(wire,dvec,bind=False,occ=False,widthList=None, offsetMode=None, a
if i == 0:
if alignListC[0] == 'Center':
delta = DraftVecUtils.scaleTo(delta, delta.Length/2)
#No need to do anything for 'Left' and 'Rigtht' as orginal dvec have set both the direction and amount of offset correct
#No need to do anything for 'Left' and 'Rigtht' as original dvec have set both the direction and amount of offset correct
#elif alignListC[i] == 'Left': #elif alignListC[i] == 'Right':
if i != 0:
try:
Expand Down Expand Up @@ -1385,7 +1385,7 @@ def offsetWire(wire,dvec,bind=False,occ=False,widthList=None, offsetMode=None, a
delta = DraftVecUtils.scaleTo(delta, delta.Length+basewireOffset)
nedge = offset(curredge,delta,trim=True)

if curOrientation == "Reversed": # TODO arc alway in counter-clockwise directinon ... ( not necessarily 'reversed')
if curOrientation == "Reversed": # TODO arc always in counter-clockwise directinon ... ( not necessarily 'reversed')
if not isinstance(curredge.Curve,Part.Circle): # need to test against Part.Circle, not Part.ArcOfCircle
# if not arc/circle, assume straight line, reverse it
nedge = Part.Edge(nedge.Vertexes[1],nedge.Vertexes[0])
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Draft/DraftSnap.py
Expand Up @@ -667,7 +667,7 @@ def snapToGrid(self,point):
return point

def snapToEndpoints(self,shape):
"returns a list of enpoints snap locations"
"returns a list of endpoints snap locations"
snaps = []
if self.isEnabled("endpoint"):
if hasattr(shape,"Vertexes"):
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Draft/Resources/icons/Draft_Join.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/Mod/Draft/drafttests/test_creation.py
Expand Up @@ -181,7 +181,7 @@ def test_dimension_linear(self):
"""Create a linear dimension."""
operation = "Draft Dimension"
_msg(" Test '{}'".format(operation))
_msg(" Occasionaly crashes")
_msg(" Occasionally crashes")
a = Vector(0, 0, 0)
b = Vector(9, 0, 0)
c = Vector(4, -1, 0)
Expand Down Expand Up @@ -296,7 +296,7 @@ def test_label(self):
"""Create a label."""
operation = "Draft Label"
_msg(" Test '{}'".format(operation))
_msg(" Occasionaly crashes")
_msg(" Occasionally crashes")
target_point = Vector(0, 0, 0)
distance = -25
placement = App.Placement(Vector(50, 50, 0), App.Rotation())
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Draft/draftutils/init_tools.py
@@ -1,7 +1,7 @@
"""Provides lists of commands for the Draft Workbench.
This module returns lists of commands, so that the toolbars
can be initilized by Draft, and by other workbenches.
can be initialized by Draft, and by other workbenches.
These commands should be defined in `DraftTools`, and in the individual
modules in `draftguitools`.
"""
Expand Down
8 changes: 4 additions & 4 deletions src/Mod/Draft/draftutils/utils.py
Expand Up @@ -196,7 +196,7 @@ def get_param_type(param):


def get_param(param, default=None):
"""Return a paramater value from the current parameter database.
"""Return a parameter value from the current parameter database.
The parameter database is located in the tree
::
Expand Down Expand Up @@ -318,7 +318,7 @@ def set_param(param, value):


def precision():
"""Return the precision value from the paramater database.
"""Return the precision value from the parameter database.
It is the number of decimal places that a float will have.
Example
Expand Down Expand Up @@ -378,7 +378,7 @@ def epsilon():
def get_real_name(name):
"""Strip the trailing numbers from a string to get only the letters.
Paramaters
Parameters
----------
name : str
A string that may have a number at the end, `Line001`.
Expand All @@ -402,7 +402,7 @@ def get_real_name(name):
def get_type(obj):
"""Return a string indicating the type of the given object.
Paramaters
Parameters
----------
obj : App::DocumentObject
Any type of scripted object created with Draft,
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Draft/importDXF.py
Expand Up @@ -83,7 +83,7 @@ def translate(context, txt):
dxfLibrary = None

# Save the native open function to avoid collisions
# with the function declated here
# with the function declared here
if open.__module__ in ['__builtin__', 'io']:
pythonopen = open

Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Fem/femmesh/meshtools.py
Expand Up @@ -1349,7 +1349,7 @@ def get_ref_facenodes_areas(
node_area_table.append((face_table[mf][5], middle_node_area))

elif femmesh_facetype == 8: # 8 node femmesh face quad
# corner_node_area = -mesh_face_area / 12.0 (negativ!)
# corner_node_area = -mesh_face_area / 12.0 (negative!)
# mid-side nodes = mesh_face_area / 3.0
# P4_________P7________P3
# | / | \ |
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Fem/femsolver/calculix/writer.py
Expand Up @@ -1160,7 +1160,7 @@ def write_constraints_pressure(self, f):
f.write("*DLOAD\n")
for ref_shape in femobj["PressureFaces"]:
# the loop is needed for compatibility reason
# in depretiated method get_pressure_obj_faces_depreciated
# in depreciated method get_pressure_obj_faces_depreciated
# the face ids where per ref_shape
f.write("** " + ref_shape[0] + "\n")
for face, fno in ref_shape[1]:
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Fem/femtools/femutils.py
Expand Up @@ -120,7 +120,7 @@ def is_derived_from(obj, t):
def get_pref_working_dir(solver_obj):
""" Return working directory for solver honoring user settings.
:throws femtools.erros.MustSaveError:
:throws femtools.errors.MustSaveError:
If user setting is set to BESIDE and the document isn't saved.
:note:
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Part/App/AttachEnginePy.xml
Expand Up @@ -14,7 +14,7 @@
<Documentation>
<Author Licence="LGPL" Name="DeepSOIC" EMail="vv.titov@gmail.com" />
<DeveloperDocu>AttachEngine abstract class</DeveloperDocu>
<UserDocu>AttachEngine abstract class - the functinality of AttachableObject, but outside of DocumentObject</UserDocu>
<UserDocu>AttachEngine abstract class - the functionality of AttachableObject, but outside of DocumentObject</UserDocu>
</Documentation>
<Attribute Name="AttacherType" ReadOnly="true">
<Documentation>
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Part/CompoundTools/CompoundFilter.py
Expand Up @@ -207,7 +207,7 @@ def onDelete(self, feature, subelements): # subelements is a tuple of strings
if not self.ViewObject.DontUnhideOnDelete:
try:
if self.Object.Base:
# the base object migt be deleted be the user
# the base object might be deleted be the user
# https://forum.freecadweb.org/viewtopic.php?f=3&t=42242
self.Object.Base.ViewObject.show()
if self.Object.Stencil:
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/PartDesign/App/ShapeBinder.cpp
Expand Up @@ -507,7 +507,7 @@ void SubShapeBinder::update(SubShapeBinder::UpdateOption options) {
Shape.setValue(result);
}

// collect transformation matrix cache entires
// collect transformation matrix cache entries
std::unordered_set<std::string> caches;
for(const auto &name : getDynamicPropertyNames()) {
if(boost::starts_with(name,"Cache_"))
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/PartDesign/Gui/TaskDressUpParameters.cpp
Expand Up @@ -173,7 +173,7 @@ void TaskDressUpParameters::doubleClicked(QListWidgetItem* item) {

// assure the fillets are shown
showObject();
// remove any highlights andd selections
// remove any highlights and selections
DressUpView->highlightReferences(false);
Gui::Selection().clearSelection();

Expand Down
2 changes: 1 addition & 1 deletion src/Mod/PartDesign/Gui/TaskSketchBasedParameters.h
Expand Up @@ -55,7 +55,7 @@ class TaskSketchBasedParameters : public PartDesignGui::TaskFeatureParameters,
void exitSelectionMode();
QVariant setUpToFace(const QString& text);
/// Try to find the name of a feature with the given label.
/// For faster access a suggeted name can be tested, first.
/// For faster access a suggested name can be tested, first.
QVariant objectNameByLabel(const QString& label, const QVariant& suggest) const;

static QString getFaceReference(const QString& obj, const QString& sub);
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Path/PathScripts/PathUtil.py
Expand Up @@ -64,7 +64,7 @@ def getProperty(obj, prop):
return attr

def getPropertyValueString(obj, prop):
'''getPropertyValueString(obj, prop) ... answer a string represntation of an object's property's value.'''
'''getPropertyValueString(obj, prop) ... answer a string representation of an object's property's value.'''
attr = getProperty(obj, prop)
if hasattr(attr, 'UserString'):
return attr.UserString
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Path/PathScripts/PathUtils.py
Expand Up @@ -21,7 +21,7 @@
# * USA *
# * *
# ***************************************************************************
'''PathUtils -common functions used in PathScripts for filterig, sorting, and generating gcode toolpath data '''
'''PathUtils -common functions used in PathScripts for filtering, sorting, and generating gcode toolpath data '''
import FreeCAD
import Part
import Path
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Sketcher/App/Sketch.h
Expand Up @@ -365,7 +365,7 @@ class SketcherExport Sketch :public Base::Persistence
Line = 2, // 2 Points(start,end), 4 Parameters(x1,y1,x2,y2)
Arc = 3, // 3 Points(start,end,mid), (4)+5 Parameters((x1,y1,x2,y2),x,y,r,a1,a2)
Circle = 4, // 1 Point(mid), 3 Parameters(x,y,r)
Ellipse = 5, // 1 Point(mid), 5 Parameters(x,y,r1,r2,phi) phi=angle xaxis of elipse with respect of sketch xaxis
Ellipse = 5, // 1 Point(mid), 5 Parameters(x,y,r1,r2,phi) phi=angle xaxis of ellipse with respect of sketch xaxis
ArcOfEllipse = 6,
ArcOfHyperbola = 7,
ArcOfParabola = 8,
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Sketcher/Gui/CommandCreateGeo.cpp
Expand Up @@ -6637,10 +6637,10 @@ namespace SketcherGui {
this->notAllowedReason = QT_TR_NOOP("This object is in another document.");
break;
case Sketcher::SketchObject::rlOtherBody:
this->notAllowedReason = QT_TR_NOOP("This object belongs to another body. Hold Ctrl to allow crossreferences.");
this->notAllowedReason = QT_TR_NOOP("This object belongs to another body. Hold Ctrl to allow cross-references.");
break;
case Sketcher::SketchObject::rlOtherBodyWithLinks:
this->notAllowedReason = QT_TR_NOOP("This object belongs to another body and it contains external geometry. Crossreference not allowed.");
this->notAllowedReason = QT_TR_NOOP("This object belongs to another body and it contains external geometry. Cross-reference not allowed.");
break;
case Sketcher::SketchObject::rlOtherPart:
this->notAllowedReason = QT_TR_NOOP("This object belongs to another part.");
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/TechDraw/App/DrawProjGroupItem.h
Expand Up @@ -56,7 +56,7 @@ class TechDrawExport DrawProjGroupItem : public TechDraw::DrawViewPart
virtual ~DrawProjGroupItem();

App::PropertyEnumeration Type;
App::PropertyVector RotationVector; //this is superceded by dvp xdirection
App::PropertyVector RotationVector; //this is superseded by dvp xdirection

short mustExecute() const override;
virtual void onDocumentRestored() override;
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/TechDraw/Gui/DlgPrefsTechDraw5.ui
Expand Up @@ -135,7 +135,7 @@
<enum>Qt::NoFocus</enum>
</property>
<property name="toolTip">
<string>Show Hard and Outline Edges (alway shown)</string>
<string>Show Hard and Outline Edges (always shown)</string>
</property>
<property name="text">
<string>Show Hard Lines</string>
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/TechDraw/Gui/TaskWeldingSymbol.cpp
Expand Up @@ -86,7 +86,7 @@ TaskWeldingSymbol::TaskWeldingSymbol(TechDraw::DrawLeaderLine* leader) :
m_arrowDirty(false),
m_otherDirty(false)
{
//TODO: why does DWS nedd DLL as parent?
//TODO: why does DWS need DLL as parent?
// Base::Console().Message("TWS::TWS() - create mode\n");
if (m_leadFeat == nullptr) {
//should be caught in CMD caller
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/TechDraw/Gui/ViewProviderPage.cpp
Expand Up @@ -463,7 +463,7 @@ void ViewProviderPage::setGraphicsView(QGVPage* gv)

bool ViewProviderPage::canDelete(App::DocumentObject *obj) const
{
// deletions from a page don't necesarily destroy anything
// deletions from a page don't necessarily destroy anything
// thus we can pass this action
// if an object could break something, like e.g. the template object
// its ViewProvider handles this in the onDelete() function
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/TechDraw/Gui/ViewProviderProjGroup.cpp
Expand Up @@ -217,7 +217,7 @@ bool ViewProviderProjGroup::onDelete(const std::vector<std::string> &)

bool ViewProviderProjGroup::canDelete(App::DocumentObject *obj) const
{
// deletions of views from a ProjGroup don't necesarily destroy anything
// deletions of views from a ProjGroup don't necessarily destroy anything
// thus we can pass this action
// we can warn the user if necessary in the object's ViewProvider in the onDelete() function
Q_UNUSED(obj)
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/TechDraw/Gui/ViewProviderProjGroupItem.cpp
Expand Up @@ -212,7 +212,7 @@ bool ViewProviderProjGroupItem::onDelete(const std::vector<std::string> &)

bool ViewProviderProjGroupItem::canDelete(App::DocumentObject *obj) const
{
// deletions of objects from a ProjGroupItem don't necesarily destroy anything
// deletions of objects from a ProjGroupItem don't necessarily destroy anything
// thus we can pass this action
// we can warn the user if necessary in the object's ViewProvider in the onDelete() function
Q_UNUSED(obj)
Expand Down

0 comments on commit 180805c

Please sign in to comment.