LLPanelGroupRolesSubTab Class Reference

#include <llpanelgrouproles.h>

Inheritance diagram for LLPanelGroupRolesSubTab:

Inheritance graph
[legend]
Collaboration diagram for LLPanelGroupRolesSubTab:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLPanelGroupRolesSubTab (const std::string &name, const LLUUID &group_id)
virtual ~LLPanelGroupRolesSubTab ()
virtual BOOL postBuildSubTab (LLView *root)
virtual void activate ()
virtual void deactivate ()
virtual bool needsApply (LLString &mesg)
virtual bool apply (LLString &mesg)
virtual void cancel ()
bool matchesSearchFilter (std::string rolename, std::string roletitle)
virtual void update (LLGroupChange gc)
void handleRoleSelect ()
void buildMembersList ()
void handleActionCheck (LLCheckBoxCtrl *, bool force=false)
void handleMemberVisibilityChange (bool value)
void handleCreateRole ()
void handleDeleteRole ()
void saveRoleChanges ()

Static Public Member Functions

static voidcreateTab (void *data)
static void onRoleSelect (LLUICtrl *, void *)
static void onActionCheck (LLUICtrl *, void *)
static void addActionCB (S32 option, void *data)
static void onPropertiesKey (LLLineEditor *, void *)
static void onDescriptionCommit (LLUICtrl *, void *)
static void onMemberVisibilityChange (LLUICtrl *, void *)
static void onCreateRole (void *)
static void onDeleteRole (void *)

Protected Member Functions

LLSD createRoleItem (const LLUUID &role_id, std::string name, std::string title, S32 members)

Protected Attributes

LLScrollListCtrlmRolesList
LLNameListCtrlmAssignedMembersList
LLScrollListCtrlmAllowedActionsList
LLLineEditormRoleName
LLLineEditormRoleTitle
LLTextEditormRoleDescription
LLCheckBoxCtrlmMemberVisibleCheck
LLButtonmDeleteRoleButton
LLButtonmCreateRoleButton
LLUUID mSelectedRole
BOOL mHasRoleChange
std::string mRemoveEveryoneTxt

Detailed Description

Definition at line 230 of file llpanelgrouproles.h.


Constructor & Destructor Documentation

LLPanelGroupRolesSubTab::LLPanelGroupRolesSubTab ( const std::string &  name,
const LLUUID group_id 
)

Definition at line 1790 of file llpanelgrouproles.cpp.

Referenced by createTab().

LLPanelGroupRolesSubTab::~LLPanelGroupRolesSubTab (  )  [virtual]

Definition at line 1795 of file llpanelgrouproles.cpp.


Member Function Documentation

void LLPanelGroupRolesSubTab::activate (  )  [virtual]

Reimplemented from LLPanelGroupSubTab.

Definition at line 1880 of file llpanelgrouproles.cpp.

References LLPanelGroupSubTab::activate(), LLTextEditor::clear(), LLLineEditor::clear(), LLScrollListCtrl::deleteAllItems(), LLScrollListCtrl::deselectAllItems(), GC_ALL, mAllowedActionsList, mAssignedMembersList, mHasRoleChange, mRoleDescription, mRoleName, mRolesList, mRoleTitle, LLPanelGroupSubTab::setFooterEnabled(), and update().

void LLPanelGroupRolesSubTab::addActionCB ( S32  option,
void data 
) [static]

Definition at line 2303 of file llpanelgrouproles.cpp.

References handleActionCheck(), ActionCBData::mCheck, LLPanelGroupTab::mHasModal, ActionCBData::mSelf, LLCheckBoxCtrl::set(), and TRUE.

Referenced by handleActionCheck().

bool LLPanelGroupRolesSubTab::apply ( LLString mesg  )  [virtual]

Reimplemented from LLPanelGroupTab.

Definition at line 1914 of file llpanelgrouproles.cpp.

References gGroupMgr, lldebugs, llendl, LLPanelGroupTab::mGroupID, LLPanelGroupTab::notifyObservers(), saveRoleChanges(), and LLGroupMgr::sendGroupRoleChanges().

