CURA-4526 Add the SimulationView plugin to Cura and deleting LayerView

plugin
This commit is contained in:
Diego Prado Gesto 2017-11-17 14:27:46 +01:00
parent 0f6d65950a
commit 98d48978a8
24 changed files with 2162 additions and 821 deletions

View file

@ -61,7 +61,7 @@ class ProcessSlicedLayersJob(Job):
def run(self):
start_time = time()
if Application.getInstance().getController().getActiveView().getPluginId() in ("LayerView", "SimulationView"):
if Application.getInstance().getController().getActiveView().getPluginId() == "SimulationView":
self._progress_message.show()
Job.yieldThread()
if self._abort_requested:
@ -221,7 +221,7 @@ class ProcessSlicedLayersJob(Job):
self._progress_message.setProgress(100)
view = Application.getInstance().getController().getActiveView()
if view.getPluginId() in ("LayerView", "SimulationView"):
if view.getPluginId() == "SimulationView":
view.resetLayerData()
if self._progress_message:
@ -234,7 +234,7 @@ class ProcessSlicedLayersJob(Job):
def _onActiveViewChanged(self):
if self.isRunning():
if Application.getInstance().getController().getActiveView().getPluginId() in ("LayerView", "SimulationView"):
if Application.getInstance().getController().getActiveView().getPluginId() == "SimulationView":
if not self._progress_message:
self._progress_message = Message(catalog.i18nc("@info:status", "Processing Layers"), 0, False, 0, catalog.i18nc("@info:title", "Information"))
if self._progress_message.getProgress() != 100: