mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 13:49:39 +08:00
33 lines
1.2 KiB
Python
33 lines
1.2 KiB
Python
# Copyright (c) 2015 Ultimaker B.V.
|
|
# Uranium is released under the terms of the AGPLv3 or higher.
|
|
|
|
from . import PerObjectSettingsTool
|
|
from . import PerObjectSettingVisibilityHandler
|
|
from PyQt5.QtQml import qmlRegisterType
|
|
|
|
from UM.i18n import i18nCatalog
|
|
i18n_catalog = i18nCatalog("cura")
|
|
|
|
def getMetaData():
|
|
return {
|
|
"plugin": {
|
|
"name": i18n_catalog.i18nc("@label", "Per Object Settings Tool"),
|
|
"author": "Ultimaker",
|
|
"version": "1.0",
|
|
"description": i18n_catalog.i18nc("@info:whatsthis", "Provides the Per Object Settings."),
|
|
"api": 3
|
|
},
|
|
"tool": {
|
|
"name": i18n_catalog.i18nc("@label", "Per Object Settings"),
|
|
"description": i18n_catalog.i18nc("@info:tooltip", "Configure Per Object Settings"),
|
|
"icon": "setting_per_object",
|
|
"tool_panel": "PerObjectSettingsPanel.qml",
|
|
"weight": 3
|
|
},
|
|
}
|
|
|
|
def register(app):
|
|
qmlRegisterType(PerObjectSettingVisibilityHandler.PerObjectSettingVisibilityHandler, "Cura", 1, 0,
|
|
"PerObjectSettingVisibilityHandler")
|
|
return { "tool": PerObjectSettingsTool.PerObjectSettingsTool() }
|