//static void LLInventoryView::onFilterSelected(void* userdata, bool from_click) { LLInventoryView* self = (LLInventoryView*) userdata; LLInventoryFilter* filter; LLInventoryViewFinder *finder = self->getFinder(); // Find my index self->mActivePanel = (LLInventoryPanel*)self->childGetVisibleTab("inventory filter tabs"); if (!self->mActivePanel) { return; } filter = self->mActivePanel->getFilter(); if (finder) { finder->changeFilter(filter); } if (filter->isActive()) { // If our filter is active we may be the first thing requiring a fetch so we better start it here. gInventory.startBackgroundFetch(); } self->setFilterTextFromFilter(); }
//static void LLInventoryView::onCollapseAll(void* userdata) { LLInventoryView* self = (LLInventoryView*) userdata; self->mActivePanel = (LLInventoryPanel*)self->childGetVisibleTab("inventory filter tabs"); if (!self->mActivePanel) { return; } self->mActivePanel->closeAllFolders(); }
void LLInventoryView::onResetAll(void* userdata) { LLInventoryView* self = (LLInventoryView*) userdata; self->mActivePanel = (LLInventoryPanel*)self->childGetVisibleTab("inventory filter tabs"); if (!self->mActivePanel) { return; } if (self->mActivePanel && self->mFilterEditor) { self->mFilterEditor->setText(LLStringUtil::null); } self->onFilterEdit(""); self->mActivePanel->closeAllFolders(); }