void LLLandmarksPanel::onCustomAction(const LLSD& userdata) { std::string command_name = userdata.asString(); if("more_info" == command_name) { onShowProfile(); } else if ("teleport" == command_name) { onTeleport(); } else if ("show_on_map" == command_name) { onShowOnMap(); } else if ("create_pick" == command_name) { doActionOnCurSelectedLandmark(boost::bind(&LLLandmarksPanel::doCreatePick, this, _1)); } else if ("restore" == command_name && mCurrentSelectedList) { mCurrentSelectedList->doToSelected(userdata); } }
void LLTeleportHistoryPanel::onDoubleClickItem() { // If item got doubleclick, then that item is already selected onTeleport(); }
void LLTeleportHistoryPanel::onReturnKeyPressed() { // Teleport to selected region as default action on return key pressed onTeleport(); }