Implement GCodeGzWriter

This plug-in outputs g-code to a gzipped archive. It is used for sending prints to the Ultimaker 3 family faster.

Contributes to issue CURA-5097.
This commit is contained in:
Ghostkeeper 2018-03-16 15:55:49 +01:00
parent 5a5766f11a
commit c1ea1320f0
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A
3 changed files with 71 additions and 0 deletions

View file

@ -0,0 +1,22 @@
# Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from . import GCodeGzWriter
from UM.i18n import i18nCatalog
catalog = i18nCatalog("cura")
def getMetaData():
return {
"mesh_writer": {
"output": [{
"extension": "gcode.gz",
"description": catalog.i18nc("@item:inlistbox", "Compressed G-code File"),
"mime_type": "application/gzip",
"mode": GCodeGzWriter.GCodeGzWriter.OutputMode.BinaryMode
}]
}
}
def register(app):
return { "mesh_writer": GCodeGzWriter.GCodeGzWriter() }