Arch: grouped all properties into an Arch group
This commit is contained in:
parent
247ab055d4
commit
738b75043b
|
@ -71,9 +71,9 @@ class _CommandAxis:
|
|||
class _Axis:
|
||||
"The Axis object"
|
||||
def __init__(self,obj):
|
||||
obj.addProperty("App::PropertyFloatList","Distances","Base", str(translate("Arch","The intervals between axes")))
|
||||
obj.addProperty("App::PropertyFloatList","Angles","Base", str(translate("Arch","The angles of each axis")))
|
||||
obj.addProperty("App::PropertyFloat","Length","Base", str(translate("Arch","The length of the axes")))
|
||||
obj.addProperty("App::PropertyFloatList","Distances","Arch", str(translate("Arch","The intervals between axes")))
|
||||
obj.addProperty("App::PropertyFloatList","Angles","Arch", str(translate("Arch","The angles of each axis")))
|
||||
obj.addProperty("App::PropertyFloat","Length","Arch", str(translate("Arch","The length of the axes")))
|
||||
self.Type = "Axis"
|
||||
obj.Length=1.0
|
||||
obj.Proxy = self
|
||||
|
@ -113,8 +113,8 @@ class _ViewProviderAxis:
|
|||
"A View Provider for the Axis object"
|
||||
|
||||
def __init__(self,vobj):
|
||||
vobj.addProperty("App::PropertyLength","BubbleSize","Base", str(translate("Arch","The size of the axis bubbles")))
|
||||
vobj.addProperty("App::PropertyEnumeration","NumerationStyle","Base", str(translate("Arch","The numeration style")))
|
||||
vobj.addProperty("App::PropertyLength","BubbleSize","Arch", str(translate("Arch","The size of the axis bubbles")))
|
||||
vobj.addProperty("App::PropertyEnumeration","NumerationStyle","Arch", str(translate("Arch","The numeration style")))
|
||||
vobj.NumerationStyle = ["1,2,3","01,02,03","001,002,003","A,B,C","a,b,c","I,II,III","L0,L1,L2"]
|
||||
vobj.Proxy = self
|
||||
vobj.BubbleSize = .1
|
||||
|
|
|
@ -275,13 +275,13 @@ class ComponentTaskPanel:
|
|||
class Component:
|
||||
"The default Arch Component object"
|
||||
def __init__(self,obj):
|
||||
obj.addProperty("App::PropertyLink","Base","Base",
|
||||
obj.addProperty("App::PropertyLink","Base","Arch",
|
||||
"The base object this component is built upon")
|
||||
obj.addProperty("App::PropertyLinkList","Additions","Base",
|
||||
obj.addProperty("App::PropertyLinkList","Additions","Arch",
|
||||
"Other shapes that are appended to this object")
|
||||
obj.addProperty("App::PropertyLinkList","Subtractions","Base",
|
||||
obj.addProperty("App::PropertyLinkList","Subtractions","Arch",
|
||||
"Other shapes that are subtracted from this object")
|
||||
obj.addProperty("App::PropertyLinkList","Fixtures","Base",
|
||||
obj.addProperty("App::PropertyLinkList","Fixtures","Arch",
|
||||
"Shapes or Meshes that are appended to this object without modifying its geometry")
|
||||
obj.Proxy = self
|
||||
self.Type = "Component"
|
||||
|
|
|
@ -76,9 +76,9 @@ class _CommandFloor:
|
|||
class _Floor:
|
||||
"The Floor object"
|
||||
def __init__(self,obj):
|
||||
obj.addProperty("App::PropertyLength","Height","Base",
|
||||
obj.addProperty("App::PropertyLength","Height","Arch",
|
||||
str(translate("Arch","The height of this floor")))
|
||||
obj.addProperty("App::PropertyPlacement","Placement","Base",
|
||||
obj.addProperty("App::PropertyPlacement","Placement","Arch",
|
||||
str(translate("Arch","The placement of this group")))
|
||||
self.Type = "Floor"
|
||||
obj.Proxy = self
|
||||
|
|
|
@ -92,7 +92,7 @@ class _SectionPlane:
|
|||
"A section plane object"
|
||||
def __init__(self,obj):
|
||||
obj.Proxy = self
|
||||
obj.addProperty("App::PropertyLinkList","Objects","Base",
|
||||
obj.addProperty("App::PropertyLinkList","Objects","Arch",
|
||||
str(translate("Arch","The objects that must be considered by this section plane. Empty means all document")))
|
||||
self.Type = "SectionPlane"
|
||||
|
||||
|
@ -120,7 +120,7 @@ class _SectionPlane:
|
|||
class _ViewProviderSectionPlane(ArchComponent.ViewProviderComponent):
|
||||
"A View Provider for Section Planes"
|
||||
def __init__(self,vobj):
|
||||
vobj.addProperty("App::PropertyLength","DisplaySize","Base",
|
||||
vobj.addProperty("App::PropertyLength","DisplaySize","Arch",
|
||||
str(translate("Arch","The display size of this section plane")))
|
||||
vobj.DisplaySize = 1
|
||||
vobj.Transparency = 85
|
||||
|
|
|
@ -80,7 +80,7 @@ class _Site(ArchFloor._Floor):
|
|||
"The Site object"
|
||||
def __init__(self,obj):
|
||||
ArchFloor._Floor.__init__(self,obj)
|
||||
obj.addProperty("App::PropertyLink","Terrain","Base",
|
||||
obj.addProperty("App::PropertyLink","Terrain","Arch",
|
||||
str(translate("Arch","The terrain of this site")))
|
||||
self.Type = "Site"
|
||||
obj.setEditorMode('Height',2)
|
||||
|
|
|
@ -90,9 +90,9 @@ class _Space(ArchComponent.Component):
|
|||
"A space object"
|
||||
def __init__(self,obj):
|
||||
obj.Proxy = self
|
||||
obj.addProperty("App::PropertyLink","Base","Base",
|
||||
obj.addProperty("App::PropertyLink","Base","Arch",
|
||||
str(translate("Arch","A base shape defining this space")))
|
||||
obj.addProperty("App::PropertyLinkSubList","Boundaries","Base",
|
||||
obj.addProperty("App::PropertyLinkSubList","Boundaries","Arch",
|
||||
str(translate("Arch","The objects that make the boundaries of this space object")))
|
||||
self.Type = "Space"
|
||||
|
||||
|
|
|
@ -505,19 +505,19 @@ class _Structure(ArchComponent.Component):
|
|||
"The Structure object"
|
||||
def __init__(self,obj):
|
||||
ArchComponent.Component.__init__(self,obj)
|
||||
obj.addProperty("App::PropertyLink","Tool","Base",
|
||||
obj.addProperty("App::PropertyLink","Tool","Arch",
|
||||
"An optional extrusion path for this element")
|
||||
obj.addProperty("App::PropertyLength","Length","Base",
|
||||
obj.addProperty("App::PropertyLength","Length","Arch",
|
||||
str(translate("Arch","The length of this element, if not based on a profile")))
|
||||
obj.addProperty("App::PropertyLength","Width","Base",
|
||||
obj.addProperty("App::PropertyLength","Width","Arch",
|
||||
str(translate("Arch","The width of this element, if not based on a profile")))
|
||||
obj.addProperty("App::PropertyLength","Height","Base",
|
||||
obj.addProperty("App::PropertyLength","Height","Arch",
|
||||
str(translate("Arch","The height or extrusion depth of this element. Keep 0 for automatic")))
|
||||
obj.addProperty("App::PropertyLinkList","Axes","Base",
|
||||
obj.addProperty("App::PropertyLinkList","Axes","Arch",
|
||||
str(translate("Arch","Axes systems this structure is built on")))
|
||||
obj.addProperty("App::PropertyVector","Normal","Base",
|
||||
obj.addProperty("App::PropertyVector","Normal","Arch",
|
||||
str(translate("Arch","The normal extrusion direction of this object (keep (0,0,0) for automatic normal)")))
|
||||
obj.addProperty("App::PropertyIntegerList","Exclude","Base",
|
||||
obj.addProperty("App::PropertyIntegerList","Exclude","Arch",
|
||||
str(translate("Arch","The element numbers to exclude when this structure is based on axes")))
|
||||
self.Type = "Structure"
|
||||
obj.Length = 1
|
||||
|
|
|
@ -350,19 +350,19 @@ class _Wall(ArchComponent.Component):
|
|||
"The Wall object"
|
||||
def __init__(self,obj):
|
||||
ArchComponent.Component.__init__(self,obj)
|
||||
obj.addProperty("App::PropertyLength","Length","Base",
|
||||
obj.addProperty("App::PropertyLength","Length","Arch",
|
||||
str(translate("Arch","The length of this wall. Not used if this wall is based on an underlying object")))
|
||||
obj.addProperty("App::PropertyLength","Width","Base",
|
||||
obj.addProperty("App::PropertyLength","Width","Arch",
|
||||
str(translate("Arch","The width of this wall. Not used if this wall is based on a face")))
|
||||
obj.addProperty("App::PropertyLength","Height","Base",
|
||||
obj.addProperty("App::PropertyLength","Height","Arch",
|
||||
str(translate("Arch","The height of this wall. Keep 0 for automatic. Not used if this wall is based on a solid")))
|
||||
obj.addProperty("App::PropertyEnumeration","Align","Base",
|
||||
obj.addProperty("App::PropertyEnumeration","Align","Arch",
|
||||
str(translate("Arch","The alignment of this wall on its base object, if applicable")))
|
||||
obj.addProperty("App::PropertyVector","Normal","Base",
|
||||
obj.addProperty("App::PropertyVector","Normal","Arch",
|
||||
str(translate("Arch","The normal extrusion direction of this object (keep (0,0,0) for automatic normal)")))
|
||||
obj.addProperty("App::PropertyBool","ForceWire","Base",
|
||||
obj.addProperty("App::PropertyBool","ForceWire","Arch",
|
||||
str(translate("Arch","If True, if this wall is based on a face, it will use its border wire as trace, and disconsider the face.")))
|
||||
obj.addProperty("App::PropertyInteger","Face","Base",
|
||||
obj.addProperty("App::PropertyInteger","Face","Arch",
|
||||
str(translate("Arch","The face number of the base object used to build this wall")))
|
||||
obj.Align = ['Left','Right','Center']
|
||||
obj.ForceWire = False
|
||||
|
|
|
@ -115,7 +115,7 @@ class _Window(ArchComponent.Component):
|
|||
"The Window object"
|
||||
def __init__(self,obj):
|
||||
ArchComponent.Component.__init__(self,obj)
|
||||
obj.addProperty("App::PropertyStringList","WindowParts","Base",
|
||||
obj.addProperty("App::PropertyStringList","WindowParts","Arch",
|
||||
str(translate("Arch","the components of this window")))
|
||||
self.Type = "Window"
|
||||
obj.Proxy = self
|
||||
|
|
Loading…
Reference in New Issue
Block a user