12345678910111213141516171819202122232425262728 |
- # Copyright (c) 2021 Ultimaker B.V.
- # Cura is released under the terms of the LGPLv3 or higher.
- from PyQt5.QtQml import qmlRegisterSingletonType
- from UM.i18n import i18nCatalog
- from . import SimulationViewProxy, SimulationView
- catalog = i18nCatalog("cura")
- def getMetaData():
- return {
- "view": {
- "name": catalog.i18nc("@item:inlistbox", "Layer view"),
- "weight": 0
- }
- }
- def createSimulationViewProxy(engine, script_engine):
- return SimulationViewProxy.SimulationViewProxy()
- def register(app):
- simulation_view = SimulationView.SimulationView(parent = app)
- qmlRegisterSingletonType(SimulationViewProxy.SimulationViewProxy, "UM", 1, 0, "SimulationView", simulation_view.getProxy)
- return { "view": simulation_view}
|