API Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
DesignObjectSearchWidget Class Reference

Allows the user to enter search terms for filtering out tables or other views. More...

#include <DesignObjectSearchWidget.h>

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

Public Member Functions

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

Protected Slots

void onObjectUpdatedSlot ()
 

Protected Attributes

bool m_ignore_case
 
DesignObjectLookupm_manager
 
Buffer< UUIDm_objects_to_search
 
DesignObject::DesignProperty m_property
 
- Protected Attributes inherited from QCustomLineEdit
TranslatedString m_title
 
TranslatedString m_tooltip
 

Additional Inherited Members

- Public Slots inherited from QCustomLineEdit
void onEdited ()
 
void onFinishedSlot ()
 
void updateCharColors ()
 
void updateColor ()
 
- Signals inherited from QCustomLineEdit
void editedSignal ()
 
void editingFinishedSignal ()
 
void inputHintChangedSignal ()
 
- Static Public Member Functions inherited from QCustomLineEdit
static bool UseKeypad ()
 

Detailed Description

Allows the user to enter search terms for filtering out tables or other views.


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: