LLFloaterAvatarPicker Class Reference

#include <llfloateravatarpicker.h>

Inheritance diagram for LLFloaterAvatarPicker:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterAvatarPicker:

Collaboration graph
[legend]
List of all members.

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 LLFloaterAvatarPickershow (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 voidcreateInventoryPanel (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

LLScrollListCtrlmListNames
LLInventoryPanelmInventoryPanel
std::vector< LLUUIDmAvatarIDs
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)
voidmCallbackUserdata

Static Protected Attributes

static LLFloaterAvatarPickersInstance = NULL

Detailed Description

Definition at line 48 of file llfloateravatarpicker.h.


Member Typedef Documentation

typedef void(*) LLFloaterAvatarPicker::callback_t(const std::vector< std::string > &, const std::vector< LLUUID > &, void *)

Definition at line 53 of file llfloateravatarpicker.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

static void* LLFloaterAvatarPicker::createInventoryPanel ( void userdata  )  [static, protected]

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.

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::onBtnFind ( void userdata  )  [static, protected]

Definition at line 141 of file llfloateravatarpicker.cpp.

Referenced by handleKeyHere(), and postBuild().

void LLFloaterAvatarPicker::onList ( LLUICtrl ctrl,
void userdata 
) [static, protected]

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]

Definition at line 204 of file llfloateravatarpicker.cpp.

Referenced by postBuild().

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().

void LLFloaterAvatarPicker::setAllowMultiple ( BOOL  allow_multiple  )  [protected]

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().


Member Data Documentation

BOOL LLFloaterAvatarPicker::mAllowMultiple [protected]

Definition at line 85 of file llfloateravatarpicker.h.

Referenced by setAllowMultiple().

std::vector<LLUUID> LLFloaterAvatarPicker::mAvatarIDs [protected]

Definition at line 83 of file llfloateravatarpicker.h.

Referenced by doSelectionChange().

std::vector<std::string> LLFloaterAvatarPicker::mAvatarNames [protected]

Definition at line 84 of file llfloateravatarpicker.h.

Referenced by doSelectionChange().

void(* LLFloaterAvatarPicker::mCallback)(const std::vector< std::string > &name, const std::vector< LLUUID > &id, void *userdata) [protected]

Referenced by show().

void* LLFloaterAvatarPicker::mCallbackUserdata [protected]

Definition at line 91 of file llfloateravatarpicker.h.

Referenced by show().

BOOL LLFloaterAvatarPicker::mCloseOnSelect [protected]

Definition at line 88 of file llfloateravatarpicker.h.

Referenced by show().

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]

Definition at line 86 of file llfloateravatarpicker.h.

Referenced by find().

BOOL LLFloaterAvatarPicker::mResultsReturned [protected]

Definition at line 87 of file llfloateravatarpicker.h.

Referenced by find().

LLFloaterAvatarPicker * LLFloaterAvatarPicker::sInstance = NULL [static, protected]

Definition at line 94 of file llfloateravatarpicker.h.

Referenced by processAvatarPickerReply(), show(), and ~LLFloaterAvatarPicker().


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