#include <llfloateravatarpicker.h>
Inheritance diagram for LLFloaterAvatarPicker:
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, BOOL called_from_parent) |
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 *) |
Definition at line 53 of file llfloateravatarpicker.h.
LLFloaterAvatarPicker::LLFloaterAvatarPicker | ( | ) | [protected] |
Definition at line 85 of file llfloateravatarpicker.cpp.
References LLUICtrlFactory::buildFloater(), gUICtrlFactory, and NULL.
Referenced by show().
LLFloaterAvatarPicker::~LLFloaterAvatarPicker | ( | ) | [protected, virtual] |
Definition at line 134 of file llfloateravatarpicker.cpp.
References gFocusMgr, NULL, LLFocusMgr::releaseFocusIfNeeded(), and sInstance.
void LLFloaterAvatarPicker::doSelectionChange | ( | const std::deque< LLFolderViewItem * > & | items, | |
BOOL | user_action, | |||
void * | data | |||
) | [protected] |
Definition at line 214 of file llfloateravatarpicker.cpp.
References LLPanel::childSetEnabled(), LLScrollListCtrl::deselectAllItems(), FALSE, LLScrollListCtrl::getAllSelected(), LLInventoryModel::getItem(), gInventory, LLInventoryType::IT_CALLINGCARD, mAvatarIDs, mAvatarNames, mListNames, and TRUE.
void LLFloaterAvatarPicker::editKeystroke | ( | LLLineEditor * | caller, | |
void * | user_data | |||
) | [static] |
Definition at line 373 of file llfloateravatarpicker.cpp.
References FALSE, LLLineEditor::getText(), and TRUE.
Referenced by postBuild().
void LLFloaterAvatarPicker::find | ( | ) | [protected] |
Definition at line 258 of file llfloateravatarpicker.cpp.
References LLScrollListCtrl::addSimpleElement(), LLMessageSystem::addString(), LLMessageSystem::addUUID(), agent_get_id(), agent_get_session_id(), agent_send_reliable_message(), LLSD::asString(), LLPanel::childGetValue(), LLPanel::childSetEnabled(), LLScrollListCtrl::deleteAllItems(), FALSE, LLUUID::generate(), gMessageSystem, mListNames, mQueryID, mResultsReturned, LLMessageSystem::newMessage(), and LLMessageSystem::nextBlock().
BOOL LLFloaterAvatarPicker::handleKeyHere | ( | KEY | key, | |
MASK | mask, | |||
BOOL | called_from_parent | |||
) | [protected, virtual] |
Reimplemented from LLPanel.
Definition at line 387 of file llfloateravatarpicker.cpp.
References LLPanel::childHasFocus(), LLFloater::close(), LLPanel::handleKeyHere(), KEY_ESCAPE, KEY_RETURN, MASK_NONE, onBtnAdd(), onBtnFind(), and TRUE.
Definition at line 147 of file llfloateravatarpicker.cpp.
References FALSE, LLUUID::null, and TRUE.
Referenced by handleKeyHere(), and postBuild().
Definition at line 141 of file llfloateravatarpicker.cpp.
Referenced by handleKeyHere(), and postBuild().
Definition at line 176 of file llfloateravatarpicker.cpp.
References TRUE.
Referenced by postBuild().
void LLFloaterAvatarPicker::onSelectionChange | ( | const std::deque< LLFolderViewItem * > & | items, | |
BOOL | user_action, | |||
void * | data | |||
) | [static, protected] |
BOOL LLFloaterAvatarPicker::postBuild | ( | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 94 of file llfloateravatarpicker.cpp.
References LLScrollListCtrl::addSimpleElement(), LLAssetType::AT_CALLINGCARD, LLPanel::childDisable(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetDoubleClickCallback(), LLPanel::childSetFocus(), LLPanel::childSetKeystrokeCallback(), editKeystroke(), FALSE, LLPanel::getCtrlByNameAndType(), LLUICtrlFactory::getScrollListByName(), 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, TRUE, and WIDGET_TYPE_INVENTORY_PANEL.
void LLFloaterAvatarPicker::processAvatarPickerReply | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static] |
Definition at line 300 of file llfloateravatarpicker.cpp.
References _PREHASH_AvatarID, _PREHASH_Data, _PREHASH_FirstName, _PREHASH_LastName, agent_get_id(), DB_FIRST_NAME_BUF_SIZE, DB_LAST_NAME_BUF_SIZE, LLScrollListCtrl::deleteAllItems(), FALSE, LLMessageSystem::getNumberOfBlocks(), LLMessageSystem::getStringFast(), LLMessageSystem::getUUID(), LLMessageSystem::getUUIDFast(), i, LLUUID::isNull(), mListNames, S32, sInstance, and TRUE.
Referenced by register_viewer_callbacks().
Definition at line 286 of file llfloateravatarpicker.cpp.
References mAllowMultiple, mInventoryPanel, mListNames, LLScrollListCtrl::setAllowMultipleSelection(), and LLInventoryPanel::setAllowMultiSelect().
Referenced by postBuild(), and show().
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(), LLPanelLandBan::onClickAdd(), LLPanelLandAccess::onClickAdd(), LLPanelFriends::onClickAddFriend(), LLPanelDatabase::onClickChangeAvatar(), LLPanelRegionDebugInfo::onClickChooseAvatar(), LLPanelRegionGeneralInfo::onClickKick(), LLPanelEstateInfo::onClickKickUser(), LLFloaterMute::onClickPick(), LLFloaterReporter::onClickSelectAbuser(), and LLPanelObjectTools::onClickSet().
BOOL LLFloaterAvatarPicker::mAllowMultiple [protected] |
std::vector<LLUUID> LLFloaterAvatarPicker::mAvatarIDs [protected] |
std::vector<std::string> LLFloaterAvatarPicker::mAvatarNames [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] |
BOOL LLFloaterAvatarPicker::mCloseOnSelect [protected] |
LLInventoryPanel* LLFloaterAvatarPicker::mInventoryPanel [protected] |
Definition at line 81 of file llfloateravatarpicker.h.
Referenced by postBuild(), and setAllowMultiple().
LLScrollListCtrl* LLFloaterAvatarPicker::mListNames [protected] |
Definition at line 80 of file llfloateravatarpicker.h.
Referenced by doSelectionChange(), find(), postBuild(), processAvatarPickerReply(), and setAllowMultiple().
LLUUID LLFloaterAvatarPicker::mQueryID [protected] |
BOOL LLFloaterAvatarPicker::mResultsReturned [protected] |
LLFloaterAvatarPicker * LLFloaterAvatarPicker::sInstance = NULL [static, protected] |
Definition at line 94 of file llfloateravatarpicker.h.
Referenced by processAvatarPickerReply(), show(), and ~LLFloaterAvatarPicker().