__init__.py 723 B

1234567891011121314151617181920212223242526
  1. # Copyright (c) 2016 Aleph Objects, Inc.
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. from . import GCodeReader
  4. from UM.i18n import i18nCatalog
  5. i18n_catalog = i18nCatalog("cura")
  6. def getMetaData():
  7. return {
  8. "mesh_reader": [
  9. {
  10. "extension": "gcode",
  11. "description": i18n_catalog.i18nc("@item:inlistbox", "G-code File")
  12. },
  13. {
  14. "extension": "g",
  15. "description": i18n_catalog.i18nc("@item:inlistbox", "G File")
  16. }
  17. ]
  18. }
  19. def register(app):
  20. app.addNonSliceableExtension(".gcode")
  21. app.addNonSliceableExtension(".g")
  22. return { "mesh_reader": GCodeReader.GCodeReader(app) }