FEM: fix typos
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
# * *
|
||||
# ***************************************************************************
|
||||
|
||||
__title__ = "FreeCAD FEM postprocessing data exxtractor base objcts"
|
||||
__title__ = "FreeCAD FEM postprocessing data exxtractor base objects"
|
||||
__author__ = "Stefan Tröger"
|
||||
__url__ = "https://www.freecad.org"
|
||||
|
||||
@@ -127,7 +127,7 @@ class Extractor(base_fempythonobject.BaseFemPythonObject):
|
||||
return ["Not a vector"]
|
||||
|
||||
def get_representive_fieldname(self, obj):
|
||||
# should return the representive field name, e.g. Position (X)
|
||||
# should return the representative field name, e.g. Position (X)
|
||||
return ""
|
||||
|
||||
|
||||
@@ -259,7 +259,7 @@ class Extractor1D(Extractor):
|
||||
return array
|
||||
|
||||
def get_representive_fieldname(self, obj):
|
||||
# representive field is the x field
|
||||
# representative field is the x field
|
||||
label = obj.XField
|
||||
if not label:
|
||||
return ""
|
||||
@@ -387,7 +387,7 @@ class Extractor2D(Extractor1D):
|
||||
return array
|
||||
|
||||
def get_representive_fieldname(self, obj):
|
||||
# representive field is the y field
|
||||
# representative field is the y field
|
||||
label = obj.YField
|
||||
if not label:
|
||||
return ""
|
||||
|
||||
@@ -40,7 +40,7 @@ translate = FreeCAD.Qt.translate
|
||||
|
||||
class _BasePostTaskPanel(base_femtaskpanel._BaseTaskPanel):
|
||||
"""
|
||||
The TaskPanel for post objects, mimicing the c++ functionality
|
||||
The TaskPanel for post objects, mimicking the c++ functionality
|
||||
"""
|
||||
|
||||
def __init__(self, obj):
|
||||
|
||||
@@ -44,7 +44,7 @@ False if FemGui.__name__ else True # flake8, dummy FemGui usage
|
||||
class _GuiPropHelper(_PropHelper):
|
||||
"""
|
||||
Helper class to manage property data inside proxy objects.
|
||||
Based on the App verison, but viewprovider addProperty does
|
||||
Based on the App version, but viewprovider addProperty does
|
||||
not take keyword args, hence we use positional arguments here
|
||||
"""
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ class VPPostExtractor:
|
||||
def onChanged(self, vobj, prop):
|
||||
|
||||
# one of our view properties was changed. Lets inform our parent visualization
|
||||
# that this happend, as this is the one that needs to redraw
|
||||
# that this happened, as this is the one that needs to redraw
|
||||
|
||||
if prop == "Proxy":
|
||||
return
|
||||
|
||||
@@ -118,7 +118,7 @@ class VPPostVisualization:
|
||||
|
||||
def get_next_default_color(self):
|
||||
# Returns the next default color a new object should use
|
||||
# Returns color in FreeCAD proeprty notation (r,g,b,a)
|
||||
# Returns color in FreeCAD property notation (r,g,b,a)
|
||||
# If the relevant extractors do not have color properties, this
|
||||
# can stay unimplemented
|
||||
raise FreeCAD.Base.FreeCADError("Not implemented")
|
||||
|
||||
@@ -89,7 +89,7 @@ class EditViewWidget(QtGui.QWidget):
|
||||
self.widget.HatchDensity.valueChanged.connect(self.hatchDensityChanged)
|
||||
self.widget.LineWidth.valueChanged.connect(self.lineWidthChanged)
|
||||
|
||||
# sometimes wierd sizes occur with spinboxes
|
||||
# sometimes weird sizes occur with spinboxes
|
||||
self.widget.HatchDensity.setMaximumHeight(self.widget.Hatch.sizeHint().height())
|
||||
self.widget.LineWidth.setMaximumHeight(self.widget.LineStyle.sizeHint().height())
|
||||
|
||||
@@ -228,7 +228,7 @@ class EditIndexAppWidget(QtGui.QWidget):
|
||||
self.widget.Field.activated.connect(self.fieldChanged)
|
||||
self.widget.Component.activated.connect(self.componentChanged)
|
||||
|
||||
# sometimes wierd sizes occur with spinboxes
|
||||
# sometimes weird sizes occur with spinboxes
|
||||
self.widget.Index.setMaximumHeight(self.widget.Field.sizeHint().height())
|
||||
|
||||
@QtCore.Slot(int)
|
||||
@@ -250,7 +250,7 @@ class EditIndexAppWidget(QtGui.QWidget):
|
||||
|
||||
class VPPostHistogramFieldData(view_base_fempostextractors.VPPostExtractor):
|
||||
"""
|
||||
A View Provider for extraction of 1D field data specialy for histograms
|
||||
A View Provider for extraction of 1D field data specially for histograms
|
||||
"""
|
||||
|
||||
def __init__(self, vobj):
|
||||
@@ -396,7 +396,7 @@ class VPPostHistogram(view_base_fempostvisualization.VPPostVisualization):
|
||||
name="Cumulative",
|
||||
group="Histogram",
|
||||
doc=QT_TRANSLATE_NOOP(
|
||||
"FEM", "If be the bars shoud show the cumulative sum left to rigth"
|
||||
"FEM", "If be the bars should show the cumulative sum left to right"
|
||||
),
|
||||
value=False,
|
||||
),
|
||||
|
||||
@@ -87,7 +87,7 @@ class EditViewWidget(QtGui.QWidget):
|
||||
self.widget.MarkerSize.valueChanged.connect(self.markerSizeChanged)
|
||||
self.widget.LineWidth.valueChanged.connect(self.lineWidthChanged)
|
||||
|
||||
# sometimes wierd sizes occur with spinboxes
|
||||
# sometimes weird sizes occur with spinboxes
|
||||
self.widget.MarkerSize.setMaximumHeight(self.widget.MarkerStyle.sizeHint().height())
|
||||
self.widget.LineWidth.setMaximumHeight(self.widget.LineStyle.sizeHint().height())
|
||||
|
||||
@@ -242,7 +242,7 @@ class EditIndexAppWidget(QtGui.QWidget):
|
||||
self.widget.YField.activated.connect(self.yFieldChanged)
|
||||
self.widget.YComponent.activated.connect(self.yComponentChanged)
|
||||
|
||||
# sometimes wierd sizes occur with spinboxes
|
||||
# sometimes weird sizes occur with spinboxes
|
||||
self.widget.Index.setMaximumHeight(self.widget.YField.sizeHint().height())
|
||||
|
||||
@QtCore.Slot(int)
|
||||
@@ -266,7 +266,7 @@ class EditIndexAppWidget(QtGui.QWidget):
|
||||
|
||||
class VPPostLineplotFieldData(view_base_fempostextractors.VPPostExtractor):
|
||||
"""
|
||||
A View Provider for extraction of 2D field data specialy for histograms
|
||||
A View Provider for extraction of 2D field data specially for histograms
|
||||
"""
|
||||
|
||||
def __init__(self, vobj):
|
||||
@@ -403,7 +403,7 @@ class VPPostLineplot(view_base_fempostvisualization.VPPostVisualization):
|
||||
name="Grid",
|
||||
group="Lineplot",
|
||||
doc=QT_TRANSLATE_NOOP(
|
||||
"FEM", "If be the bars shoud show the cumulative sum left to rigth"
|
||||
"FEM", "If be the bars should show the cumulative sum left to right"
|
||||
),
|
||||
value=True,
|
||||
),
|
||||
|
||||
@@ -148,7 +148,7 @@ class EditIndexAppWidget(QtGui.QWidget):
|
||||
self.widget.Field.activated.connect(self.fieldChanged)
|
||||
self.widget.Component.activated.connect(self.componentChanged)
|
||||
|
||||
# sometimes wierd sizes occur with spinboxes
|
||||
# sometimes weird sizes occur with spinboxes
|
||||
self.widget.Index.setMaximumHeight(self.widget.Field.sizeHint().height())
|
||||
|
||||
@QtCore.Slot(int)
|
||||
@@ -170,7 +170,7 @@ class EditIndexAppWidget(QtGui.QWidget):
|
||||
|
||||
class VPPostTableFieldData(view_base_fempostextractors.VPPostExtractor):
|
||||
"""
|
||||
A View Provider for extraction of 1D field data specialy for tables
|
||||
A View Provider for extraction of 1D field data specially for tables
|
||||
"""
|
||||
|
||||
def __init__(self, vobj):
|
||||
|
||||
Reference in New Issue
Block a user