LLFloaterChat Class Reference

#include <llfloaterchat.h>

Inheritance diagram for LLFloaterChat:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterChat:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLFloaterChat (const LLSD &seed)
 ~LLFloaterChat ()
virtual void setVisible (BOOL b)
virtual void draw ()
virtual BOOL postBuild ()
virtual void onClose (bool app_quitting)
virtual void onVisibilityChange (BOOL cur_visibility)
LLString getChatAvatar (const LLChat &chat)
LLString getAvatarName (const LLUUID &speakerID, const LLString &speakerName)

Static Public Member Functions

static void setHistoryCursorAndScrollToEnd ()
static void addChat (const LLChat &chat, BOOL local_agent=FALSE)
static void addChatHistory (const LLChat &chat, bool log_to_file=true)
static void onClickMute (void *data)
static void onClickToggleShowMute (LLUICtrl *caller, void *data)
static void onClickToggleActiveSpeakers (void *userdata)
static void chatFromLogFile (LLString line, void *userdata)
static void loadHistory ()
static voidcreateSpeakersPanel (void *data)
static voidcreateChatPanel (void *data)
static void hideInstance (const LLSD &id)
static LLString getChatPosition (const LLChat &chat)
static void cache_name_callback (const LLUUID &, const char *first, const char *last, BOOL is_group, void *data)
static void requestObjectOwner (const LLUUID &object_id, const LLHost &host)
static void processObjectPropertiesFamily (LLMessageSystem *msg, void **user_data)

Protected Attributes

LLPanelActiveSpeakersmPanel
std::deque< LLNameLookupEntrymLookupQueue
std::map< LLUUID, LLOwnerCacheEntrymObjectOwners

Detailed Description

Definition at line 75 of file llfloaterchat.h.


Constructor & Destructor Documentation

LLFloaterChat::LLFloaterChat ( const LLSD seed  ) 

Definition at line 104 of file llfloaterchat.cpp.

