diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-02-02 20:40:57 +0200 |
|---|---|---|
| committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-02-02 20:44:08 +0200 |
| commit | 6987dcfd62284bd58bbfff810198b7aed02c28f4 (patch) | |
| tree | 43c2424e02012e1376bb18e3469d0ea323fa062c /indra/llui/llscrolllistctrl.h | |
| parent | 8b7691498ff188c286436c78a53ce7c494b0df83 (diff) | |
SL-11011 Multiselect, scroll to selection and search fix for estate's ban list
Diffstat (limited to 'indra/llui/llscrolllistctrl.h')
| -rw-r--r-- | indra/llui/llscrolllistctrl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llui/llscrolllistctrl.h b/indra/llui/llscrolllistctrl.h index b7c6d1660d..f94705b243 100644 --- a/indra/llui/llscrolllistctrl.h +++ b/indra/llui/llscrolllistctrl.h @@ -267,6 +267,14 @@ public: const std::string getSelectedItemLabel(S32 column = 0) const; LLSD getSelectedValue(); + // If multi select is on, select all element that include substring, + // otherwise select first match only. + // If focus is true will scroll to selection. + // Returns number of results. + // Note: at the moment search happens in one go and is expensive + U32 searchItems(const std::string& substring, bool case_sensitive = false, bool focus = true); + U32 searchItems(const LLWString& substring, bool case_sensitive = false, bool focus = true); + // DEPRECATED: Use LLSD versions of setCommentText() and getSelectedValue(). // "StringUUID" interface: use this when you're creating a list that contains non-unique strings each of which // has an associated, unique UUID, and only one of which can be selected at a time. |
