#include <llfloaterland.h>
Public Member Functions | |
LLPanelLandAccess (LLSafeHandle< LLParcelSelection > &parcelp) | |
virtual | ~LLPanelLandAccess () |
void | refresh () |
void | refresh_ui () |
void | refreshNames () |
virtual void | draw () |
virtual BOOL | postBuild () |
Static Public Member Functions | |
static void | onCommitPublicAccess (LLUICtrl *ctrl, void *userdata) |
static void | onCommitAny (LLUICtrl *ctrl, void *userdata) |
static void | onClickAddAccess (void *) |
static void | callbackAvatarCBAccess (const std::vector< std::string > &names, const std::vector< LLUUID > &ids, void *userdata) |
static void | onClickRemoveAccess (void *) |
static void | onClickAddBanned (void *) |
static void | callbackAvatarCBBanned (const std::vector< std::string > &names, const std::vector< LLUUID > &ids, void *userdata) |
static void | onClickRemoveBanned (void *) |
Protected Attributes | |
LLNameListCtrl * | mListAccess |
LLNameListCtrl * | mListBanned |
LLSafeHandle< LLParcelSelection > & | mParcel |
Definition at line 346 of file llfloaterland.h.
LLPanelLandAccess::LLPanelLandAccess | ( | LLSafeHandle< LLParcelSelection > & | parcelp | ) |
Definition at line 2190 of file llfloaterland.cpp.
LLPanelLandAccess::~LLPanelLandAccess | ( | ) | [virtual] |
Definition at line 2225 of file llfloaterland.cpp.
void LLPanelLandAccess::refresh | ( | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 2229 of file llfloaterland.cpp.
References ADD_SORTED, LLNameListCtrl::addNameItem(), LLPanel::childGetSelectionInterface(), LLPanel::childSetLabelArg(), LLPanel::childSetToolTipArg(), LLPanel::childSetValue(), LLScrollListCtrl::deleteAllItems(), FALSE, gCacheName, LLParcel::getGroupID(), LLCacheName::getGroupName(), LLParcel::getParcelFlag(), LLParcel::getPassHours(), LLParcel::getPassPrice(), LLParcel::getRegionDenyAgeUnverifiedOverride(), LLParcel::getRegionDenyAnonymousOverride(), llformat(), LLParcel::mAccessList, LLParcel::mBanList, LLAccessEntry::mID, mListAccess, mListBanned, mParcel, LLAccessEntry::mTime, LLStringBase< char >::null, NULL, PARCEL_MAX_ACCESS_LIST, PARCEL_PASS_HOURS_DEFAULT, PARCEL_PASS_PRICE_DEFAULT, PF_DENY_AGEUNVERIFIED, PF_DENY_ANONYMOUS, PF_USE_ACCESS_GROUP, PF_USE_ACCESS_LIST, PF_USE_PASS_LIST, S32, LLCtrlSelectionInterface::selectByValue(), and TRUE.
Referenced by callbackAvatarCBAccess(), callbackAvatarCBBanned(), onClickRemoveAccess(), onClickRemoveBanned(), and LLFloaterLand::refresh().
void LLPanelLandAccess::refresh_ui | ( | ) |
Definition at line 2380 of file llfloaterland.cpp.
References LLSD::asBoolean(), LLPanel::childGetValue(), LLPanel::childSetEnabled(), LLPanel::childSetToolTip(), FALSE, gCacheName, LLParcel::getGroupID(), LLCacheName::getGroupName(), LLParcel::getRegionDenyAgeUnverifiedOverride(), LLParcel::getRegionDenyAnonymousOverride(), LLPanel::getUIString(), GP_LAND_MANAGE_ALLOWED, GP_LAND_MANAGE_BANNED, LLViewerParcelMgr::isParcelModifiableByAgent(), LLParcel::mAccessList, MAX_STRING, LLParcel::mBanList, mParcel, PARCEL_MAX_ACCESS_LIST, and S32.
Referenced by draw().
void LLPanelLandAccess::refreshNames | ( | ) |
Definition at line 2468 of file llfloaterland.cpp.
References LLPanel::childSetLabelArg(), gCacheName, LLParcel::getGroupID(), LLCacheName::getGroupName(), and mParcel.
Referenced by draw().
void LLPanelLandAccess::draw | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 2481 of file llfloaterland.cpp.
References LLPanel::draw(), refresh_ui(), and refreshNames().
void LLPanelLandAccess::onCommitPublicAccess | ( | LLUICtrl * | ctrl, | |
void * | userdata | |||
) | [static] |
Definition at line 2489 of file llfloaterland.cpp.
References FALSE, gCacheName, LLParcel::getGroupID(), LLCacheName::getGroupName(), MAX_STRING, onCommitAny(), and TRUE.
Referenced by postBuild().
void LLPanelLandAccess::onCommitAny | ( | LLUICtrl * | ctrl, | |
void * | userdata | |||
) | [static] |
Definition at line 2513 of file llfloaterland.cpp.
References LLSD::asString(), FALSE, gCacheName, LLParcel::getGroupID(), LLCacheName::getGroupName(), LLSingleton< LLViewerParcelMgr >::getInstance(), LLCtrlSelectionInterface::getSelectedValue(), llfloor(), PF_DENY_AGEUNVERIFIED, PF_DENY_ANONYMOUS, PF_USE_ACCESS_GROUP, PF_USE_ACCESS_LIST, PF_USE_BAN_LIST, PF_USE_PASS_LIST, S32, LLViewerParcelMgr::sendParcelPropertiesUpdate(), LLParcel::setParcelFlag(), LLParcel::setPassHours(), LLParcel::setPassPrice(), and TRUE.
Referenced by onCommitPublicAccess(), and postBuild().
void LLPanelLandAccess::onClickAddAccess | ( | void * | data | ) | [static] |
Definition at line 2585 of file llfloaterland.cpp.
References LLFloater::addDependentFloater(), callbackAvatarCBAccess(), LLFloaterView::getParentFloater(), gFloaterView, and LLFloaterAvatarPicker::show().
Referenced by postBuild().
void LLPanelLandAccess::callbackAvatarCBAccess | ( | const std::vector< std::string > & | names, | |
const std::vector< LLUUID > & | ids, | |||
void * | userdata | |||
) | [static] |
Definition at line 2595 of file llfloaterland.cpp.
References LLParcel::addToAccessList(), AL_ACCESS, LLSingleton< LLViewerParcelMgr >::getInstance(), mParcel, refresh(), and LLViewerParcelMgr::sendParcelAccessListUpdate().
Referenced by onClickAddAccess().
void LLPanelLandAccess::onClickRemoveAccess | ( | void * | data | ) | [static] |
Definition at line 2612 of file llfloaterland.cpp.
References AL_ACCESS, LLScrollListCtrl::getAllSelected(), LLSingleton< LLViewerParcelMgr >::getInstance(), LLScrollListItem::getUUID(), mListAccess, mParcel, refresh(), LLParcel::removeFromAccessList(), and LLViewerParcelMgr::sendParcelAccessListUpdate().
Referenced by postBuild().
void LLPanelLandAccess::onClickAddBanned | ( | void * | data | ) | [static] |
Definition at line 2635 of file llfloaterland.cpp.
References LLFloater::addDependentFloater(), callbackAvatarCBBanned(), LLFloaterView::getParentFloater(), gFloaterView, and LLFloaterAvatarPicker::show().
Referenced by postBuild().
void LLPanelLandAccess::callbackAvatarCBBanned | ( | const std::vector< std::string > & | names, | |
const std::vector< LLUUID > & | ids, | |||
void * | userdata | |||
) | [static] |
Definition at line 2642 of file llfloaterland.cpp.
References LLParcel::addToBanList(), AL_BAN, LLSingleton< LLViewerParcelMgr >::getInstance(), mParcel, refresh(), and LLViewerParcelMgr::sendParcelAccessListUpdate().
Referenced by onClickAddBanned().
void LLPanelLandAccess::onClickRemoveBanned | ( | void * | data | ) | [static] |
Definition at line 2659 of file llfloaterland.cpp.
References AL_BAN, LLScrollListCtrl::getAllSelected(), LLSingleton< LLViewerParcelMgr >::getInstance(), LLScrollListItem::getUUID(), mListBanned, mParcel, refresh(), LLParcel::removeFromBanList(), and LLViewerParcelMgr::sendParcelAccessListUpdate().
Referenced by postBuild().
BOOL LLPanelLandAccess::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 2197 of file llfloaterland.cpp.
References LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), mListAccess, mListBanned, onClickAddAccess(), onClickAddBanned(), onClickRemoveAccess(), onClickRemoveBanned(), onCommitAny(), onCommitPublicAccess(), LLScrollListCtrl::sortByColumn(), and TRUE.
LLNameListCtrl* LLPanelLandAccess::mListAccess [protected] |
Definition at line 369 of file llfloaterland.h.
Referenced by onClickRemoveAccess(), postBuild(), and refresh().
LLNameListCtrl* LLPanelLandAccess::mListBanned [protected] |
Definition at line 370 of file llfloaterland.h.
Referenced by onClickRemoveBanned(), postBuild(), and refresh().
LLSafeHandle<LLParcelSelection>& LLPanelLandAccess::mParcel [protected] |
Definition at line 372 of file llfloaterland.h.
Referenced by callbackAvatarCBAccess(), callbackAvatarCBBanned(), onClickRemoveAccess(), onClickRemoveBanned(), refresh(), refresh_ui(), and refreshNames().