mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 04:59:52 +00:00
More grid panel to spatial subpanel
This commit is contained in:
@@ -144,7 +144,7 @@ classes = [
|
|||||||
# Project overview
|
# Project overview
|
||||||
ui.BIM_PT_tab_new_project_wizard,
|
ui.BIM_PT_tab_new_project_wizard,
|
||||||
ui.BIM_PT_tab_project_info,
|
ui.BIM_PT_tab_project_info,
|
||||||
ui.BIM_PT_tab_spatial_decomposition,
|
ui.BIM_PT_tab_spatial,
|
||||||
ui.BIM_PT_tab_project_setup,
|
ui.BIM_PT_tab_project_setup,
|
||||||
ui.BIM_PT_tab_geometry,
|
ui.BIM_PT_tab_geometry,
|
||||||
ui.BIM_PT_tab_stakeholders,
|
ui.BIM_PT_tab_stakeholders,
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ classes = (
|
|||||||
ui.BIM_PT_roof,
|
ui.BIM_PT_roof,
|
||||||
ui.LaunchTypeManager,
|
ui.LaunchTypeManager,
|
||||||
ui.BIM_MT_model,
|
ui.BIM_MT_model,
|
||||||
ui.BIM_PT_Grids,
|
|
||||||
grid.BIM_OT_add_object,
|
grid.BIM_OT_add_object,
|
||||||
stair.BIM_OT_add_stair,
|
stair.BIM_OT_add_stair,
|
||||||
stair.AddStair,
|
stair.AddStair,
|
||||||
|
|||||||
@@ -160,19 +160,6 @@ class BIM_PT_authoring(Panel):
|
|||||||
row.operator("bim.toggle_space_visibility")
|
row.operator("bim.toggle_space_visibility")
|
||||||
|
|
||||||
|
|
||||||
class BIM_PT_Grids(Panel):
|
|
||||||
bl_label = "Grids"
|
|
||||||
bl_idname = "BIM_PT_Grids"
|
|
||||||
bl_options = {"DEFAULT_CLOSED"}
|
|
||||||
bl_space_type = "PROPERTIES"
|
|
||||||
bl_region_type = "WINDOW"
|
|
||||||
bl_context = "scene"
|
|
||||||
bl_parent_id = "BIM_PT_tab_project_setup"
|
|
||||||
|
|
||||||
def draw(self, context):
|
|
||||||
self.layout.row().operator("mesh.add_grid", icon="ADD", text="Add Grids")
|
|
||||||
|
|
||||||
|
|
||||||
class BIM_PT_array(bpy.types.Panel):
|
class BIM_PT_array(bpy.types.Panel):
|
||||||
bl_label = "Array"
|
bl_label = "Array"
|
||||||
bl_idname = "BIM_PT_array"
|
bl_idname = "BIM_PT_array"
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ classes = (
|
|||||||
ui.BIM_UL_containers_manager,
|
ui.BIM_UL_containers_manager,
|
||||||
ui.BIM_UL_elements,
|
ui.BIM_UL_elements,
|
||||||
ui.BIM_PT_spatial_decomposition,
|
ui.BIM_PT_spatial_decomposition,
|
||||||
|
ui.BIM_PT_grids,
|
||||||
workspace.Hotkey,
|
workspace.Hotkey,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -95,8 +95,7 @@ class BIM_PT_spatial_decomposition(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_spatial_decomposition"
|
bl_parent_id = "BIM_PT_tab_spatial"
|
||||||
bl_options = {"HIDE_HEADER"}
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
@@ -196,6 +195,19 @@ class BIM_PT_spatial_decomposition(Panel):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
class BIM_PT_grids(Panel):
|
||||||
|
bl_label = "Grids"
|
||||||
|
bl_idname = "BIM_PT_grids"
|
||||||
|
bl_options = {"DEFAULT_CLOSED"}
|
||||||
|
bl_space_type = "PROPERTIES"
|
||||||
|
bl_region_type = "WINDOW"
|
||||||
|
bl_context = "scene"
|
||||||
|
bl_parent_id = "BIM_PT_tab_spatial"
|
||||||
|
|
||||||
|
def draw(self, context):
|
||||||
|
self.layout.row().operator("mesh.add_grid", icon="ADD", text="Add Grids")
|
||||||
|
|
||||||
|
|
||||||
class BIM_UL_containers_manager(UIList):
|
class BIM_UL_containers_manager(UIList):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.use_filter_show = True
|
self.use_filter_show = True
|
||||||
|
|||||||
@@ -522,8 +522,8 @@ class BIM_PT_tab_project_info(Panel):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class BIM_PT_tab_spatial_decomposition(Panel):
|
class BIM_PT_tab_spatial(Panel):
|
||||||
bl_label = "Spatial Decomposition"
|
bl_label = "Spatial"
|
||||||
bl_space_type = "PROPERTIES"
|
bl_space_type = "PROPERTIES"
|
||||||
bl_region_type = "WINDOW"
|
bl_region_type = "WINDOW"
|
||||||
bl_context = "scene"
|
bl_context = "scene"
|
||||||
|
|||||||
Reference in New Issue
Block a user