Added bookmarks TAB

This commit is contained in:
falken10
2025-04-24 08:17:48 +02:00
committed by falken10vdl
parent 2ed991ebce
commit 6ba738fcaa
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -493,8 +493,9 @@ def get_tab(
("SCHEDULING", "Costing and Scheduling", "", "NLA", 6),
("FM", "Facility Management", "", "PACKAGE", 7),
("QUALITY", "Quality and Coordination", "", "COMMUNITY", 8),
("BOOKMARKS", "Bookmarks", "", "SOLO_ON", 9),
None,
("BLENDER", "Blender Properties", "", "BLENDER", 9),
("BLENDER", "Blender Properties", "", "BLENDER", 10),
]
return get_tab.enum_items
+2
View File
@@ -964,6 +964,7 @@ class BIM_PT_tabs(Panel):
self.draw_tab_entry(row, "NLA", "SCHEDULING", is_ifc_project, aprops.tab == "SCHEDULING")
self.draw_tab_entry(row, "PACKAGE", "FM", True, aprops.tab == "FM")
self.draw_tab_entry(row, "COMMUNITY", "QUALITY", True, aprops.tab == "QUALITY")
self.draw_tab_entry(row, "SOLO_ON", "BOOKMARKS", True, aprops.tab == "BOOKMARKS") # New BOOKMARKS tab
row.operator("bim.switch_tab", text="", emboss=False, icon="UV_SYNC_SELECT")
# Yes, that's right.
@@ -980,6 +981,7 @@ class BIM_PT_tabs(Panel):
"SCHEDULING",
"FM",
"QUALITY",
"BOOKMARKS", # Include BOOKMARKS in the list
"SWITCH",
]:
# Draw a little underscore below the active tab icon.