mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
ifcgit: move action buttons below revision list in a labelled row
Generated with the assistance of an AI coding tool.
This commit is contained in:
@@ -202,7 +202,7 @@ class DeleteTag(bpy.types.Operator):
|
|||||||
class RefreshGit(bpy.types.Operator):
|
class RefreshGit(bpy.types.Operator):
|
||||||
"""Refresh revision list"""
|
"""Refresh revision list"""
|
||||||
|
|
||||||
bl_label = ""
|
bl_label = "Refresh"
|
||||||
bl_idname = "ifcgit.refresh"
|
bl_idname = "ifcgit.refresh"
|
||||||
bl_options = {"REGISTER"}
|
bl_options = {"REGISTER"}
|
||||||
|
|
||||||
@@ -225,7 +225,7 @@ class RefreshGit(bpy.types.Operator):
|
|||||||
class DisplayRevision(bpy.types.Operator):
|
class DisplayRevision(bpy.types.Operator):
|
||||||
"""Colourise objects by selected revision"""
|
"""Colourise objects by selected revision"""
|
||||||
|
|
||||||
bl_label = ""
|
bl_label = "Colourise Revision"
|
||||||
bl_idname = "ifcgit.display_revision"
|
bl_idname = "ifcgit.display_revision"
|
||||||
bl_options = {"REGISTER"}
|
bl_options = {"REGISTER"}
|
||||||
|
|
||||||
@@ -260,7 +260,7 @@ class DisplayUncommitted(bpy.types.Operator):
|
|||||||
class SwitchRevision(bpy.types.Operator):
|
class SwitchRevision(bpy.types.Operator):
|
||||||
"""Switches the repository to the selected revision and reloads the IFC file"""
|
"""Switches the repository to the selected revision and reloads the IFC file"""
|
||||||
|
|
||||||
bl_label = ""
|
bl_label = "Switch Revision"
|
||||||
bl_idname = "ifcgit.switch_revision"
|
bl_idname = "ifcgit.switch_revision"
|
||||||
bl_options = {"REGISTER"}
|
bl_options = {"REGISTER"}
|
||||||
|
|
||||||
|
|||||||
@@ -113,14 +113,11 @@ class IFCGIT_PT_panel(bpy.types.Panel):
|
|||||||
else:
|
else:
|
||||||
row.label(text="Working branch: " + IfcGitData.data["active_branch_name"])
|
row.label(text="Working branch: " + IfcGitData.data["active_branch_name"])
|
||||||
|
|
||||||
grouped = layout.row()
|
row = layout.row()
|
||||||
column = grouped.column()
|
|
||||||
row = column.row()
|
|
||||||
row.prop(props, "display_branch", text="Browse branch")
|
row.prop(props, "display_branch", text="Browse branch")
|
||||||
row.prop(props, "ifcgit_filter", text="Filter revisions")
|
row.prop(props, "ifcgit_filter", text="Filter revisions")
|
||||||
|
|
||||||
row = column.row()
|
layout.template_list(
|
||||||
row.template_list(
|
|
||||||
"COMMIT_UL_List",
|
"COMMIT_UL_List",
|
||||||
"The_List",
|
"The_List",
|
||||||
props,
|
props,
|
||||||
@@ -128,20 +125,13 @@ class IFCGIT_PT_panel(bpy.types.Panel):
|
|||||||
props,
|
props,
|
||||||
"commit_index",
|
"commit_index",
|
||||||
)
|
)
|
||||||
column = grouped.column()
|
|
||||||
row = column.row()
|
row = layout.row(align=True)
|
||||||
row.operator("ifcgit.refresh", icon="FILE_REFRESH")
|
row.operator("ifcgit.refresh", icon="FILE_REFRESH")
|
||||||
|
|
||||||
if not is_dirty:
|
if not is_dirty:
|
||||||
|
|
||||||
row = column.row()
|
|
||||||
row.operator("ifcgit.display_revision", icon="SELECT_DIFFERENCE")
|
row.operator("ifcgit.display_revision", icon="SELECT_DIFFERENCE")
|
||||||
|
|
||||||
row = column.row()
|
|
||||||
row.operator("ifcgit.switch_revision", icon="CURRENT_FILE")
|
row.operator("ifcgit.switch_revision", icon="CURRENT_FILE")
|
||||||
|
row.operator("ifcgit.merge", icon="SYSTEM")
|
||||||
row = column.row()
|
|
||||||
row.operator("ifcgit.merge", icon="EXPERIMENTAL", text="")
|
|
||||||
|
|
||||||
if not props.ifcgit_commits:
|
if not props.ifcgit_commits:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user