mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Added g-code reader stub
This commit is contained in:
parent
770264e16e
commit
3d292cf328
2 changed files with 33 additions and 0 deletions
8
plugins/GCodeReader/GCodeReader.py
Normal file
8
plugins/GCodeReader/GCodeReader.py
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# Copyright (c) 2015 Ultimaker B.V.
|
||||||
|
# Cura is released under the terms of the AGPLv3 or higher.
|
||||||
|
|
||||||
|
from UM.Mesh.MeshReader import MeshReader
|
||||||
|
|
||||||
|
class GCodeReader(MeshReader):
|
||||||
|
def read(self, file_name):
|
||||||
|
pass
|
25
plugins/GCodeReader/__init__.py
Normal file
25
plugins/GCodeReader/__init__.py
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# Copyright (c) 2015 Ultimaker B.V.
|
||||||
|
# Cura is released under the terms of the AGPLv3 or higher.
|
||||||
|
|
||||||
|
from UM.i18n import i18nCatalog
|
||||||
|
catalog = i18nCatalog("cura")
|
||||||
|
|
||||||
|
from . import GCodeReader
|
||||||
|
|
||||||
|
def getMetaData():
|
||||||
|
return {
|
||||||
|
"plugin": {
|
||||||
|
"name": catalog.i18nc("@label", "GCode Reader"),
|
||||||
|
"author": "Ultimaker",
|
||||||
|
"version": "1.0",
|
||||||
|
"description": catalog.i18nc("@info:whatsthis", "Provides support for reading GCode files."),
|
||||||
|
"api": 2
|
||||||
|
},
|
||||||
|
"mesh_reader": {
|
||||||
|
"extension": "gcode",
|
||||||
|
"description": catalog.i18nc("@item:inlistbox", "Gcode File")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
def register(app):
|
||||||
|
return { "mesh_reader": GCodeReader.GCodeReader() }
|
Loading…
Add table
Add a link
Reference in a new issue