mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 16:09:01 +08:00
Added g-code reader stub
This commit is contained in:
parent
770264e16e
commit
3d292cf328
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…
x
Reference in New Issue
Block a user