Made Path objects properties translatable - fixes #2524

This commit is contained in:
Yorik van Havre
2016-10-07 22:21:02 -03:00
parent e284a00570
commit 4375299724
26 changed files with 175 additions and 180 deletions

View File

@@ -40,11 +40,10 @@ except AttributeError:
class Stock:
def __init__(self, obj):
"Make stock"
obj.addProperty("App::PropertyFloat","Length_Allowance","Stock","extra allownace from part width").Length_Allowance = 1.0
obj.addProperty("App::PropertyFloat","Width_Allowance","Stock","extra allownace from part width").Width_Allowance = 1.0
obj.addProperty("App::PropertyFloat","Height_Allowance","Stock","extra allownace from part width").Height_Allowance = 1.0
obj.addProperty("App::PropertyLink","Base","Base",
"The base object this represents")
obj.addProperty("App::PropertyFloat","Length_Allowance","Stock",QtCore.QT_TRANSLATE_NOOP("App::Property","extra allownace from part width")).Length_Allowance = 1.0
obj.addProperty("App::PropertyFloat","Width_Allowance","Stock",QtCore.QT_TRANSLATE_NOOP("App::Property","extra allownace from part width")).Width_Allowance = 1.0
obj.addProperty("App::PropertyFloat","Height_Allowance","Stock",QtCore.QT_TRANSLATE_NOOP("App::Property","extra allownace from part width")).Height_Allowance = 1.0
obj.addProperty("App::PropertyLink","Base","Base",QtCore.QT_TRANSLATE_NOOP("App::Property","The base object this represents"))
obj.Proxy = self
def __getstate__(self):