mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 06:00:51 +00:00
bsdd - add buttons to open URIs in browser
Examples: - https://i.imgur.com/zSvU9vp.png - https://imgur.com/a/WkbTiVa
This commit is contained in:
@@ -68,8 +68,7 @@ class BIM_PT_bsdd(Panel):
|
|||||||
row = box.row(align=True)
|
row = box.row(align=True)
|
||||||
row.label(text="Version")
|
row.label(text="Version")
|
||||||
row.label(text=selected_domain.version)
|
row.label(text=selected_domain.version)
|
||||||
box.label(text="URI:")
|
box.operator("bim.open_uri", text="Open bSDD In Browser", icon="URL").uri = selected_domain.uri
|
||||||
box.label(text=selected_domain.uri)
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
row = self.layout.row()
|
row = self.layout.row()
|
||||||
@@ -99,3 +98,4 @@ class BIM_UL_bsdd_classifications(UIList):
|
|||||||
row = layout.row(align=True)
|
row = layout.row(align=True)
|
||||||
row.label(text=item.reference_code)
|
row.label(text=item.reference_code)
|
||||||
row.label(text=item.name)
|
row.label(text=item.name)
|
||||||
|
row.operator("bim.open_uri", text="", icon="URL").uri = item.uri
|
||||||
|
|||||||
Reference in New Issue
Block a user