LLPanelPermissions Class Reference

#include <llpanelpermissions.h>

Inheritance diagram for LLPanelPermissions:

Inheritance graph
[legend]
Collaboration diagram for LLPanelPermissions:

Collaboration graph
[legend]
List of all members.

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

LLNameBoxmLabelGroupName
LLUUID mCreatorID
LLUUID mOwnerID
LLUUID mLastOwnerID

Detailed Description

Definition at line 52 of file llpanelpermissions.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

void LLPanelPermissions::cbGroupID ( LLUUID  group_id,
void userdata 
) [static, protected]

Definition at line 841 of file llpanelpermissions.cpp.

References gSelectMgr, LLSelectMgr::sendGroup(), and TRUE.

Referenced by onClickGroup().

void LLPanelPermissions::onClickClaim ( void  )  [static, protected]

Definition at line 779 of file llpanelpermissions.cpp.

References gAgent, LLAgent::getGroupID(), LLAgent::getID(), gSelectMgr, and LLSelectMgr::sendOwner().

void LLPanelPermissions::onClickCreator ( void  )  [static, protected]

Definition at line 793 of file llpanelpermissions.cpp.

References LLFloaterAvatarInfo::showFromObject().

Referenced by postBuild().

void LLPanelPermissions::onClickDeedToGroup ( void  )  [static, protected]

Definition at line 865 of file llpanelpermissions.cpp.

References LLViewerWindow::alertXml(), callback_deed_to_group(), gViewerWindow, and NULL.

Referenced by postBuild().

void LLPanelPermissions::onClickGroup ( void  )  [static, protected]

Definition at line 817 of file llpanelpermissions.cpp.

References LLFloater::addDependentFloater(), cbGroupID(), LLFloaterView::findNeighboringPosition(), gAgent, LLAgent::getID(), LLFloaterView::getParentFloater(), gFloaterView, gSelectMgr, LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLSelectMgr::selectGetOwner(), LLView::setOrigin(), LLFloaterGroupPicker::setSelectCallback(), and LLUIInstanceMgr< T, INSTANCE_ADAPTOR >::showInstance().

Referenced by postBuild().

void LLPanelPermissions::onClickOwner ( void  )  [static, protected]

Definition at line 801 of file llpanelpermissions.cpp.

References gSelectMgr, LLSelectMgr::selectGetGroup(), LLSelectMgr::selectIsGroupOwned(), LLFloaterAvatarInfo::showFromObject(), and LLFloaterGroupInfo::showFromUUID().

Referenced by postBuild().

void LLPanelPermissions::onClickRelease ( void  )  [static, protected]

Definition at line 786 of file llpanelpermissions.cpp.

References gSelectMgr, LLUUID::null, and LLSelectMgr::sendOwner().

void LLPanelPermissions::onCommitClickAction ( LLUICtrl ctrl,
void  
) [static, protected]

Definition at line 1040 of file llpanelpermissions.cpp.

References LLViewerWindow::alertXml(), CLICK_ACTION_BUY, CLICK_ACTION_PAY, LLComboBox::getCurrentIndex(), LLSelectMgr::getSelection(), gSelectMgr, gViewerWindow, LLSaleInfo::isForSale(), S32, LLSelectMgr::selectGetSaleInfo(), LLSelectMgr::selectionGetClickAction(), LLSelectMgr::selectionSetClickAction(), and LLComboBox::setCurrentByIndex().

Referenced by postBuild().

void LLPanelPermissions::onCommitDesc ( LLUICtrl ctrl,
void data 
) [static, protected]

Definition at line 944 of file llpanelpermissions.cpp.

References LLUICtrlFactory::getLineEditorByName(), LLLineEditor::getText(), gSelectMgr, gUICtrlFactory, and LLSelectMgr::selectionSetObjectDescription().

Referenced by postBuild().

void LLPanelPermissions::onCommitEveryoneCopy ( LLUICtrl ctrl,
void data 
) [static, protected]

Definition at line 903 of file llpanelpermissions.cpp.

References onCommitPerm(), PERM_COPY, and PERM_EVERYONE.

Referenced by postBuild().

void LLPanelPermissions::onCommitEveryoneMove ( LLUICtrl ctrl,
void data 
) [static, protected]

Definition at line 896 of file llpanelpermissions.cpp.

References onCommitPerm(), PERM_EVERYONE, and PERM_MOVE.

Referenced by postBuild().

void LLPanelPermissions::onCommitGroupShare ( LLUICtrl ctrl,
void data 
) [static, protected]

Definition at line 890 of file llpanelpermissions.cpp.

References onCommitPerm(), PERM_COPY, PERM_GROUP, PERM_MODIFY, and PERM_MOVE.

Referenced by postBuild().

void LLPanelPermissions::onCommitIncludeInSearch ( LLUICtrl ctrl,
void  
) [static, protected]

Definition at line 1077 of file llpanelpermissions.cpp.

References gSelectMgr, llassert, and LLSelectMgr::selectionSetIncludeInSearch().

Referenced by postBuild().

void LLPanelPermissions::onCommitName ( LLUICtrl ctrl,
void data 
) [static, protected]

Definition at line 930 of file llpanelpermissions.cpp.

References LLUICtrlFactory::getLineEditorByName(), LLLineEditor::getText(), gSelectMgr, gUICtrlFactory, and LLSelectMgr::selectionSetObjectName().

Referenced by postBuild().

void LLPanelPermissions::onCommitNextOwnerCopy ( LLUICtrl ctrl,
void data 
) [static, protected]

Definition at line 916 of file llpanelpermissions.cpp.

References onCommitPerm(), PERM_COPY, and PERM_NEXT_OWNER.

