All places just av/group names were being used are now name ui

Since NameBoxes are clickable, remove redundant profile buttons.
Removes a ton of RLV logic, now centralized inside LLNameUI
Removes excess functions that went largely unused

May no longer show if parcel sale is pending under the owner field,
this is weird and it's hard to keep this behavior

Also includes the missing setValue and getValue so this compiles,
that should've been committed way earlier, oops

Also adds ability for name_box to have is_group attribute, too!
This commit is contained in:
Liru Færs
2019-10-09 23:57:01 -04:00
parent d54bf78c08
commit d277f1750d
31 changed files with 151 additions and 498 deletions

View File

@@ -176,7 +176,7 @@ public:
void updateFloaterCovenantText(const std::string& string, const LLUUID &asset_id);
void updateFloaterEstateName(const std::string& name);
void updateFloaterLastModified(const std::string& text);
void updateFloaterEstateOwnerName(const std::string& name);
void updateFloaterEstateOwnerID(const LLUUID& id);
void updateWebSiteInfo();
void finishWebSiteInfo();
@@ -263,12 +263,12 @@ void LLFloaterBuyLand::updateLastModified(const std::string& text)
}
// static
void LLFloaterBuyLand::updateEstateOwnerName(const std::string& name)
void LLFloaterBuyLand::updateEstateOwnerID(const LLUUID& id)
{
LLFloaterBuyLandUI* floater = LLFloaterBuyLandUI::instanceExists() ? LLFloaterBuyLandUI::getInstance() : NULL;
LLFloaterBuyLandUI* floater = LLFloaterBuyLandUI::instanceExists() ? LLFloaterBuyLandUI::getInstance() : nullptr;
if (floater)
{
floater->updateFloaterEstateOwnerName(name);
floater->updateFloaterEstateOwnerID(id);
}
}
@@ -629,10 +629,10 @@ void LLFloaterBuyLandUI::updateFloaterLastModified(const std::string& text)
if (editor) editor->setText(text);
}
void LLFloaterBuyLandUI::updateFloaterEstateOwnerName(const std::string& name)
void LLFloaterBuyLandUI::updateFloaterEstateOwnerID(const LLUUID& id)
{
LLTextBox* box = getChild<LLTextBox>("estate_owner_text");
if (box) box->setText(name);
if (box) box->setValue(id);
}
void LLFloaterBuyLandUI::updateWebSiteInfo()