Draft: change 'Filled' to 'Make face' in UI

Fixes #19715.

The related parameter has been renamed as well and other references to 'fill mode' have been updated.
This commit is contained in:
Roy-043
2025-02-20 17:15:54 +01:00
committed by Chris Hennes
parent 14f15c4a50
commit 074807c378
16 changed files with 54 additions and 81 deletions

View File

@@ -69,7 +69,7 @@ class BezCurve(DraftObject):
"The area of this object")
obj.addProperty("App::PropertyArea", "Area", "Draft", _tip)
obj.MakeFace = params.get_param("fillmode")
obj.MakeFace = params.get_param("MakeFaceMode")
obj.Closed = False
obj.Degree = 3
obj.Continuity = []

View File

@@ -56,7 +56,7 @@ class BSpline(DraftObject):
_tip = QT_TRANSLATE_NOOP("App::Property", "The area of this object")
obj.addProperty("App::PropertyArea","Area", "Draft", _tip)
obj.MakeFace = params.get_param("fillmode")
obj.MakeFace = params.get_param("MakeFaceMode")
obj.Closed = False
obj.Points = []
self.assureProperties(obj)

View File

@@ -62,7 +62,7 @@ class Circle(DraftObject):
obj.addProperty("App::PropertyArea", "Area",
"Draft", _tip)
obj.MakeFace = params.get_param("fillmode")
obj.MakeFace = params.get_param("MakeFaceMode")
def onDocumentRestored(self, obj):
super().onDocumentRestored(obj)

View File

@@ -60,7 +60,7 @@ class Ellipse(DraftObject):
_tip = QT_TRANSLATE_NOOP("App::Property","Area of this object")
obj.addProperty("App::PropertyArea", "Area","Draft", _tip)
obj.MakeFace = params.get_param("fillmode")
obj.MakeFace = params.get_param("MakeFaceMode")
def onDocumentRestored(self, obj):
super().onDocumentRestored(obj)

View File

@@ -71,7 +71,7 @@ class Polygon(DraftObject):
"The area of this object")
obj.addProperty("App::PropertyArea", "Area", "Draft", _tip)
obj.MakeFace = params.get_param("fillmode")
obj.MakeFace = params.get_param("MakeFaceMode")
obj.DrawMode = ['inscribed','circumscribed']
obj.FacesNumber = 0
obj.Radius = 1

View File

@@ -66,7 +66,7 @@ class Rectangle(DraftObject):
_tip = QT_TRANSLATE_NOOP("App::Property", "The area of this object")
obj.addProperty("App::PropertyArea", "Area", "Draft", _tip)
obj.MakeFace = params.get_param("fillmode")
obj.MakeFace = params.get_param("MakeFaceMode")
obj.Length=1
obj.Height=1
obj.Rows=1

View File

@@ -92,7 +92,7 @@ class Wire(DraftObject):
"The area of this object")
obj.addProperty("App::PropertyArea","Area", "Draft",_tip)
obj.MakeFace = params.get_param("fillmode")
obj.MakeFace = params.get_param("MakeFaceMode")
obj.Closed = False
def onDocumentRestored(self, obj):