T466: Added hiding of properties menu

This commit is contained in:
Victor Larchenko 2016-10-14 17:06:53 +06:00 committed by Youness Alaoui
parent d7b4296cfc
commit 2ee5e2cb0b
3 changed files with 27 additions and 4 deletions

View file

@ -71,10 +71,14 @@ class GCODEReader(MeshReader):
# Preferences.getInstance().setValue("cura/jobname_prefix", True)
backend = Application.getInstance().getBackend()
backend._pauseSlicing = False
Application.getInstance().setHideSettings(False)
#Application.getInstance().getPrintInformation()._setAbbreviatedMachineName()
else:
backend = Application.getInstance().getBackend()
backend._pauseSlicing = True
backend.backendStateChange.emit(1)
Application.getInstance().getPrintInformation()._abbr_machine = "Pre-sliced"
Application.getInstance().setHideSettings(True)
def read(self, file_name):
scene_node = None
@ -213,6 +217,8 @@ class GCODEReader(MeshReader):
decorator.setLayerData(layer_mesh)
scene_node.addDecorator(decorator)
Application.getInstance().getPrintInformation()._abbr_machine = "Pre-sliced"
scene_node_parent = Application.getInstance().getBuildVolume()
scene_node.setParent(scene_node_parent)
@ -230,10 +236,11 @@ class GCODEReader(MeshReader):
# scene_node.setMeshData(mesh_builder.build())
# scene_node.setMeshData(MeshData(file_name=file_name))
Application.getInstance().getPrintInformation()._abbr_machine = "Pre-sliced"
Preferences.getInstance().setValue("cura/jobname_prefix", True)
view = Application.getInstance().getController().getActiveView()
if view.getPluginId() == "LayerView":
view.resetLayerData()