#include <llfloaterchat.h>
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) |
virtual void | setMinimized (BOOL) |
void | updateConsoleVisibility () |
Static Public Member Functions | |
static void | setHistoryCursorAndScrollToEnd () |
static void | addChat (const LLChat &chat, BOOL from_im=FALSE, 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 (LLLogChat::ELogLineType type, LLString line, void *userdata) |
static void | loadHistory () |
static void * | createSpeakersPanel (void *data) |
static void * | createChatPanel (void *data) |
static bool | visible (LLFloater *instance, const LLSD &key) |
static void | show (LLFloater *instance, const LLSD &key) |
static void | hide (LLFloater *instance, const LLSD &key) |
Public Attributes | |
LLPanelActiveSpeakers * | mPanel |
BOOL | mScrolledToEnd |
Definition at line 53 of file llfloaterchat.h.
LLFloaterChat::LLFloaterChat | ( | const LLSD & | seed | ) |
Definition at line 96 of file llfloaterchat.cpp.
References LLUICtrlFactory::buildFloater(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetVisible(), createChatPanel(), createSpeakersPanel(), FALSE, LLPanel::getFactoryMap(), LLSingleton< LLUICtrlFactory >::getInstance(), LLPanel::mFactoryMap, NULL, onClickToggleActiveSpeakers(), onClickToggleShowMute(), and LLPanel::setDefaultBtn().
LLFloaterChat::~LLFloaterChat | ( | ) |
Definition at line 113 of file llfloaterchat.cpp.
void LLFloaterChat::setVisible | ( | BOOL | b | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 118 of file llfloaterchat.cpp.
References gSavedSettings, LLControlGroup::setBOOL(), and LLFloater::setVisible().
Referenced by onClose().
void LLFloaterChat::draw | ( | void | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 125 of file llfloaterchat.cpp.
References LLPanel::childIsVisible(), LLPanel::childSetValue(), LLFloater::draw(), mPanel, LLChatBar::refresh(), LLPanelActiveSpeakers::refreshSpeakers(), and TRUE.
BOOL LLFloaterChat::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 141 of file llfloaterchat.cpp.
References mPanel, LLChatBar::setGestureCombo(), and TRUE.
void LLFloaterChat::onClose | ( | bool | app_quitting | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 154 of file llfloaterchat.cpp.
References FALSE, gSavedSettings, LLControlGroup::setBOOL(), and setVisible().
void LLFloaterChat::onVisibilityChange | ( | BOOL | cur_visibility | ) | [virtual] |
Reimplemented from LLView.
Definition at line 163 of file llfloaterchat.cpp.
References FALSE, LLUIFactory< LLFloaterChatterBox, LLUISingleton< LLFloaterChatterBox, LLFloaterChatterBox >, LLFloaterChatterBox >::getInstance(), LLView::onVisibilityChange(), LLMultiFloater::setFloaterFlashing(), and updateConsoleVisibility().
void LLFloaterChat::setMinimized | ( | BOOL | minimized | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 177 of file llfloaterchat.cpp.
References LLFloater::setMinimized(), and updateConsoleVisibility().
void LLFloaterChat::updateConsoleVisibility | ( | ) |
Definition at line 184 of file llfloaterchat.cpp.
References gConsole, LLFloater::getHost(), LLView::isInVisibleChain(), LLFloater::isMinimized(), and LLView::setVisible().
Referenced by onVisibilityChange(), LLFloaterChatterBox::setMinimized(), and setMinimized().
void LLFloaterChat::setHistoryCursorAndScrollToEnd | ( | ) | [static] |
Definition at line 283 of file llfloaterchat.cpp.
References LLView::getChild(), LLUIFactory< LLFloaterChat, LLUISingleton< LLFloaterChat, LLFloaterChat >, LLFloaterChat >::getInstance(), and LLTextEditor::setCursorAndScrollToEnd().
Referenced by LLChatBar::onInputEditorGainFocus().
void LLFloaterChat::addChat | ( | const LLChat & | chat, | |
BOOL | from_im = FALSE , |
|||
BOOL | local_agent = FALSE | |||
) | [static] |
Definition at line 348 of file llfloaterchat.cpp.
References addChatHistory(), LLConsole::addLine(), AddNewChatToLCD(), AddNewIMToLCD(), CHAT_MSG_SIZE, CHAT_SOURCE_SYSTEM, CHAT_TYPE_DEBUG_MSG, gConsole, get_text_color(), LLControlGroup::getBOOL(), LLControlGroup::getColor(), gSavedPerAccountSettings, gSavedSettings, INSTANT_MSG_SIZE, log_chat_text(), LLChat::mChatType, LLChat::mMuted, LLChat::mSourceType, and LLChat::mText.
Referenced by check_offer_throttle(), handle_selected_texture_info(), notify_automute_callback(), 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 226 of file llfloaterchat.cpp.
References add_timestamped_line(), LLFloaterScriptDebug::addScriptLine(), CHAT_SOURCE_AGENT, CHAT_SOURCE_OBJECT, CHAT_TYPE_DEBUG_MSG, get_text_color(), LLControlGroup::getBOOL(), LLView::getChild(), LLUIFactory< LLFloaterChatterBox, LLUISingleton< LLFloaterChatterBox, LLFloaterChatterBox >, LLFloaterChatterBox >::getInstance(), LLUIFactory< LLFloaterChat, LLUISingleton< LLFloaterChat, LLFloaterChat >, LLFloaterChat >::getInstance(), LLColor4::grey, gSavedPerAccountSettings, gSavedSettings, LLView::isInVisibleChain(), lerp(), log_chat_text(), LLChat::mChatType, LLChat::mFromID, LLChat::mFromName, LLChat::mMuted, mPanel, LLChat::mSourceType, LLChat::mText, LLMultiFloater::setFloaterFlashing(), LLTextEditor::setParseHTML(), LLPanelActiveSpeakers::setSpeaker(), LLSpeaker::SPEAKER_OBJECT, LLSpeaker::STATUS_NOT_IN_CHANNEL, and TRUE.
Referenced by addChat(), LLIMMgr::addSystemMessage(), chatFromLogFile(), inventory_offer_callback(), LLNotifyBox::LLNotifyBox(), process_agent_movement_complete(), and process_chat_from_simulator().
void LLFloaterChat::onClickMute | ( | void * | data | ) | [static] |
Definition at line 300 of file llfloaterchat.cpp.
References LLMuteList::add(), LLComboBox::getCurrentID(), LLMuteList::getInstance(), LLComboBox::getSimple(), LLMute::setFromDisplayName(), and LLUIFactory< LLFloaterMute, LLUISingleton< LLFloaterMute, VisibilityPolicy< LLFloater > >, VisibilityPolicy< LLFloater > >::showInstance().
void LLFloaterChat::onClickToggleShowMute | ( | LLUICtrl * | caller, | |
void * | data | |||
) | [static] |
Definition at line 319 of file llfloaterchat.cpp.
References FALSE, LLView::getChild(), LLTextEditor::setCursorAndScrollToEnd(), LLView::setVisible(), and TRUE.
Referenced by LLFloaterChat().
void LLFloaterChat::onClickToggleActiveSpeakers | ( | void * | userdata | ) | [static] |
Definition at line 500 of file llfloaterchat.cpp.
Referenced by LLFloaterChat().
void LLFloaterChat::chatFromLogFile | ( | LLLogChat::ELogLineType | type, | |
LLString | line, | |||
void * | userdata | |||
) | [static] |
Definition at line 465 of file llfloaterchat.cpp.
References addChatHistory(), FALSE, LLLogChat::LOG_EMPTY, LLLogChat::LOG_END, LLLogChat::LOG_LINE, and LLChat::mText.
Referenced by loadHistory().
void LLFloaterChat::loadHistory | ( | ) | [static] |
Definition at line 459 of file llfloaterchat.cpp.
References chatFromLogFile(), LLUIFactory< LLFloaterChat, LLUISingleton< LLFloaterChat, LLFloaterChat >, LLFloaterChat >::getInstance(), and LLLogChat::loadHistory().
Referenced by LLViewerWindow::initWorldUI().
void * LLFloaterChat::createSpeakersPanel | ( | void * | data | ) | [static] |
Definition at line 487 of file llfloaterchat.cpp.
References LLSingleton< LLLocalSpeakerMgr >::getInstance(), and TRUE.
Referenced by LLFloaterChat().
void * LLFloaterChat::createChatPanel | ( | void * | data | ) | [static] |
Definition at line 493 of file llfloaterchat.cpp.
Referenced by LLFloaterChat().
Definition at line 508 of file llfloaterchat.cpp.
References VisibilityPolicy< T >::visible().
Definition at line 514 of file llfloaterchat.cpp.
References VisibilityPolicy< T >::show().
Definition at line 520 of file llfloaterchat.cpp.
References LLFloater::getHost(), VisibilityPolicy< T >::hide(), and LLUIFactory< LLFloaterChatterBox, LLUISingleton< LLFloaterChatterBox, LLFloaterChatterBox >, LLFloaterChatterBox >::hideInstance().
Definition at line 90 of file llfloaterchat.h.
Referenced by addChatHistory(), draw(), and postBuild().
Definition at line 91 of file llfloaterchat.h.