from som_gui import tool
from som_gui.core import mapping as core


def connect():
    tool.MainWindow.add_action("Datei/Revit-Mapping",
                               lambda: core.open_window(tool.Mapping))


def on_new_project():
    pass


def export_revit_ifc_mapping():
    core.export_revit_ifc_mapping(tool.Mapping, tool.Project, tool.Popups)


def export_revit_shared_parameters():
    core.export_revit_shared_parameters(tool.Mapping, tool.Project, tool.Popups)


def update_object_tree():
    core.update_object_tree(tool.Mapping, tool.Project)


def update_pset_tree():
    core.update_pset_tree(tool.Mapping)


def tree_item_changed(item):
    core.tree_item_changed(item, tool.Mapping, tool.Util)
