LLChatBar Class Reference

#include <llchatbar.h>

Inheritance diagram for LLChatBar:

Inheritance graph
[legend]
Collaboration diagram for LLChatBar:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLChatBar ()
 ~LLChatBar ()
virtual BOOL postBuild ()
virtual BOOL handleKeyHere (KEY key, MASK mask)
void refresh ()
void refreshGestures ()
void setKeyboardFocus (BOOL b)
void setIgnoreArrowKeys (BOOL b)
BOOL inputEditorHasFocus ()
LLString getCurrentChat ()
void setGestureCombo (LLComboBox *combo)
void sendChatFromViewer (const LLWString &wtext, EChatType type, BOOL animate)
void sendChatFromViewer (const std::string &utf8text, EChatType type, BOOL animate)
LLWString stripChannelNumber (const LLWString &mesg, S32 *channel)

Static Public Member Functions

static void onClickSay (LLUICtrl *, void *userdata)
static void onTabClick (void *userdata)
static void onInputEditorKeystroke (LLLineEditor *caller, void *userdata)
static void onInputEditorFocusLost (LLFocusableElement *caller, void *userdata)
static void onInputEditorGainFocus (LLFocusableElement *caller, void *userdata)
static void onCommitGesture (LLUICtrl *ctrl, void *data)
static void startChat (const char *line)
static void stopChat ()

Protected Member Functions

void sendChat (EChatType type)
void updateChat ()

Protected Attributes

LLLineEditormInputEditor
LLFrameTimer mGestureLabelTimer
S32 mLastSpecialChatChannel
BOOL mIsBuilt
LLComboBoxmGestureCombo
LLChatBarGestureObservermObserver


Detailed Description

Definition at line 47 of file llchatbar.h.


Constructor & Destructor Documentation

LLChatBar::LLChatBar (  ) 

Definition at line 98 of file llchatbar.cpp.

References LLPanel::childDisplayNotFound(), LLUICtrl::setIsChrome(), and TRUE.

Here is the call graph for this function:

LLChatBar::~LLChatBar (  ) 

Definition at line 115 of file llchatbar.cpp.

References mObserver, and NULL.


Member Function Documentation

BOOL LLChatBar::postBuild ( void   )  [virtual]

BOOL LLChatBar::handleKeyHere ( KEY  key,
MASK  mask 
) [virtual]

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.

Here is the call graph for this function:

void LLChatBar::refresh (  )  [virtual]

void LLChatBar::refreshGestures (  ) 

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLChatBar::setIgnoreArrowKeys ( BOOL  b  ) 

Definition at line 289 of file llchatbar.cpp.

References mInputEditor, and LLLineEditor::setIgnoreArrowKeys().

Here is the call graph for this function:

BOOL LLChatBar::inputEditorHasFocus (  ) 

Definition at line 297 of file llchatbar.cpp.

References LLUICtrl::hasFocus(), and mInputEditor.

Referenced by LLViewerWindow::handleKey().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLChatBar::sendChatFromViewer ( const LLWString wtext,
EChatType  type,
BOOL  animate 
)

void LLChatBar::sendChatFromViewer ( const std::string &  utf8text,
EChatType  type,
BOOL  animate 
)

Definition at line 567 of file llchatbar.cpp.

References sendChatFromViewer(), and utf8str_to_wstring().

Here is the call graph for this function:

LLWString LLChatBar::stripChannelNumber ( const LLWString mesg,
S32 channel 
)

Definition at line 330 of file llchatbar.cpp.

References LLStringOps::isDigit(), mLastSpecialChatChannel, NULL, S32, and wstring_to_utf8str().

Referenced by sendChat(), and sendChatFromViewer().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLChatBar::onInputEditorFocusLost ( LLFocusableElement caller,
void *  userdata 
) [static]

Definition at line 541 of file llchatbar.cpp.

References gAgent, and LLAgent::stopTyping().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLChatBar::onInputEditorGainFocus ( LLFocusableElement caller,
void *  userdata 
) [static]

Definition at line 548 of file llchatbar.cpp.

References LLFloaterChat::setHistoryCursorAndScrollToEnd().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLChatBar::sendChat ( EChatType  type  )  [protected]

void LLChatBar::updateChat (  )  [protected]


Member Data Documentation

Definition at line 103 of file llchatbar.h.

Referenced by refresh().

Definition at line 106 of file llchatbar.h.

Referenced by stripChannelNumber().

Definition at line 108 of file llchatbar.h.

Referenced by postBuild().

Definition at line 109 of file llchatbar.h.

Referenced by refresh(), refreshGestures(), and setGestureCombo().

Definition at line 111 of file llchatbar.h.

Referenced by setGestureCombo(), and ~LLChatBar().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:39:47 2008 for SecondLife by  doxygen 1.5.5