void LLIMFloater::updateSessionName(const std::string& ui_title, const std::string& ui_label) { mInputEditor->setLabel(LLTrans::getString("IM_to_label") + " " + ui_label); setShortTitle(ui_title); setTitle(ui_title); }
void LLFloaterIMPanel::onAvatarNameLookup(const LLAvatarName& avatar_name) { setTitle(avatar_name.getNSName()); const S32& ns(gSavedSettings.getS32("IMNameSystem")); std::string title(avatar_name.getNSName(ns)); if (!ns || ns == 3) // Remove Resident, if applicable. { size_t pos(title.find(" Resident")); if (pos != std::string::npos && !gSavedSettings.getBOOL("LiruShowLastNameResident")) title.erase(pos, 9); } setShortTitle(title); if (LLMultiFloater* mf = dynamic_cast<LLMultiFloater*>(getParent())) mf->updateFloaterTitle(this); }
void LLFloaterScriptDebugOutput::addLine(const std::string &utf8mesg, const std::string &user_name, const LLColor4& color) { if (mObjectID.isNull()) { setCanTearOff(FALSE); setCanClose(FALSE); } else { setTitle(user_name); setShortTitle(user_name); } mHistoryEditor->appendText(utf8mesg, true, LLStyle::Params().color(color)); mHistoryEditor->blockUndo(); }