__init__.py 829 B

1234567891011121314151617181920212223242526
  1. # Copyright (c) 2018 Ultimaker B.V.
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. from PyQt5.QtQml import qmlRegisterSingletonType
  4. from UM.i18n import i18nCatalog
  5. from . import SimulationViewProxy, SimulationView
  6. catalog = i18nCatalog("cura")
  7. def getMetaData():
  8. return {
  9. "view": {
  10. "name": catalog.i18nc("@item:inlistbox", "Layer view"),
  11. "view_panel": "SimulationView.qml",
  12. "weight": 2
  13. }
  14. }
  15. def createSimulationViewProxy(engine, script_engine):
  16. return SimulationViewProxy.SimulationViewProxy()
  17. def register(app):
  18. simulation_view = SimulationView.SimulationView()
  19. qmlRegisterSingletonType(SimulationViewProxy.SimulationViewProxy, "UM", 1, 0, "SimulationView", simulation_view.getProxy)
  20. return { "view": SimulationView.SimulationView()}