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

#include <DesignObjectComboWidget.h>

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

Public Member Functions

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

Protected Slots

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

Protected Attributes

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

Additional Inherited Members

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

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: