import logging
from . import ui, trigger, prop
import som_gui

OK = 0
IDENT_ISSUE = 1
IDENT_PSET_ISSUE = 3
IDENT_ATTRIBUTE_ISSUE = 4


def register():
    som_gui.ObjectProperties = prop.ObjectProperties


def load_ui_triggers():
    logging.info(f"Load Objects UI Triggers")
    trigger.connect()


def on_new_project():
    trigger.on_new_project()