void LLPanelGroupRolesSubTab::buildMembersList (  ) 

Definition at line 2166 of file llpanelgrouproles.cpp.

References LLNameListCtrl::addNameItem(), LLScrollListCtrl::deleteAllItems(), end, LLScrollListCtrl::getFirstSelected(), LLGroupMgr::getGroupData(), LLScrollListItem::getUUID(), gGroupMgr, LLUUID::isNull(), llendl, llwarns, mAssignedMembersList, LLPanelGroupTab::mGroupID, LLGroupMgrGroupData::mMembers, LLGroupMgrGroupData::mRoles, and mRolesList.

Referenced by handleRoleSelect(), and update().

void LLPanelGroupRolesSubTab::cancel (  )  [virtual]

Reimplemented from LLPanelGroupTab.

Definition at line 1926 of file llpanelgrouproles.cpp.

References LLGroupMgr::cancelGroupRoleChanges(), gGroupMgr, LLPanelGroupTab::mGroupID, mHasRoleChange, and LLPanelGroupTab::notifyObservers().

LLSD LLPanelGroupRolesSubTab::createRoleItem ( const LLUUID role_id,
std::string  name,
std::string  title,
S32  members 
) [protected]

Definition at line 1934 of file llpanelgrouproles.cpp.

Referenced by saveRoleChanges(), and update().

void * LLPanelGroupRolesSubTab::createTab ( void data  )  [static]

Reimplemented from LLPanelGroupTab.

Definition at line 1784 of file llpanelgrouproles.cpp.

References LLPanelGroupRolesSubTab().

Referenced by LLPanelGroup::LLPanelGroup().

void LLPanelGroupRolesSubTab::deactivate (  )  [virtual]

Reimplemented from LLPanelGroupSubTab.

Definition at line 1897 of file llpanelgrouproles.cpp.

References LLPanelGroupSubTab::deactivate(), lldebugs, and llendl.

void LLPanelGroupRolesSubTab::handleActionCheck ( LLCheckBoxCtrl ,
bool  force = false 
)

Definition at line 2227 of file llpanelgrouproles.cpp.

References addActionCB(), LLGroupMgrGroupData::addRolePower(), LLViewerWindow::alertXml(), LLCheckBoxCtrl::get(), LLScrollListCtrl::getFirstSelected(), LLGroupMgr::getGroupData(), LLGroupMgrGroupData::getRoleData(), LLScrollListItem::getUserdata(), LLScrollListItem::getUUID(), gGroupMgr, GP_ROLE_ASSIGN_MEMBER, GP_ROLE_CHANGE_ACTIONS, gViewerWindow, lldebugs, llendl, llwarns, mAllowedActionsList, LLRoleAction::mDescription, LLPanelGroupTab::mGroupID, LLPanelGroupTab::mHasModal, mHasRoleChange, LLRoleAction::mPowerBit, LLRoleData::mRoleName, mRolesList, LLPanelGroupTab::notifyObservers(), LLGroupMgrGroupData::removeRolePower(), LLCheckBoxCtrl::set(), and TRUE.

Referenced by addActionCB().

void LLPanelGroupRolesSubTab::handleCreateRole (  ) 

Definition at line 2388 of file llpanelgrouproles.cpp.

References ADD_BOTTOM, LLScrollListCtrl::addElement(), LLGroupMgrGroupData::createRole(), LLScrollListCtrl::deselectAllItems(), LLUUID::generate(), LLGroupMgr::getGroupData(), gFocusMgr, gGroupMgr, LLPanelGroupTab::mGroupID, mRoleName, LLRoleData::mRoleName, mRolesList, LLPanelGroupTab::notifyObservers(), LLLineEditor::onTabInto(), LLScrollListCtrl::selectByID(), LLLineEditor::setFocus(), LLFocusMgr::triggerFocusFlash(), and TRUE.

void LLPanelGroupRolesSubTab::handleDeleteRole (  ) 

Definition at line 2429 of file llpanelgrouproles.cpp.