Referenced by postBuild().

void LLPanelPermissions::onCommitNextOwnerModify ( LLUICtrl ctrl,
void data 
) [static, protected]

Definition at line 909 of file llpanelpermissions.cpp.

References onCommitPerm(), PERM_MODIFY, and PERM_NEXT_OWNER.

Referenced by postBuild().

void LLPanelPermissions::onCommitNextOwnerTransfer ( LLUICtrl ctrl,
void data 
) [static, protected]

Definition at line 923 of file llpanelpermissions.cpp.

References onCommitPerm(), PERM_NEXT_OWNER, and PERM_TRANSFER.

Referenced by postBuild().

void LLPanelPermissions::onCommitPerm ( LLUICtrl ctrl,
void data,
U8  field,
U32  perm 
) [static, protected]

---------------------------------------------------------------------------- Permissions checkboxes ----------------------------------------------------------------------------

Definition at line 876 of file llpanelpermissions.cpp.

References LLCheckBoxCtrl::get(), LLSelectMgr::getSelection(), gSelectMgr, and LLSelectMgr::selectionSetObjectPermissions().

Referenced by onCommitEveryoneCopy(), onCommitEveryoneMove(), onCommitGroupShare(), onCommitNextOwnerCopy(), onCommitNextOwnerModify(), and onCommitNextOwnerTransfer().

void LLPanelPermissions::onCommitSaleInfo ( LLUICtrl ctrl,
void data 
) [static, protected]

Definition at line 956 of file llpanelpermissions.cpp.

Referenced by postBuild().

void LLPanelPermissions::onCommitSaleType ( LLUICtrl ctrl,
void data 
) [static, protected]

Definition at line 963 of file llpanelpermissions.cpp.

Referenced by postBuild().

BOOL LLPanelPermissions::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 78 of file llpanelpermissions.cpp.

References LLView::addChild(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetPrevalidate(), LLView::getRect(), LLUICtrlFactory::getTextBoxByName(), gUICtrlFactory, 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::childGetText(), LLPanel::childSetEnabled(), LLPanel::childSetTentative(), LLPanel::childSetText(), LLPanel::childSetValue(), LLPanel::childSetVisible(), LLComboBox::clear(), DEFAULT_PRICE, FALSE, LLSaleInfo::FS_COPY, gAgent, LLControlGroup::getBOOL(), LLUICtrlFactory::getButtonByName(), LLUICtrlFactory::getComboBoxByName(), LLAgent::getID(), LLFocusMgr::getKeyboardFocus(), LLUICtrlFactory::getLineEditorByName(), LLSelectNode::getObject(), LLUICtrlFactory::getRadioGroupByName(), LLSaleInfo::getSaleType(), LLSelectMgr::getSelection(), LLControlGroup::getWarning(), gFocusMgr, GP_OBJECT_DEED, GP_OBJECT_MANIPULATE, GP_OBJECT_SET_SALE, gSavedSettings, gSelectMgr, gUICtrlFactory, LLAgent::hasPowerInGroup(), LLUUID::isNull(), LL_PCODE_VOLUME, llformat(), mask_to_string(), MAX_STRING, mCreatorID, LLSelectNode::mDescription, mLabelGroupName, mLastOwnerID, LLSelectNode::mName, mOwnerID, LLUUID::notNull(), 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(), S32, LLSelectMgr::selectGetCreator(), LLSelectMgr::selectGetGroup(), LLSelectMgr::selectGetLastOwner(), LLSelectMgr::selectGetModify(), LLSelectMgr::selectGetOwner(), LLSelectMgr::selectGetPerm(), LLSelectMgr::selectGetRootsCopy(), LLSelectMgr::selectGetRootsModify(), LLSelectMgr::selectGetRootsTransfer(), LLSelectMgr::selectGetSaleInfo(), LLSelectMgr::selectionAllPCode(), LLSelectMgr::selectionGetClickAction(), LLSelectMgr::selectionGetIncludeInSearch(), LLSelectMgr::selectIsForSale(), LLSelectMgr::selectIsGroupOwned(), LLComboBox::setCurrentByIndex(), LLComboBox::setEnabled(), LLRadioGroup::setEnabled(), LLButton::setLabelSelected(), LLButton::setLabelUnselected(), LLRadioGroup::setSelectedIndex(), LLLineEditor::setText(), and TRUE.

Referenced by LLFloaterTools::refresh().

void LLPanelPermissions::setAllSaleInfo (  )  [protected]

Definition at line 969 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(), LLUICtrlFactory::getCheckBoxByName(), LLUICtrlFactory::getLineEditorByName(), LLUICtrlFactory::getRadioGroupByName(), LLLineEditor::getText(), gSelectMgr, gUICtrlFactory, llendl, llinfos, S32, LLSelectMgr::selectionGetClickAction(), LLSelectMgr::selectionSetClickAction(), and LLSelectMgr::selectionSetObjectSaleInfo().


Member Data Documentation

LLUUID LLPanelPermissions::mCreatorID [protected]

Definition at line 107 of file llpanelpermissions.h.

Referenced by refresh().

LLNameBox* LLPanelPermissions::mLabelGroupName [protected]

Definition at line 101 of file llpanelpermissions.h.

Referenced by postBuild(), and refresh().

LLUUID LLPanelPermissions::mLastOwnerID [protected]

Definition at line 109 of file llpanelpermissions.h.

Referenced by refresh().

LLUUID LLPanelPermissions::mOwnerID [protected]

Definition at line 108 of file llpanelpermissions.h.

Referenced by refresh().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:38 2010 for Second Life Viewer by  doxygen 1.4.7