Arch: use new name of the icon Part_3D_object
It is defined in the Part Workbench. Before, it was called `Tree_Part`.
This commit is contained in:
@@ -1001,8 +1001,9 @@ class AxisSystemTaskPanel:
|
||||
return QtGui.QIcon(":/icons/Sketcher_Sketch.svg")
|
||||
elif obj.isDerivedFrom("App::DocumentObjectGroup"):
|
||||
return QtGui.QApplication.style().standardIcon(QtGui.QStyle.SP_DirIcon)
|
||||
else:
|
||||
return QtGui.QIcon(":/icons/Tree_Part.svg")
|
||||
elif hasattr(obj.ViewObject, "Icon"):
|
||||
return QtGui.QIcon(obj.ViewObject.Icon)
|
||||
return QtGui.QIcon(":/icons/Part_3D_object.svg")
|
||||
|
||||
def update(self):
|
||||
|
||||
|
||||
@@ -1805,11 +1805,13 @@ class ComponentTaskPanel:
|
||||
if hasattr(obj.ViewObject,"Proxy"):
|
||||
if hasattr(obj.ViewObject.Proxy,"getIcon"):
|
||||
return QtGui.QIcon(obj.ViewObject.Proxy.getIcon())
|
||||
if obj.isDerivedFrom("Sketcher::SketchObject"):
|
||||
elif obj.isDerivedFrom("Sketcher::SketchObject"):
|
||||
return QtGui.QIcon(":/icons/Sketcher_Sketch.svg")
|
||||
if obj.isDerivedFrom("App::DocumentObjectGroup"):
|
||||
elif obj.isDerivedFrom("App::DocumentObjectGroup"):
|
||||
return QtGui.QApplication.style().standardIcon(QtGui.QStyle.SP_DirIcon)
|
||||
return QtGui.QIcon(":/icons/Tree_Part.svg")
|
||||
elif hasattr(obj.ViewObject, "Icon"):
|
||||
return QtGui.QIcon(obj.ViewObject.Icon)
|
||||
return QtGui.QIcon(":/icons/Part_3D_object.svg")
|
||||
|
||||
def update(self):
|
||||
"""Populate the treewidget with its various items.
|
||||
|
||||
@@ -1611,8 +1611,10 @@ class NestTaskPanel:
|
||||
if hasattr(obj.ViewObject,"Proxy"):
|
||||
if hasattr(obj.ViewObject.Proxy,"getIcon"):
|
||||
i.setIcon(QtGui.QIcon(obj.ViewObject.Proxy.getIcon()))
|
||||
elif hasattr(obj.ViewObject, "Icon"):
|
||||
i.setIcon(QtGui.QIcon(obj.ViewObject.Icon))
|
||||
else:
|
||||
i.setIcon(QtGui.QIcon(":/icons/Tree_Part.svg"))
|
||||
i.setIcon(QtGui.QIcon(":/icons/Part_3D_object.svg"))
|
||||
form.addItem(i)
|
||||
|
||||
def removeShapes(self):
|
||||
|
||||
@@ -1384,8 +1384,9 @@ class SectionPlaneTaskPanel:
|
||||
return QtGui.QIcon(":/icons/Sketcher_Sketch.svg")
|
||||
elif obj.isDerivedFrom("App::DocumentObjectGroup"):
|
||||
return QtGui.QApplication.style().standardIcon(QtGui.QStyle.SP_DirIcon)
|
||||
else:
|
||||
return QtGui.QIcon(":/icons/Tree_Part.svg")
|
||||
elif hasattr(obj.ViewObject, "Icon"):
|
||||
return QtGui.QIcon(obj.ViewObject.Icon)
|
||||
return QtGui.QIcon(":/icons/Part_3D_object.svg")
|
||||
|
||||
def update(self):
|
||||
'fills the treewidget'
|
||||
|
||||
@@ -1327,9 +1327,11 @@ class _ArchWindowTaskPanel:
|
||||
if hasattr(obj.ViewObject,"Proxy"):
|
||||
if hasattr(obj.ViewObject.Proxy,"getIcon"):
|
||||
return QtGui.QIcon(obj.ViewObject.Proxy.getIcon())
|
||||
if obj.isDerivedFrom("Sketcher::SketchObject"):
|
||||
elif obj.isDerivedFrom("Sketcher::SketchObject"):
|
||||
return QtGui.QIcon(":/icons/Sketcher_Sketch.svg")
|
||||
return QtGui.QIcon(":/icons/Tree_Part.svg")
|
||||
elif hasattr(obj.ViewObject, "Icon"):
|
||||
return QtGui.QIcon(obj.ViewObject.Icon)
|
||||
return QtGui.QIcon(":/icons/Part_3D_object.svg")
|
||||
|
||||
def update(self):
|
||||
|
||||
@@ -1355,7 +1357,7 @@ class _ArchWindowTaskPanel:
|
||||
for p in range(0,len(self.obj.WindowParts),5):
|
||||
item = QtGui.QTreeWidgetItem(self.comptree)
|
||||
item.setText(0,self.obj.WindowParts[p])
|
||||
item.setIcon(0,QtGui.QIcon(":/icons/Tree_Part.svg"))
|
||||
item.setIcon(0, QtGui.QIcon(":/icons/Part_3D_object.svg"))
|
||||
if hasattr(self.obj,"HoleWire"):
|
||||
self.holeNumber.setText(str(self.obj.HoleWire))
|
||||
else:
|
||||
|
||||
@@ -1837,7 +1837,7 @@ def explorer(filename,schema="IFC2X3_TC1.exp"):
|
||||
elif e.type in ["IFCROOF"]:
|
||||
item.setIcon(1,QtGui.QIcon(":icons/Arch_Roof_Tree.svg"))
|
||||
elif e.type in ["IFCEXTRUDEDAREASOLID","IFCCLOSEDSHELL"]:
|
||||
item.setIcon(1,QtGui.QIcon(":icons/Tree_Part.svg"))
|
||||
item.setIcon(1, QtGui.QIcon(":/icons/Part_3D_object.svg"))
|
||||
elif e.type in ["IFCFACE"]:
|
||||
item.setIcon(1,QtGui.QIcon(":icons/Draft_SwitchMode.svg"))
|
||||
elif e.type in ["IFCARBITRARYCLOSEDPROFILEDEF","IFCPOLYLOOP"]:
|
||||
|
||||
Reference in New Issue
Block a user