__init__.py 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. # Copyright (c) 2016 Aleph Objects, Inc.
  2. # Cura is released under the terms of the AGPLv3 or higher.
  3. from . import GCodeReader
  4. from UM.i18n import i18nCatalog
  5. i18n_catalog = i18nCatalog("cura")
  6. def getMetaData():
  7. return {
  8. "plugin": {
  9. "name": i18n_catalog.i18nc("@label", "G-code Reader"),
  10. "author": "Victor Larchenko",
  11. "version": "1.0",
  12. "description": i18n_catalog.i18nc("@info:whatsthis", "Allows loading and displaying G-code files."),
  13. "api": 3
  14. },
  15. "mesh_reader": [
  16. {
  17. "extension": "gcode",
  18. "description": i18n_catalog.i18nc("@item:inlistbox", "G-code File")
  19. },
  20. {
  21. "extension": "g",
  22. "description": i18n_catalog.i18nc("@item:inlistbox", "G File")
  23. }
  24. ]
  25. }
  26. def register(app):
  27. app.addNonSliceableExtension(".gcode")
  28. app.addNonSliceableExtension(".g")
  29. return { "mesh_reader": GCodeReader.GCodeReader() }