Correct tooltip messages for enabling and disabling edit buttons

This commit is contained in:
Nathan Hild
2023-04-10 10:28:10 +02:00
parent 6f5e39849a
commit ec1af01545
4 changed files with 13 additions and 13 deletions
@@ -1459,7 +1459,7 @@ class EditAssignedProduct(bpy.types.Operator, Operator):
class EnableEditingAssignedProduct(bpy.types.Operator, Operator): class EnableEditingAssignedProduct(bpy.types.Operator, Operator):
bl_idname = "bim.enable_editing_assigned_product" bl_idname = "bim.enable_editing_assigned_product"
bl_label = "Enable Editing Text Product" bl_label = "Enable Editing Assigned Product"
bl_options = {"REGISTER", "UNDO"} bl_options = {"REGISTER", "UNDO"}
def _execute(self, context): def _execute(self, context):
@@ -1468,7 +1468,7 @@ class EnableEditingAssignedProduct(bpy.types.Operator, Operator):
class DisableEditingAssignedProduct(bpy.types.Operator, Operator): class DisableEditingAssignedProduct(bpy.types.Operator, Operator):
bl_idname = "bim.disable_editing_assigned_product" bl_idname = "bim.disable_editing_assigned_product"
bl_label = "Disable Editing Text Product" bl_label = "Disable Editing Assigned Product"
bl_options = {"REGISTER", "UNDO"} bl_options = {"REGISTER", "UNDO"}
def _execute(self, context): def _execute(self, context):
@@ -1503,7 +1503,7 @@ class LoadSheets(bpy.types.Operator, Operator):
class DisableEditingSheets(bpy.types.Operator, Operator): class DisableEditingSheets(bpy.types.Operator, Operator):
bl_idname = "bim.disable_editing_sheets" bl_idname = "bim.disable_editing_sheets"
bl_label = "Disable Editing Text Product" bl_label = "Disable Editing Sheets"
bl_options = {"REGISTER", "UNDO"} bl_options = {"REGISTER", "UNDO"}
def _execute(self, context): def _execute(self, context):
@@ -1521,7 +1521,7 @@ class LoadSchedules(bpy.types.Operator, Operator):
class DisableEditingSchedules(bpy.types.Operator, Operator): class DisableEditingSchedules(bpy.types.Operator, Operator):
bl_idname = "bim.disable_editing_schedules" bl_idname = "bim.disable_editing_schedules"
bl_label = "Disable Editing Text Product" bl_label = "Disable Editing Schedules"
bl_options = {"REGISTER", "UNDO"} bl_options = {"REGISTER", "UNDO"}
def _execute(self, context): def _execute(self, context):
@@ -1539,7 +1539,7 @@ class LoadDrawings(bpy.types.Operator, Operator):
class DisableEditingDrawings(bpy.types.Operator, Operator): class DisableEditingDrawings(bpy.types.Operator, Operator):
bl_idname = "bim.disable_editing_drawings" bl_idname = "bim.disable_editing_drawings"
bl_label = "Disable Editing Text Product" bl_label = "Disable Editing Drawings"
bl_options = {"REGISTER", "UNDO"} bl_options = {"REGISTER", "UNDO"}
def _execute(self, context): def _execute(self, context):
@@ -516,7 +516,7 @@ class EditAssignedMaterial(bpy.types.Operator, tool.Ifc.Operator):
class EnableEditingMaterialSetItemProfile(bpy.types.Operator): class EnableEditingMaterialSetItemProfile(bpy.types.Operator):
bl_idname = "bim.enable_editing_material_set_item_profile" bl_idname = "bim.enable_editing_material_set_item_profile"
bl_label = "Enable Editing Material Set Item" bl_label = "Enable Editing Material Set Item Profile"
bl_options = {"REGISTER", "UNDO"} bl_options = {"REGISTER", "UNDO"}
obj: bpy.props.StringProperty() obj: bpy.props.StringProperty()
material_set_item: bpy.props.IntProperty() material_set_item: bpy.props.IntProperty()
@@ -532,7 +532,7 @@ class EnableEditingMaterialSetItemProfile(bpy.types.Operator):
class DisableEditingMaterialSetItemProfile(bpy.types.Operator): class DisableEditingMaterialSetItemProfile(bpy.types.Operator):
bl_idname = "bim.disable_editing_material_set_item_profile" bl_idname = "bim.disable_editing_material_set_item_profile"
bl_label = "Disable Editing Material Set Item" bl_label = "Disable Editing Material Set Item Profile"
bl_options = {"REGISTER", "UNDO"} bl_options = {"REGISTER", "UNDO"}
obj: bpy.props.StringProperty() obj: bpy.props.StringProperty()
@@ -74,7 +74,7 @@ class EnableEditingResource(bpy.types.Operator):
class DisableEditingResource(bpy.types.Operator): class DisableEditingResource(bpy.types.Operator):
bl_idname = "bim.disable_editing_resource" bl_idname = "bim.disable_editing_resource"
bl_label = "Disable Editing Resources" bl_label = "Disable Editing Resource"
bl_options = {"REGISTER", "UNDO"} bl_options = {"REGISTER", "UNDO"}
def execute(self, context): def execute(self, context):
@@ -161,7 +161,7 @@ class UnassignResource(bpy.types.Operator, tool.Ifc.Operator):
class EnableEditingResourceTime(bpy.types.Operator, tool.Ifc.Operator): class EnableEditingResourceTime(bpy.types.Operator, tool.Ifc.Operator):
bl_idname = "bim.enable_editing_resource_time" bl_idname = "bim.enable_editing_resource_time"
bl_label = "Enable Editing Resource Usage" bl_label = "Enable Editing Resource Time"
bl_options = {"REGISTER", "UNDO"} bl_options = {"REGISTER", "UNDO"}
resource: bpy.props.IntProperty() resource: bpy.props.IntProperty()
@@ -267,7 +267,7 @@ class EditResourceCostValue(bpy.types.Operator, tool.Ifc.Operator):
class EnableEditingResourceBaseQuantity(bpy.types.Operator): class EnableEditingResourceBaseQuantity(bpy.types.Operator):
bl_idname = "bim.enable_editing_resource_base_quantity" bl_idname = "bim.enable_editing_resource_base_quantity"
bl_label = "Enable Editing Resource Quantity" bl_label = "Enable Editing Resource Base Quantity"
bl_options = {"REGISTER", "UNDO"} bl_options = {"REGISTER", "UNDO"}
resource: bpy.props.IntProperty() resource: bpy.props.IntProperty()
@@ -170,7 +170,7 @@ class EnableEditingWorkSchedule(bpy.types.Operator):
class EnableEditingWorkScheduleTasks(bpy.types.Operator): class EnableEditingWorkScheduleTasks(bpy.types.Operator):
bl_idname = "bim.enable_editing_work_schedule_tasks" bl_idname = "bim.enable_editing_work_schedule_tasks"
bl_label = "Enable Editing Tasks" bl_label = "Enable Editing Work Schedule Tasks"
bl_options = {"REGISTER", "UNDO"} bl_options = {"REGISTER", "UNDO"}
work_schedule: bpy.props.IntProperty() work_schedule: bpy.props.IntProperty()
@@ -961,7 +961,7 @@ class EditSequenceTimeLag(bpy.types.Operator, tool.Ifc.Operator):
class DisableEditingSequence(bpy.types.Operator): class DisableEditingSequence(bpy.types.Operator):
bl_idname = "bim.disable_editing_sequence" bl_idname = "bim.disable_editing_sequence"
bl_label = "Disable Editing Sequence Attributes" bl_label = "Disable Editing Sequence"
bl_options = {"REGISTER", "UNDO"} bl_options = {"REGISTER", "UNDO"}
def execute(self, context): def execute(self, context):
@@ -1276,7 +1276,7 @@ class LoadTaskAnimationColors(bpy.types.Operator):
class DisableEditingTaskAnimationColors(bpy.types.Operator): class DisableEditingTaskAnimationColors(bpy.types.Operator):
bl_idname = "bim.disable_editing_task_animation_colors" bl_idname = "bim.disable_editing_task_animation_colors"
bl_label = "Disable Editing Colors" bl_label = "Disable Editing Task Animation Colors"
bl_options = {"REGISTER", "UNDO"} bl_options = {"REGISTER", "UNDO"}
def execute(self, context): def execute(self, context):