|
| | ModelSelectionTree (ProxyModelViewFilter *manager, bool owns_filter, QWidget *parent=nullptr) |
| | Constructs the tree view with a custom proxy filter.
|
| | ModelSelectionTree (QTModelManager *manager, QWidget *parent=nullptr) |
| | Constructs the tree view with the given model manager.
|
| | ModelSelectionTree (QWidget *parent=nullptr) |
| | Constructs the tree view with no initial model manager.
|
|
virtual | ~ModelSelectionTree () |
| | Destroys the tree view and optionally deletes the owned filter.
|
|
void | checkStateChanged () |
| | Emitted when the check state of any item changes.
|
| bool | event (QEvent *e) override |
| | Processes general Qt events, including tooltip and drag events.
|
|
void | expandSelected () |
| | Expands the tree to show all currently selected items.
|
| ProxyModelViewFilter * | filter () const |
| | Returns the proxy filter model used by this tree view.
|
| Buffer< UUID > | getModelRoots () const |
| | Returns the UUIDs of all root-level models in the tree.
|
| Buffer< UUID > | getSelectedModelRoots () const |
| | Returns the UUIDs of all checked root-level models.
|
| QTModelManager * | manager () const |
| | Returns the model manager associated with this tree view.
|
| void | resizeEvent (QResizeEvent *size) override |
| | Handles resize events to adjust column widths.
|
|
void | selectAllVisible () |
| | Selects all visible items in the tree view.
|
| void | setFilter (ProxyModelViewFilter *filter, bool owns_filter) |
| | Sets a custom proxy filter for the tree view.
|
| void | setHeader (const TranslatedString &header_title, const StringView &header_icon) |
| | Sets the header title and icon for the tree view.
|
| void | setModelManager (QTModelManager *manager) |
| | Sets the model manager and creates a default proxy filter.
|
| void | setSelectedModelRoots (const Buffer< UUID > &roots, bool only_visible_children) |
| | Sets the check state for the given root models and optionally their visible children.
|
|
| void | clickedSlot (const QModelIndex &index) |
| | Slot called when a tree item is clicked.
|
| void | contextMenu (const QPoint &pos) |
| | Slot called to show the context menu at the given position.
|
|
void | initialize () |
| | Initializes common state such as context menu policy and column settings.
|
| void | onCollapsedSlot (const QModelIndex &index) |
| | Slot called when a tree item is collapsed.
|
| void | onExpandedSlot (const QModelIndex &index) |
| | Slot called when a tree item is expanded.
|
| void | selectionChanged (const QItemSelection &selected, const QItemSelection &) override |
| | Slot called when the tree selection changes, updating the scene selection.
|
| void | setupFilter (ProxyModelViewFilter *filter) |
| | Configures the proxy filter and connects its signals to the tree view.
|
| void | updateFocus (UUID id, bool focussed) |
| | Slot called to update the focus highlight for a model.
|
| void | updateModel (UUID id) |
| | Slot called when a model is updated, refreshing its tree display.
|
| void | updateSelection (UUID id, bool selected) |
| | Slot called when a model's selection state changes.
|
A tree view widget for displaying and selecting Models from the scene.
Supports filtering, context menus, multi-selection, and synchronization with the scene selection state.
Definition at line 51 of file ModelSelectionTree.h.