/* Reaction to a change in bitmaplist, this function finds a texture picker floater's appropriate scrolllist and passes this scrolllist's pointer to UpdateTextureCtrlList for processing. it also processes timer start/stops as needed */ void LocalAssetBrowser::onChangeHappened() { /* own floater update */ FloaterLocalAssetBrowser::UpdateBitmapScrollList(); /* texturepicker related */ const LLView::child_list_t* child_list = gFloaterView->getChildList(); LLView::child_list_const_iter_t child_list_iter = child_list->begin(); for (; child_list_iter != child_list->end(); child_list_iter++) { LLView* view = *child_list_iter; if ( view->getName() == LOCAL_TEXTURE_PICKER_NAME ) { LLScrollListCtrl* ctrl = view->getChild<LLScrollListCtrl> ( LOCAL_TEXTURE_PICKER_LIST_NAME, LOCAL_TEXTURE_PICKER_RECURSE, LOCAL_TEXTURE_PICKER_CREATEIFMISSING ); if ( ctrl ) { UpdateTextureCtrlList(ctrl); } } } /* poking timer to see if it's still needed/still not needed */ PingTimer(); }
void LocalAssetBrowser::onUpdateBool(LLUUID id) { if (LocalBitmap* unit = GetBitmapUnit(id)) { unit->setUpdateBool(); PingTimer(); } }