-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
__init__.py
32 lines (26 loc) · 953 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright (c) 2022 5@xes
# Initialy Based on the SupportBlocker plugin by Ultimaker B.V., and licensed under LGPLv3 or higher.
VERSION_QT5 = False
try:
from PyQt6.QtCore import QT_VERSION_STR
except ImportError:
VERSION_QT5 = True
from . import CustomSupportsCylinder
from UM.i18n import i18nCatalog
i18n_catalog = i18nCatalog("customsupport")
def getMetaData():
if not VERSION_QT5:
QmlFile="qml/qml_qt6/CustomSupport.qml"
else:
QmlFile="qml/qml_qt5/CustomSupport.qml"
return {
"tool": {
"name": i18n_catalog.i18nc("@label", "Custom Supports Cylinder"),
"description": i18n_catalog.i18nc("@info:tooltip", "Add 6 types of custom support"),
"icon": "tool_icon.svg",
"tool_panel": QmlFile,
"weight": 8
}
}
def register(app):
return { "tool": CustomSupportsCylinder.CustomSupportsCylinder() }