Responsible for rendering an entry into a SceneTree widget.
More...
|
|
QWidget * | m_button_popup |
| | The popup widget containing action buttons.
|
|
Button * | m_context_menu = nullptr |
| | Button for opening the context menu.
|
|
UUID | m_current_model = Constant<UUID>::Invalid |
| | UUID of the model being painted.
|
|
QPropertyAnimation * | m_grow_animation |
| | Animation for expanding the selection row.
|
|
fltp08 | m_grow_size |
| | The current animated grow size for the selection row.
|
|
QModelIndex | m_last_index |
| | The last selected model index.
|
|
UUID | m_last_model = Constant<UUID>::Invalid |
| | UUID of the last painted model.
|
|
UUID | m_last_selected = Constant<UUID>::Invalid |
| | UUID of the previously selected object.
|
|
Buffer< QWidget * > | m_last_widgets |
| | Widgets from the last selection popup.
|
|
SceneTree * | m_parent |
| | The parent scene tree widget.
|
|
Button * | m_properties = nullptr |
| | Button for opening the properties dialog.
|
|
QCustomLabel * | m_property_name = nullptr |
| | Label showing the property name.
|
|
Button * | m_save_button = nullptr |
| | Button for saving the selected object.
|
|
UUID | m_selected = Constant<UUID>::Invalid |
| | UUID of the currently selected object.
|
|
QPropertyAnimation * | m_shrink_animation |
| | Animation for shrinking the previously selected row.
|
|
ProxyModelViewFilter * | m_view |
| | The proxy filter model for the tree.
|
|
DesignObjectVisibleButton * | m_visible |
| | Button for toggling object visibility.
|
|
CameraLocationCombo * | m_zoom_combo = nullptr |
| | Combo for camera zoom presets.
|
|
Button * | m_zoom_to = nullptr |
| | Button for zooming to the selected object.
|
Responsible for rendering an entry into a SceneTree widget.
Definition at line 71 of file SceneTreeModelDelegate.h.
◆ SceneTreeModelDelegate()
Constructs a scene tree model delegate.
- Parameters
-
| [in] | manager | The proxy model view filter providing data. |
| [in] | parent | The parent scene tree widget. |
◆ AddWidgetCallback()
Registers a custom tree widget callback.
- Parameters
-
| [in] | delegate | The custom widget provider to register. |
◆ defaultWidgets()
| Buffer< QWidget * > SceneTreeModelDelegate::defaultWidgets |
( |
UUID | selected | ) |
|
|
protected |
Creates the default set of action widgets for a selected object.
- Parameters
-
- Returns
- A buffer of default widget pointers.
References selected().
◆ indexSelected()
| void SceneTreeModelDelegate::indexSelected |
( |
const QModelIndex & | index | ) |
|
Handles selection of an index in the tree.
- Parameters
-
| [in] | index | The newly selected index. |
◆ RemoveWidgetCallback()
| void SceneTreeModelDelegate::RemoveWidgetCallback |
( |
const UUID & | id | ) |
|
|
static |
Removes a custom tree widget callback.
- Parameters
-
| [in] | id | The UUID of the provider to remove. |
◆ selectAllBetween()
| void SceneTreeModelDelegate::selectAllBetween |
( |
QModelIndex | a, |
|
|
QModelIndex | b ) |
Selects all items between two model indices.
- Parameters
-
| [in] | a | The starting index. |
| [in] | b | The ending index. |
◆ selected()
| UUID SceneTreeModelDelegate::selected |
( |
| ) |
const |
|
inline |
◆ selectedSize()
| fltp08 SceneTreeModelDelegate::selectedSize |
( |
| ) |
const |
|
inline |
◆ selectionBoxHeight()
| int SceneTreeModelDelegate::selectionBoxHeight |
( |
| ) |
const |
Calculates the height of the selection box for the selected item.
- Returns
- The height in pixels.
◆ setSelectedSize()
| void SceneTreeModelDelegate::setSelectedSize |
( |
fltp08 | o | ) |
|
Sets the animated selection size.
- Parameters
-
| [in] | o | The new grow size value. |
◆ setupPopup()
| QWidget * SceneTreeModelDelegate::setupPopup |
( |
UUID | selected | ) |
|
Creates and returns the popup widget displayed when an item is selected.
- Parameters
-
- Returns
- A pointer to the popup widget.
References selected().
The documentation for this class was generated from the following file: