mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
Move all N panels back into the scene tabs. No more panels spread around!
Qto, 4D tools, 5D tools now in the Costing/Scheduling tab. The misc panel is now in the sandbox. Git history panel is now with the main Git panel.
This commit is contained in:
@@ -170,6 +170,7 @@ classes = [
|
|||||||
ui.BIM_PT_tab_structural,
|
ui.BIM_PT_tab_structural,
|
||||||
# Construction scheduling
|
# Construction scheduling
|
||||||
ui.BIM_PT_tab_status,
|
ui.BIM_PT_tab_status,
|
||||||
|
ui.BIM_PT_tab_qto,
|
||||||
ui.BIM_PT_tab_resources,
|
ui.BIM_PT_tab_resources,
|
||||||
ui.BIM_PT_tab_cost,
|
ui.BIM_PT_tab_cost,
|
||||||
ui.BIM_PT_tab_sequence,
|
ui.BIM_PT_tab_sequence,
|
||||||
|
|||||||
@@ -755,9 +755,11 @@ class BIM_UL_product_cost_items(UIList):
|
|||||||
class BIM_PT_Costing_Tools(Panel):
|
class BIM_PT_Costing_Tools(Panel):
|
||||||
bl_label = "5D Tools"
|
bl_label = "5D Tools"
|
||||||
bl_idname = "BIM_PT_Costing_Tools"
|
bl_idname = "BIM_PT_Costing_Tools"
|
||||||
bl_space_type = "VIEW_3D"
|
bl_options = {"DEFAULT_CLOSED"}
|
||||||
bl_region_type = "UI"
|
bl_space_type = "PROPERTIES"
|
||||||
bl_category = "4D/5D Toolkit"
|
bl_region_type = "WINDOW"
|
||||||
|
bl_context = "scene"
|
||||||
|
bl_parent_id = "BIM_PT_tab_cost"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
self.props = context.scene.BIMCostProperties
|
self.props = context.scene.BIMCostProperties
|
||||||
|
|||||||
@@ -247,9 +247,11 @@ class IFCGIT_PT_revision_inspector(bpy.types.Panel):
|
|||||||
bl_idname = "IFCGIT_PT_revision_inspector"
|
bl_idname = "IFCGIT_PT_revision_inspector"
|
||||||
bl_label = "Git History"
|
bl_label = "Git History"
|
||||||
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_options = {"DEFAULT_CLOSED"}
|
||||||
|
bl_parent_id = "IFCGIT_PT_panel"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
|
|
||||||
|
|||||||
@@ -22,10 +22,11 @@ import bpy
|
|||||||
class BIM_PT_misc_utilities(bpy.types.Panel):
|
class BIM_PT_misc_utilities(bpy.types.Panel):
|
||||||
bl_idname = "BIM_PT_misc_utilities"
|
bl_idname = "BIM_PT_misc_utilities"
|
||||||
bl_label = "Miscellaneous"
|
bl_label = "Miscellaneous"
|
||||||
|
bl_space_type = "PROPERTIES"
|
||||||
|
bl_region_type = "WINDOW"
|
||||||
|
bl_context = "output"
|
||||||
bl_options = {"DEFAULT_CLOSED"}
|
bl_options = {"DEFAULT_CLOSED"}
|
||||||
bl_space_type = "VIEW_3D"
|
bl_parent_id = "BIM_PT_tab_sandbox"
|
||||||
bl_region_type = "UI"
|
|
||||||
bl_category = "BlenderBIM"
|
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
|||||||
@@ -24,9 +24,11 @@ class BIM_PT_qto_utilities(bpy.types.Panel):
|
|||||||
bl_idname = "BIM_PT_qto_utilities"
|
bl_idname = "BIM_PT_qto_utilities"
|
||||||
bl_label = "Quantity Take-off"
|
bl_label = "Quantity Take-off"
|
||||||
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_qto"
|
||||||
|
bl_options = {"HIDE_HEADER"}
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
if not QtoData.is_loaded:
|
if not QtoData.is_loaded:
|
||||||
|
|||||||
@@ -1084,9 +1084,11 @@ class BIM_PT_work_calendars(Panel):
|
|||||||
class BIM_PT_4D_Tools(Panel):
|
class BIM_PT_4D_Tools(Panel):
|
||||||
bl_label = "4D Tools"
|
bl_label = "4D Tools"
|
||||||
bl_idname = "BIM_PT_4D_Tools"
|
bl_idname = "BIM_PT_4D_Tools"
|
||||||
bl_space_type = "VIEW_3D"
|
bl_options = {"DEFAULT_CLOSED"}
|
||||||
bl_region_type = "UI"
|
bl_space_type = "PROPERTIES"
|
||||||
bl_category = "4D/5D Toolkit"
|
bl_region_type = "WINDOW"
|
||||||
|
bl_context = "scene"
|
||||||
|
bl_parent_id = "BIM_PT_tab_sequence"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
self.props = context.scene.BIMWorkScheduleProperties
|
self.props = context.scene.BIMWorkScheduleProperties
|
||||||
|
|||||||
@@ -535,6 +535,20 @@ class BIM_PT_tab_status(Panel):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class BIM_PT_tab_qto(Panel):
|
||||||
|
bl_label = "Quantity Take-off"
|
||||||
|
bl_space_type = "PROPERTIES"
|
||||||
|
bl_region_type = "WINDOW"
|
||||||
|
bl_context = "scene"
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def poll(cls, context):
|
||||||
|
return tool.Blender.is_tab(context, "SCHEDULING") and tool.Ifc.get()
|
||||||
|
|
||||||
|
def draw(self, context):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class BIM_PT_tab_resources(Panel):
|
class BIM_PT_tab_resources(Panel):
|
||||||
bl_label = "Resources"
|
bl_label = "Resources"
|
||||||
bl_space_type = "PROPERTIES"
|
bl_space_type = "PROPERTIES"
|
||||||
|
|||||||
Reference in New Issue
Block a user