__init__.py 889 B

12345678910111213141516171819202122232425
  1. # Copyright (c) 2015 Ultimaker B.V.
  2. # Uranium is released under the terms of the LGPLv3 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. "tool": {
  11. "name": i18n_catalog.i18nc("@label", "Per Model Settings"),
  12. "description": i18n_catalog.i18nc("@info:tooltip", "Configure Per Model Settings"),
  13. "icon": "MeshType",
  14. "tool_panel": "PerObjectSettingsPanel.qml",
  15. "weight": 3
  16. },
  17. }
  18. def register(app):
  19. qmlRegisterType(PerObjectSettingVisibilityHandler.PerObjectSettingVisibilityHandler, "Cura", 1, 0,
  20. "PerObjectSettingVisibilityHandler")
  21. return { "tool": PerObjectSettingsTool.PerObjectSettingsTool() }