API Documentation
Loading...
Searching...
No Matches
DesignObjectComboWidget Class Reference

Shows a filtered list of models in a combobox that the user can use to select a desired Model. More...

#include <DesignObjectComboWidget.h>

Inheritance diagram for DesignObjectComboWidget:
[legend]
Collaboration diagram for DesignObjectComboWidget:
[legend]

Public Member Functions

void clearTarget ()
 
 DesignObjectComboWidget (QWidget *parent=nullptr)
 
void setDesignProperty (DesignObject::DesignProperty property)
 
void setTarget (const DynamicPointer< QTDesignObject > &object)
 
void setTarget (DesignObject::DesignProperty property, const DynamicPointer< QTDesignObject > &object)
 
void setTitle (const TranslatedString &title)
 
void setupForMetadata (const String &metadata)
 
- Public Member Functions inherited from QCustomComboBox
template<class t_type >
void add (const t_type &value, const TranslatedString &display_value, bool refresh_widget=false)
 
void clearValue ()
 
QCustomValidatorcustomValidator ()
 
const QCustomValidatorcustomValidator () const
 
const Buffer< TranslatedString > & displayValues () const
 
bool event (QEvent *event) override
 
void focusInEvent (QFocusEvent *e) override
 
template<class t_type >
t_type getAs () const
 
template<class t_type >
t_type getAs (uint04 index) const
 
Angle< fltp08getUnitAngle () const
 
fltp08 getUnitValue () const
 
void hidePopup () override
 
bool isUsingCustom () const
 
void lockInCustomValue ()
 
QSize minimumSizeHint () const override
 
void paintEvent (QPaintEvent *) override
 
 QCustomComboBox (QWidget *parent=nullptr)
 
void refresh ()
 
template<class t_type >
void remove (const t_type &value, bool refresh_widget=false)
 
void resizeEvent (QResizeEvent *event) override
 
template<class t_enum >
std::enable_if< ObjectInfo< t_enum >::Enum >::type set (t_enum value)
 
void setAllowCustom (bool allow_custom)
 
void setAutoFormat (bool auto_format)
 
void setConstantUnit (const ConstPointer< Unit > &unit, uint01 dimension=Constant< uint01 >::Invalid)
 
void setCustomUnit (const String &unit, UnitCategory fallback_unit, uint01 dimension=Constant< uint01 >::Invalid)
 
void setCustomValidator (const QCustomValidator &validator)
 
void setSuffix (const TranslatedString &suffix)
 
void setTitle (const TranslatedString &title)
 
void setToolTip (const TranslatedString &tooltip)
 
void setUnitType (UnitCategory unit, uint01 dimension=Constant< uint01 >::Invalid)
 
void setUnitValue (fltp08 value, uint01 unit_dimension=0)
 
template<class t_object >
void setup (const TranslatedString &title, const Buffer< std::pair< TranslatedString, t_object > > &items)
 
void setup (const TranslatedString &title, const Buffer< String > &values, const Buffer< TranslatedString > &display_values)
 
template<class t_object >
std::enable_if< ObjectInfo< t_object >::Enum >::type setup (const TranslatedString &title, const Buffer< t_object > &items)
 
template<class t_object >
std::enable_if< ObjectInfo< t_object >::Number >::type setup (const TranslatedString &title, const Buffer< t_object > &items)
 
template<class t_object >
std::enable_if<!ObjectInfo< t_object >::Enum &&!ObjectInfo< t_object >::Number >::type setup (const TranslatedString &title, const Buffer< t_object > &items)
 
void setup (const TranslatedString &title, const Buffer< TranslatedString > &values)
 
template<class t_enum >
std::enable_if< ObjectInfo< t_enum >::Enum >::type setup (const TranslatedString &title, t_enum first, t_enum last)
 
template<class t_enum >
std::enable_if< ObjectInfo< t_enum >::Enum >::type setup (const TranslatedString &title, uint04 size)
 
template<class t_type >
void setupResource (const TranslatedString &title, Resource< t_type > &resource)
 
void setValue (const String &value)
 
template<class t_type >
void setValue (const t_type &t_value)
 
void setValue (const TranslatedString &t_value)
 
void showPopup () override
 
QSize sizeHint () const override
 
void sortAlphabetically (uint04 start=0, uint04 size=Constant< uint04 >::Invalid)
 
const TranslatedStringsuffix () const
 
void updateFontSize ()
 
const Buffer< String > & values () const
 
void wheelEvent (QWheelEvent *e) override
 

Protected Slots

void onObjectDeletedSlot ()
 
void onObjectUpdatedSlot ()
 
void sendCommand ()
 
- Protected Slots inherited from QCustomComboBox
void onChange ()
 
void onEdit ()
 
void onEditTextChangedSlot ()
 

Protected Attributes

String m_meta_data_title
 
DesignObject::DesignProperty m_property
 
DynamicPointer< QTDesignObjectm_target
 
TranslatedString m_title
 
- Protected Attributes inherited from QCustomComboBox
Dictionary< uint04, uint04enum_to_index
 
Dictionary< uint04, uint04index_to_enum
 
bool m_allow_custom
 
bool m_auto_format
 
String m_current_custom
 
uint04 m_custom_index
 
Buffer< TranslatedStringm_display_values
 
bool m_is_changing = false
 
bool m_is_refreshing = false
 
bool m_is_showing_popup = false
 
uint04 m_last_index
 
QCustomLineEditm_line_edit
 
QTResourceListenerm_resource_changed_listener
 
bool m_sort_alphabetically = false
 
uint04 m_sort_offset = 0
 
TranslatedString m_suffix
 
bool m_using_custom
 
Buffer< Stringm_values
 

Additional Inherited Members

- Signals inherited from QCustomComboBox
void edited ()
 
- Protected Member Functions inherited from QCustomComboBox
void adjustLineEditSize ()
 
virtual void onSorted (const Buffer< uint04 > &swap_indices)
 
void refreshWidget ()
 

Detailed Description

Shows a filtered list of models in a combobox that the user can use to select a desired Model.


Constructor & Destructor Documentation

◆ DesignObjectComboWidget()

DesignObjectComboWidget ( QWidget * parent = nullptr)
inline

Member Function Documentation

◆ clearTarget()

void clearTarget ( )
inline

◆ onObjectDeletedSlot

void onObjectDeletedSlot ( )
inlineprotectedslot

◆ onObjectUpdatedSlot

void onObjectUpdatedSlot ( )
inlineprotectedslot

◆ sendCommand

void sendCommand ( )
inlineprotectedslot

◆ setDesignProperty()

void setDesignProperty ( DesignObject::DesignProperty property)
inline

◆ setTarget() [1/2]

void setTarget ( const DynamicPointer< QTDesignObject > & object)
inline

◆ setTarget() [2/2]

void setTarget ( DesignObject::DesignProperty property,
const DynamicPointer< QTDesignObject > & object )
inline

◆ setTitle()

void setTitle ( const TranslatedString & title)
inline

◆ setupForMetadata()

void setupForMetadata ( const String & metadata)
inline

Member Data Documentation

◆ m_meta_data_title

String m_meta_data_title
protected

◆ m_property

DesignObject::DesignProperty m_property
protected

◆ m_target

DynamicPointer<QTDesignObject> m_target
protected

◆ m_title

TranslatedString m_title
protected

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