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::GenericComboBoxCtrl< T > Class Template Reference

Inherits AzToolsFramework::GenericComboBoxCtrlBase.

Public Types

using GenericType = T
 

Public Member Functions

 AZ_RTTI ((GenericComboBoxCtrl, "{FA7EC12F-1DA3-4734-ABDE-CBFD99450571}", T), GenericComboBoxCtrlBase)
 
 AZ_CLASS_ALLOCATOR (GenericComboBoxCtrl, AZ::SystemAllocator)
 
 GenericComboBoxCtrl (QWidget *pParent=nullptr)
 
const T & value () const
 
void setValue (const T &value)
 
void setInvalidValue ()
 
void addElements (const AZStd::vector< AZStd::pair< T, AZStd::string > > &genericValues)
 
void addElement (const AZStd::pair< T, AZStd::string > &genericValue)
 
void setElements (const AZStd::vector< AZStd::pair< T, AZStd::string > > &genericValues)
 
void clearElements ()
 
void SetWarning (const AZStd::string &warningText)
 
QComboBox * GetComboBox ()
 
QToolButton * GetEditButton ()
 
void SetEditButtonCallBack (GenericEditButtonCallback< T > function)
 
- Public Member Functions inherited from AzToolsFramework::GenericComboBoxCtrlBase
 AZ_RTTI (GenericComboBoxCtrlBase, "{879D010E-743F-45FB-9D97-2DAD2C25ACBA}")
 
 AZ_CLASS_ALLOCATOR (GenericComboBoxCtrlBase, AZ::SystemAllocator)
 
 GenericComboBoxCtrlBase (QWidget *pParent=nullptr)
 
virtual QWidget * GetFirstInTabOrder ()=0
 
virtual QWidget * GetLastInTabOrder ()=0
 
virtual void UpdateTabOrder ()=0
 

Protected Member Functions

QWidget * GetFirstInTabOrder () override
 
QWidget * GetLastInTabOrder () override
 
void UpdateTabOrder () override
 
void onChildComboBoxValueChange (int comboBoxIndex) override
 
virtual void onChildComboBoxValueChange (int comboBoxIndex)=0
 

Friends

class GenericComboBoxHandler< T >
 

Additional Inherited Members

- Signals inherited from AzToolsFramework::GenericComboBoxCtrlBase
void valueChanged (AZStd::string &newValue)
 

Member Function Documentation

◆ GetFirstInTabOrder()

template<typename T >
QWidget * AzToolsFramework::GenericComboBoxCtrl< T >::GetFirstInTabOrder
inlineoverrideprotectedvirtual

◆ GetLastInTabOrder()

template<typename T >
QWidget * AzToolsFramework::GenericComboBoxCtrl< T >::GetLastInTabOrder
inlineoverrideprotectedvirtual

◆ onChildComboBoxValueChange()

template<typename T >
void AzToolsFramework::GenericComboBoxCtrl< T >::onChildComboBoxValueChange ( int  comboBoxIndex)
inlineoverrideprotectedvirtual

◆ UpdateTabOrder()

template<typename T >
void AzToolsFramework::GenericComboBoxCtrl< T >::UpdateTabOrder
inlineoverrideprotectedvirtual

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