mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
44 lines
1.2 KiB
Python
44 lines
1.2 KiB
Python
from qtpy import QtCore
|
|
|
|
# ID of context item in instance view
|
|
CONTEXT_ID = "context"
|
|
CONTEXT_LABEL = "Options"
|
|
# Not showed anywhere - used as identifier
|
|
CONTEXT_GROUP = "__ContextGroup__"
|
|
|
|
CONVERTOR_ITEM_GROUP = "Incompatible subsets"
|
|
|
|
# Allowed symbols for subset name (and variant)
|
|
# - characters, numbers, unsercore and dash
|
|
VARIANT_TOOLTIP = (
|
|
"Variant may contain alphabetical characters (a-Z)"
|
|
"\nnumerical characters (0-9) dot (\".\") or underscore (\"_\")."
|
|
)
|
|
|
|
# Roles for instance views
|
|
INSTANCE_ID_ROLE = QtCore.Qt.UserRole + 1
|
|
SORT_VALUE_ROLE = QtCore.Qt.UserRole + 2
|
|
IS_GROUP_ROLE = QtCore.Qt.UserRole + 3
|
|
CREATOR_IDENTIFIER_ROLE = QtCore.Qt.UserRole + 4
|
|
CREATOR_THUMBNAIL_ENABLED_ROLE = QtCore.Qt.UserRole + 5
|
|
FAMILY_ROLE = QtCore.Qt.UserRole + 6
|
|
GROUP_ROLE = QtCore.Qt.UserRole + 7
|
|
CONVERTER_IDENTIFIER_ROLE = QtCore.Qt.UserRole + 8
|
|
CREATOR_SORT_ROLE = QtCore.Qt.UserRole + 9
|
|
|
|
|
|
__all__ = (
|
|
"CONTEXT_ID",
|
|
|
|
"VARIANT_TOOLTIP",
|
|
|
|
"INSTANCE_ID_ROLE",
|
|
"SORT_VALUE_ROLE",
|
|
"IS_GROUP_ROLE",
|
|
"CREATOR_IDENTIFIER_ROLE",
|
|
"CREATOR_THUMBNAIL_ENABLED_ROLE",
|
|
"CREATOR_SORT_ROLE",
|
|
"FAMILY_ROLE",
|
|
"GROUP_ROLE",
|
|
"CONVERTER_IDENTIFIER_ROLE",
|
|
)
|