__init__.py 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. # Copyright (c) 2015 Ultimaker B.V.
  2. # Uranium is released under the terms of the AGPLv3 or higher.
  3. from . import PerObjectSettingsTool
  4. from . import PerObjectSettingVisibilityHandler
  5. from PyQt5.QtQml import qmlRegisterType
  6. from UM.i18n import i18nCatalog
  7. i18n_catalog = i18nCatalog("cura")
  8. def getMetaData():
  9. return {
  10. "plugin": {
  11. "name": i18n_catalog.i18nc("@label", "Per Model Settings Tool"),
  12. "author": "Ultimaker",
  13. "version": "1.0",
  14. "description": i18n_catalog.i18nc("@info:whatsthis", "Provides the Per Model Settings."),
  15. "api": 3
  16. },
  17. "tool": {
  18. "name": i18n_catalog.i18nc("@label", "Per Model Settings"),
  19. "description": i18n_catalog.i18nc("@info:tooltip", "Configure Per Model Settings"),
  20. "icon": "setting_per_object",
  21. "tool_panel": "PerObjectSettingsPanel.qml",
  22. "weight": 3
  23. },
  24. }
  25. def register(app):
  26. qmlRegisterType(PerObjectSettingVisibilityHandler.PerObjectSettingVisibilityHandler, "Cura", 1, 0,
  27. "PerObjectSettingVisibilityHandler")
  28. return { "tool": PerObjectSettingsTool.PerObjectSettingsTool() }