void LLPanelDirBrowser::newClassified() { LLScrollListCtrl* list = findChild<LLScrollListCtrl>("results"); if (!list) return; if (mFloaterDirectory->mPanelClassifiedp) { // Clear the panel on the right mFloaterDirectory->mPanelClassifiedp->reset(); // Set up the classified with the info we've created // and a sane default position. mFloaterDirectory->mPanelClassifiedp->initNewClassified(); // We need the ID to select in the list. LLUUID classified_id = mFloaterDirectory->mPanelClassifiedp->getClassifiedID(); // Put it in the list on the left addClassified(list, classified_id, mFloaterDirectory->mPanelClassifiedp->getClassifiedName(),0,0); // Select it. list->setCurrentByID(classified_id); // Make the right panel visible (should already be) mFloaterDirectory->mPanelClassifiedp->setVisible(TRUE); } }
void LLPanelDirBrowser::selectByUUID(const LLUUID& id) { LLScrollListCtrl* list = findChild<LLScrollListCtrl>("results"); if (!list) return; BOOL found = list->setCurrentByID(id); if (found) { // we got it, don't wait for network // Don't bother looking for this in the draw loop. mWantSelectID.setNull(); // Make sure UI updates. onCommitList(); } else { // waiting for this item from the network mWantSelectID = id; } }