References LLUICtrlFactory::buildFloater(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetVisible(), createChatPanel(), createSpeakersPanel(), FALSE, LLPanel::getFactoryMap(), gUICtrlFactory, LLPanel::mFactoryMap, NULL, onClickToggleActiveSpeakers(), onClickToggleShowMute(), and LLPanel::setDefaultBtn().

LLFloaterChat::~LLFloaterChat (  ) 

Definition at line 121 of file llfloaterchat.cpp.


Member Function Documentation

void LLFloaterChat::addChat ( const LLChat chat,
BOOL  local_agent = FALSE 
) [static]

Definition at line 550 of file llfloaterchat.cpp.

References addChatHistory(), LLConsole::addLine(), AddNewChatToLCD(), AddNewIMToLCD(), CHAT_MSG_SIZE, CHAT_SOURCE_AGENT, CHAT_TYPE_DEBUG_MSG, gConsole, get_text_color(), LLControlGroup::getBOOL(), gSavedPerAccountSettings, gSavedSettings, INSTANT_MSG_COLOR, INSTANT_MSG_SIZE, log_chat_text(), LLChat::mChatType, LLChat::mFromIM, LLChat::mMuted, LLChat::mSourceType, LLChat::mText, and size.

Referenced by check_offer_throttle(), handle_selected_texture_info(), notify_cautioned_script_question(), LLViewerChatterBoxInvitation::post(), process_chat_from_simulator(), process_improved_im(), LLFloaterCompileQueue::scriptArrived(), and trigger_hippo_bug().

void LLFloaterChat::addChatHistory ( const LLChat chat,
bool  log_to_file = true 
) [static]

Definition at line 396 of file llfloaterchat.cpp.

References add_timestamped_line(), LLFloaterScriptDebug::addScriptLine(), CHAT_SOURCE_OBJECT, CHAT_TYPE_DEBUG_MSG, f, get_text_color(), LLControlGroup::getBOOL(), getChatPosition(), LLUICtrlFactory::getCheckBoxByName(), LLPanel::getChildByName(), LLUIInstanceMgr< LLFloaterChat, LLFloaterChat >::getInstance(), LLColor4::grey, gSavedPerAccountSettings, gSavedSettings, LLUUID::isNull(), lerp(), log_chat_text(), LLChat::mChatType, LLChat::mFromID, LLChat::mFromIM, LLChat::mFromName, LLChat::mMuted, LLChat::mSourceType, LLChat::mText, LLTextEditor::setParseHTML(), LLSpeaker::SPEAKER_OBJECT, LLSpeaker::STATUS_NOT_IN_CHANNEL, and TRUE.

Referenced by addChat(), LLIMMgr::addSystemMessage(), cache_name_callback(), chatFromLogFile(), inventory_offer_callback(), LLNotifyBox::LLNotifyBox(), process_chat_from_simulator(), and processObjectPropertiesFamily().

void LLFloaterChat::cache_name_callback ( const LLUUID ,
const char *  first,
const char *  last,
BOOL  is_group,
void data 
) [static]

Definition at line 363 of file llfloaterchat.cpp.

References addChatHistory(), llendl, llwarns, LLChat::mFromName, and mLookupQueue.

Referenced by getAvatarName().

void LLFloaterChat::chatFromLogFile ( LLString  line,
void userdata 
) [static]

Definition at line 664 of file llfloaterchat.cpp.

References addChatHistory(), FALSE, and LLChat::mText.

Referenced by loadHistory().

void * LLFloaterChat::createChatPanel ( void data  )  [static]

Definition at line 679 of file llfloaterchat.cpp.

Referenced by LLFloaterChat().

void * LLFloaterChat::createSpeakersPanel ( void data  )  [static]

Definition at line 673 of file llfloaterchat.cpp.

References gLocalSpeakerMgr, and TRUE.

Referenced by LLFloaterChat().

void LLFloaterChat::draw (  )  [virtual]

Reimplemented from LLFloater.

Definition at line 133 of file llfloaterchat.cpp.

References LLPanel::childIsVisible(), LLPanel::childSetValue(), LLFloater::draw(), LLPanel::getChildByName(), mPanel, LLChatBar::refresh(), LLPanelActiveSpeakers::refreshSpeakers(), and TRUE.

LLString LLFloaterChat::getAvatarName ( const LLUUID speakerID,
const LLString speakerName 
)

Definition at line 231 of file llfloaterchat.cpp.

References cache_name_callback(), DB_FIRST_NAME_BUF_SIZE, FALSE, gCacheName, LLCacheName::get(), LLCacheName::getName(), LLUUID::isNull(), mLookupQueue, and S32.

Referenced by getChatAvatar(), and processObjectPropertiesFamily().

LLString LLFloaterChat::getChatAvatar ( const LLChat chat  ) 

Definition at line 204 of file llfloaterchat.cpp.

References CHAT_SOURCE_AGENT, getAvatarName(), LLUUID::isNull(), LLChat::mFromID, LLChat::mFromIM, LLChat::mFromName, mObjectOwners, LLChat::mSourceHost, LLChat::mSourceType, and requestObjectOwner().

LLString LLFloaterChat::getChatPosition ( const LLChat chat  )  [static]

Definition at line 386 of file llfloaterchat.cpp.

References LLRegionNameCache::get(), gRegionNameCache, LLUUID::isNull(), llformat(), LLChat::mPosAgent, LLChat::mRegionID, LLVector3::mV, VX, VY, and VZ.

Referenced by addChatHistory().

void LLFloaterChat::hideInstance ( const LLSD id  )  [static]

Reimplemented from LLUIInstanceMgr< LLFloaterChat, LLFloaterChat >.

Definition at line 686 of file llfloaterchat.cpp.

References LLFloater::getHost(), LLUIInstanceMgr< LLFloaterChat, LLFloaterChat >::getInstance(), LLUIInstanceMgr< T, INSTANCE_ADAPTOR >::hideInstance(), and LLUIInstanceMgr< LLFloaterChatterBox, LLFloaterChatterBox >::hideInstance().

void LLFloaterChat::loadHistory (  )  [static]

Definition at line 658 of file llfloaterchat.cpp.

References chatFromLogFile(), LLUIInstanceMgr< LLFloaterChat, LLFloaterChat >::getInstance(), and LLLogChat::loadHistory().

Referenced by LLViewerWindow::initWorldUI().

void LLFloaterChat::onClickMute ( void data  )  [static]

Definition at line 499 of file llfloaterchat.cpp.

References LLMuteList::add(), LLUICtrlFactory::getComboBoxByName(), LLComboBox::getCurrentID(), LLComboBox::getSimple(), gFloaterMute, gMuteListp, LLMute::setFromDisplayName(), and LLFloaterMute::show().

void LLFloaterChat::onClickToggleActiveSpeakers ( void userdata  )  [static]

Definition at line 701 of file llfloaterchat.cpp.

Referenced by LLFloaterChat().

void LLFloaterChat::onClickToggleShowMute ( LLUICtrl caller,
void data 
) [static]

Definition at line 521 of file llfloaterchat.cpp.

References FALSE, LLCheckBoxCtrl::get(), LLUICtrlFactory::getCheckBoxByName(), LLPanel::getChildByName(), LLTextEditor::setCursorAndScrollToEnd(), LLView::setVisible(), and TRUE.

Referenced by LLFloaterChat().

void LLFloaterChat::onClose ( bool  app_quitting  )  [virtual]

Reimplemented from LLFloater.

Definition at line 162 of file llfloaterchat.cpp.

References FALSE, gSavedSettings, LLControlGroup::setBOOL(), and setVisible().

void LLFloaterChat::onVisibilityChange ( BOOL  cur_visibility  )  [virtual]

Reimplemented from LLView.

Definition at line 171 of file llfloaterchat.cpp.

References gConsole, LLView::onVisibilityChange(), and LLView::setVisible().

BOOL LLFloaterChat::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 149 of file llfloaterchat.cpp.

References LLPanel::getChildByName(), LLUICtrlFactory::getComboBoxByName(), LLUICtrlFactory::getPanelByName(), mPanel, LLChatBar::setGestureCombo(), and TRUE.

void LLFloaterChat::processObjectPropertiesFamily ( LLMessageSystem msg,
void **  user_data 
) [static]

Definition at line 322 of file llfloaterchat.cpp.

References _PREHASH_ObjectData, _PREHASH_ObjectID, _PREHASH_OwnerID, _PREHASH_RequestFlags, addChatHistory(), getAvatarName(), LLUIInstanceMgr< LLFloaterChat, LLFloaterChat >::getInstance(), LLMessageSystem::getU32Fast(), LLMessageSystem::getUUIDFast(), llendl, llinfos, mObjectOwners, and LLUUID::null.

void LLFloaterChat::requestObjectOwner ( const LLUUID object_id,
const LLHost host 
) [static]

Definition at line 288 of file llfloaterchat.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_ObjectData, _PREHASH_ObjectID, _PREHASH_RequestFlags, _PREHASH_RequestObjectPropertiesFamily, _PREHASH_SessionID, LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, LLUUID::isNull(), llendl, llinfos, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), and LLMessageSystem::sendReliable().

