shotgun.tasks#
Module contains all widgets and utility classes used to select a Task when publishing to shotgun.
Classes:
|
Utility class to represent a hierarchy needed by the tree view. |
|
|
|
|
|
The main dialog used to select a task entity. |
|
Tree view used to display the current ShotGrid Steps and Tasks. |
|
The context menu associated with the AssetItemView. |
- class bookmarks.shotgun.tasks.InteralNode(data, parentNode=None, parent=None)[source]#
Bases:
QObject
Utility class to represent a hierarchy needed by the tree view.
Methods:
addChild
(child)Add a child node.
getChild
(row)Child at the provided index/row.
removeChild
(child)Remove the given node from the children.
Removes itself from the parent's children.
row
()Row number of this node.
Attributes:
Children of the this node.
Children of the node.
Parent of this node.
- property childCount#
Children of the this node.
- property children#
Children of the node.
- property parentNode#
Parent of this node.
- class bookmarks.shotgun.tasks.ProxyModel(parent=None)[source]#
Bases:
QSortFilterProxyModel
Methods:
filterAcceptsColumn
(self, source_column, ...)filterAcceptsRow
(source_row[, parent])Filters rows of the proxy model based on the current flags and filter string.
- class bookmarks.shotgun.tasks.TaskModel(entities, parent=None)[source]#
Bases:
QAbstractItemModel
Methods:
columnCount
(self[, parent])createIndexFromNode
(node)Creates a QModelIndex based on a Node
data
(self, index[, role])Builds the internal node hierarchy base on the given entity data.
flags
(self, index)headerData
(self, section, orientation[, role])index
(self, row, column[, parent])parent
(-> PySide2.QtCore.QObject)rowCount
(self[, parent])- columnCount(self, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) int [source]#
- data(self, index: PySide2.QtCore.QModelIndex, role: int = PySide2.QtCore.Qt.ItemDataRole.DisplayRole) Any [source]#
- headerData(self, section: int, orientation: PySide2.QtCore.Qt.Orientation, role: int = PySide2.QtCore.Qt.ItemDataRole.DisplayRole) Any [source]#
- index(self, row: int, column: int, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) PySide2.QtCore.QModelIndex [source]#
- class bookmarks.shotgun.tasks.TaskPicker(parent=None)[source]#
Bases:
QDialog
The main dialog used to select a task entity.
The task is to associate a file publish, or a version when publishing to ShotGrid.
Methods:
- class bookmarks.shotgun.tasks.TaskView(parent=None)[source]#
Bases:
QTreeView
Tree view used to display the current ShotGrid Steps and Tasks.
Methods:
contextMenuEvent
(event)Custom context menu event.
Resets the root node to the initial root node.
resizeEvent
(self, event)