References LLGroupMgrGroupData::deleteRole(), LLScrollListCtrl::deleteSingleItem(), LLScrollListCtrl::getFirstSelected(), LLScrollListCtrl::getFirstSelectedIndex(), LLGroupMgr::getGroupData(), LLScrollListItem::getUUID(), gGroupMgr, LLUUID::isNull(), LLPanelGroupTab::mGroupID, LLGroupMgrGroupData::mOwnerRole, mRemoveEveryoneTxt, mRolesList, LLPanelGroupTab::notifyObservers(), LLScrollListCtrl::selectFirstItem(), and LLNotifyBox::showXml().

void LLPanelGroupRolesSubTab::handleMemberVisibilityChange ( bool  value  ) 

Definition at line 2351 of file llpanelgrouproles.cpp.

References LLGroupMgrGroupData::addRolePower(), LLScrollListCtrl::getFirstSelected(), LLGroupMgr::getGroupData(), LLScrollListItem::getUUID(), gGroupMgr, GP_MEMBER_VISIBLE_IN_DIR, lldebugs, llendl, llwarns, LLPanelGroupTab::mGroupID, mRolesList, and LLGroupMgrGroupData::removeRolePower().

void LLPanelGroupRolesSubTab::handleRoleSelect (  ) 

Definition at line 2081 of file llpanelgrouproles.cpp.

References LLPanelGroupSubTab::buildActionsList(), buildMembersList(), LLTextEditor::clear(), LLLineEditor::clear(), LLScrollListCtrl::deleteAllItems(), LLScrollListCtrl::deselectAllItems(), gAgent, LLScrollListCtrl::getFirstSelected(), LLGroupMgr::getGroupData(), LLGroupMgrGroupData::getRoleData(), LLScrollListItem::getUUID(), gGroupMgr, GP_MEMBER_VISIBLE_IN_DIR, GP_ROLE_CHANGE_ACTIONS, GP_ROLE_DELETE, GP_ROLE_PROPERTIES, LLAgent::hasPowerInGroup(), LLUUID::isNull(), lldebugs, llendl, llwarns, LLPanelGroupSubTab::mActionIcons, mAllowedActionsList, mAssignedMembersList, mDeleteRoleButton, LLPanelGroupTab::mGroupID, mMemberVisibleCheck, LLGroupMgrGroupData::mOwnerRole, LLRoleData::mRoleDescription, mRoleDescription, LLRoleData::mRoleName, mRoleName, LLRoleData::mRolePowers, mRolesList, LLRoleData::mRoleTitle, mRoleTitle, mSelectedRole, onActionCheck(), saveRoleChanges(), LLCheckBoxCtrl::set(), LLView::setEnabled(), LLCheckBoxCtrl::setEnabled(), LLTextEditor::setEnabled(), LLLineEditor::setEnabled(), LLScrollListCtrl::setEnabled(), LLPanelGroupSubTab::setFooterEnabled(), LLTextEditor::setText(), LLLineEditor::setText(), and TRUE.

Referenced by update().

bool LLPanelGroupRolesSubTab::matchesSearchFilter ( std::string  rolename,
std::string  roletitle 
)

Definition at line 1954 of file llpanelgrouproles.cpp.

References LLPanelGroupSubTab::mSearchFilter, and LLStringBase< char >::toLower().

Referenced by update().

bool LLPanelGroupRolesSubTab::needsApply ( LLString mesg  )  [virtual]

Reimplemented from LLPanelGroupTab.

Definition at line 1904 of file llpanelgrouproles.cpp.

References LLGroupMgr::getGroupData(), gGroupMgr, lldebugs, llendl, LLPanelGroupTab::mGroupID, mHasRoleChange, and LLGroupMgrGroupData::pendingRoleChanges().

void LLPanelGroupRolesSubTab::onActionCheck ( LLUICtrl ,
void  
) [static]

Definition at line 2212 of file llpanelgrouproles.cpp.

Referenced by handleRoleSelect().

void LLPanelGroupRolesSubTab::onCreateRole ( void  )  [static]

Definition at line 2380 of file llpanelgrouproles.cpp.

Referenced by postBuildSubTab().

void LLPanelGroupRolesSubTab::onDeleteRole ( void  )  [static]

