__init__.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # Copyright (c) 2015 Ultimaker B.V.
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. from . import ImageReader
  4. from UM.i18n import i18nCatalog
  5. i18n_catalog = i18nCatalog("cura")
  6. def getMetaData():
  7. return {
  8. "mesh_reader": [
  9. {
  10. "extension": "jpg",
  11. "description": i18n_catalog.i18nc("@item:inlistbox", "JPG Image")
  12. },
  13. {
  14. "extension": "jpeg",
  15. "description": i18n_catalog.i18nc("@item:inlistbox", "JPEG Image")
  16. },
  17. {
  18. "extension": "png",
  19. "description": i18n_catalog.i18nc("@item:inlistbox", "PNG Image")
  20. },
  21. {
  22. "extension": "bmp",
  23. "description": i18n_catalog.i18nc("@item:inlistbox", "BMP Image")
  24. },
  25. {
  26. "extension": "gif",
  27. "description": i18n_catalog.i18nc("@item:inlistbox", "GIF Image")
  28. }
  29. ]
  30. }
  31. def register(app):
  32. return { "mesh_reader": ImageReader.ImageReader() }