Open 3D Engine LyShine Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
HierarchyWidget Class Reference

Inherits AzQtComponents::StyledTreeWidget, AzToolsFramework::EditorPickModeNotificationBus::Handler, and AzToolsFramework::EntityHighlightMessages::Bus::Handler.

Public Slots

void DeleteSelectedItems ()
 
void Cut ()
 
void Copy ()
 
void PasteAsSibling ()
 
void PasteAsChild ()
 
void SetEditorOnlyForSelectedItems (bool editorOnly)
 

Signals

void SetUserSelection (HierarchyItemRawPtrList *items)
 
void editorOnlyStateChangedOnSelectedElements ()
 

Public Member Functions

 AZ_CLASS_ALLOCATOR (HierarchyWidget, AZ::SystemAllocator)
 
 HierarchyWidget (EditorWindow *editorWindow)
 
void SetIsDeleting (bool b)
 
EntityHelpers::EntityToHierarchyItemMap & GetEntityItemMap ()
 
EditorWindowGetEditorWindow ()
 
void ActiveCanvasChanged ()
 
void EntityContextChanged ()
 
void CreateItems (const LyShine::EntityArray &elements)
 
void RecreateItems (const LyShine::EntityArray &elements)
 
void ClearItems ()
 
AZ::Entity * CurrentSelectedElement () const
 
void SetUniqueSelectionHighlight (QTreeWidgetItem *item)
 
void SetUniqueSelectionHighlight (const AZ::Entity *element)
 
void AddElement (const QTreeWidgetItemRawPtrQList &selectedItems, const QPoint *optionalPos)
 
void SignalUserSelectionHasChanged (const QTreeWidgetItemRawPtrQList &selectedItems)
 
void ClearAllHierarchyItemEntityIds ()
 
void ApplyElementIsExpanded ()
 
void ClearItemBeingHovered ()
 
void UpdateSliceInfo ()
 Update the appearance of all hierarchy items to reflect their slice status.
 
void DropMimeDataAssets (const QMimeData *data, const AZ::EntityId &targetEntityId, bool onElement, int childIndex, const QPoint *newElementPosition=nullptr)
 Drop assets from asset browser.
 

Protected Member Functions

void mousePressEvent (QMouseEvent *ev) override
 
void mouseMoveEvent (QMouseEvent *ev) override
 
void mouseReleaseEvent (QMouseEvent *ev) override
 
void leaveEvent (QEvent *ev) override
 
void contextMenuEvent (QContextMenuEvent *ev) override
 
void mouseDoubleClickEvent (QMouseEvent *ev) override
 
void startDrag (Qt::DropActions supportedActions) override
 
void dragEnterEvent (QDragEnterEvent *event) override
 
void dragLeaveEvent (QDragLeaveEvent *event) override
 
void dropEvent (QDropEvent *ev) override
 
QStringList mimeTypes () const override
 
QMimeData * mimeData (const QList< QTreeWidgetItem * > items) const override
 

Member Function Documentation

◆ ClearAllHierarchyItemEntityIds()

void HierarchyWidget::ClearAllHierarchyItemEntityIds ( )

When we delete the Editor window we call this. It avoid the element Entities being deleted when the HierarchyItem is deleted


The documentation for this class was generated from the following file: