mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 01:10:01 +00:00
Rename operator
This commit is contained in:
@@ -87,7 +87,7 @@ classes = [
|
|||||||
operator.AddIfcFile,
|
operator.AddIfcFile,
|
||||||
operator.RemoveIfcFile,
|
operator.RemoveIfcFile,
|
||||||
operator.ConfigureVisibility,
|
operator.ConfigureVisibility,
|
||||||
operator.BIM_OT_show_attribute_documentation,
|
operator.BIM_OT_show_ifc_documentation,
|
||||||
operator.BIM_OT_open_webbrowser,
|
operator.BIM_OT_open_webbrowser,
|
||||||
prop.StrProperty,
|
prop.StrProperty,
|
||||||
prop.ObjProperty,
|
prop.ObjProperty,
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ def draw_attribute(attribute, layout, copy_operator=None, info_mode=False):
|
|||||||
op = layout.operator(f"{copy_operator}", text="", icon="COPYDOWN")
|
op = layout.operator(f"{copy_operator}", text="", icon="COPYDOWN")
|
||||||
op.name = attribute.name
|
op.name = attribute.name
|
||||||
if info_mode:
|
if info_mode:
|
||||||
info_op = layout.operator("bim.show_attribute_documentation", icon="INFO", text="")
|
info_op = layout.operator("bim.show_ifc_documentation", icon="INFO", text="")
|
||||||
info_op.path = f"{attribute.path_from_id()}"
|
info_op.path = f"{attribute.path_from_id()}"
|
||||||
|
|
||||||
|
|
||||||
@@ -109,7 +109,6 @@ def get_ifc_class_usecase(class_name):
|
|||||||
yield "This is a usecase"
|
yield "This is a usecase"
|
||||||
yield "You are supposed to use this class in this situation"
|
yield "You are supposed to use this class in this situation"
|
||||||
yield "Or that situation"
|
yield "Or that situation"
|
||||||
yield "Otherwise you'll be in trouble !!"
|
|
||||||
|
|
||||||
|
|
||||||
def export_attributes(props, callback=None):
|
def export_attributes(props, callback=None):
|
||||||
|
|||||||
@@ -376,8 +376,8 @@ class BIM_OT_open_webbrowser(bpy.types.Operator):
|
|||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
|
||||||
|
|
||||||
class BIM_OT_show_attribute_documentation(bpy.types.Operator):
|
class BIM_OT_show_ifc_documentation(bpy.types.Operator):
|
||||||
bl_idname = "bim.show_attribute_documentation"
|
bl_idname = "bim.show_ifc_documentation"
|
||||||
bl_label = ""
|
bl_label = ""
|
||||||
|
|
||||||
path: bpy.props.StringProperty()
|
path: bpy.props.StringProperty()
|
||||||
|
|||||||
Reference in New Issue
Block a user