Referenced by getChatAvatar().

void LLFloaterChat::setHistoryCursorAndScrollToEnd (  )  [static]

Definition at line 488 of file llfloaterchat.cpp.

References LLPanel::getChildByName(), LLUIInstanceMgr< LLFloaterChat, LLFloaterChat >::getInstance(), LLTextEditor::setCursorAndScrollToEnd(), and TRUE.

Referenced by LLChatBar::onInputEditorGainFocus().

void LLFloaterChat::setVisible ( BOOL  b  )  [virtual]

Reimplemented from LLFloater.

Definition at line 126 of file llfloaterchat.cpp.

References gSavedSettings, LLControlGroup::setBOOL(), and LLFloater::setVisible().

Referenced by onClose().


Member Data Documentation

std::deque<LLNameLookupEntry> LLFloaterChat::mLookupQueue [protected]

Definition at line 115 of file llfloaterchat.h.

Referenced by cache_name_callback(), and getAvatarName().

std::map<LLUUID, LLOwnerCacheEntry> LLFloaterChat::mObjectOwners [protected]

Definition at line 116 of file llfloaterchat.h.

Referenced by getChatAvatar(), and processObjectPropertiesFamily().

LLPanelActiveSpeakers* LLFloaterChat::mPanel [protected]

Definition at line 114 of file llfloaterchat.h.

Referenced by draw(), and postBuild().


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