EXT-3124 : Add lookup for finding all linked items to an item

Filter string now highlights when doing this search.

--HG--
branch : avatar-pipeline
meow-7.2.2
Loren Shih 2009-12-04 13:44:25 -05:00
parent 9b89325cc9
commit 92a1ecd5fd
3 changed files with 11 additions and 0 deletions

View File

@ -141,6 +141,15 @@ void LLSearchEditor::clear()
}
}
//virtual
void LLSearchEditor::setFocus( BOOL b )
{
if (mSearchEditor)
{
mSearchEditor->setFocus(b);
}
}
void LLSearchEditor::onClearButtonClick(const LLSD& data)
{
setText(LLStringUtil::null);

View File

@ -83,6 +83,7 @@ public:
virtual BOOL setLabelArg( const std::string& key, const LLStringExplicit& text );
virtual void setLabel( const LLStringExplicit &new_label );
virtual void clear();
virtual void setFocus( BOOL b );
void setKeystrokeCallback( commit_callback_t cb ) { mKeystrokeCallback = cb; }

View File

@ -978,6 +978,7 @@ void LLPanelMainInventory::onCustomAction(const LLSD& userdata)
LLInventoryFilter *filter = mActivePanel->getFilter();
filter->setFilterSubString(item_name);
mFilterEditor->setText(item_name);
mFilterEditor->setFocus(TRUE);
filter->setFilterUUID(item_id);
filter->setShowFolderState(LLInventoryFilter::SHOW_NON_EMPTY_FOLDERS);
}