#include <llpanelgrouproles.h>
Definition at line 229 of file llpanelgrouproles.h.
LLPanelGroupRolesSubTab::LLPanelGroupRolesSubTab | ( | const std::string & | name, | |
const LLUUID & | group_id | |||
) |
Definition at line 1746 of file llpanelgrouproles.cpp.
Referenced by createTab().
LLPanelGroupRolesSubTab::~LLPanelGroupRolesSubTab | ( | ) | [virtual] |
Definition at line 1751 of file llpanelgrouproles.cpp.
Reimplemented from LLPanelGroupSubTab.
Definition at line 1755 of file llpanelgrouproles.cpp.
References FALSE, LLView::getChild(), LLPanel::getString(), llendl, llwarns, mAllowedActionsList, mAssignedMembersList, mCreateRoleButton, mDeleteRoleButton, LLPanelGroupSubTab::mFooter, LLPanelGroupSubTab::mHeader, mMemberVisibleCheck, mRemoveEveryoneTxt, mRoleDescription, mRoleName, mRolesList, mRoleTitle, onCreateRole(), onDeleteRole(), onDescriptionCommit(), onDescriptionFocus(), onMemberVisibilityChange(), onPropertiesKey(), onRoleSelect(), LLUICtrl::setCallbackUserData(), LLButton::setClickedCallback(), LLUICtrl::setCommitCallback(), LLLineEditor::setCommitOnFocusLost(), LLScrollListCtrl::setCommitOnSelectionChange(), LLView::setEnabled(), LLFocusableElement::setFocusReceivedCallback(), LLPanelGroupSubTab::setFooterEnabled(), LLLineEditor::setKeystrokeCallback(), and TRUE.
void * LLPanelGroupRolesSubTab::createTab | ( | void * | data | ) | [static] |
Reimplemented from LLPanelGroupTab.
Definition at line 1740 of file llpanelgrouproles.cpp.
References LLPanelGroupRolesSubTab().
Referenced by LLPanelGroup::LLPanelGroup().
void LLPanelGroupRolesSubTab::activate | ( | ) | [virtual] |
Reimplemented from LLPanelGroupSubTab.
Definition at line 1831 of file llpanelgrouproles.cpp.
References LLPanelGroupSubTab::activate(), LLTextEditor::clear(), LLLineEditor::clear(), LLScrollListCtrl::deleteAllItems(), LLScrollListCtrl::deselectAllItems(), FALSE, GC_ALL, mAllowedActionsList, mAssignedMembersList, mHasRoleChange, mRoleDescription, mRoleName, mRolesList, mRoleTitle, LLPanelGroupSubTab::setFooterEnabled(), and update().
void LLPanelGroupRolesSubTab::deactivate | ( | ) | [virtual] |
Reimplemented from LLPanelGroupSubTab.
Definition at line 1848 of file llpanelgrouproles.cpp.
References LLPanelGroupSubTab::deactivate(), lldebugs, and llendl.
bool LLPanelGroupRolesSubTab::needsApply | ( | LLString & | mesg | ) | [virtual] |
Reimplemented from LLPanelGroupTab.
Definition at line 1855 of file llpanelgrouproles.cpp.
References LLGroupMgr::getGroupData(), LLSingleton< LLGroupMgr >::getInstance(), lldebugs, llendl, LLPanelGroupTab::mGroupID, mHasRoleChange, and LLGroupMgrGroupData::pendingRoleChanges().
bool LLPanelGroupRolesSubTab::apply | ( | LLString & | mesg | ) | [virtual] |
Reimplemented from LLPanelGroupTab.
Definition at line 1865 of file llpanelgrouproles.cpp.
References LLSingleton< LLGroupMgr >::getInstance(), lldebugs, llendl, LLPanelGroupTab::mGroupID, LLPanelGroupTab::notifyObservers(), saveRoleChanges(), and LLGroupMgr::sendGroupRoleChanges().
void LLPanelGroupRolesSubTab::cancel | ( | ) | [virtual] |
Reimplemented from LLPanelGroupTab.
Definition at line 1877 of file llpanelgrouproles.cpp.
References LLGroupMgr::cancelGroupRoleChanges(), FALSE, LLSingleton< LLGroupMgr >::getInstance(), LLPanelGroupTab::mGroupID, mHasRoleChange, and LLPanelGroupTab::notifyObservers().
bool LLPanelGroupRolesSubTab::matchesSearchFilter | ( | std::string | rolename, | |
std::string | roletitle | |||
) |
Definition at line 1905 of file llpanelgrouproles.cpp.
References LLPanelGroupSubTab::mSearchFilter, and LLStringBase< char >::toLower().
Referenced by update().
void LLPanelGroupRolesSubTab::update | ( | LLGroupChange | gc | ) | [virtual] |
Reimplemented from LLPanelGroupTab.
Definition at line 1927 of file llpanelgrouproles.cpp.
References ADD_BOTTOM, ADD_TOP, LLScrollListCtrl::addElement(), buildMembersList(), LLTextEditor::clear(), LLLineEditor::clear(), createRoleItem(), LLScrollListCtrl::deleteAllItems(), FALSE, gAgent, GC_MEMBER_DATA, GC_ROLE_MEMBER_DATA, LLScrollListCtrl::getFirstSelected(), LLGroupMgr::getGroupData(), LLSingleton< LLGroupMgr >::getInstance(), LLGroupMgrGroupData::getRoleData(), LLScrollListItem::getUUID(), 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().
void LLPanelGroupRolesSubTab::onRoleSelect | ( | LLUICtrl * | ctrl, | |
void * | user_data | |||
) | [static] |
Definition at line 2026 of file llpanelgrouproles.cpp.
Referenced by postBuildSubTab().
void LLPanelGroupRolesSubTab::handleRoleSelect | ( | ) |
Definition at line 2032 of file llpanelgrouproles.cpp.
References LLPanelGroupSubTab::buildActionsList(), buildMembersList(), LLTextEditor::clear(), LLLineEditor::clear(), LLScrollListCtrl::deleteAllItems(), LLScrollListCtrl::deselectAllItems(), FALSE, gAgent, LLScrollListCtrl::getFirstSelected(), LLGroupMgr::getGroupData(), LLSingleton< LLGroupMgr >::getInstance(), LLGroupMgrGroupData::getRoleData(), LLScrollListItem::getUUID(), 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().
void LLPanelGroupRolesSubTab::buildMembersList | ( | ) |
Definition at line 2117 of file llpanelgrouproles.cpp.
References LLNameListCtrl::addNameItem(), LLScrollListCtrl::deleteAllItems(), LLScrollListCtrl::getFirstSelected(), LLGroupMgr::getGroupData(), LLSingleton< LLGroupMgr >::getInstance(), LLGroupRoleData::getMembersBegin(), LLGroupRoleData::getMembersEnd(), LLScrollListItem::getUUID(), LLUUID::isNull(), llendl, llwarns, mAssignedMembersList, LLPanelGroupTab::mGroupID, LLGroupMgrGroupData::mMembers, LLGroupMgrGroupData::mRoles, and mRolesList.
Referenced by handleRoleSelect(), and update().
void LLPanelGroupRolesSubTab::onActionCheck | ( | LLUICtrl * | ctrl, | |
void * | user_data | |||
) | [static] |
Definition at line 2163 of file llpanelgrouproles.cpp.
Referenced by handleRoleSelect().
void LLPanelGroupRolesSubTab::handleActionCheck | ( | LLCheckBoxCtrl * | check, | |
bool | force = false | |||
) |
Definition at line 2178 of file llpanelgrouproles.cpp.
References addActionCB(), LLGroupMgrGroupData::addRolePower(), LLViewerWindow::alertXml(), FALSE, LLCheckBoxCtrl::get(), LLScrollListCtrl::getFirstSelected(), LLGroupMgr::getGroupData(), LLSingleton< LLGroupMgr >::getInstance(), LLGroupMgrGroupData::getRoleData(), LLScrollListItem::getUserdata(), LLScrollListItem::getUUID(), GP_ROLE_ASSIGN_MEMBER, GP_ROLE_CHANGE_ACTIONS, gViewerWindow, lldebugs, llendl, llwarns, mAllowedActionsList, ActionCBData::mCheck, LLRoleAction::mDescription, LLPanelGroupTab::mGroupID, LLPanelGroupTab::mHasModal, mHasRoleChange, LLRoleAction::mPowerBit, LLRoleData::mRoleName, mRolesList, ActionCBData::mSelf, LLPanelGroupTab::notifyObservers(), LLGroupMgrGroupData::removeRolePower(), LLCheckBoxCtrl::set(), and TRUE.
Referenced by addActionCB().
void LLPanelGroupRolesSubTab::addActionCB | ( | S32 | option, | |
void * | data | |||
) | [static] |
Definition at line 2254 of file llpanelgrouproles.cpp.
References FALSE, handleActionCheck(), ActionCBData::mCheck, LLPanelGroupTab::mHasModal, ActionCBData::mSelf, LLCheckBoxCtrl::set(), and TRUE.
Referenced by handleActionCheck().
void LLPanelGroupRolesSubTab::onPropertiesKey | ( | LLLineEditor * | ctrl, | |
void * | user_data | |||
) | [static] |
Definition at line 2273 of file llpanelgrouproles.cpp.
References TRUE.
Referenced by postBuildSubTab().
void LLPanelGroupRolesSubTab::onDescriptionCommit | ( | LLUICtrl * | ctrl, | |
void * | user_data | |||
) | [static] |
Definition at line 2293 of file llpanelgrouproles.cpp.
References TRUE.
Referenced by postBuildSubTab().
void LLPanelGroupRolesSubTab::onDescriptionFocus | ( | LLFocusableElement * | ctrl, | |
void * | user_data | |||
) | [static] |
Definition at line 2283 of file llpanelgrouproles.cpp.
References TRUE.
Referenced by postBuildSubTab().
void LLPanelGroupRolesSubTab::onMemberVisibilityChange | ( | LLUICtrl * | ctrl, | |
void * | user_data | |||
) | [static] |
Definition at line 2303 of file llpanelgrouproles.cpp.
References LLCheckBoxCtrl::get().
Referenced by postBuildSubTab().
void LLPanelGroupRolesSubTab::handleMemberVisibilityChange | ( | bool | value | ) |
Definition at line 2312 of file llpanelgrouproles.cpp.
References LLGroupMgrGroupData::addRolePower(), LLScrollListCtrl::getFirstSelected(), LLGroupMgr::getGroupData(), LLSingleton< LLGroupMgr >::getInstance(), LLScrollListItem::getUUID(), GP_MEMBER_VISIBLE_IN_DIR, lldebugs, llendl, llwarns, LLPanelGroupTab::mGroupID, mRolesList, and LLGroupMgrGroupData::removeRolePower().
void LLPanelGroupRolesSubTab::onCreateRole | ( | void * | user_data | ) | [static] |
Definition at line 2341 of file llpanelgrouproles.cpp.
Referenced by postBuildSubTab().
void LLPanelGroupRolesSubTab::handleCreateRole | ( | ) |
Definition at line 2349 of file llpanelgrouproles.cpp.
References ADD_BOTTOM, LLScrollListCtrl::addElement(), LLGroupMgrGroupData::createRole(), LLScrollListCtrl::deselectAllItems(), LLUUID::generate(), LLGroupMgr::getGroupData(), LLSingleton< LLGroupMgr >::getInstance(), gFocusMgr, LLPanelGroupTab::mGroupID, mRoleName, LLRoleData::mRoleName, mRolesList, LLPanelGroupTab::notifyObservers(), LLLineEditor::onTabInto(), LLScrollListCtrl::selectByID(), LLLineEditor::setFocus(), LLFocusMgr::triggerFocusFlash(), and TRUE.
void LLPanelGroupRolesSubTab::onDeleteRole | ( | void * | user_data | ) | [static] |
Definition at line 2382 of file llpanelgrouproles.cpp.
Referenced by postBuildSubTab().
void LLPanelGroupRolesSubTab::handleDeleteRole | ( | ) |
Definition at line 2390 of file llpanelgrouproles.cpp.
References LLGroupMgrGroupData::deleteRole(), LLScrollListCtrl::deleteSingleItem(), LLScrollListCtrl::getFirstSelected(), LLScrollListCtrl::getFirstSelectedIndex(), LLGroupMgr::getGroupData(), LLSingleton< LLGroupMgr >::getInstance(), LLScrollListItem::getUUID(), LLUUID::isNull(), LLPanelGroupTab::mGroupID, LLGroupMgrGroupData::mOwnerRole, mRemoveEveryoneTxt, mRolesList, LLPanelGroupTab::notifyObservers(), LLScrollListCtrl::selectFirstItem(), and LLNotifyBox::showXml().
void LLPanelGroupRolesSubTab::saveRoleChanges | ( | ) |
Definition at line 2417 of file llpanelgrouproles.cpp.
References ADD_BOTTOM, LLScrollListCtrl::addElement(), createRoleItem(), LLScrollListCtrl::deleteSingleItem(), FALSE, LLGroupMgr::getGroupData(), LLSingleton< LLGroupMgr >::getInstance(), LLScrollListCtrl::getItemIndex(), LLGroupMgrGroupData::getRoleData(), LLTextEditor::getText(), LLLineEditor::getText(), 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().
LLSD LLPanelGroupRolesSubTab::createRoleItem | ( | const LLUUID & | role_id, | |
std::string | name, | |||
std::string | title, | |||
S32 | members | |||
) | [protected] |
Definition at line 1885 of file llpanelgrouproles.cpp.
Referenced by 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().
Definition at line 277 of file llpanelgrouproles.h.
Referenced by activate(), buildMembersList(), handleRoleSelect(), postBuildSubTab(), and update().
Definition at line 278 of file llpanelgrouproles.h.
Referenced by activate(), handleActionCheck(), handleRoleSelect(), postBuildSubTab(), and update().
LLLineEditor* LLPanelGroupRolesSubTab::mRoleName [protected] |
Definition at line 280 of file llpanelgrouproles.h.
Referenced by activate(), handleCreateRole(), 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().
LLTextEditor* LLPanelGroupRolesSubTab::mRoleDescription [protected] |
Definition at line 282 of file llpanelgrouproles.h.
Referenced by activate(), handleRoleSelect(), postBuildSubTab(), saveRoleChanges(), and update().
Definition at line 284 of file llpanelgrouproles.h.
Referenced by handleRoleSelect(), and postBuildSubTab().
LLButton* LLPanelGroupRolesSubTab::mDeleteRoleButton [protected] |
Definition at line 285 of file llpanelgrouproles.h.
Referenced by handleRoleSelect(), postBuildSubTab(), and update().
LLButton* LLPanelGroupRolesSubTab::mCreateRoleButton [protected] |
LLUUID LLPanelGroupRolesSubTab::mSelectedRole [protected] |
Definition at line 288 of file llpanelgrouproles.h.
Referenced by handleRoleSelect(), and saveRoleChanges().
BOOL LLPanelGroupRolesSubTab::mHasRoleChange [protected] |
Definition at line 289 of file llpanelgrouproles.h.
Referenced by activate(), cancel(), handleActionCheck(), needsApply(), and saveRoleChanges().
std::string LLPanelGroupRolesSubTab::mRemoveEveryoneTxt [protected] |
Definition at line 290 of file llpanelgrouproles.h.
Referenced by handleDeleteRole(), and postBuildSubTab().