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

#include <DesignObjectSearchWidget.h>

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

Public Member Functions

 DesignObjectSearchWidget (QWidget *parent=nullptr)
 
void setSearchIDs ()
 
void setManager (DesignObjectLookup *lookup)
 
void setSearchIDs (DesignObject::DesignProperty property, const Buffer< UUID > &objects)
 
void setSearchIDs (const Buffer< UUID > &objects)
 
void setDesignProperty (DesignObject::DesignProperty property)
 
Buffer< UUIDgetObjectsContainingSearch () const
 
Buffer< UUIDgetObjectsBeginningWithSearch () const
 
- Public Member Functions inherited from QCustomLineEdit
 QCustomLineEdit (QWidget *parent=Q_NULLPTR)
 
 QCustomLineEdit (const QString &value, QWidget *parent=Q_NULLPTR)
 
 ~QCustomLineEdit ()
 
virtual void setTitle (const TranslatedString &title)
 
QCustomValidatorcustomValidator ()
 
const QCustomValidatorcustomValidator () const
 
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 setUnitType (UnitType unit, uint01 dimension=Constant< uint01 >::NaN)
 
void setAsKeyboardFocus ()
 
bool isValid () const
 
void setEditable (bool editable)
 
bool isEditable () const
 
bool isEditing () const
 
bool hasUserFocus () const
 
void clearBackgroundColor ()
 
void setInputHint (const TranslatedString &hint)
 
void clearInputHint ()
 
void setToolTip (const TranslatedString &tooltip)
 
String getValue (bool allow_placeholder) const
 
String getValue () const
 
template<class t_angle_type >
void setUnitValue (Angle< t_angle_type > value)
 
void setUnitValue (fltp08 value)
 
void setPlaceHolderUnitValue (fltp08 value)
 
template<class t_angle_type = fltp08>
Angle< t_angle_type > getUnitAngle (bool allow_placeholder=true) const
 
fltp08 getUnitValue (bool allow_placeholder=true) const
 
template<class t_type >
void setup (const TranslatedString &title)
 
void setup (const TranslatedString &title, UnitType unit_type, uint01 dim=Constant< uint01 >::NaN)
 
void setup (const TranslatedString &title, const TypeInfo &type)
 
void setup (GenericOption &option)
 
template<class t_type >
void setup (ApplicationOption< t_type > &option)
 
template<class t_type >
void setup (const TranslatedString &title, Resource< t_type > &resource)
 
void setup (const TranslatedString &title, Resource< String > &resource)
 
void setAllowPlaceholderAsValue (bool allow)
 
template<class t_type >
t_type getAs (bool allow_placeholder) const
 
template<class t_type >
t_type getAs () const
 
template<class t_type >
std::enable_if< ObjectInfo< t_type >::Number, void >::type setValue (const t_type &input_value)
 
template<class t_type >
std::enable_if<!ObjectInfo< t_type >::Number, void >::type setValue (const t_type &input_value)
 
void setValue (const TimeSpan &input_value)
 
void setValue (const Angle< sint04 > &input_value)
 
void setValue (const Angle< fltp08 > &input_value)
 
void setBackgroundColor (const RGBColor &color)
 
RGBColor backgroundColor () const
 
template<class t_type >
void setPlaceholderValue (const t_type &input_value, bool allow_placeholder_as_value=true)
 
void setPlaceholderValue (const TranslatedString &input_value, bool allow_placeholder_as_value=true)
 
QSize sizeHint () const override
 
QSize minimumSizeHint () const override
 
void wheelEvent (QWheelEvent *event) override
 
void forceValue (const String &units)
 
bool event (QEvent *event) override
 
const TranslatedStringinputHint () const
 
void updateHints ()
 
void setStep (fltp08 step)
 
void setAutoShowTooltip (bool auto_show_tooltip)
 
void setPlaceholderText (const QString &value)
 
void startUserEdit (bool select_all=true)
 
void setFontMultiplier (fltp04 font_multiplier)
 
void setBold (bool is_bold)
 

Protected Slots

void onObjectUpdatedSlot ()
 

Protected Attributes

DesignObject::DesignProperty m_property
 
DesignObjectLookupm_manager
 
Buffer< UUIDm_objects_to_search
 
bool m_ignore_case
 
- Protected Attributes inherited from QCustomLineEdit
String m_current_value
 
String m_fixed_up_current_value
 
String m_last_valid
 
String m_custom_unit
 
TranslatedString m_input_hint
 
TranslatedString m_custom_input_hint
 
TranslatedString m_title
 
TranslatedString m_tooltip
 
RGBColor m_background_color = Constant<RGBColor>::NaN
 
QTResourceListenerm_resource_changed_listener = nullptr
 
QTResourceListenerm_unit_changed_listener = nullptr
 
QCustomValidator m_validator
 
fltp04 m_font_multiplier = 1.0f
 
bool m_is_editable = true
 
bool m_auto_show_tooltip = true
 
bool m_suppress_focus_out = false
 
bool m_allow_placeholder_as_value = true
 
bool m_is_bold = false
 
bool m_ignore_focus_lock = false
 
bool m_has_edited = false
 

Additional Inherited Members

- Public Slots inherited from QCustomLineEdit
void onFinishedSlot ()
 
void updateColor ()
 
void updateCharColors ()
 
void onEdited ()
 
- Signals inherited from QCustomLineEdit
void editedSignal ()
 
void editingFinishedSignal ()
 
void inputHintChangedSignal ()
 
- Static Public Member Functions inherited from QCustomLineEdit
static bool UseKeypad ()
 
- Protected Member Functions inherited from QCustomLineEdit
void _setInputHint (const TranslatedString &hint)
 
void paintEvent (QPaintEvent *event) override
 
void setupForUnit (const ConstPointer< Unit > &unit, uint01 dimension=Constant< uint01 >::NaN)
 
virtual void mousePressEvent (QMouseEvent *e) override
 
virtual void focusInEvent (QFocusEvent *e) override
 
virtual void focusOutEvent (QFocusEvent *e) override
 
virtual void creatUnitLister ()
 
void updateFont ()
 
void _setBackgroundColor (const RGBColor &color)
 

Constructor & Destructor Documentation

◆ DesignObjectSearchWidget()

DesignObjectSearchWidget ( QWidget * parent = nullptr)
inline

Member Function Documentation

◆ getObjectsBeginningWithSearch()

Buffer< UUID > getObjectsBeginningWithSearch ( ) const
inlinenodiscard

◆ getObjectsContainingSearch()

Buffer< UUID > getObjectsContainingSearch ( ) const
inlinenodiscard

◆ onObjectUpdatedSlot

void onObjectUpdatedSlot ( )
inlineprotectedslot

◆ setDesignProperty()

void setDesignProperty ( DesignObject::DesignProperty property)
inline

◆ setManager()

void setManager ( DesignObjectLookup * lookup)
inline

◆ setSearchIDs() [1/3]

void setSearchIDs ( )
inline

◆ setSearchIDs() [2/3]

void setSearchIDs ( const Buffer< UUID > & objects)
inline

◆ setSearchIDs() [3/3]

void setSearchIDs ( DesignObject::DesignProperty property,
const Buffer< UUID > & objects )
inline

Member Data Documentation

◆ m_ignore_case

bool m_ignore_case
protected

◆ m_manager

DesignObjectLookup* m_manager
protected

◆ m_objects_to_search

Buffer<UUID> m_objects_to_search
protected

◆ m_property

DesignObject::DesignProperty m_property
protected

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