Open 3D Engine AzToolsFramework 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.
AzToolsFramework::AssetBrowser::AssetPickerDialog Class Reference

Inherits QDialog.

Inherited by AzToolsFramework::AssetBrowser::AssetBrowserTreeViewDialog.

Signals

void SizeChangedSignal (int newWidth)
 

Public Member Functions

 AZ_CLASS_ALLOCATOR (AssetPickerDialog, AZ::SystemAllocator)
 
 AssetPickerDialog (AssetSelectionModel &selection, QWidget *parent=nullptr)
 

Protected Slots

void DoubleClickedSlot (const QModelIndex &index)
 
void SelectionChangedSlot ()
 
void RestoreState ()
 
void OnFilterUpdated ()
 

Protected Member Functions

void accept () override
 
void reject () override
 
void keyPressEvent (QKeyEvent *e) override
 
void resizeEvent (QResizeEvent *resizeEvent) override
 
virtual bool EvaluateSelection () const
 
void UpdatePreview () const
 
void SaveState ()
 

Protected Attributes

QScopedPointer< Ui::AssetPickerDialogClass > m_ui
 
AssetBrowserModelm_assetBrowserModel = nullptr
 
QScopedPointer< AssetBrowserFilterModelm_filterModel
 
QScopedPointer< AssetBrowserListModelm_listModel
 
AssetSelectionModelm_selection
 
bool m_hasFilter
 
AZStd::unique_ptr< TreeViewState > m_filterStateSaver
 
AZStd::intrusive_ptr< QWidgetSavedStatem_persistentState
 

Member Function Documentation

◆ EvaluateSelection()

virtual bool AzToolsFramework::AssetBrowser::AssetPickerDialog::EvaluateSelection ( ) const
protectedvirtual

Evaluate whether current selection is valid. Valid selection requires exactly one item to be selected, must be source or product type, and must match the wildcard filter

Reimplemented in AzToolsFramework::AssetBrowser::AssetBrowserTreeViewDialog.


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