Add CuraView, which does something similar to CuraStage

So instead of relying on strange activeViewProxy, it's up to the CuraView to provide a set of components.
These can subsequently be used by the active stage again.

CURA-5829
This commit is contained in:
Jaime van Kessel 2018-10-29 16:21:16 +01:00
parent d8dd9bf363
commit 0a3803d665
4 changed files with 39 additions and 5 deletions

View file

@ -8,6 +8,7 @@ from . import SimulationViewProxy, SimulationView
catalog = i18nCatalog("cura")
def getMetaData():
return {
"view": {
@ -17,9 +18,11 @@ def getMetaData():
}
}
def createSimulationViewProxy(engine, script_engine):
return SimulationViewProxy.SimulationViewProxy()
def register(app):
simulation_view = SimulationView.SimulationView()
qmlRegisterSingletonType(SimulationViewProxy.SimulationViewProxy, "UM", 1, 0, "SimulationView", simulation_view.getProxy)