From 1982069b698b2b9c02deda9aa0c5cdc3305b059f Mon Sep 17 00:00:00 2001 From: rileywong311 Date: Thu, 10 Aug 2023 12:29:12 -0700 Subject: [PATCH] Add description to Brick operators --- .../blenderbim/bim/module/brick/operator.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/blenderbim/blenderbim/bim/module/brick/operator.py b/src/blenderbim/blenderbim/bim/module/brick/operator.py index 7778fd6eef..64358b12a6 100644 --- a/src/blenderbim/blenderbim/bim/module/brick/operator.py +++ b/src/blenderbim/blenderbim/bim/module/brick/operator.py @@ -37,6 +37,7 @@ class LoadBrickProject(bpy.types.Operator, Operator): bl_idname = "bim.load_brick_project" bl_label = "Load Brickschema Project" bl_options = {"REGISTER", "UNDO"} + bl_description = "Load in a Brick project from a file" filepath: bpy.props.StringProperty(subtype="FILE_PATH") filter_glob: bpy.props.StringProperty(default="*.ttl", options={"HIDDEN"}) @@ -56,6 +57,7 @@ class ViewBrickClass(bpy.types.Operator, Operator): bl_idname = "bim.view_brick_class" bl_label = "View Brick Class" bl_options = {"REGISTER", "UNDO"} + bl_description = "Inspect the subclasses of this class" brick_class: bpy.props.StringProperty(name="Brick Class") split_screen: bpy.props.BoolProperty(name="Split Screen", default=False, options={"HIDDEN"}) @@ -67,6 +69,7 @@ class ViewBrickItem(bpy.types.Operator, Operator): bl_idname = "bim.view_brick_item" bl_label = "View Brick Item" bl_options = {"REGISTER", "UNDO"} + bl_description = "Inspect this entity in the viewer" item: bpy.props.StringProperty(name="Brick Item") split_screen: bpy.props.BoolProperty(name="Split Screen", default=False, options={"HIDDEN"}) @@ -78,6 +81,7 @@ class RewindBrickClass(bpy.types.Operator, Operator): bl_idname = "bim.rewind_brick_class" bl_label = "Rewind Brick Class" bl_options = {"REGISTER", "UNDO"} + bl_description = "Go back to the previous list view" split_screen: bpy.props.BoolProperty(name="Split Screen", default=False, options={"HIDDEN"}) def _execute(self, context): @@ -88,6 +92,7 @@ class CloseBrickProject(bpy.types.Operator, Operator): bl_idname = "bim.close_brick_project" bl_label = "Close Brick Project" bl_options = {"REGISTER", "UNDO"} + bl_description = "Close the Brick project" def _execute(self, context): core.close_brick_project(tool.Brick) @@ -122,6 +127,7 @@ class AddBrick(bpy.types.Operator, Operator): bl_idname = "bim.add_brick" bl_label = "Add Brick" bl_options = {"REGISTER", "UNDO"} + bl_description = "Create the Brick entity" def _execute(self, context): props = context.scene.BIMBrickProperties @@ -143,6 +149,7 @@ class AddBrickRelation(bpy.types.Operator, Operator): bl_idname = "bim.add_brick_relation" bl_label = "Add Brick Relation" bl_options = {"REGISTER", "UNDO"} + bl_description = "Create the Brick relationship" def _execute(self, context): props = context.scene.BIMBrickProperties @@ -178,6 +185,7 @@ class NewBrickFile(bpy.types.Operator): bl_idname = "bim.new_brick_file" bl_label = "New Brick File" bl_options = {"REGISTER", "UNDO"} + bl_description = "Create a Brick project from scratch" def execute(self, context): IfcStore.begin_transaction(self) @@ -210,6 +218,7 @@ class RefreshBrickViewer(bpy.types.Operator, Operator): bl_idname = "bim.refresh_brick_viewer" bl_label = "Refresh Brick Viewer" bl_options = {"REGISTER", "UNDO"} + bl_description = "Refresh the list view" split_screen: bpy.props.BoolProperty(name="Split Screen", default=False, options={"HIDDEN"}) def _execute(self, context): @@ -220,6 +229,7 @@ class RemoveBrick(bpy.types.Operator, Operator): bl_idname = "bim.remove_brick" bl_label = "Remove Brick" bl_options = {"REGISTER", "UNDO"} + bl_description = "Delete this entity" def _execute(self, context): props = context.scene.BIMBrickProperties @@ -262,6 +272,7 @@ class SerializeBrick(bpy.types.Operator): class AddBrickNamespace(bpy.types.Operator, Operator): bl_idname = "bim.add_brick_namespace" bl_label = "Add Brick Namespace" + bl_description = "Bind a new namespace to the Brick project" def _execute(self, context): props = context.scene.BIMBrickProperties @@ -274,6 +285,7 @@ class RemoveBrickRelation(bpy.types.Operator, Operator): bl_idname = "bim.remove_brick_relation" bl_label = "Remove Relation" bl_options = {"REGISTER", "UNDO"} + bl_description = "Delete this relationship" predicate: bpy.props.StringProperty(name="Relation") object: bpy.props.StringProperty(name="Object")