src.tik.tools.polish.ui.mcv.controller_shapes_mcv

Controller shapes Model-View-Controller UI for Maya.

Attributes

Classes

FlatLeafProxyModel

A Proxy Model that recursively finds all leaf nodes (Shapes) in the source

HoverOverlay

Floating thumbnail widget.

ShapeLibraryModel

Standard Item Model organized as a Tree: Root -> Category -> Shape

ShapeLibraryWidget

Module Contents

class FlatLeafProxyModel(parent=None)

Bases: PySide6.QtCore.QAbstractProxyModel

A 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: PySide6.QtWidgets.QWidget

Floating thumbnail widget.

set_pixmap(pixmap)
label
class ShapeLibraryModel(data, parent=None)

Bases: PySide6.QtGui.QStandardItemModel

Standard Item Model organized as a Tree: Root -> Category -> Shape

RoleCategory
RolePath
RoleThumbnail
class ShapeLibraryWidget(shape_data, parent=None)

Bases: PySide6.QtWidgets.QWidget

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.

show_context_menu(pos)
btn_back
hover_thumb_enabled = False
is_flat_mode = False
list_view
main_layout
overlay
proxy_flat_internal
proxy_hierarchical
search_input
shape_data
source_model
stack
tree_view
MOCK_DATA
cs_handler
kill_list = []
test_ui
tikmaya_path = 'D:/dev/tikworks/src'