static void cacheNameUpdateRefreshesBuyLand(const LLUUID& id, const std::string& full_name, bool is_group) { LLFloaterBuyLandUI* ui = LLFloaterBuyLandUI::soleInstance(false); if (ui) { ui->updateNames(); } }
// static void LLFloaterBuyLand::updateEstateOwnerName(const std::string& name) { LLFloaterBuyLandUI* floater = LLFloaterBuyLandUI::instanceExists() ? LLFloaterBuyLandUI::getInstance() : NULL; if (floater) { floater->updateFloaterEstateOwnerName(name); } }
// static void LLFloaterBuyLand::updateLastModified(const std::string& text) { LLFloaterBuyLandUI* floater = LLFloaterBuyLandUI::soleInstance(FALSE); if (floater) { floater->updateLastModified(text); } }
// static void LLFloaterBuyLandUI::onChangeAgreeCovenant(LLUICtrl* ctrl, void* user_data) { LLFloaterBuyLandUI* self = (LLFloaterBuyLandUI*)user_data; if(self) { self->refreshUI(); } }
// static void LLFloaterBuyLand::updateCovenantText(const std::string& string, const LLUUID &asset_id) { LLFloaterBuyLandUI* floater = LLFloaterBuyLandUI::instanceExists() ? LLFloaterBuyLandUI::getInstance() : NULL; if (floater) { floater->updateFloaterCovenantText(string, asset_id); } }
// static void LLFloaterBuyLand::updateLastModified(const std::string& text) { LLFloaterBuyLandUI* floater = LLFloaterReg::findTypedInstance<LLFloaterBuyLandUI>("buy_land"); if (floater) { floater->updateFloaterLastModified(text); } }
// static void LLFloaterBuyLand::updateEstateOwnerName(const std::string& name) { LLFloaterBuyLandUI* floater = LLFloaterReg::findTypedInstance<LLFloaterBuyLandUI>("buy_land"); if (floater) { floater->updateFloaterEstateOwnerName(name); } }
// static void LLFloaterBuyLand::updateEstateOwnerName(const std::string& name) { LLFloaterBuyLandUI* floater = LLFloaterBuyLandUI::soleInstance(FALSE); if (floater) { floater->updateEstateOwnerName(name); } }
// static void LLFloaterBuyLand::updateCovenantText(const std::string& string, const LLUUID &asset_id) { LLFloaterBuyLandUI* floater = LLFloaterReg::findTypedInstance<LLFloaterBuyLandUI>("buy_land"); if (floater) { floater->updateFloaterCovenantText(string, asset_id); } }
// static void LLFloaterBuyLand::updateCovenantText(const std::string& string, const LLUUID &asset_id) { LLFloaterBuyLandUI* floater = LLFloaterBuyLandUI::soleInstance(FALSE); if (floater) { floater->updateCovenantText(string, asset_id); } }
// static void LLFloaterBuyLand::updateLastModified(const std::string& text) { LLFloaterBuyLandUI* floater = LLFloaterBuyLandUI::instanceExists() ? LLFloaterBuyLandUI::getInstance() : NULL; if (floater) { floater->updateFloaterLastModified(text); } }
// static BOOL LLFloaterBuyLand::isOpen() { LLFloaterBuyLandUI* floater = LLFloaterBuyLandUI::soleInstance(FALSE); if (floater) { return floater->getVisible(); } return FALSE; }
static void cacheNameUpdateRefreshesBuyLand(const LLUUID&, const std::string&, const std::string&, BOOL, void* data) { LLFloaterBuyLandUI* ui = LLFloaterBuyLandUI::soleInstance(false); if (ui) { ui->updateNames(); } }
// static void LLFloaterBuyLand::buyLand( LLViewerRegion* region, LLParcelSelectionHandle parcel, bool is_for_group) { if(is_for_group && !gAgent.hasPowerInActiveGroup(GP_LAND_DEED)) { LLNotifications::instance().add("OnlyOfficerCanBuyLand"); return; } LLFloaterBuyLandUI* ui = LLFloaterBuyLandUI::soleInstance(true); ui->setForGroup(is_for_group); ui->setParcel(region, parcel); ui->open(); /*Flawfinder: ignore*/ }
// static void LLFloaterBuyLand::buyLand( LLViewerRegion* region, LLParcelSelectionHandle parcel, bool is_for_group) { if(is_for_group && !gAgent.hasPowerInActiveGroup(GP_LAND_DEED)) { LLNotificationsUtil::add("OnlyOfficerCanBuyLand"); return; } LLFloaterBuyLandUI* ui = LLFloaterReg::showTypedInstance<LLFloaterBuyLandUI>("buy_land"); if (ui) { ui->setForGroup(is_for_group); ui->setParcel(region, parcel); } }
void LLFloaterBuyLandUI::SelectionObserver::changed() { LLFloaterBuyLandUI* ui = LLFloaterBuyLandUI::soleInstance(false); if (ui) { if (LLViewerParcelMgr::getInstance()->selectionEmpty()) { ui->close(); } else { ui->setParcel( LLViewerParcelMgr::getInstance()->getSelectionRegion(), LLViewerParcelMgr::getInstance()->getParcelSelection()); } } }
// static LLFloaterBuyLandUI* LLFloaterBuyLandUI::soleInstance(bool createIfNeeded) { #if !LL_RELEASE_FOR_DOWNLOAD if (createIfNeeded) { delete sInstance; sInstance = NULL; } #endif if (!sInstance && createIfNeeded) { sInstance = new LLFloaterBuyLandUI(); LLUICtrlFactory::getInstance()->buildFloater(sInstance, "floater_buy_land.xml"); sInstance->center(); static bool observingCacheName = false; if (!observingCacheName) { gCacheName->addObserver(cacheNameUpdateRefreshesBuyLand); observingCacheName = true; } static SelectionObserver* parcelSelectionObserver = NULL; if (!parcelSelectionObserver) { parcelSelectionObserver = new SelectionObserver; LLViewerParcelMgr::getInstance()->addObserver(parcelSelectionObserver); } } return sInstance; }
// static void LLFloaterBuyLandUI::onClickErrorWeb(void* data) { LLFloaterBuyLandUI* self = (LLFloaterBuyLandUI*)data; LLWeb::loadURLExternal(self->mCannotBuyURI); self->close(); }
// static void LLFloaterBuyLandUI::onClickCancel(void* data) { LLFloaterBuyLandUI* self = (LLFloaterBuyLandUI*)data; self->close(); }
// static void LLFloaterBuyLandUI::onClickBuy(void* data) { LLFloaterBuyLandUI* self = (LLFloaterBuyLandUI*)data; self->startBuyPreConfirm(); }