mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
Start improving UI for clash detection and management
This commit is contained in:
@@ -152,6 +152,7 @@ classes = [
|
|||||||
ui.BIM_PT_tab_operations,
|
ui.BIM_PT_tab_operations,
|
||||||
# Quality and coordination
|
# Quality and coordination
|
||||||
ui.BIM_PT_tab_quality_control,
|
ui.BIM_PT_tab_quality_control,
|
||||||
|
ui.BIM_PT_tab_clash_detection,
|
||||||
ui.BIM_PT_tab_collaboration,
|
ui.BIM_PT_tab_collaboration,
|
||||||
ui.BIM_PT_tab_sandbox,
|
ui.BIM_PT_tab_sandbox,
|
||||||
# TODO: move this somewhere else and clean it up
|
# TODO: move this somewhere else and clean it up
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ class BIM_PT_ifcclash(Panel):
|
|||||||
bl_space_type = "PROPERTIES"
|
bl_space_type = "PROPERTIES"
|
||||||
bl_region_type = "WINDOW"
|
bl_region_type = "WINDOW"
|
||||||
bl_context = "scene"
|
bl_context = "scene"
|
||||||
bl_parent_id = "BIM_PT_tab_quality_control"
|
bl_parent_id = "BIM_PT_tab_clash_detection"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@@ -102,9 +102,10 @@ class BIM_PT_clash_manager(Panel):
|
|||||||
bl_idname = "BIM_PT_clash_manager"
|
bl_idname = "BIM_PT_clash_manager"
|
||||||
bl_label = "Clash Manager"
|
bl_label = "Clash Manager"
|
||||||
bl_options = {"DEFAULT_CLOSED"}
|
bl_options = {"DEFAULT_CLOSED"}
|
||||||
bl_space_type = "VIEW_3D"
|
bl_space_type = "PROPERTIES"
|
||||||
bl_region_type = "UI"
|
bl_region_type = "WINDOW"
|
||||||
bl_category = "BlenderBIM"
|
bl_context = "scene"
|
||||||
|
bl_parent_id = "BIM_PT_tab_clash_detection"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
|||||||
@@ -464,6 +464,18 @@ class BIM_PT_tab_quality_control(Panel):
|
|||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
class BIM_PT_tab_clash_detection(Panel):
|
||||||
|
bl_label = "Clash Detection"
|
||||||
|
bl_space_type = "PROPERTIES"
|
||||||
|
bl_region_type = "WINDOW"
|
||||||
|
bl_context = "scene"
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def poll(cls, context):
|
||||||
|
return tool.Blender.is_tab(context, "QUALITY")
|
||||||
|
|
||||||
|
def draw(self, context):
|
||||||
|
pass
|
||||||
|
|
||||||
class BIM_PT_tab_sandbox(Panel):
|
class BIM_PT_tab_sandbox(Panel):
|
||||||
bl_label = "Sandbox"
|
bl_label = "Sandbox"
|
||||||
|
|||||||
Reference in New Issue
Block a user