progress#
Task progress tracker for asset items.
This module provides the basic definitions needed to implement task status tracking. The progress data is stored in the asset table under the ‘progress’ column.
STATES
defines the user selectable progress states.
STAGES
define the production steps we’re able to set states for. Each asset item
has their own STAGES data stored in the bookmark database, editable by user interactions
via the ProgressDelegate
.
Classes:
|
The delegate used to display task progress information. |
Data:
The production stages to be configured with a |
|
The selectable progress states |
- class bookmarks.progress.ProgressDelegate(parent=None)[source]#
Bases:
QItemDelegate
The delegate used to display task progress information.
Methods:
createEditor
(parent, option, index)Creates a combobox editor used to change a state value.
paint
(painter, option, index)Paints the extra columns of
AssetItemView
.setEditorData
(editor, index)Loads the state values from the current index into the editor.
setModelData
(editor, model, index)Saves the current state value to the bookmark database.
updateEditorGeometry
(editor, option, index)Resizes the editor.
- createEditor(parent, option, index)[source]#
Creates a combobox editor used to change a state value.
- paint(painter, option, index)[source]#
Paints the extra columns of
AssetItemView
.
- bookmarks.progress.STAGES = {0: {'name': 'Design', 'states': (0, 1, 2, 3, 4), 'value': 0, 'visible': True}, 1: {'name': 'Layout', 'states': (0, 1, 2, 3, 4), 'value': 0, 'visible': True}, 2: {'name': 'Model', 'states': (0, 1, 2, 3, 4), 'value': 0, 'visible': True}, 3: {'name': 'Rig', 'states': (0, 1, 2, 3, 4), 'value': 0, 'visible': True}, 4: {'name': 'Anim', 'states': (0, 1, 2, 3, 4), 'value': 0, 'visible': True}, 5: {'name': 'Render', 'states': (0, 1, 2, 3, 4), 'value': 0, 'visible': True}, 6: {'name': 'FX', 'states': (0, 1, 2, 3, 4), 'value': 0, 'visible': True}, 7: {'name': 'Comp', 'states': (0, 1, 2, 3, 4), 'value': 0, 'visible': True}, 8: {'name': 'Grade', 'states': (0, 1, 2, 3, 4), 'value': 0, 'visible': True}}#
The production stages to be configured with a
STATES
value.
- bookmarks.progress.STATES = {0: {'color': PySide2.QtGui.QColor.fromRgbF(0.000000, 0.000000, 0.000000, 0.117647), 'icon': 'progress-dot-24', 'name': 'Skip'}, 1: {'color': PySide2.QtGui.QColor.fromRgbF(0.992157, 0.650980, 0.003922, 0.784314), 'icon': 'progress-hourglass-24', 'name': 'In\nProgress'}, 2: {'color': PySide2.QtGui.QColor.fromRgbF(0.333333, 0.333333, 0.333333, 1.000000), 'icon': 'progress-task-planning-24', 'name': 'Pending'}, 3: {'color': PySide2.QtGui.QColor.fromRgbF(0.352941, 0.784314, 0.607843, 1.000000), 'icon': 'progress-task-completed-24', 'name': 'Done'}, 4: {'color': PySide2.QtGui.QColor.fromRgbF(0.745098, 0.196078, 0.196078, 0.705882), 'icon': 'progress-task-important-24', 'name': 'Priority'}}#
The selectable progress states