Definition at line 2421 of file llpanelgrouproles.cpp.

Referenced by postBuildSubTab().

void LLPanelGroupRolesSubTab::onDescriptionCommit ( LLUICtrl ,
void  
) [static]

Definition at line 2332 of file llpanelgrouproles.cpp.

References TRUE.

Referenced by postBuildSubTab().

void LLPanelGroupRolesSubTab::onMemberVisibilityChange ( LLUICtrl ,
void  
) [static]

Definition at line 2342 of file llpanelgrouproles.cpp.

Referenced by postBuildSubTab().

void LLPanelGroupRolesSubTab::onPropertiesKey ( LLLineEditor ,
void  
) [static]

Definition at line 2322 of file llpanelgrouproles.cpp.

References TRUE.

Referenced by postBuildSubTab().

void LLPanelGroupRolesSubTab::onRoleSelect ( LLUICtrl ,
void  
) [static]

Definition at line 2075 of file llpanelgrouproles.cpp.

Referenced by postBuildSubTab().

BOOL LLPanelGroupRolesSubTab::postBuildSubTab ( LLView root  )  [virtual]

Reimplemented from LLPanelGroupSubTab.

Definition at line 1799 of file llpanelgrouproles.cpp.

References LLPanel::getChildByName(), LLTextBox::getText(), llendl, llwarns, mAllowedActionsList, mAssignedMembersList, mCreateRoleButton, mDeleteRoleButton, LLPanelGroupSubTab::mFooter, LLPanelGroupSubTab::mHeader, mMemberVisibleCheck, mRemoveEveryoneTxt, mRoleDescription, mRoleName, mRolesList, mRoleTitle, onCreateRole(), onDeleteRole(), onDescriptionCommit(), onMemberVisibilityChange(), onPropertiesKey(), onRoleSelect(), LLView::removeChild(), LLUICtrl::setCallbackUserData(), LLButton::setClickedCallback(), LLUICtrl::setCommitCallback(), LLTextEditor::setCommitOnFocusLost(), LLLineEditor::setCommitOnFocusLost(), LLScrollListCtrl::setCommitOnSelectionChange(), LLView::setEnabled(), LLUICtrl::setFocusReceivedCallback(), LLPanelGroupSubTab::setFooterEnabled(), LLLineEditor::setKeystrokeCallback(), and TRUE.

void LLPanelGroupRolesSubTab::saveRoleChanges (  ) 

Definition at line 2456 of file llpanelgrouproles.cpp.

References ADD_BOTTOM, LLScrollListCtrl::addElement(), createRoleItem(), LLScrollListCtrl::deleteSingleItem(), LLGroupMgr::getGroupData(), LLScrollListCtrl::getItemIndex(), LLGroupMgrGroupData::getRoleData(), LLTextEditor::getText(), LLLineEditor::getText(), gGroupMgr, LLPanelGroupTab::mGroupID, mHasRoleChange, mRoleDescription, LLRoleData::mRoleDescription, mRoleName, LLRoleData::mRoleName, mRolesList, mRoleTitle, LLRoleData::mRoleTitle, mSelectedRole, LLGroupMgrGroupData::setRoleData(), LLScrollListItem::setSelected(), and TRUE.

Referenced by apply(), and handleRoleSelect().

void LLPanelGroupRolesSubTab::update ( LLGroupChange  gc  )  [virtual]

Reimplemented from LLPanelGroupTab.

Definition at line 1976 of file llpanelgrouproles.cpp.

