//static void LLAvatarActions::hideProfile(const LLUUID& id) { LLFloater* browser = getProfileFloater(id); if (browser) { browser->close(); } }
void LLPanelGroup::close() { // Pass this to the parent, if it is a floater. LLView* viewp = getParent(); LLFloater* floaterp = dynamic_cast<LLFloater*>(viewp); if (floaterp) { // First, set the force close flag, since the floater // will be asking us whether it can close. mForceClose = TRUE; // Tell the parent floater to close. floaterp->close(); } }
void LLInventoryView::toggleFindOptions() { LLFloater *floater = getFinder(); if (!floater) { LLInventoryViewFinder * finder = new LLInventoryViewFinder(std::string("Inventory Finder"), LLRect(getRect().mLeft - INV_FINDER_WIDTH, getRect().mTop, getRect().mLeft, getRect().mTop - INV_FINDER_HEIGHT), this); mFinderHandle = finder->getHandle(); finder->open(); /*Flawfinder: ignore*/ addDependentFloater(mFinderHandle); // start background fetch of folders gInventory.startBackgroundFetch(); mFloaterControls[std::string("Inventory.ShowFilters")]->setValue(TRUE); } else { floater->close(); mFloaterControls[std::string("Inventory.ShowFilters")]->setValue(FALSE); } }
BOOL LLFloaterChatterBox::handleKeyHere(KEY key, MASK mask) { if (key == 'W' && mask == MASK_CONTROL) { LLFloater* floater = getActiveFloater(); // is user closeable and is system closeable if (floater && floater->canClose()) { if (floater->isCloseable()) { floater->close(); } else { // close chatterbox window if frontmost tab is reserved, non-closeable tab // such as contacts or near me close(); } } return TRUE; } return LLMultiFloater::handleKeyHere(key, mask); }