#include <llfloaterregioninfo.h>
Inheritance diagram for LLPanelEstateInfo:
Public Member Functions | |
LLPanelEstateInfo () | |
~LLPanelEstateInfo () | |
virtual bool | refreshFromRegion (LLViewerRegion *region) |
virtual bool | estateUpdate (LLMessageSystem *msg) |
virtual BOOL | postBuild () |
virtual void | updateChild (LLUICtrl *child_ctrl) |
U32 | computeEstateFlags () |
void | setEstateFlags (U32 flags) |
BOOL | getGlobalTime () |
void | setGlobalTime (bool b) |
BOOL | getFixedSun () |
F32 | getSunHour () |
void | setSunHour (F32 sun_hour) |
const std::string | getEstateName () const |
void | setEstateName (const std::string &name) |
U32 | getEstateID () const |
void | setEstateID (U32 estate_id) |
const std::string | getOwnerName () const |
void | setOwnerName (const std::string &name) |
void | setAccessAllowedEnabled (bool enable_agent, bool enable_group, bool enable_ban) |
Static Public Member Functions | |
static void | initDispatch (LLDispatcher &dispatch) |
static void | onChangeFixedSun (LLUICtrl *ctrl, void *user_data) |
static void | onChangeUseGlobalTime (LLUICtrl *ctrl, void *user_data) |
static void | onClickAddAllowedAgent (void *user_data) |
static void | onClickRemoveAllowedAgent (void *user_data) |
static void | onClickAddAllowedGroup (void *user_data) |
static void | onClickRemoveAllowedGroup (void *user_data) |
static void | onClickAddBannedAgent (void *user_data) |
static void | onClickRemoveBannedAgent (void *user_data) |
static void | onClickAddEstateManager (void *user_data) |
static void | onClickRemoveEstateManager (void *user_data) |
static void | onClickKickUser (void *userdata) |
static void | addAllowedGroup (S32 option, void *data) |
static void | addAllowedGroup2 (LLUUID id, void *data) |
static void | accessAddCore (U32 operation_flag, const char *dialog_name) |
static void | accessAddCore2 (S32 option, void *data) |
static void | accessAddCore3 (const std::vector< std::string > &names, const std::vector< LLUUID > &ids, void *data) |
static void | accessRemoveCore (U32 operation_flag, const char *dialog_name, const char *list_ctrl_name) |
static void | accessRemoveCore2 (S32 option, void *data) |
static void | accessCoreConfirm (S32 option, void *data) |
static void | kickUserConfirm (S32 option, void *userdata) |
static void | sendEstateAccessDelta (U32 flags, const LLUUID &agent_id) |
static void | onKickUserCommit (const std::vector< std::string > &names, const std::vector< LLUUID > &ids, void *userdata) |
static void | onClickMessageEstate (void *data) |
static void | onMessageCommit (S32 option, const LLString &text, void *data) |
static bool | isLindenEstate () |
static void | callbackCacheName (const LLUUID &id, const char *first, const char *last, BOOL is_group, void *) |
Protected Member Functions | |
virtual BOOL | sendUpdate () |
void | commitEstateInfo () |
void | commitEstateAccess () |
void | commitEstateManagers () |
void | clearAccessLists () |
BOOL | checkRemovalButton (std::string name) |
BOOL | checkSunHourSlider (LLUICtrl *child_ctrl) |
Static Protected Member Functions | |
static void | callbackChangeLindenEstate (S32 opt, void *data) |
Protected Attributes | |
U32 | mEstateID |
Definition at line 247 of file llfloaterregioninfo.h.
LLPanelEstateInfo::LLPanelEstateInfo | ( | ) |
Definition at line 1358 of file llfloaterregioninfo.cpp.
LLPanelEstateInfo::~LLPanelEstateInfo | ( | ) | [inline] |
Definition at line 289 of file llfloaterregioninfo.h.
Definition at line 1681 of file llfloaterregioninfo.cpp.
References accessAddCore2(), LLViewerWindow::alertXml(), gViewerWindow, isLindenEstate(), LLEstateAccessChangeInfo::mDialogName, and LLEstateAccessChangeInfo::mOperationFlag.
Referenced by onClickAddAllowedAgent(), onClickAddBannedAgent(), and onClickAddEstateManager().
Definition at line 1700 of file llfloaterregioninfo.cpp.
References accessAddCore3(), FALSE, NULL, LLFloaterAvatarPicker::show(), and TRUE.
Referenced by accessAddCore().
void LLPanelEstateInfo::accessAddCore3 | ( | const std::vector< std::string > & | names, | |
const std::vector< LLUUID > & | ids, | |||
void * | data | |||
) | [static] |
Definition at line 1716 of file llfloaterregioninfo.cpp.
References accessCoreConfirm(), LLViewerWindow::alertXml(), all_estates_text(), ESTATE_ACCESS_BANNED_AGENT_ADD, gAgent, LLViewerRegion::getOwner(), LLFloaterRegionInfo::getPanelEstate(), LLAgent::getRegion(), gViewerWindow, isLindenEstate(), LLEstateAccessChangeInfo::mAgentOrGroupID, LLEstateAccessChangeInfo::mDialogName, LLEstateAccessChangeInfo::mOperationFlag, and NULL.
Referenced by accessAddCore2().
Definition at line 1821 of file llfloaterregioninfo.cpp.
References ESTATE_ACCESS_APPLY_TO_ALL_ESTATES, ESTATE_ACCESS_APPLY_TO_MANAGED_ESTATES, gAgent, LLAgent::getID(), LLViewerRegion::getOwner(), LLAgent::getRegion(), LLViewerRegion::isEstateManager(), LLAgent::isGodlike(), LLEstateAccessChangeInfo::mAgentOrGroupID, LLEstateAccessChangeInfo::mOperationFlag, NULL, and sendEstateAccessDelta().
Referenced by accessAddCore3(), accessRemoveCore2(), and addAllowedGroup2().
void LLPanelEstateInfo::accessRemoveCore | ( | U32 | operation_flag, | |
const char * | dialog_name, | |||
const char * | list_ctrl_name | |||
) | [static] |
Definition at line 1760 of file llfloaterregioninfo.cpp.
References accessRemoveCore2(), LLViewerWindow::alertXml(), LLScrollListCtrl::getFirstSelected(), LLViewerUICtrlFactory::getNameListByName(), LLFloaterRegionInfo::getPanelEstate(), LLScrollListItem::getUUID(), gViewerWindow, isLindenEstate(), LLEstateAccessChangeInfo::mAgentOrGroupID, LLEstateAccessChangeInfo::mDialogName, and LLEstateAccessChangeInfo::mOperationFlag.
Referenced by onClickRemoveAllowedAgent(), onClickRemoveAllowedGroup(), onClickRemoveBannedAgent(), and onClickRemoveEstateManager().
Definition at line 1790 of file llfloaterregioninfo.cpp.
References accessCoreConfirm(), LLViewerWindow::alertXml(), all_estates_text(), gViewerWindow, isLindenEstate(), LLEstateAccessChangeInfo::mDialogName, and NULL.
Referenced by accessRemoveCore().
Definition at line 1464 of file llfloaterregioninfo.cpp.
References addAllowedGroup2(), LLFloater::addDependentFloater(), LLFloaterView::findNeighboringPosition(), gAgent, LLAgent::getID(), LLFloaterView::getParentFloater(), gFloaterView, LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLView::setOrigin(), LLFloaterGroupPicker::setSelectCallback(), and LLUIInstanceMgr< T, INSTANCE_ADAPTOR >::showInstance().
Referenced by onClickAddAllowedGroup().
Definition at line 1661 of file llfloaterregioninfo.cpp.
References accessCoreConfirm(), LLViewerWindow::alertXml(), all_estates_text(), ESTATE_ACCESS_ALLOWED_GROUP_ADD, gViewerWindow, isLindenEstate(), LLEstateAccessChangeInfo::mAgentOrGroupID, LLEstateAccessChangeInfo::mDialogName, and LLEstateAccessChangeInfo::mOperationFlag.
Referenced by addAllowedGroup().
void LLPanelEstateInfo::callbackCacheName | ( | const LLUUID & | id, | |
const char * | first, | |||
const char * | last, | |||
BOOL | is_group, | |||
void * | ||||
) | [static] |
Definition at line 2310 of file llfloaterregioninfo.cpp.
References LLFloaterRegionInfo::getPanelEstate().
Referenced by LLDispatchEstateUpdateInfo::operator()().
Definition at line 2067 of file llfloaterregioninfo.cpp.
References LLFloaterRegionInfo::nextInvoice().
Referenced by sendUpdate().
BOOL LLPanelEstateInfo::checkRemovalButton | ( | std::string | name | ) | [protected] |
Definition at line 2352 of file llfloaterregioninfo.cpp.
References LLPanel::childSetEnabled(), FALSE, LLScrollListCtrl::getFirstSelected(), LLViewerUICtrlFactory::getNameListByName(), and TRUE.
Referenced by setAccessAllowedEnabled(), and updateChild().
Definition at line 2379 of file llfloaterregioninfo.cpp.
References LLPanelRegionInfo::enableButton(), FALSE, LLView::getName(), and TRUE.
Referenced by updateChild().
void LLPanelEstateInfo::clearAccessLists | ( | ) | [protected] |
Definition at line 2336 of file llfloaterregioninfo.cpp.
References LLScrollListCtrl::deleteAllItems(), and LLViewerUICtrlFactory::getNameListByName().
Referenced by refreshFromRegion(), and sendEstateAccessDelta().
void LLPanelEstateInfo::commitEstateAccess | ( | ) | [protected] |
void LLPanelEstateInfo::commitEstateInfo | ( | ) | [protected] |
Definition at line 2118 of file llfloaterregioninfo.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_SessionID, _PREHASH_TransactionID, LLMessageSystem::addString(), LLMessageSystem::addUUID(), LLMessageSystem::addUUIDFast(), LLPanel::childGetValue(), computeEstateFlags(), f, gAgent, getEstateName(), LLAgent::getID(), LLFloaterRegionInfo::getLastInvoice(), LLAgent::getSessionID(), getSunHour(), gMessageSystem, MAX_STRING, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), LLMessageSystem::nextBlockFast(), LLUUID::null, S32, and LLAgent::sendMessage().
void LLPanelEstateInfo::commitEstateManagers | ( | ) | [protected] |
U32 LLPanelEstateInfo::computeEstateFlags | ( | ) |
Definition at line 2166 of file llfloaterregioninfo.cpp.
References LLPanel::childGetValue(), REGION_FLAGS_ALLOW_DIRECT_TELEPORT, REGION_FLAGS_ALLOW_VOICE, REGION_FLAGS_DENY_ANONYMOUS, REGION_FLAGS_DENY_IDENTIFIED, REGION_FLAGS_DENY_TRANSACTED, REGION_FLAGS_EXTERNALLY_VISIBLE, and REGION_FLAGS_SUN_FIXED.
Referenced by commitEstateInfo().
bool LLPanelEstateInfo::estateUpdate | ( | LLMessageSystem * | msg | ) | [virtual] |
U32 LLPanelEstateInfo::getEstateID | ( | ) | const [inline] |
Definition at line 312 of file llfloaterregioninfo.h.
References mEstateID.
Referenced by isLindenEstate(), and sendUpdate().
const std::string LLPanelEstateInfo::getEstateName | ( | ) | const |
Definition at line 2248 of file llfloaterregioninfo.cpp.
References LLSD::asString(), and LLPanel::childGetValue().
Referenced by commitEstateInfo().
BOOL LLPanelEstateInfo::getFixedSun | ( | ) |
Definition at line 2225 of file llfloaterregioninfo.cpp.
References LLSD::asBoolean(), and LLPanel::childGetValue().
Referenced by LLPanelRegionTerrainInfo::sendUpdate().
BOOL LLPanelEstateInfo::getGlobalTime | ( | ) |
Definition at line 2208 of file llfloaterregioninfo.cpp.
References LLSD::asBoolean(), and LLPanel::childGetValue().
Referenced by LLPanelRegionTerrainInfo::sendUpdate().
const std::string LLPanelEstateInfo::getOwnerName | ( | ) | const |
Definition at line 2258 of file llfloaterregioninfo.cpp.
References LLSD::asString(), and LLPanel::childGetValue().
Referenced by all_estates_text().
F32 LLPanelEstateInfo::getSunHour | ( | ) |
Definition at line 2239 of file llfloaterregioninfo.cpp.
References LLSD::asReal(), LLPanel::childGetValue(), and LLPanel::childIsEnabled().
Referenced by commitEstateInfo(), and LLPanelRegionTerrainInfo::sendUpdate().
void LLPanelEstateInfo::initDispatch | ( | LLDispatcher & | dispatch | ) | [static] |
Definition at line 1365 of file llfloaterregioninfo.cpp.
References LLDispatcher::addHandler(), and estate_dispatch_initialized.
Referenced by LLFloaterRegionInfo::processEstateOwnerRequest().
bool LLPanelEstateInfo::isLindenEstate | ( | ) | [static] |
Definition at line 1643 of file llfloaterregioninfo.cpp.
References ESTATE_LAST_LINDEN, getEstateID(), and LLFloaterRegionInfo::getPanelEstate().
Referenced by accessAddCore(), accessAddCore3(), accessRemoveCore(), accessRemoveCore2(), addAllowedGroup2(), and onClickAddAllowedGroup().
Definition at line 1586 of file llfloaterregioninfo.cpp.
References LLFloaterRegionInfo::getLastInvoice(), gMessageSystem, LLKickFromEstateInfo::mAgentID, MAX_STRING, LLKickFromEstateInfo::mEstatePanelp, NULL, LLPanelRegionInfo::sendEstateOwnerMessage(), and LLUUID::toString().
Referenced by onKickUserCommit().
Definition at line 1400 of file llfloaterregioninfo.cpp.
References FALSE.
Referenced by postBuild().
Definition at line 1386 of file llfloaterregioninfo.cpp.
References FALSE.
Referenced by postBuild().
Definition at line 1417 of file llfloaterregioninfo.cpp.
References accessAddCore(), LLViewerWindow::alertXml(), ESTATE_ACCESS_ALLOWED_AGENT_ADD, ESTATE_MAX_ACCESS_IDS, gViewerWindow, list, and llformat().
Referenced by postBuild().
Definition at line 1441 of file llfloaterregioninfo.cpp.
References addAllowedGroup(), LLViewerWindow::alertXml(), ESTATE_MAX_ACCESS_IDS, gViewerWindow, isLindenEstate(), list, and llformat().
Referenced by postBuild().
Definition at line 1493 of file llfloaterregioninfo.cpp.
References accessAddCore(), LLViewerWindow::alertXml(), ESTATE_ACCESS_BANNED_AGENT_ADD, ESTATE_MAX_ACCESS_IDS, gViewerWindow, list, and llformat().
Referenced by postBuild().
Definition at line 1515 of file llfloaterregioninfo.cpp.
References accessAddCore(), LLViewerWindow::alertXml(), ESTATE_ACCESS_MANAGER_ADD, ESTATE_MAX_MANAGERS, gViewerWindow, list, and llformat().
Referenced by postBuild().
Definition at line 1548 of file llfloaterregioninfo.cpp.
References LLFloater::addDependentFloater(), FALSE, LLFloaterView::getParentFloater(), gFloaterView, onKickUserCommit(), LLFloaterAvatarPicker::show(), and TRUE.
Referenced by postBuild().
Definition at line 2391 of file llfloaterregioninfo.cpp.
References LLViewerWindow::alertXmlEditText(), gViewerWindow, llendl, llinfos, NULL, and onMessageCommit().
Referenced by postBuild().
Definition at line 1435 of file llfloaterregioninfo.cpp.
References accessRemoveCore(), and ESTATE_ACCESS_ALLOWED_AGENT_REMOVE.
Referenced by postBuild().
Definition at line 1487 of file llfloaterregioninfo.cpp.
References accessRemoveCore(), and ESTATE_ACCESS_ALLOWED_GROUP_REMOVE.
Referenced by postBuild().
Definition at line 1509 of file llfloaterregioninfo.cpp.
References accessRemoveCore(), and ESTATE_ACCESS_BANNED_AGENT_REMOVE.
Referenced by postBuild().
Definition at line 1533 of file llfloaterregioninfo.cpp.
References accessRemoveCore(), and ESTATE_ACCESS_MANAGER_REMOVE.
Referenced by postBuild().
void LLPanelEstateInfo::onKickUserCommit | ( | const std::vector< std::string > & | names, | |
const std::vector< LLUUID > & | ids, | |||
void * | userdata | |||
) | [static] |
Definition at line 1559 of file llfloaterregioninfo.cpp.
References LLViewerWindow::alertXml(), gViewerWindow, kickUserConfirm(), LLKickFromEstateInfo::mAgentID, LLKickFromEstateInfo::mDialogName, and LLKickFromEstateInfo::mEstatePanelp.
Referenced by onClickKickUser().
Definition at line 2400 of file llfloaterregioninfo.cpp.
References LLAgent::buildFullname(), gAgent, LLFloaterRegionInfo::getLastInvoice(), gMessageSystem, llendl, and llinfos.
Referenced by onClickMessageEstate().
BOOL LLPanelEstateInfo::postBuild | ( | ) | [virtual] |
Reimplemented from LLPanelRegionInfo.
Definition at line 1970 of file llfloaterregioninfo.cpp.
References LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), ESTATE_MAX_ACCESS_IDS, ESTATE_MAX_MANAGERS, LLViewerUICtrlFactory::getNameListByName(), LLPanelRegionInfo::initCtrl(), LLPanelRegionInfo::initHelpBtn(), LLPanelRegionInfo::onChangeChildCtrl(), onChangeFixedSun(), onChangeUseGlobalTime(), onClickAddAllowedAgent(), onClickAddAllowedGroup(), onClickAddBannedAgent(), onClickAddEstateManager(), onClickKickUser(), onClickMessageEstate(), onClickRemoveAllowedAgent(), onClickRemoveAllowedGroup(), onClickRemoveBannedAgent(), onClickRemoveEstateManager(), LLPanelRegionInfo::postBuild(), LLScrollListCtrl::setCommitOnSelectionChange(), LLScrollListCtrl::setMaxItemCount(), and TRUE.
bool LLPanelEstateInfo::refreshFromRegion | ( | LLViewerRegion * | region | ) | [virtual] |
Reimplemented from LLPanelRegionInfo.
Definition at line 1904 of file llfloaterregioninfo.cpp.
References LLPanel::childDisable(), LLPanel::childSetEnabled(), clearAccessLists(), gAgent, LLAgent::getID(), LLFloaterRegionInfo::getLastInvoice(), LLViewerRegion::getOwner(), LLFloaterRegionInfo::getPanelEstate(), gMessageSystem, LLViewerRegion::isEstateManager(), LLAgent::isGodlike(), LLFloaterRegionInfo::nextInvoice(), LLPanelRegionInfo::refreshFromRegion(), LLPanelRegionInfo::sendEstateOwnerMessage(), and LLPanel::setCtrlsEnabled().
Definition at line 1864 of file llfloaterregioninfo.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_SessionID, _PREHASH_TransactionID, LLMessageSystem::addString(), LLMessageSystem::addUUID(), LLMessageSystem::addUUIDFast(), clearAccessLists(), ESTATE_ACCESS_ALLOWED_AGENT_ADD, ESTATE_ACCESS_ALLOWED_AGENT_REMOVE, ESTATE_ACCESS_BANNED_AGENT_ADD, ESTATE_ACCESS_BANNED_AGENT_REMOVE, gAgent, LLAgent::getID(), LLFloaterRegionInfo::getLastInvoice(), LLFloaterRegionInfo::getPanelEstate(), LLAgent::getSessionID(), gMessageSystem, MAX_STRING, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), LLMessageSystem::nextBlockFast(), LLUUID::null, LLAgent::sendReliableMessage(), and LLUUID::toString().
Referenced by accessCoreConfirm().
BOOL LLPanelEstateInfo::sendUpdate | ( | ) | [protected, virtual] |
Reimplemented from LLPanelRegionInfo.
Definition at line 2047 of file llfloaterregioninfo.cpp.
References LLViewerWindow::alertXml(), callbackChangeLindenEstate(), ESTATE_LAST_LINDEN, getEstateID(), gViewerWindow, llendl, llinfos, and TRUE.
void LLPanelEstateInfo::setAccessAllowedEnabled | ( | bool | enable_agent, | |
bool | enable_group, | |||
bool | enable_ban | |||
) |
Definition at line 2268 of file llfloaterregioninfo.cpp.
References checkRemovalButton(), LLPanel::childSetEnabled(), and LLPanel::childSetVisible().
Referenced by LLDispatchEstateUpdateInfo::operator()().
Definition at line 2152 of file llfloaterregioninfo.cpp.
References LLPanel::childSetValue(), LLPanel::childSetVisible(), FALSE, REGION_FLAGS_ABUSE_EMAIL_TO_ESTATE_OWNER, REGION_FLAGS_ALLOW_DIRECT_TELEPORT, REGION_FLAGS_ALLOW_VOICE, REGION_FLAGS_DENY_ANONYMOUS, REGION_FLAGS_DENY_IDENTIFIED, REGION_FLAGS_DENY_TRANSACTED, REGION_FLAGS_EXTERNALLY_VISIBLE, REGION_FLAGS_SUN_FIXED, and TRUE.
Referenced by LLDispatchEstateUpdateInfo::operator()().
Definition at line 313 of file llfloaterregioninfo.h.
References mEstateID.
Referenced by LLDispatchEstateUpdateInfo::operator()().
void LLPanelEstateInfo::setEstateName | ( | const std::string & | name | ) |
Definition at line 2253 of file llfloaterregioninfo.cpp.
References LLPanel::childSetValue().
Referenced by LLDispatchEstateUpdateInfo::operator()().
void LLPanelEstateInfo::setGlobalTime | ( | bool | b | ) |
Definition at line 2213 of file llfloaterregioninfo.cpp.
References LLPanel::childSetEnabled(), LLPanel::childSetValue(), and f.
Referenced by LLDispatchEstateUpdateInfo::operator()().
void LLPanelEstateInfo::setOwnerName | ( | const std::string & | name | ) |
Definition at line 2230 of file llfloaterregioninfo.cpp.
References LLPanel::childSetValue(), and f.
Referenced by LLDispatchEstateUpdateInfo::operator()().
Reimplemented from LLPanelRegionInfo.
Definition at line 1951 of file llfloaterregioninfo.cpp.
References checkRemovalButton(), checkSunHourSlider(), and LLView::getName().
U32 LLPanelEstateInfo::mEstateID [protected] |
Definition at line 345 of file llfloaterregioninfo.h.
Referenced by getEstateID(), and setEstateID().