References ADD_BOTTOM, ADD_TOP, LLScrollListCtrl::addElement(), buildMembersList(), LLTextEditor::clear(), LLLineEditor::clear(), createRoleItem(), LLScrollListCtrl::deleteAllItems(), end, gAgent, GC_MEMBER_DATA, GC_ROLE_MEMBER_DATA, LLScrollListCtrl::getFirstSelected(), LLGroupMgr::getGroupData(), LLGroupMgrGroupData::getRoleData(), LLScrollListItem::getUUID(), gGroupMgr, GP_ROLE_CREATE, handleRoleSelect(), LLAgent::hasPowerInGroup(), LLGroupMgrGroupData::isMemberDataComplete(), LLUUID::isNull(), LLGroupMgrGroupData::isRoleDataComplete(), LLGroupMgrGroupData::isRoleMemberDataComplete(), lldebugs, llendl, llwarns, mAllowedActionsList, mAssignedMembersList, matchesSearchFilter(), MAX_ROLES, mCreateRoleButton, mDeleteRoleButton, LLPanelGroupTab::mGroupID, LLGroupMgrGroupData::mMembers, mRoleDescription, mRoleName, LLRoleData::mRoleName, LLGroupMgrGroupData::mRoles, mRolesList, mRoleTitle, LLRoleData::mRoleTitle, NULL, S32, LLGroupMgr::sendGroupMembersRequest(), LLGroupMgr::sendGroupRoleDataRequest(), LLGroupMgr::sendGroupRoleMembersRequest(), LLView::setEnabled(), LLPanelGroupSubTab::setFooterEnabled(), LLScrollListItem::setSelected(), LLScrollListCtrl::sortByColumn(), and TRUE.

Referenced by activate().


Member Data Documentation

LLScrollListCtrl* LLPanelGroupRolesSubTab::mAllowedActionsList [protected]

Definition at line 278 of file llpanelgrouproles.h.

Referenced by activate(), handleActionCheck(), handleRoleSelect(), postBuildSubTab(), and update().

LLNameListCtrl* LLPanelGroupRolesSubTab::mAssignedMembersList [protected]

Definition at line 277 of file llpanelgrouproles.h.

Referenced by activate(), buildMembersList(), handleRoleSelect(), postBuildSubTab(), and update().

LLButton* LLPanelGroupRolesSubTab::mCreateRoleButton [protected]

Definition at line 286 of file llpanelgrouproles.h.

Referenced by postBuildSubTab(), and update().

LLButton* LLPanelGroupRolesSubTab::mDeleteRoleButton [protected]

Definition at line 285 of file llpanelgrouproles.h.

Referenced by handleRoleSelect(), postBuildSubTab(), and update().

BOOL LLPanelGroupRolesSubTab::mHasRoleChange [protected]

Definition at line 289 of file llpanelgrouproles.h.

Referenced by activate(), cancel(), handleActionCheck(), needsApply(), and saveRoleChanges().

LLCheckBoxCtrl* LLPanelGroupRolesSubTab::mMemberVisibleCheck [protected]

Definition at line 284 of file llpanelgrouproles.h.

Referenced by handleRoleSelect(), and postBuildSubTab().

std::string LLPanelGroupRolesSubTab::mRemoveEveryoneTxt [protected]

Definition at line 290 of file llpanelgrouproles.h.

Referenced by handleDeleteRole(), and postBuildSubTab().

LLTextEditor* LLPanelGroupRolesSubTab::mRoleDescription [protected]

Definition at line 282 of file llpanelgrouproles.h.

Referenced by activate(), handleRoleSelect(), postBuildSubTab(), saveRoleChanges(), and update().

LLLineEditor* LLPanelGroupRolesSubTab::mRoleName [protected]

Definition at line 280 of file llpanelgrouproles.h.

Referenced by activate(), handleCreateRole(), handleRoleSelect(), postBuildSubTab(), saveRoleChanges(), and update().

LLScrollListCtrl* LLPanelGroupRolesSubTab::mRolesList [protected]

Definition at line 276 of file llpanelgrouproles.h.

Referenced by activate(), buildMembersList(), handleActionCheck(), handleCreateRole(), handleDeleteRole(), handleMemberVisibilityChange(), handleRoleSelect(), postBuildSubTab(), saveRoleChanges(), and update().

LLLineEditor* LLPanelGroupRolesSubTab::mRoleTitle [protected]

Definition at line 281 of file llpanelgrouproles.h.

Referenced by activate(), handleRoleSelect(), postBuildSubTab(), saveRoleChanges(), and update().

LLUUID LLPanelGroupRolesSubTab::mSelectedRole [protected]

Definition at line 288 of file llpanelgrouproles.h.

Referenced by handleRoleSelect(), and saveRoleChanges().


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