LLPanelGroupSubTab Class Reference

#include <llpanelgrouproles.h>

Inheritance diagram for LLPanelGroupSubTab:

Inheritance graph
[legend]
Collaboration diagram for LLPanelGroupSubTab:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLPanelGroupSubTab (const std::string &name, const LLUUID &group_id)
virtual ~LLPanelGroupSubTab ()
virtual BOOL postBuild ()
virtual BOOL postBuildSubTab (LLView *root)
void handleSearchKeystroke (LLLineEditor *caller)
void handleClickSearch ()
void handleClickShowAll ()
virtual void setSearchFilter (const LLString &filter)
virtual void activate ()
virtual void deactivate ()
bool matchesActionSearchFilter (std::string action)
void buildActionsList (LLScrollListCtrl *ctrl, U64 allowed_by_some, U64 allowed_by_all, icon_map_t &icons, void(*commit_callback)(LLUICtrl *, void *), BOOL show_all, BOOL filter, BOOL is_owner_role)
void buildActionCategory (LLScrollListCtrl *ctrl, U64 allowed_by_some, U64 allowed_by_all, LLRoleActionSet *action_set, icon_map_t &icons, void(*commit_callback)(LLUICtrl *, void *), BOOL show_all, BOOL filter, BOOL is_owner_role)
void setFooterEnabled (BOOL enable)

Static Public Member Functions

static void onSearchKeystroke (LLLineEditor *caller, void *user_data)
static void onClickSearch (void *)
static void onClickShowAll (void *)

Protected Member Functions

void setOthersVisible (BOOL b)

Protected Attributes

LLPanelmHeader
LLPanelmFooter
LLLineEditormSearchLineEditor
LLButtonmSearchButton
LLButtonmShowAllButton
LLString mSearchFilter
icon_map_t mActionIcons

Detailed Description

Definition at line 104 of file llpanelgrouproles.h.


Constructor & Destructor Documentation

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

Definition at line 500 of file llpanelgrouproles.cpp.

LLPanelGroupSubTab::~LLPanelGroupSubTab (  )  [virtual]

Definition at line 510 of file llpanelgrouproles.cpp.


Member Function Documentation

void LLPanelGroupSubTab::activate (  )  [virtual]

Reimplemented from LLPanelGroupTab.

Reimplemented in LLPanelGroupMembersSubTab, LLPanelGroupRolesSubTab, and LLPanelGroupActionsSubTab.

Definition at line 633 of file llpanelgrouproles.cpp.

References lldebugs, llendl, setOthersVisible(), and TRUE.

Referenced by LLPanelGroupActionsSubTab::activate(), LLPanelGroupRolesSubTab::activate(), and LLPanelGroupMembersSubTab::activate().

void LLPanelGroupSubTab::buildActionCategory ( LLScrollListCtrl ctrl,
U64  allowed_by_some,
U64  allowed_by_all,
LLRoleActionSet action_set,
icon_map_t icons,
void(*)(LLUICtrl *, void *)  commit_callback,
BOOL  show_all,
BOOL  filter,
BOOL  is_owner_role 
)

Definition at line 717 of file llpanelgrouproles.cpp.

References ADD_BOTTOM, LLScrollListCtrl::addElement(), gAgent, GP_ROLE_CHANGE_ACTIONS, LLAgent::hasPowerInGroup(), lldebugs, llendl, LLRoleActionSet::mActions, LLRoleActionSet::mActionSetData, matchesActionSearchFilter(), LLPanelGroupTab::mGroupID, LLRoleAction::mName, and LLRoleAction::mPowerBit.

Referenced by buildActionsList().

void LLPanelGroupSubTab::buildActionsList ( LLScrollListCtrl ctrl,
U64  allowed_by_some,
U64  allowed_by_all,
icon_map_t icons,
void(*)(LLUICtrl *, void *)  commit_callback,
BOOL  show_all,
BOOL  filter,
BOOL  is_owner_role 
)

Definition at line 685 of file llpanelgrouproles.cpp.

References buildActionCategory(), gGroupMgr, llendl, llwarns, and LLGroupMgr::mRoleActionSets.

Referenced by LLPanelGroupMembersSubTab::handleMemberSelect(), LLPanelGroupMembersSubTab::handleRoleCheck(), LLPanelGroupRolesSubTab::handleRoleSelect(), and LLPanelGroupActionsSubTab::update().

void LLPanelGroupSubTab::deactivate (  )  [virtual]

Reimplemented from LLPanelGroupTab.

Reimplemented in LLPanelGroupMembersSubTab, LLPanelGroupRolesSubTab, and LLPanelGroupActionsSubTab.

Definition at line 639 of file llpanelgrouproles.cpp.

References FALSE, lldebugs, llendl, and setOthersVisible().

Referenced by LLPanelGroupActionsSubTab::deactivate(), LLPanelGroupRolesSubTab::deactivate(), and LLPanelGroupMembersSubTab::deactivate().

void LLPanelGroupSubTab::handleClickSearch (  ) 

Definition at line 595 of file llpanelgrouproles.cpp.

References FALSE, LLLineEditor::getText(), lldebugs, llendl, llwarns, mSearchButton, mSearchLineEditor, mShowAllButton, LLView::setEnabled(), setSearchFilter(), and TRUE.

void LLPanelGroupSubTab::handleClickShowAll (  ) 

Definition at line 618 of file llpanelgrouproles.cpp.

