Arch: grouped all properties into an Arch group

This commit is contained in:
Yorik van Havre 2013-09-07 20:00:41 -03:00
parent 247ab055d4
commit 738b75043b
9 changed files with 31 additions and 31 deletions

View File

@ -71,9 +71,9 @@ class _CommandAxis:
class _Axis: class _Axis:
"The Axis object" "The Axis object"
def __init__(self,obj): def __init__(self,obj):
obj.addProperty("App::PropertyFloatList","Distances","Base", str(translate("Arch","The intervals between axes"))) obj.addProperty("App::PropertyFloatList","Distances","Arch", str(translate("Arch","The intervals between axes")))
obj.addProperty("App::PropertyFloatList","Angles","Base", str(translate("Arch","The angles of each axis"))) obj.addProperty("App::PropertyFloatList","Angles","Arch", 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::PropertyFloat","Length","Arch", str(translate("Arch","The length of the axes")))
self.Type = "Axis" self.Type = "Axis"
obj.Length=1.0 obj.Length=1.0
obj.Proxy = self obj.Proxy = self
@ -113,8 +113,8 @@ class _ViewProviderAxis:
"A View Provider for the Axis object" "A View Provider for the Axis object"
def __init__(self,vobj): def __init__(self,vobj):
vobj.addProperty("App::PropertyLength","BubbleSize","Base", str(translate("Arch","The size of the axis bubbles"))) vobj.addProperty("App::PropertyLength","BubbleSize","Arch", str(translate("Arch","The size of the axis bubbles")))
vobj.addProperty("App::PropertyEnumeration","NumerationStyle","Base", str(translate("Arch","The numeration style"))) 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.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.Proxy = self
vobj.BubbleSize = .1 vobj.BubbleSize = .1

View File

@ -275,13 +275,13 @@ class ComponentTaskPanel:
class Component: class Component:
"The default Arch Component object" "The default Arch Component object"
def __init__(self,obj): def __init__(self,obj):
obj.addProperty("App::PropertyLink","Base","Base", obj.addProperty("App::PropertyLink","Base","Arch",
"The base object this component is built upon") "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") "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") "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") "Shapes or Meshes that are appended to this object without modifying its geometry")
obj.Proxy = self obj.Proxy = self
self.Type = "Component" self.Type = "Component"

View File

@ -76,9 +76,9 @@ class _CommandFloor:
class _Floor: class _Floor:
"The Floor object" "The Floor object"
def __init__(self,obj): def __init__(self,obj):
obj.addProperty("App::PropertyLength","Height","Base", obj.addProperty("App::PropertyLength","Height","Arch",
str(translate("Arch","The height of this floor"))) 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"))) str(translate("Arch","The placement of this group")))
self.Type = "Floor" self.Type = "Floor"
obj.Proxy = self obj.Proxy = self

View File

@ -92,7 +92,7 @@ class _SectionPlane:
"A section plane object" "A section plane object"
def __init__(self,obj): def __init__(self,obj):
obj.Proxy = self 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"))) str(translate("Arch","The objects that must be considered by this section plane. Empty means all document")))
self.Type = "SectionPlane" self.Type = "SectionPlane"
@ -120,7 +120,7 @@ class _SectionPlane:
class _ViewProviderSectionPlane(ArchComponent.ViewProviderComponent): class _ViewProviderSectionPlane(ArchComponent.ViewProviderComponent):
"A View Provider for Section Planes" "A View Provider for Section Planes"
def __init__(self,vobj): 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"))) str(translate("Arch","The display size of this section plane")))
vobj.DisplaySize = 1 vobj.DisplaySize = 1
vobj.Transparency = 85 vobj.Transparency = 85

View File

@ -80,7 +80,7 @@ class _Site(ArchFloor._Floor):
"The Site object" "The Site object"
def __init__(self,obj): def __init__(self,obj):
ArchFloor._Floor.__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"))) str(translate("Arch","The terrain of this site")))
self.Type = "Site" self.Type = "Site"
obj.setEditorMode('Height',2) obj.setEditorMode('Height',2)

View File

@ -90,9 +90,9 @@ class _Space(ArchComponent.Component):
"A space object" "A space object"
def __init__(self,obj): def __init__(self,obj):
obj.Proxy = self obj.Proxy = self
obj.addProperty("App::PropertyLink","Base","Base", obj.addProperty("App::PropertyLink","Base","Arch",
str(translate("Arch","A base shape defining this space"))) 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"))) str(translate("Arch","The objects that make the boundaries of this space object")))
self.Type = "Space" self.Type = "Space"

View File

@ -505,19 +505,19 @@ class _Structure(ArchComponent.Component):
"The Structure object" "The Structure object"
def __init__(self,obj): def __init__(self,obj):
ArchComponent.Component.__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") "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"))) 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"))) 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"))) 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"))) 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)"))) 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"))) str(translate("Arch","The element numbers to exclude when this structure is based on axes")))
self.Type = "Structure" self.Type = "Structure"
obj.Length = 1 obj.Length = 1

View File

@ -350,19 +350,19 @@ class _Wall(ArchComponent.Component):
"The Wall object" "The Wall object"
def __init__(self,obj): def __init__(self,obj):
ArchComponent.Component.__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"))) 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"))) 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"))) 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"))) 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)"))) 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."))) 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"))) str(translate("Arch","The face number of the base object used to build this wall")))
obj.Align = ['Left','Right','Center'] obj.Align = ['Left','Right','Center']
obj.ForceWire = False obj.ForceWire = False

View File

@ -115,7 +115,7 @@ class _Window(ArchComponent.Component):
"The Window object" "The Window object"
def __init__(self,obj): def __init__(self,obj):
ArchComponent.Component.__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"))) str(translate("Arch","the components of this window")))
self.Type = "Window" self.Type = "Window"
obj.Proxy = self obj.Proxy = self