Added switch for using timer and no timer in CuraEngineBackend. Still have to fix TODO and finish. CURA-3214

This commit is contained in:
Jack Ha 2017-02-15 10:32:38 +01:00
parent e5cdc318f7
commit 4e65a7034f
11 changed files with 250 additions and 894 deletions

View file

@ -230,8 +230,6 @@ class CuraApplication(QtApplication):
Preferences.getInstance().addPreference("cura/currency", "")
Preferences.getInstance().addPreference("cura/material_settings", "{}")
Preferences.getInstance().addPreference("general/auto_slice", True)
for key in [
"dialog_load_path", # dialog_save_path is in LocalFileOutputDevicePlugin
"dialog_profile_path",
@ -1207,3 +1205,17 @@ class CuraApplication(QtApplication):
def addNonSliceableExtension(self, extension):
self._non_sliceable_extensions.append(extension)
# Temporary test, lack of correct location
@pyqtSlot()
def slice(self):
Logger.log("d", "Slice...")
backend = self.getBackend()
# backend.enableSlicing()
backend.forceSlice()
@pyqtSlot()
def sliceStop(self):
Logger.log("d", "Slice stop...")
backend = self.getBackend()
backend.stopSlicing()