__init__.py 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. # Copyright (c) 2016 Ultimaker B.V.
  2. # Cura is released under the terms of the AGPLv3 or higher.
  3. from . import XmlMaterialProfile
  4. from UM.MimeTypeDatabase import MimeType, MimeTypeDatabase
  5. from UM.i18n import i18nCatalog
  6. catalog = i18nCatalog("cura")
  7. def getMetaData():
  8. return {
  9. "plugin": {
  10. "name": catalog.i18nc("@label", "Material Profiles"),
  11. "author": "Ultimaker",
  12. "version": "1.0",
  13. "description": catalog.i18nc("@info:whatsthis", "Provides capabilities to read and write XML-based material profiles."),
  14. "api": 3
  15. },
  16. "settings_container": {
  17. "type": "material",
  18. "mimetype": "application/x-ultimaker-material-profile"
  19. }
  20. }
  21. def register(app):
  22. mime_type = MimeType(
  23. name = "application/x-ultimaker-material-profile",
  24. comment = "Ultimaker Material Profile",
  25. suffixes = [ "xml.fdm_material" ]
  26. )
  27. MimeTypeDatabase.addMimeType(mime_type)
  28. return { "settings_container": XmlMaterialProfile.XmlMaterialProfile("default_xml_material_profile") }