#include <llfloateravatarpicker.h>
Public Types | |
typedef void(* | callback_t )(const std::vector< std::string > &, const std::vector< LLUUID > &, void *) |
Public Member Functions | |
virtual BOOL | postBuild () |
Static Public Member Functions | |
static LLFloaterAvatarPicker * | show (callback_t callback, void *userdata, BOOL allow_multiple=FALSE, BOOL closeOnSelect=FALSE) |
static void | processAvatarPickerReply (LLMessageSystem *msg, void **) |
static void | editKeystroke (LLLineEditor *caller, void *user_data) |
Protected Member Functions | |
void | doSelectionChange (const std::deque< LLFolderViewItem * > &items, BOOL user_action, void *data) |
void | find () |
void | setAllowMultiple (BOOL allow_multiple) |
virtual BOOL | handleKeyHere (KEY key, MASK mask) |
LLFloaterAvatarPicker () | |
virtual | ~LLFloaterAvatarPicker () |
Static Protected Member Functions | |
static void * | createInventoryPanel (void *userdata) |
static void | onBtnFind (void *userdata) |
static void | onBtnAdd (void *userdata) |
static void | onBtnClose (void *userdata) |
static void | onList (LLUICtrl *ctrl, void *userdata) |
static void | onSelectionChange (const std::deque< LLFolderViewItem * > &items, BOOL user_action, void *data) |
Protected Attributes | |
LLScrollListCtrl * | mListNames |
LLInventoryPanel * | mInventoryPanel |
std::vector< LLUUID > | mAvatarIDs |
std::vector< std::string > | mAvatarNames |
BOOL | mAllowMultiple |
LLUUID | mQueryID |
BOOL | mResultsReturned |
BOOL | mCloseOnSelect |
void(* | mCallback )(const std::vector< std::string > &name, const std::vector< LLUUID > &id, void *userdata) |
void * | mCallbackUserdata |
Static Protected Attributes | |
static LLFloaterAvatarPicker * | sInstance = NULL |
Definition at line 48 of file llfloateravatarpicker.h.
typedef void(* LLFloaterAvatarPicker::callback_t)(const std::vector< std::string > &, const std::vector< LLUUID > &, void *) |
LLFloaterAvatarPicker::LLFloaterAvatarPicker | ( | ) | [protected] |
Definition at line 85 of file llfloateravatarpicker.cpp.
References LLUICtrlFactory::buildFloater(), LLSingleton< LLUICtrlFactory >::getInstance(), and NULL.
Referenced by show().
LLFloaterAvatarPicker::~LLFloaterAvatarPicker | ( | ) | [protected, virtual] |
Definition at line 134 of file llfloateravatarpicker.cpp.
References gFocusMgr, NULL, LLFocusMgr::releaseFocusIfNeeded(), and sInstance.
LLFloaterAvatarPicker * LLFloaterAvatarPicker::show | ( | callback_t | callback, | |
void * | userdata, | |||
BOOL | allow_multiple = FALSE , |
|||
BOOL | closeOnSelect = FALSE | |||
) | [static] |
Definition at line 56 of file llfloateravatarpicker.cpp.
References LLFloater::center(), FALSE, LLFloaterAvatarPicker(), mCallback, mCallbackUserdata, mCloseOnSelect, LLFloater::open(), setAllowMultiple(), and sInstance.
Referenced by LLPanelEstateInfo::accessAddCore2(), LLPanelGroupInvite::impl::callbackClickAdd(), LLFloaterSellLandUI::doSelectAgent(), LLPanelLandAccess::onClickAddAccess(), LLPanelLandAccess::onClickAddBanned(), LLPanelFriends::onClickAddFriend(), LLPanelRegionDebugInfo::onClickChooseAvatar(), LLPanelRegionGeneralInfo::onClickKick(), LLPanelEstateInfo::onClickKickUser(), LLFloaterMute::onClickPick(), LLFloaterReporter::onClickSelectAbuser(), and LLPanelObjectTools::onClickSet().
BOOL LLFloaterAvatarPicker::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 94 of file llfloateravatarpicker.cpp.
References LLScrollListCtrl::addCommentText(), LLAssetType::AT_CALLINGCARD, LLPanel::childDisable(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetDoubleClickCallback(), LLPanel::childSetFocus(), LLPanel::childSetKeystrokeCallback(), editKeystroke(), FALSE, LLInventoryType::IT_CALLINGCARD, mInventoryPanel, mListNames, onBtnAdd(), onBtnClose(), onBtnFind(), onList(), onSelectionChange(), LLInventoryPanel::openDefaultFolderForType(), setAllowMultiple(), LLInventoryPanel::setFilterTypes(), LLView::setFollowsAll(), LLInventoryPanel::setSelectCallback(), LLInventoryPanel::setShowFolderState(), LLInventoryFilter::SHOW_NON_EMPTY_FOLDERS, and TRUE.
void LLFloaterAvatarPicker::processAvatarPickerReply | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static] |
Definition at line 303 of file llfloateravatarpicker.cpp.
References _PREHASH_AvatarID, _PREHASH_Data, _PREHASH_FirstName, _PREHASH_LastName, DB_FIRST_NAME_BUF_SIZE, DB_LAST_NAME_BUF_SIZE, LLScrollListCtrl::deleteAllItems(), FALSE, gAgent, LLAgent::getID(), LLMessageSystem::getNumberOfBlocks(), LLMessageSystem::getStringFast(), LLMessageSystem::getUUID(), LLMessageSystem::getUUIDFast(), i, LLUUID::isNull(), mListNames, S32, sInstance, and TRUE.
Referenced by register_viewer_callbacks().
void LLFloaterAvatarPicker::editKeystroke | ( | LLLineEditor * | caller, | |
void * | user_data | |||
) | [static] |
Definition at line 377 of file llfloateravatarpicker.cpp.
References FALSE, LLLineEditor::getText(), and TRUE.
Referenced by postBuild().
static void* LLFloaterAvatarPicker::createInventoryPanel | ( | void * | userdata | ) | [static, protected] |
void LLFloaterAvatarPicker::onBtnFind | ( | void * | userdata | ) | [static, protected] |
Definition at line 141 of file llfloateravatarpicker.cpp.
Referenced by handleKeyHere(), and postBuild().
void LLFloaterAvatarPicker::onBtnAdd | ( | void * | userdata | ) | [static, protected] |
Definition at line 147 of file llfloateravatarpicker.cpp.
References FALSE, LLUUID::null, and TRUE.
Referenced by handleKeyHere(), and postBuild().
void LLFloaterAvatarPicker::onBtnClose | ( | void * | userdata | ) | [static, protected] |
Definition at line 170 of file llfloateravatarpicker.cpp.
Referenced by postBuild().
void LLFloaterAvatarPicker::onList | ( | LLUICtrl * | ctrl, | |
void * | userdata | |||
) | [static, protected] |
Definition at line 176 of file llfloateravatarpicker.cpp.
References LLSD::asString(), LLScrollListItem::getColumn(), LLScrollListItem::getUUID(), LLScrollListCell::getValue(), and TRUE.
Referenced by postBuild().
void LLFloaterAvatarPicker::doSelectionChange | ( | const std::deque< LLFolderViewItem * > & | items, | |
BOOL | user_action, | |||
void * | data | |||
) | [protected] |
Definition at line 217 of file llfloateravatarpicker.cpp.
References LLPanel::childSetEnabled(), LLScrollListCtrl::deselectAllItems(), FALSE, LLScrollListCtrl::getAllSelected(), LLInventoryItem::getCreatorUUID(), LLFolderViewEventListener::getInventoryType(), LLInventoryModel::getItem(), LLFolderViewEventListener::getName(), LLFolderViewEventListener::getUUID(), gInventory, LLInventoryType::IT_CALLINGCARD, mAvatarIDs, mAvatarNames, mListNames, and TRUE.
void LLFloaterAvatarPicker::onSelectionChange | ( | const std::deque< LLFolderViewItem * > & | items, | |
BOOL | user_action, | |||
void * | data | |||
) | [static, protected] |
Definition at line 207 of file llfloateravatarpicker.cpp.
Referenced by postBuild().
void LLFloaterAvatarPicker::find | ( | ) | [protected] |
Definition at line 261 of file llfloateravatarpicker.cpp.
References LLScrollListCtrl::addCommentText(), LLMessageSystem::addString(), LLMessageSystem::addUUID(), LLSD::asString(), LLPanel::childGetValue(), LLPanel::childSetEnabled(), LLScrollListCtrl::deleteAllItems(), FALSE, gAgent, LLUUID::generate(), LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, mListNames, mQueryID, mResultsReturned, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), and LLAgent::sendReliableMessage().
void LLFloaterAvatarPicker::setAllowMultiple | ( | BOOL | allow_multiple | ) | [protected] |
Definition at line 289 of file llfloateravatarpicker.cpp.
References mAllowMultiple, mInventoryPanel, mListNames, LLScrollListCtrl::setAllowMultipleSelection(), and LLInventoryPanel::setAllowMultiSelect().
Referenced by postBuild(), and show().
Reimplemented from LLPanel.
Definition at line 391 of file llfloateravatarpicker.cpp.
References LLPanel::childHasFocus(), LLFloater::close(), LLPanel::handleKeyHere(), KEY_ESCAPE, KEY_RETURN, MASK_NONE, onBtnAdd(), onBtnFind(), and TRUE.
LLScrollListCtrl* LLFloaterAvatarPicker::mListNames [protected] |
Definition at line 80 of file llfloateravatarpicker.h.
Referenced by doSelectionChange(), find(), postBuild(), processAvatarPickerReply(), and setAllowMultiple().
LLInventoryPanel* LLFloaterAvatarPicker::mInventoryPanel [protected] |
Definition at line 81 of file llfloateravatarpicker.h.
Referenced by postBuild(), and setAllowMultiple().
std::vector<LLUUID> LLFloaterAvatarPicker::mAvatarIDs [protected] |
std::vector<std::string> LLFloaterAvatarPicker::mAvatarNames [protected] |
BOOL LLFloaterAvatarPicker::mAllowMultiple [protected] |
LLUUID LLFloaterAvatarPicker::mQueryID [protected] |
BOOL LLFloaterAvatarPicker::mResultsReturned [protected] |
BOOL LLFloaterAvatarPicker::mCloseOnSelect [protected] |
void(* LLFloaterAvatarPicker::mCallback)(const std::vector< std::string > &name, const std::vector< LLUUID > &id, void *userdata) [protected] |
Referenced by show().
void* LLFloaterAvatarPicker::mCallbackUserdata [protected] |
LLFloaterAvatarPicker * LLFloaterAvatarPicker::sInstance = NULL [static, protected] |
Definition at line 94 of file llfloateravatarpicker.h.
Referenced by processAvatarPickerReply(), show(), and ~LLFloaterAvatarPicker().