mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-15 18:14:08 +00:00
add open web ui button and dummy operator
This commit is contained in:
@@ -29,6 +29,7 @@ classes = (
|
|||||||
operator.RemoveCsvAttribute,
|
operator.RemoveCsvAttribute,
|
||||||
operator.ReorderCsvAttribute,
|
operator.ReorderCsvAttribute,
|
||||||
operator.SelectCsvIfcFile,
|
operator.SelectCsvIfcFile,
|
||||||
|
operator.OpenWebUi,
|
||||||
prop.CsvAttribute,
|
prop.CsvAttribute,
|
||||||
prop.CsvProperties,
|
prop.CsvProperties,
|
||||||
ui.BIM_PT_ifccsv,
|
ui.BIM_PT_ifccsv,
|
||||||
|
|||||||
@@ -306,3 +306,11 @@ class SelectCsvIfcFile(bpy.types.Operator):
|
|||||||
def invoke(self, context, event):
|
def invoke(self, context, event):
|
||||||
context.window_manager.fileselect_add(self)
|
context.window_manager.fileselect_add(self)
|
||||||
return {"RUNNING_MODAL"}
|
return {"RUNNING_MODAL"}
|
||||||
|
|
||||||
|
|
||||||
|
class OpenWebUi(bpy.types.Operator):
|
||||||
|
bl_idname = "bim.open_web_ui"
|
||||||
|
bl_label = "Open Web UI"
|
||||||
|
|
||||||
|
def execute(self, context):
|
||||||
|
return {"FINISHED"}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ from blenderbim.bim.module.search.data import SearchData
|
|||||||
class BIM_PT_ifccsv(Panel):
|
class BIM_PT_ifccsv(Panel):
|
||||||
bl_label = "Spreadsheet Import/Export"
|
bl_label = "Spreadsheet Import/Export"
|
||||||
bl_idname = "BIM_PT_ifccsv"
|
bl_idname = "BIM_PT_ifccsv"
|
||||||
bl_options = {"DEFAULT_CLOSED"}
|
bl_options = {"DEFAULT_CLOSED", "HEADER_LAYOUT_EXPAND"}
|
||||||
bl_space_type = "PROPERTIES"
|
bl_space_type = "PROPERTIES"
|
||||||
bl_region_type = "WINDOW"
|
bl_region_type = "WINDOW"
|
||||||
bl_context = "scene"
|
bl_context = "scene"
|
||||||
@@ -123,3 +123,9 @@ class BIM_PT_ifccsv(Panel):
|
|||||||
row = layout.row(align=True)
|
row = layout.row(align=True)
|
||||||
row.operator("bim.export_ifccsv", icon="EXPORT", text="Export IFC to " + props.format.upper())
|
row.operator("bim.export_ifccsv", icon="EXPORT", text="Export IFC to " + props.format.upper())
|
||||||
row.operator("bim.import_ifccsv", icon="IMPORT")
|
row.operator("bim.import_ifccsv", icon="IMPORT")
|
||||||
|
|
||||||
|
def draw_header(self, context):
|
||||||
|
row = self.layout.row(align=True)
|
||||||
|
row.label(text="")
|
||||||
|
# TODO: Look for a better "globe" icon for the web ui
|
||||||
|
row.operator("bim.open_web_ui", text="", icon="MATERIAL")
|
||||||
|
|||||||
Reference in New Issue
Block a user