mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Added documentation
This commit is contained in:
parent
48d233ca84
commit
6aea81232d
3 changed files with 6 additions and 3 deletions
|
@ -78,6 +78,9 @@ class CuraEngineBackend(Backend):
|
|||
|
||||
self.backendConnected.connect(self._onBackendConnected)
|
||||
|
||||
## Get the command that is used to call the engine.
|
||||
# This is usefull for debugging and used to actually start the engine
|
||||
# \return list of commands and args / parameters.
|
||||
def getEngineCommand(self):
|
||||
return [Preferences.getInstance().getValue("backend/location"), "connect", "127.0.0.1:{0}".format(self._port), "-j", Resources.getPath(Resources.MachineDefinitions, "fdmprinter.json"), "-vv"]
|
||||
|
||||
|
@ -310,10 +313,10 @@ class CuraEngineBackend(Backend):
|
|||
self._restart = False
|
||||
|
||||
def _onToolOperationStarted(self, tool):
|
||||
self._enabled = False
|
||||
self._enabled = False # Do not reslice when a tool is doing it's 'thing'
|
||||
|
||||
def _onToolOperationStopped(self, tool):
|
||||
self._enabled = True
|
||||
self._enabled = True # Tool stop, start listening for changes again.
|
||||
self._onChanged()
|
||||
|
||||
def _onActiveViewChanged(self):
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
from UM.Scene.SceneNodeDecorator import SceneNodeDecorator
|
||||
|
||||
## Simple decorator to indicate a scene node holds layer data.
|
||||
class LayerDataDecorator(SceneNodeDecorator):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
from UM.Job import Job
|
||||
from UM.Application import Application
|
||||
|
||||
|
||||
class ProcessGCodeLayerJob(Job):
|
||||
def __init__(self, message):
|
||||
super().__init__()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue