mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Move Spatial Manager UI to "IFC Project Set-up"
This commit is contained in:
@@ -115,7 +115,6 @@ classes = (
|
||||
ui.BIM_PT_roof,
|
||||
ui.LaunchTypeManager,
|
||||
ui.BIM_MT_model,
|
||||
ui.BIM_PT_GridsSpatialManager,
|
||||
ui.BIM_PT_Grids,
|
||||
grid.BIM_OT_add_object,
|
||||
stair.BIM_OT_add_object,
|
||||
|
||||
@@ -139,30 +139,20 @@ class BIM_PT_authoring(Panel):
|
||||
row.operator("bim.toggle_space_visibility")
|
||||
|
||||
|
||||
class BIM_PT_GridsSpatialManager(Panel):
|
||||
bl_label = "Grids and Containers"
|
||||
bl_idname = "BIM_PT_GridsSpatialManager"
|
||||
class BIM_PT_Grids(Panel):
|
||||
bl_label = "Grids"
|
||||
bl_idname = "BIM_PT_Grids"
|
||||
bl_space_type = "VIEW_3D"
|
||||
bl_region_type = "UI"
|
||||
bl_options = {"DEFAULT_CLOSED"}
|
||||
bl_category = "BlenderBIM"
|
||||
|
||||
def draw(self, context):
|
||||
pass
|
||||
|
||||
class BIM_PT_Grids(Panel):
|
||||
bl_label = "Grid Creator"
|
||||
bl_idname = "BIM_PT_Grids"
|
||||
bl_space_type = "VIEW_3D"
|
||||
bl_region_type = "UI"
|
||||
bl_options = {"DEFAULT_CLOSED"}
|
||||
bl_parent_id = "BIM_PT_GridsSpatialManager"
|
||||
|
||||
def draw(self, context):
|
||||
self.animation_props = context.scene.BIMAnimationProperties
|
||||
row = self.layout.row()
|
||||
row.operator("mesh.add_grid", icon="ADD", text="Add Grids")
|
||||
|
||||
|
||||
class BIM_PT_array(bpy.types.Panel):
|
||||
bl_label = "IFC Array"
|
||||
bl_idname = "BIM_PT_array"
|
||||
|
||||
@@ -45,7 +45,7 @@ classes = (
|
||||
ui.BIM_PT_spatial,
|
||||
ui.BIM_UL_containers,
|
||||
ui.BIM_UL_containers_manager,
|
||||
ui.BIM_PT_Storeys,
|
||||
ui.BIM_PT_SpatialManager,
|
||||
workspace.Hotkey,
|
||||
)
|
||||
|
||||
|
||||
@@ -96,13 +96,14 @@ class BIM_UL_containers(UIList):
|
||||
)
|
||||
|
||||
|
||||
class BIM_PT_Storeys(Panel):
|
||||
bl_label = "Spatial Manager"
|
||||
bl_idname = "BIM_PT_Storeys"
|
||||
bl_space_type = "VIEW_3D"
|
||||
bl_region_type = "UI"
|
||||
class BIM_PT_SpatialManager(Panel):
|
||||
bl_label = "IFC Spatial Manager"
|
||||
bl_idname = "BIM_PT_SpatialManager"
|
||||
bl_space_type = "PROPERTIES"
|
||||
bl_region_type = "WINDOW"
|
||||
bl_context = "scene"
|
||||
bl_options = {"DEFAULT_CLOSED"}
|
||||
bl_parent_id = "BIM_PT_GridsSpatialManager"
|
||||
bl_parent_id = "BIM_PT_project_setup"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
||||
Reference in New Issue
Block a user