From 207f1a899966d9b515082a22d94c68b1875d92a2 Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Tue, 3 Mar 2015 15:06:06 +0100 Subject: [PATCH] Add the beginnings of a GCode writer plugin --- GCodeWriter.py | 5 +++++ __init__.py | 24 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 GCodeWriter.py create mode 100644 __init__.py diff --git a/GCodeWriter.py b/GCodeWriter.py new file mode 100644 index 0000000000..b354629fb0 --- /dev/null +++ b/GCodeWriter.py @@ -0,0 +1,5 @@ +from UM.Mesh.MeshWriter import MeshWriter + +class GCodeWriter(MeshWriter): + def __init__(self): + super().__init__() diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000000..0baf6a0b51 --- /dev/null +++ b/__init__.py @@ -0,0 +1,24 @@ +from . import GCodeWriter + +from UM.i18n import i18nCatalog + +catalog = i18nCatalog('plugins') + +def getMetaData(): + return { + 'type': 'mesh_writer', + 'plugin': { + 'name': 'GCode Writer', + 'author': 'Arjen Hiemstra', + 'version': '1.0', + 'description': catalog.i18nc('GCode Writer Plugin Description', 'Writes GCode to a file') + }, + + 'mesh_writer': { + 'extension': 'gcode', + 'description': catalog.i18nc('GCode Writer File Description', 'GCode File') + } + } + +def register(app): + return GCodeWriter.GCodeWriter()