References FALSE, lldebugs, llendl, mShowAllButton, LLStringBase< char >::null, LLView::setEnabled(), and setSearchFilter().

void LLPanelGroupSubTab::handleSearchKeystroke ( LLLineEditor caller  ) 

Definition at line 574 of file llpanelgrouproles.cpp.

References FALSE, LLLineEditor::getText(), mSearchButton, NULL, LLPanel::setDefaultBtn(), LLView::setEnabled(), and TRUE.

bool LLPanelGroupSubTab::matchesActionSearchFilter ( std::string  action  ) 

Definition at line 666 of file llpanelgrouproles.cpp.

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

Referenced by buildActionCategory().

void LLPanelGroupSubTab::onClickSearch ( void  )  [static]

Definition at line 589 of file llpanelgrouproles.cpp.

Referenced by postBuild().

void LLPanelGroupSubTab::onClickShowAll ( void  )  [static]

Definition at line 612 of file llpanelgrouproles.cpp.

Referenced by postBuild().

void LLPanelGroupSubTab::onSearchKeystroke ( LLLineEditor caller,
void user_data 
) [static]

Definition at line 568 of file llpanelgrouproles.cpp.

Referenced by postBuild().

BOOL LLPanelGroupSubTab::postBuild (  )  [virtual]

Reimplemented from LLPanelGroupTab.

Definition at line 514 of file llpanelgrouproles.cpp.

References FALSE, LLPanel::getChildByName(), LLIconCtrl::getImage(), mActionIcons, mSearchButton, mSearchLineEditor, mShowAllButton, LLUUID::notNull(), onClickSearch(), onClickShowAll(), onSearchKeystroke(), LLPanelGroupTab::postBuild(), LLView::removeChild(), LLUICtrl::setCallbackUserData(), LLButton::setClickedCallback(), LLView::setEnabled(), LLLineEditor::setKeystrokeCallback(), and TRUE.

virtual BOOL LLPanelGroupSubTab::postBuildSubTab ( LLView root  )  [inline, virtual]

Reimplemented in LLPanelGroupMembersSubTab, LLPanelGroupRolesSubTab, and LLPanelGroupActionsSubTab.

Definition at line 113 of file llpanelgrouproles.h.

References TRUE.

void LLPanelGroupSubTab::setFooterEnabled ( BOOL  enable  ) 

Definition at line 875 of file llpanelgrouproles.cpp.

References mFooter, and LLView::setAllChildrenEnabled().

Referenced by LLPanelGroupRolesSubTab::activate(), LLPanelGroupRolesSubTab::handleRoleSelect(), LLPanelGroupRolesSubTab::postBuildSubTab(), and LLPanelGroupRolesSubTab::update().

void LLPanelGroupSubTab::setOthersVisible ( BOOL  b  )  [protected]

Definition at line 645 of file llpanelgrouproles.cpp.

References llendl, llwarns, mFooter, mHeader, and LLView::setVisible().

Referenced by activate(), and deactivate().

void LLPanelGroupSubTab::setSearchFilter ( const LLString filter  )  [virtual]

Definition at line 625 of file llpanelgrouproles.cpp.

References GC_ALL, lldebugs, llendl, mSearchFilter, LLStringBase< char >::toLower(), and LLPanelGroupTab::update().

Referenced by handleClickSearch(), and handleClickShowAll().


Member Data Documentation

icon_map_t LLPanelGroupSubTab::mActionIcons [protected]

Definition at line 159 of file llpanelgrouproles.h.

Referenced by LLPanelGroupMembersSubTab::handleMemberSelect(), LLPanelGroupMembersSubTab::handleRoleCheck(), LLPanelGroupRolesSubTab::handleRoleSelect(), postBuild(), and LLPanelGroupActionsSubTab::update().

LLPanel* LLPanelGroupSubTab::mFooter [protected]

Definition at line 151 of file llpanelgrouproles.h.

Referenced by LLPanelGroupActionsSubTab::postBuildSubTab(), LLPanelGroupRolesSubTab::postBuildSubTab(), LLPanelGroupMembersSubTab::postBuildSubTab(), setFooterEnabled(), and setOthersVisible().

LLPanel* LLPanelGroupSubTab::mHeader [protected]

Definition at line 150 of file llpanelgrouproles.h.

Referenced by LLPanelGroupActionsSubTab::postBuildSubTab(), LLPanelGroupRolesSubTab::postBuildSubTab(), LLPanelGroupMembersSubTab::postBuildSubTab(), and setOthersVisible().

LLButton* LLPanelGroupSubTab::mSearchButton [protected]

Definition at line 154 of file llpanelgrouproles.h.

Referenced by handleClickSearch(), handleSearchKeystroke(), and postBuild().

LLString LLPanelGroupSubTab::mSearchFilter [protected]

Definition at line 157 of file llpanelgrouproles.h.

Referenced by matchesActionSearchFilter(), LLPanelGroupRolesSubTab::matchesSearchFilter(), LLPanelGroupMembersSubTab::matchesSearchFilter(), and setSearchFilter().

LLLineEditor* LLPanelGroupSubTab::mSearchLineEditor [protected]

Definition at line 153 of file llpanelgrouproles.h.

Referenced by handleClickSearch(), and postBuild().

LLButton* LLPanelGroupSubTab::mShowAllButton [protected]

Definition at line 155 of file llpanelgrouproles.h.

Referenced by handleClickSearch(), handleClickShowAll(), and postBuild().


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