mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 13:48:03 +00:00
Work schedule UI - hide buttons labels to make it more tidy
This commit is contained in:
@@ -269,6 +269,7 @@ class EditWorkSchedule(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
class RemoveWorkSchedule(bpy.types.Operator, tool.Ifc.Operator):
|
class RemoveWorkSchedule(bpy.types.Operator, tool.Ifc.Operator):
|
||||||
bl_idname = "bim.remove_work_schedule"
|
bl_idname = "bim.remove_work_schedule"
|
||||||
bl_label = "Remove Work Schedule"
|
bl_label = "Remove Work Schedule"
|
||||||
|
back_reference = "Remove provided work schedule."
|
||||||
bl_options = {"REGISTER", "UNDO"}
|
bl_options = {"REGISTER", "UNDO"}
|
||||||
work_schedule: bpy.props.IntProperty()
|
work_schedule: bpy.props.IntProperty()
|
||||||
|
|
||||||
@@ -279,6 +280,7 @@ class RemoveWorkSchedule(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
class EnableEditingWorkSchedule(bpy.types.Operator):
|
class EnableEditingWorkSchedule(bpy.types.Operator):
|
||||||
bl_idname = "bim.enable_editing_work_schedule"
|
bl_idname = "bim.enable_editing_work_schedule"
|
||||||
bl_label = "Enable Editing Work Schedule"
|
bl_label = "Enable Editing Work Schedule"
|
||||||
|
bl_description = "Enable editing work schedule attributes."
|
||||||
bl_options = {"REGISTER", "UNDO"}
|
bl_options = {"REGISTER", "UNDO"}
|
||||||
work_schedule: bpy.props.IntProperty()
|
work_schedule: bpy.props.IntProperty()
|
||||||
|
|
||||||
@@ -290,6 +292,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 Work Schedule Tasks"
|
bl_label = "Enable Editing Work Schedule Tasks"
|
||||||
|
bl_description = "Enable editing work scheduke tasks."
|
||||||
bl_options = {"REGISTER", "UNDO"}
|
bl_options = {"REGISTER", "UNDO"}
|
||||||
work_schedule: bpy.props.IntProperty()
|
work_schedule: bpy.props.IntProperty()
|
||||||
|
|
||||||
|
|||||||
@@ -238,13 +238,14 @@ class BIM_PT_work_schedules(Panel):
|
|||||||
)
|
)
|
||||||
col2 = grid.column()
|
col2 = grid.column()
|
||||||
row = col2.row(align=True)
|
row = col2.row(align=True)
|
||||||
row.operator("bim.enable_editing_work_schedule_tasks", text="Tasks", icon="ACTION").work_schedule = (
|
row.alignment = "RIGHT"
|
||||||
|
row.operator("bim.enable_editing_work_schedule_tasks", text="", icon="ACTION").work_schedule = (
|
||||||
work_schedule_id
|
work_schedule_id
|
||||||
)
|
)
|
||||||
row.operator(
|
row.operator("bim.enable_editing_work_schedule", text="", icon="GREASEPENCIL").work_schedule = (
|
||||||
"bim.enable_editing_work_schedule", text="Attributes", icon="GREASEPENCIL"
|
work_schedule_id
|
||||||
).work_schedule = work_schedule_id
|
)
|
||||||
row.operator("bim.remove_work_schedule", text="Delete", icon="X").work_schedule = work_schedule_id
|
row.operator("bim.remove_work_schedule", text="", icon="X").work_schedule = work_schedule_id
|
||||||
if self.props.active_work_schedule_id == work_schedule_id:
|
if self.props.active_work_schedule_id == work_schedule_id:
|
||||||
if self.props.editing_type == "WORK_SCHEDULE":
|
if self.props.editing_type == "WORK_SCHEDULE":
|
||||||
self.draw_editable_work_schedule_ui()
|
self.draw_editable_work_schedule_ui()
|
||||||
|
|||||||
Reference in New Issue
Block a user