#include <llpanelpermissions.h>
Public Member Functions | |
LLPanelPermissions (const std::string &title) | |
virtual | ~LLPanelPermissions () |
virtual BOOL | postBuild () |
void | refresh () |
Protected Member Functions | |
void | setAllSaleInfo () |
Static Protected Member Functions | |
static void | onClickClaim (void *) |
static void | onClickRelease (void *) |
static void | onClickCreator (void *) |
static void | onClickOwner (void *) |
static void | onClickGroup (void *) |
static void | cbGroupID (LLUUID group_id, void *userdata) |
static void | onClickDeedToGroup (void *) |
static void | onCommitPerm (LLUICtrl *ctrl, void *data, U8 field, U32 perm) |
static void | onCommitGroupShare (LLUICtrl *ctrl, void *data) |
static void | onCommitEveryoneMove (LLUICtrl *ctrl, void *data) |
static void | onCommitEveryoneCopy (LLUICtrl *ctrl, void *data) |
static void | onCommitNextOwnerModify (LLUICtrl *ctrl, void *data) |
static void | onCommitNextOwnerCopy (LLUICtrl *ctrl, void *data) |
static void | onCommitNextOwnerTransfer (LLUICtrl *ctrl, void *data) |
static void | onCommitName (LLUICtrl *ctrl, void *data) |
static void | onCommitDesc (LLUICtrl *ctrl, void *data) |
static void | onCommitSaleInfo (LLUICtrl *ctrl, void *data) |
static void | onCommitSaleType (LLUICtrl *ctrl, void *data) |
static void | onCommitClickAction (LLUICtrl *ctrl, void *) |
static void | onCommitIncludeInSearch (LLUICtrl *ctrl, void *) |
Protected Attributes | |
LLNameBox * | mLabelGroupName |
LLUUID | mCreatorID |
LLUUID | mOwnerID |
LLUUID | mLastOwnerID |
Definition at line 52 of file llpanelpermissions.h.
LLPanelPermissions::LLPanelPermissions | ( | const std::string & | title | ) |
---------------------------------------------------------------------------- Class llpanelpermissions ----------------------------------------------------------------------------
Definition at line 72 of file llpanelpermissions.cpp.
References FALSE, and LLView::setMouseOpaque().
LLPanelPermissions::~LLPanelPermissions | ( | ) | [virtual] |
Definition at line 127 of file llpanelpermissions.cpp.
BOOL LLPanelPermissions::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 78 of file llpanelpermissions.cpp.
References LLView::addChild(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetPrevalidate(), LLView::getRect(), mLabelGroupName, NULL, onClickCreator(), onClickDeedToGroup(), onClickGroup(), onClickOwner(), onCommitClickAction(), onCommitDesc(), onCommitEveryoneCopy(), onCommitEveryoneMove(), onCommitGroupShare(), onCommitIncludeInSearch(), onCommitName(), onCommitNextOwnerCopy(), onCommitNextOwnerModify(), onCommitNextOwnerTransfer(), onCommitSaleInfo(), onCommitSaleType(), LLLineEditor::prevalidateNonNegativeS32(), LLLineEditor::prevalidatePrintableNotPipe(), and TRUE.
void LLPanelPermissions::refresh | ( | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 133 of file llpanelpermissions.cpp.
References LLPanel::childSetEnabled(), LLPanel::childSetTentative(), LLPanel::childSetText(), LLPanel::childSetValue(), LLPanel::childSetVisible(), LLComboBox::clear(), DEFAULT_PRICE, FALSE, LLSaleInfo::FS_COPY, gAgent, LLControlGroup::getBOOL(), LLAgent::getID(), LLSingleton< LLSelectMgr >::getInstance(), LLFocusMgr::getKeyboardFocus(), LLSelectNode::getObject(), LLSaleInfo::getSaleType(), LLSelectMgr::getSelection(), LLPanel::getString(), LLControlGroup::getWarning(), gFocusMgr, GP_OBJECT_DEED, GP_OBJECT_MANIPULATE, GP_OBJECT_SET_SALE, gSavedSettings, LLAgent::hasPowerInGroup(), LLUUID::isNull(), LL_PCODE_VOLUME, llformat(), mask_to_string(), MAX_STRING, mCreatorID, LLSelectNode::mDescription, mLabelGroupName, mLastOwnerID, LLSelectNode::mName, mOwnerID, LLUUID::notNull(), LLUUID::null, LLStringBase< char >::null, NULL, PERM_BASE, PERM_COPY, PERM_EVERYONE, PERM_GROUP, PERM_MODIFY, PERM_MOVE, PERM_NEXT_OWNER, PERM_OWNER, PERM_TRANSFER, LLViewerObject::permCopy(), LLViewerObject::permModify(), LLViewerObject::permMove(), LLViewerObject::permTransfer(), LLNameBox::refresh(), S32, LLSelectMgr::selectGetCreator(), LLSelectMgr::selectGetGroup(), LLSelectMgr::selectGetLastOwner(), LLSelectMgr::selectGetModify(), LLSelectMgr::selectGetOwner(), LLSelectMgr::selectGetPerm(), LLSelectMgr::selectGetRootsCopy(), LLSelectMgr::selectGetRootsModify(), LLSelectMgr::selectGetRootsTransfer(), LLSelectMgr::selectGetSaleInfo(), LLSelectMgr::selectionAllPCode(), LLSelectMgr::selectionGetIncludeInSearch(), LLSelectMgr::selectIsForSale(), LLSelectMgr::selectIsGroupOwned(), LLComboBox::setCurrentByIndex(), LLView::setEnabled(), LLComboBox::setEnabled(), LLRadioGroup::setEnabled(), LLButton::setLabelSelected(), LLButton::setLabelUnselected(), LLNameBox::setNameID(), LLRadioGroup::setSelectedIndex(), LLLineEditor::setText(), and TRUE.
Referenced by LLFloaterTools::refresh().
void LLPanelPermissions::onClickClaim | ( | void * | ) | [static, protected] |
Definition at line 790 of file llpanelpermissions.cpp.
References gAgent, LLAgent::getGroupID(), LLAgent::getID(), LLSingleton< LLSelectMgr >::getInstance(), and LLSelectMgr::sendOwner().
void LLPanelPermissions::onClickRelease | ( | void * | ) | [static, protected] |
Definition at line 797 of file llpanelpermissions.cpp.
References LLSingleton< LLSelectMgr >::getInstance(), LLUUID::null, and LLSelectMgr::sendOwner().
void LLPanelPermissions::onClickCreator | ( | void * | data | ) | [static, protected] |
Definition at line 804 of file llpanelpermissions.cpp.
References LLFloaterAvatarInfo::showFromObject().
Referenced by postBuild().
void LLPanelPermissions::onClickOwner | ( | void * | data | ) | [static, protected] |
Definition at line 812 of file llpanelpermissions.cpp.
References LLSingleton< LLSelectMgr >::getInstance(), LLSelectMgr::selectGetGroup(), LLSelectMgr::selectIsGroupOwned(), LLFloaterAvatarInfo::showFromObject(), and LLFloaterGroupInfo::showFromUUID().
Referenced by postBuild().
void LLPanelPermissions::onClickGroup | ( | void * | data | ) | [static, protected] |
Definition at line 828 of file llpanelpermissions.cpp.
References LLFloater::addDependentFloater(), cbGroupID(), LLFloaterView::findNeighboringPosition(), gAgent, LLAgent::getID(), LLSingleton< LLSelectMgr >::getInstance(), LLFloaterView::getParentFloater(), gFloaterView, LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLSelectMgr::selectGetOwner(), LLView::setOrigin(), LLFloaterGroupPicker::setSelectCallback(), and LLUIFactory< LLFloaterGroupPicker, LLFloaterGroupPicker, VisibilityPolicy< LLFloater > >::showInstance().
Referenced by postBuild().
void LLPanelPermissions::cbGroupID | ( | LLUUID | group_id, | |
void * | userdata | |||
) | [static, protected] |
Definition at line 852 of file llpanelpermissions.cpp.
References LLSingleton< LLSelectMgr >::getInstance(), LLSelectMgr::sendGroup(), and TRUE.
Referenced by onClickGroup().
void LLPanelPermissions::onClickDeedToGroup | ( | void * | data | ) | [static, protected] |
Definition at line 876 of file llpanelpermissions.cpp.
References LLViewerWindow::alertXml(), callback_deed_to_group(), gViewerWindow, and NULL.
Referenced by postBuild().
void LLPanelPermissions::onCommitPerm | ( | LLUICtrl * | ctrl, | |
void * | data, | |||
U8 | field, | |||
U32 | perm | |||
) | [static, protected] |
---------------------------------------------------------------------------- Permissions checkboxes ----------------------------------------------------------------------------
Definition at line 887 of file llpanelpermissions.cpp.
References LLCheckBoxCtrl::get(), LLSingleton< LLSelectMgr >::getInstance(), LLSelectMgr::getSelection(), and LLSelectMgr::selectionSetObjectPermissions().
Referenced by onCommitEveryoneCopy(), onCommitEveryoneMove(), onCommitGroupShare(), onCommitNextOwnerCopy(), onCommitNextOwnerModify(), and onCommitNextOwnerTransfer().
void LLPanelPermissions::onCommitGroupShare | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static, protected] |
Definition at line 901 of file llpanelpermissions.cpp.
References onCommitPerm(), PERM_COPY, PERM_GROUP, PERM_MODIFY, and PERM_MOVE.
Referenced by postBuild().
void LLPanelPermissions::onCommitEveryoneMove | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static, protected] |
Definition at line 907 of file llpanelpermissions.cpp.
References onCommitPerm(), PERM_EVERYONE, and PERM_MOVE.
Referenced by postBuild().
void LLPanelPermissions::onCommitEveryoneCopy | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static, protected] |
Definition at line 914 of file llpanelpermissions.cpp.
References onCommitPerm(), PERM_COPY, and PERM_EVERYONE.
Referenced by postBuild().
void LLPanelPermissions::onCommitNextOwnerModify | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static, protected] |
Definition at line 920 of file llpanelpermissions.cpp.
References onCommitPerm(), PERM_MODIFY, and PERM_NEXT_OWNER.
Referenced by postBuild().
void LLPanelPermissions::onCommitNextOwnerCopy | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static, protected] |
Definition at line 927 of file llpanelpermissions.cpp.
References onCommitPerm(), PERM_COPY, and PERM_NEXT_OWNER.
Referenced by postBuild().
void LLPanelPermissions::onCommitNextOwnerTransfer | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static, protected] |
Definition at line 934 of file llpanelpermissions.cpp.
References onCommitPerm(), PERM_NEXT_OWNER, and PERM_TRANSFER.
Referenced by postBuild().
void LLPanelPermissions::onCommitName | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static, protected] |
Definition at line 941 of file llpanelpermissions.cpp.
References LLSingleton< LLSelectMgr >::getInstance(), LLLineEditor::getText(), and LLSelectMgr::selectionSetObjectName().
Referenced by postBuild().
void LLPanelPermissions::onCommitDesc | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static, protected] |
Definition at line 955 of file llpanelpermissions.cpp.
References LLSingleton< LLSelectMgr >::getInstance(), LLLineEditor::getText(), and LLSelectMgr::selectionSetObjectDescription().
Referenced by postBuild().
void LLPanelPermissions::onCommitSaleInfo | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static, protected] |
Definition at line 967 of file llpanelpermissions.cpp.
Referenced by postBuild().
void LLPanelPermissions::onCommitSaleType | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static, protected] |
Definition at line 974 of file llpanelpermissions.cpp.
Referenced by postBuild().
void LLPanelPermissions::setAllSaleInfo | ( | ) | [protected] |
Definition at line 980 of file llpanelpermissions.cpp.
References CLICK_ACTION_BUY, CLICK_ACTION_TOUCH, LLSaleInfo::FS_CONTENTS, LLSaleInfo::FS_COPY, LLSaleInfo::FS_NOT, LLSaleInfo::FS_ORIGINAL, LLCheckBoxCtrl::get(), LLSingleton< LLSelectMgr >::getInstance(), LLRadioGroup::getSelectedIndex(), LLLineEditor::getText(), llendl, llinfos, S32, LLSelectMgr::selectionGetClickAction(), LLSelectMgr::selectionSetClickAction(), and LLSelectMgr::selectionSetObjectSaleInfo().
void LLPanelPermissions::onCommitClickAction | ( | LLUICtrl * | ctrl, | |
void * | ||||
) | [static, protected] |
Definition at line 1051 of file llpanelpermissions.cpp.
References LLViewerWindow::alertXml(), CLICK_ACTION_BUY, CLICK_ACTION_PAY, LLComboBox::getCurrentIndex(), LLSingleton< LLSelectMgr >::getInstance(), LLSelectMgr::getSelection(), gViewerWindow, LLSaleInfo::isForSale(), S32, LLSelectMgr::selectGetSaleInfo(), LLSelectMgr::selectionGetClickAction(), LLSelectMgr::selectionSetClickAction(), and LLComboBox::setCurrentByIndex().
Referenced by postBuild().
void LLPanelPermissions::onCommitIncludeInSearch | ( | LLUICtrl * | ctrl, | |
void * | ||||
) | [static, protected] |
Definition at line 1088 of file llpanelpermissions.cpp.
References LLCheckBoxCtrl::get(), LLSingleton< LLSelectMgr >::getInstance(), llassert, and LLSelectMgr::selectionSetIncludeInSearch().
Referenced by postBuild().
LLNameBox* LLPanelPermissions::mLabelGroupName [protected] |
LLUUID LLPanelPermissions::mCreatorID [protected] |
LLUUID LLPanelPermissions::mOwnerID [protected] |
LLUUID LLPanelPermissions::mLastOwnerID [protected] |