mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
* Add first tooltip (#1646) * Add tooltips for new project * Small fix * Added more tootips * Add other tooltip to the n-panel * Add other tooltips in N Panel
This commit is contained in:
@@ -62,6 +62,7 @@ class AddTypeInstance(bpy.types.Operator):
|
||||
bl_idname = "bim.add_type_instance"
|
||||
bl_label = "Add Type Instance"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_description = "Add the selected Type Instance to the model"
|
||||
ifc_class: bpy.props.StringProperty()
|
||||
relating_type: bpy.props.IntProperty()
|
||||
|
||||
|
||||
@@ -74,6 +74,10 @@ class JoinWall(bpy.types.Operator):
|
||||
bl_idname = "bim.join_wall"
|
||||
bl_label = "Join Wall"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_description = """ Trim/Extend the selected walls to the last selected wall:
|
||||
'T' mode: Trim/Extend to the virtual projection
|
||||
'L' mode: Chamfer the walls
|
||||
'V' mode: Chamfer the walls keeping the angle"""
|
||||
join_type: bpy.props.StringProperty()
|
||||
|
||||
@classmethod
|
||||
@@ -116,6 +120,10 @@ class AlignWall(bpy.types.Operator):
|
||||
bl_idname = "bim.align_wall"
|
||||
bl_label = "Align Wall"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_description = """ Align the selected walls to the last selected wall:
|
||||
'Ext.': align to the EXTERIOR face
|
||||
'C/L': align to wall CENTERLINE
|
||||
'Int.': align to the INTERIOR face"""
|
||||
align_type: bpy.props.StringProperty()
|
||||
|
||||
@classmethod
|
||||
@@ -143,6 +151,7 @@ class FlipWall(bpy.types.Operator):
|
||||
bl_idname = "bim.flip_wall"
|
||||
bl_label = "Flip Wall"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_description = "Switch the origin from the min XY corner to the max XY corner, and rotates the origin by 180"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
@@ -160,6 +169,7 @@ class SplitWall(bpy.types.Operator):
|
||||
bl_idname = "bim.split_wall"
|
||||
bl_label = "Split Wall"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_description = "Split selected wall into two walls in correspondence of Blender cursor. The cursor must be in the wall volume"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
||||
@@ -129,6 +129,7 @@ class SelectLibraryFile(bpy.types.Operator):
|
||||
bl_idname = "bim.select_library_file"
|
||||
bl_label = "Select Library File"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_description = "Select an IFC file that can be used as a library"
|
||||
filepath: bpy.props.StringProperty(subtype="FILE_PATH")
|
||||
filter_glob: bpy.props.StringProperty(default="*.ifc;*.ifczip;*.ifcxml", options={"HIDDEN"})
|
||||
|
||||
@@ -437,6 +438,7 @@ class EnableEditingHeader(bpy.types.Operator):
|
||||
bl_idname = "bim.enable_editing_header"
|
||||
bl_label = "Enable Editing Header"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_description = "Edit the IFC header file such as Author, Organization, ..."
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
@@ -473,6 +475,7 @@ class EditHeader(bpy.types.Operator):
|
||||
bl_idname = "bim.edit_header"
|
||||
bl_label = "Edit Header"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_description = "Save header informations"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
@@ -528,6 +531,7 @@ class DisableEditingHeader(bpy.types.Operator):
|
||||
bl_idname = "bim.disable_editing_header"
|
||||
bl_label = "Disable Editing Header"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_description = "Cancel unsaved header informations"
|
||||
|
||||
def execute(self, context):
|
||||
context.scene.BIMProjectProperties.is_editing = False
|
||||
@@ -538,6 +542,7 @@ class LoadProject(bpy.types.Operator):
|
||||
bl_idname = "bim.load_project"
|
||||
bl_label = "Load Project"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_description = "Load an existing IFC project"
|
||||
filepath: bpy.props.StringProperty(subtype="FILE_PATH")
|
||||
filter_glob: bpy.props.StringProperty(default="*.ifc;*.ifczip;*.ifcxml", options={"HIDDEN"})
|
||||
is_advanced: bpy.props.BoolProperty(name="Enable Advanced Mode", default=False)
|
||||
@@ -654,6 +659,7 @@ class LinkIfc(bpy.types.Operator):
|
||||
bl_idname = "bim.link_ifc"
|
||||
bl_label = "Link IFC"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_description = "Link a Blender file"
|
||||
filepath: bpy.props.StringProperty(subtype="FILE_PATH")
|
||||
filter_glob: bpy.props.StringProperty(default="*.blend;*.blend1", options={"HIDDEN"})
|
||||
|
||||
@@ -672,6 +678,7 @@ class UnlinkIfc(bpy.types.Operator):
|
||||
bl_idname = "bim.unlink_ifc"
|
||||
bl_label = "UnLink IFC"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_description = "Remove the selected file from the link list"
|
||||
filepath: bpy.props.StringProperty()
|
||||
|
||||
def execute(self, context):
|
||||
@@ -686,6 +693,7 @@ class UnloadLink(bpy.types.Operator):
|
||||
bl_idname = "bim.unload_link"
|
||||
bl_label = "Unload Link"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_description = "Unload the selected linked file"
|
||||
filepath: bpy.props.StringProperty()
|
||||
|
||||
def execute(self, context):
|
||||
@@ -704,6 +712,7 @@ class LoadLink(bpy.types.Operator):
|
||||
bl_idname = "bim.load_link"
|
||||
bl_label = "Load Link"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_description = "Load the selected file"
|
||||
filepath: bpy.props.StringProperty()
|
||||
|
||||
def execute(self, context):
|
||||
|
||||
@@ -115,6 +115,7 @@ class AssignClass(bpy.types.Operator):
|
||||
bl_idname = "bim.assign_class"
|
||||
bl_label = "Assign IFC Class"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_description = "Assign the IFC Class to the selected object"
|
||||
obj: bpy.props.StringProperty()
|
||||
ifc_class: bpy.props.StringProperty()
|
||||
predefined_type: bpy.props.StringProperty()
|
||||
|
||||
@@ -68,6 +68,7 @@ class LoadUnits(bpy.types.Operator, Operator):
|
||||
bl_idname = "bim.load_units"
|
||||
bl_label = "Load Units"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_description = "Open the loaded units"
|
||||
|
||||
def _execute(self, context):
|
||||
core.load_units(tool.Unit)
|
||||
@@ -77,6 +78,7 @@ class DisableUnitEditingUI(bpy.types.Operator, Operator):
|
||||
bl_idname = "bim.disable_unit_editing_ui"
|
||||
bl_label = "Disable Unit Editing UI"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_description = "Close the editing units mode"
|
||||
|
||||
def _execute(self, context):
|
||||
core.disable_unit_editing_ui(tool.Unit)
|
||||
|
||||
@@ -42,6 +42,7 @@ class SelectIfcFile(bpy.types.Operator):
|
||||
bl_idname = "bim.select_ifc_file"
|
||||
bl_label = "Select IFC File"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_description = "Select a different IFC file"
|
||||
filepath: bpy.props.StringProperty(subtype="FILE_PATH")
|
||||
filter_glob: bpy.props.StringProperty(default="*.ifc;*.ifczip;*.ifcxml", options={"HIDDEN"})
|
||||
|
||||
@@ -59,6 +60,7 @@ class SelectDataDir(bpy.types.Operator):
|
||||
bl_idname = "bim.select_data_dir"
|
||||
bl_label = "Select Data Directory"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_description = "Select the directory that contains all IFC data es. PSet, styles, etc..."
|
||||
filepath: bpy.props.StringProperty(subtype="FILE_PATH")
|
||||
|
||||
def execute(self, context):
|
||||
@@ -74,6 +76,7 @@ class SelectSchemaDir(bpy.types.Operator):
|
||||
bl_idname = "bim.select_schema_dir"
|
||||
bl_label = "Select Schema Directory"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_description = "Select the directory containing the IFC schema specification"
|
||||
filepath: bpy.props.StringProperty(subtype="FILE_PATH")
|
||||
|
||||
def execute(self, context):
|
||||
@@ -331,6 +334,7 @@ class ReloadIfcFile(bpy.types.Operator):
|
||||
bl_idname = "bim.reload_ifc_file"
|
||||
bl_label = "Reload IFC File"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_description = "Reload the same IFC file"
|
||||
|
||||
def execute(self, context):
|
||||
# TODO: reimplement. See #1222.
|
||||
|
||||
Reference in New Issue
Block a user