src.tik¶
Controller shape library UI widget for TikWorks Maya tools.
Submodules¶
Attributes¶
Classes¶
A Proxy Model that recursively finds all leaf nodes (Shapes) in the source |
|
Floating thumbnail widget. |
|
Standard Item Model organized as a Tree: Root -> Category -> Shape |
|
Main widget for browsing and selecting controller shapes. |
Package Contents¶
- class FlatLeafProxyModel(parent=None)¶
Bases:
tik.vendor.Qt.QtCore.QAbstractProxyModelA Proxy Model that recursively finds all leaf nodes (Shapes) in the source tree and maps them to a flat list (Row 0..N). Categories are ignored.
- columnCount(parent=QtCore.QModelIndex())¶
- index(row, column, parent=QtCore.QModelIndex())¶
- mapFromSource(source_index)¶
- mapToSource(proxy_index)¶
- parent(index)¶
- rebuild_mapping()¶
Scans the source model and stores pointers to all leaf nodes.
- rowCount(parent=QtCore.QModelIndex())¶
- setSourceModel(source_model)¶
- class HoverOverlay(parent=None)¶
Bases:
tik.vendor.Qt.QtWidgets.QWidgetFloating thumbnail widget.
- set_pixmap(pixmap)¶
- label¶
- class ShapeLibraryModel(data, parent=None)¶
Bases:
tik.vendor.Qt.QtGui.QStandardItemModelStandard Item Model organized as a Tree: Root -> Category -> Shape
- RoleCategory¶
- RolePath¶
- RoleThumbnail¶
- class ShapeLibraryWidget(shape_data, parent=None)¶
Bases:
tik.vendor.Qt.QtWidgets.QWidgetMain widget for browsing and selecting controller shapes.
- apply_style()¶
- go_up_level()¶
Go up one directory level in Icon Mode.
- leaveEvent(event)¶
- on_icon_double_clicked(index)¶
Handle diving into folders in Icon Mode.
- on_item_entered(index)¶
- on_search_changed(text)¶
- set_model_mode(flat)¶
Swaps the models used by the views based on Flat vs Hierarchical.
- btn_back¶
- hover_thumb_enabled = False¶
- is_flat_mode = False¶
- list_view¶
- main_layout¶
- overlay¶
- proxy_flat_internal¶
- proxy_flat_search¶
- proxy_hierarchical¶
- search_input¶
- shape_data¶
- source_model¶
- stack¶
- tree_view¶
- MOCK_DATA¶
- cs_handler¶