#include <llchatbar.h>
Definition at line 47 of file llchatbar.h.
LLChatBar::LLChatBar | ( | ) |
Definition at line 98 of file llchatbar.cpp.
References LLPanel::childDisplayNotFound(), LLUICtrl::setIsChrome(), and TRUE.
LLChatBar::~LLChatBar | ( | ) |
BOOL LLChatBar::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 122 of file llchatbar.cpp.
References LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), FALSE, mInputEditor, mIsBuilt, onClickSay(), onInputEditorFocusLost(), onInputEditorGainFocus(), onInputEditorKeystroke(), LLUICtrl::setCallbackUserData(), LLLineEditor::setCommitOnFocusLost(), LLPanel::setDefaultBtn(), LLLineEditor::setEnableLineHistory(), LLFocusableElement::setFocusLostCallback(), LLFocusableElement::setFocusReceivedCallback(), setGestureCombo(), LLLineEditor::setIgnoreTab(), LLLineEditor::setKeystrokeCallback(), LLLineEditor::setMaxTextLength(), LLLineEditor::setPassDelete(), LLLineEditor::setReplaceNewlinesWithSpaces(), LLLineEditor::setRevertOnEsc(), toggleChatHistory(), and TRUE.
Reimplemented from LLPanel.
Definition at line 163 of file llchatbar.cpp.
References CHAT_TYPE_NORMAL, CHAT_TYPE_SHOUT, FALSE, KEY_ESCAPE, KEY_RETURN, MASK_CONTROL, MASK_NONE, sendChat(), stopChat(), and TRUE.
void LLChatBar::refresh | ( | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 194 of file llchatbar.cpp.
References AGENT_STATE_TYPING, AGENT_TYPING_TIMEOUT, LLPanel::childSetEnabled(), LLPanel::childSetValue(), gAgent, LLFrameTimer::getElapsedTimeF32(), LLComboBox::getListInterface(), LLAgent::getRenderState(), LLFrameTimer::getStarted(), LLLineEditor::getText(), LLAgent::getTypingTime(), LLUIFactory< LLFloaterChat, LLUISingleton< LLFloaterChat, LLFloaterChat >, LLFloaterChat >::instanceVisible(), mGestureCombo, mGestureLabelTimer, mInputEditor, NULL, LLCtrlSelectionInterface::selectFirstItem(), LLFrameTimer::stop(), and LLAgent::stopTyping().
Referenced by LLFloaterChat::draw(), and LLViewerWindow::handlePerFrameHover().
void LLChatBar::refreshGestures | ( | ) |
Definition at line 217 of file llchatbar.cpp.
References ADD_TOP, LLCtrlListInterface::addSimpleElement(), LLSD::asString(), LLCtrlListInterface::clearRows(), LLComboBox::getListInterface(), LLComboBox::getValue(), gGestureManager, LLGestureManager::mActive, mGestureCombo, LLMultiGesture::mTrigger, NULL, LLCtrlSelectionInterface::selectByValue(), LLCtrlSelectionInterface::selectFirstItem(), LLCtrlListInterface::sortByColumn(), and TRUE.
Referenced by LLChatBarGestureObserver::changed(), and setGestureCombo().
void LLChatBar::setKeyboardFocus | ( | BOOL | b | ) |
Definition at line 267 of file llchatbar.cpp.
References LLFocusMgr::childHasKeyboardFocus(), LLLineEditor::deselect(), FALSE, gFocusMgr, mInputEditor, LLLineEditor::selectAll(), LLPanel::setFocus(), LLLineEditor::setFocus(), and TRUE.
Referenced by startChat(), and stopChat().
void LLChatBar::setIgnoreArrowKeys | ( | BOOL | b | ) |
Definition at line 289 of file llchatbar.cpp.
References mInputEditor, and LLLineEditor::setIgnoreArrowKeys().
BOOL LLChatBar::inputEditorHasFocus | ( | ) |
Definition at line 297 of file llchatbar.cpp.
References LLUICtrl::hasFocus(), and mInputEditor.
Referenced by LLViewerWindow::handleKey().
LLString LLChatBar::getCurrentChat | ( | ) |
Definition at line 302 of file llchatbar.cpp.
References LLLineEditor::getText(), mInputEditor, and LLStringBase< char >::null.
Referenced by LLViewerWindow::handleKey(), and start_gesture().
void LLChatBar::setGestureCombo | ( | LLComboBox * | combo | ) |
Definition at line 307 of file llchatbar.cpp.
References LLGestureManager::addObserver(), gGestureManager, mGestureCombo, mObserver, onCommitGesture(), refreshGestures(), LLUICtrl::setCallbackUserData(), and LLUICtrl::setCommitCallback().
Referenced by LLFloaterChat::postBuild(), and postBuild().
Definition at line 572 of file llchatbar.cpp.
References ANIM_AGENT_SHOUT, ANIM_AGENT_TALK, ANIM_AGENT_WHISPER, ANIM_REQUEST_START, CHAT_TYPE_NORMAL, CHAT_TYPE_SHOUT, CHAT_TYPE_START, CHAT_TYPE_STOP, CHAT_TYPE_WHISPER, gAgent, lldebugs, llendl, llinfos, MAX_STRING, S32, send_chat_from_viewer(), LLAgent::sendAnimationRequest(), stripChannelNumber(), utf8str_trim(), utf8str_truncate(), and wstring_to_utf8str().
Referenced by LLViewerGesture::doTrigger(), LLGestureManager::runStep(), sendChat(), sendChatFromViewer(), LLAgent::startTyping(), and LLAgent::stopTyping().
Definition at line 567 of file llchatbar.cpp.
References sendChatFromViewer(), and utf8str_to_wstring().
Definition at line 330 of file llchatbar.cpp.
References LLStringOps::isDigit(), mLastSpecialChatChannel, NULL, S32, and wstring_to_utf8str().
Referenced by sendChat(), and sendChatFromViewer().
void LLChatBar::onClickSay | ( | LLUICtrl * | ctrl, | |
void * | userdata | |||
) | [static] |
Definition at line 554 of file llchatbar.cpp.
References LLSD::asString(), CHAT_TYPE_NORMAL, CHAT_TYPE_SHOUT, and LLUICtrl::getValue().
Referenced by postBuild().
static void LLChatBar::onTabClick | ( | void * | userdata | ) | [static] |
void LLChatBar::onInputEditorKeystroke | ( | LLLineEditor * | caller, | |
void * | userdata | |||
) | [static] |
Definition at line 471 of file llchatbar.cpp.
References LLKeyboard::currentKey(), gAgent, gGestureManager, gKeyboard, KEY_SPECIAL, LLGestureManager::matchPrefix(), S32, LLAgent::startTyping(), LLAgent::stopTyping(), LLStringBase< T >::trimHead(), and wstring_to_utf8str().
Referenced by postBuild().
void LLChatBar::onInputEditorFocusLost | ( | LLFocusableElement * | caller, | |
void * | userdata | |||
) | [static] |
Definition at line 541 of file llchatbar.cpp.
References gAgent, and LLAgent::stopTyping().
Referenced by postBuild().
void LLChatBar::onInputEditorGainFocus | ( | LLFocusableElement * | caller, | |
void * | userdata | |||
) | [static] |
Definition at line 548 of file llchatbar.cpp.
References LLFloaterChat::setHistoryCursorAndScrollToEnd().
Referenced by postBuild().
void LLChatBar::onCommitGesture | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static] |
Definition at line 640 of file llchatbar.cpp.
References LLSD::asString(), CHAT_TYPE_NORMAL, FALSE, LLCtrlSelectionInterface::getFirstSelectedIndex(), LLCtrlSelectionInterface::getSelectedValue(), gGestureManager, NULL, S32, LLGestureManager::triggerAndReviseString(), and utf8str_trim().
Referenced by setGestureCombo().
void LLChatBar::startChat | ( | const char * | line | ) | [static] |
Definition at line 433 of file llchatbar.cpp.
References gSavedSettings, mInputEditor, LLControlGroup::setBOOL(), LLLineEditor::setCursorToEnd(), setKeyboardFocus(), LLLineEditor::setText(), LLView::setVisible(), and TRUE.
Referenced by handle_chat(), handle_slash_key(), LLViewerWindow::handlePerFrameHover(), start_chat(), and start_gesture().
void LLChatBar::stopChat | ( | ) | [static] |
Definition at line 451 of file llchatbar.cpp.
References FALSE, gAgent, gKeyboard, gSavedSettings, LLKeyboard::resetKeys(), LLKeyboard::resetMaskKeys(), LLControlGroup::setBOOL(), setKeyboardFocus(), LLView::setVisible(), and LLAgent::stopTyping().
Referenced by handle_chat(), handleKeyHere(), and sendChat().
void LLChatBar::sendChat | ( | EChatType | type | ) | [protected] |
Definition at line 380 of file llchatbar.cpp.
References LLPanel::childSetValue(), gAgent, LLControlGroup::getBOOL(), LLLineEditor::getWText(), gGestureManager, gSavedSettings, mInputEditor, LLStringBase< char >::null, S32, sendChatFromViewer(), stopChat(), LLAgent::stopTyping(), stripChannelNumber(), LLGestureManager::triggerAndReviseString(), LLStringBase< T >::trim(), TRUE, LLLineEditor::updateHistory(), utf8str_trim(), and wstring_to_utf8str().
Referenced by handleKeyHere().
void LLChatBar::updateChat | ( | ) | [protected] |
LLLineEditor* LLChatBar::mInputEditor [protected] |
Definition at line 101 of file llchatbar.h.
Referenced by getCurrentChat(), inputEditorHasFocus(), postBuild(), refresh(), sendChat(), setIgnoreArrowKeys(), setKeyboardFocus(), and startChat().
LLFrameTimer LLChatBar::mGestureLabelTimer [protected] |
S32 LLChatBar::mLastSpecialChatChannel [protected] |
BOOL LLChatBar::mIsBuilt [protected] |
LLComboBox* LLChatBar::mGestureCombo [protected] |
Definition at line 109 of file llchatbar.h.
Referenced by refresh(), refreshGestures(), and setGestureCombo().
LLChatBarGestureObserver* LLChatBar::mObserver [protected] |