mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
* renamed 'validations_widget.py' to 'report_page.py' * Implemented base logic and widgets for logs * make one report page * added missing imports * added missing constants * move and rename 'VerticallScrollArea' to 'VerticalScrollArea' * Validation erro item have id * use 'ReportPageWidget' in window * change 'bg-button-hover' key to 'bg-buttons-hover' in style colors * move publish actions widgets * Refactored how validation error title is showed * remove item id from validation error item but add id to group items * remove margins from actions widget * shrink publish frame on finished publishing * fix dash line draw * add missing styles * fix dash line in thumbnail widget * added crash widget and changed layout a little * added infor overlay message * export and copy report happens in main window * fix docstrings * added per plugin filtering for validation errors * added implementation of 'FlowLayout' * actions buttons are in flow layout * fix actions order * implemented expanding text edit widget * expand button has some signals and properties * description and details are separated widgets * fix typo * added constans to '__all__' * parse icon def is a function * change layout of widgets * fix log filtering * added state icon to instances * fix pyside6 issues * implemented 'ClassicExpandBtnLabel' with arrow images * modified details separator * added some spacing to layouts * fix syle of description inputs and progress color * removed unused import * add 'is_validation_error' to errored result * validation error has different icon in logs view * added plugin name to ValueError if happens * spacer before detail inputs moved out of detals widget * fix actions visible in craash report * ignore pyblish base classes * filter base plugins in discovery * use 'is' comparison instead of '__eq__' * fix action error handling * Fix handling of 'None' values in comparison * formatting fix * Report instance card have same margins as in create mode * publish instances are grouped by family * log messages are rstripped
56 lines
1.4 KiB
Python
56 lines
1.4 KiB
Python
from qtpy import QtCore, QtGui
|
|
|
|
# ID of context item in instance view
|
|
CONTEXT_ID = "context"
|
|
CONTEXT_LABEL = "Context"
|
|
# 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 (\"_\")."
|
|
)
|
|
|
|
INPUTS_LAYOUT_HSPACING = 4
|
|
INPUTS_LAYOUT_VSPACING = 2
|
|
|
|
# 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
|
|
|
|
ResetKeySequence = QtGui.QKeySequence(
|
|
QtCore.Qt.ControlModifier | QtCore.Qt.Key_R
|
|
)
|
|
|
|
__all__ = (
|
|
"CONTEXT_ID",
|
|
"CONTEXT_LABEL",
|
|
|
|
"VARIANT_TOOLTIP",
|
|
|
|
"INPUTS_LAYOUT_HSPACING",
|
|
"INPUTS_LAYOUT_VSPACING",
|
|
|
|
"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",
|
|
|
|
"ResetKeySequence",
|
|
)
|