34#include <NDEVR/QCustomLineEdit.h>
35#include <NDEVR/QCustomValidator.h>
36#include <NDEVR/DesignObjectLookup.h>
37#include <NDEVR/DesignObject.h>
38#include <NDEVR/RegexFunctions.h>
50 , m_ignore_case(false)
52 setPlaceholderText(
_tqa(
"Search"));
53 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
54 customValidator().setAllowEmpty(
true);
66 m_objects_to_search = objects;
67 m_property = property;
68 onObjectUpdatedSlot();
72 if (m_objects_to_search == objects)
74 m_objects_to_search = objects;
75 onObjectUpdatedSlot();
79 m_property = property;
80 onObjectUpdatedSlot();
83 case DesignObject::DesignProperty::e_file:
84 customValidator().setRegex(RegexFunctions::FileRegex());
94 if (value.
size() == 0)
95 return m_objects_to_search;
98 const bool ignore_case = m_ignore_case;
99 for(
const UUID&
id : m_objects_to_search)
101 if(m_manager->object(
id).doesPropertyContain(property, value, ignore_case))
111 String value = getValue();
112 if (value.
size() == 0)
113 return m_objects_to_search;
116 const bool ignore_case = m_ignore_case;
117 for (
const UUID&
id : m_objects_to_search)
119 if (m_manager->object(
id).doesPropertyBeginWith(property, value, ignore_case))
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
void add(t_type &&object)
Definition Buffer.hpp:199
constexpr t_index_type size() const
Definition Buffer.hpp:1461
Definition DesignObject.h:66
DesignProperty
Definition DesignObject.h:94
Definition DesignObjectLookup.h:61
Definition QCustomLineEdit.h:118