LLLineEditor Class Reference

#include <lllineeditor.h>

Inheritance diagram for LLLineEditor:

Inheritance graph
[legend]
Collaboration diagram for LLLineEditor:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLLineEditor (const LLString &name, const LLRect &rect, const LLString &default_text=LLString::null, const LLFontGL *glfont=NULL, S32 max_length_bytes=254, void(*commit_callback)(LLUICtrl *caller, void *user_data)=NULL, void(*keystroke_callback)(LLLineEditor *caller, void *user_data)=NULL, void(*focus_lost_callback)(LLFocusableElement *caller, void *user_data)=NULL, void *userdata=NULL, LLLinePrevalidateFunc prevalidate_func=NULL, LLViewBorder::EBevel border_bevel=LLViewBorder::BEVEL_IN, LLViewBorder::EStyle border_style=LLViewBorder::STYLE_LINE, S32 border_thickness=1)
virtual ~LLLineEditor ()
virtual LLXMLNodePtr getXML (bool save_children=true) const
void setColorParameters (LLXMLNodePtr node)
BOOL handleMouseDown (S32 x, S32 y, MASK mask)
BOOL handleMouseUp (S32 x, S32 y, MASK mask)
BOOL handleHover (S32 x, S32 y, MASK mask)
BOOL handleDoubleClick (S32 x, S32 y, MASK mask)
BOOL handleKeyHere (KEY key, MASK mask)
BOOL handleUnicodeCharHere (llwchar uni_char)
void onMouseCaptureLost ()
virtual void cut ()
virtual BOOL canCut () const
virtual void copy ()
virtual BOOL canCopy () const
virtual void paste ()
virtual BOOL canPaste () const
virtual void doDelete ()
virtual BOOL canDoDelete () const
virtual void selectAll ()
virtual BOOL canSelectAll () const
virtual void deselect ()
virtual BOOL canDeselect () const
virtual void draw ()
virtual void reshape (S32 width, S32 height, BOOL called_from_parent=TRUE)
virtual void onFocusReceived ()
virtual void onFocusLost ()
virtual void setEnabled (BOOL enabled)
virtual void clear ()
virtual void onTabInto ()
virtual void setFocus (BOOL b)
virtual void setRect (const LLRect &rect)
virtual BOOL acceptsTextInput () const
virtual void onCommit ()
virtual BOOL isDirty () const
virtual void resetDirty ()
virtual void setValue (const LLSD &value)
virtual LLSD getValue () const
virtual BOOL setTextArg (const LLString &key, const LLStringExplicit &text)
virtual BOOL setLabelArg (const LLString &key, const LLStringExplicit &text)
void setLabel (const LLStringExplicit &new_label)
void setText (const LLStringExplicit &new_text)
const LLStringgetText () const
const LLWStringgetWText () const
S32 getLength () const
S32 getCursor () const
void setCursor (S32 pos)
void setCursorToEnd ()
void setSelection (S32 start, S32 end)
void setCommitOnFocusLost (BOOL b)
void setRevertOnEsc (BOOL b)
void setCursorColor (const LLColor4 &c)
const LLColor4getCursorColor () const
void setFgColor (const LLColor4 &c)
void setReadOnlyFgColor (const LLColor4 &c)
void setTentativeFgColor (const LLColor4 &c)
void setWriteableBgColor (const LLColor4 &c)
void setReadOnlyBgColor (const LLColor4 &c)
void setFocusBgColor (const LLColor4 &c)
const LLColor4getFgColor () const
const LLColor4getReadOnlyFgColor () const
const LLColor4getTentativeFgColor () const
const LLColor4getWriteableBgColor () const
const LLColor4getReadOnlyBgColor () const
const LLColor4getFocusBgColor () const
void setIgnoreArrowKeys (BOOL b)
void setIgnoreTab (BOOL b)
void setPassDelete (BOOL b)
void setDrawAsterixes (BOOL b)
S32 prevWordPos (S32 cursorPos) const
S32 nextWordPos (S32 cursorPos) const
BOOL hasSelection () const
void startSelection ()
void endSelection ()
void extendSelection (S32 new_cursor_pos)
void deleteSelection ()
void setHandleEditKeysDirectly (BOOL b)
void setSelectAllonFocusReceived (BOOL b)
void setKeystrokeCallback (void(*keystroke_callback)(LLLineEditor *caller, void *user_data))
void setMaxTextLength (S32 max_text_length)
void setTextPadding (S32 left, S32 right)
void setPrevalidate (BOOL(*func)(const LLWString &))
void setEnableLineHistory (BOOL enabled)
void updateHistory ()
void setReplaceNewlinesWithSpaces (BOOL replace)

Static Public Member Functions

static LLViewfromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory)
static void cleanupClass ()
static BOOL isPartOfWord (llwchar c)
static BOOL prevalidateFloat (const LLWString &str)
static BOOL prevalidateInt (const LLWString &str)
static BOOL prevalidatePositiveS32 (const LLWString &str)
static BOOL prevalidateNonNegativeS32 (const LLWString &str)
static BOOL prevalidateAlphaNum (const LLWString &str)
static BOOL prevalidateAlphaNumSpace (const LLWString &str)
static BOOL prevalidatePrintableNotPipe (const LLWString &str)
static BOOL prevalidatePrintableNoSpace (const LLWString &str)
static BOOL prevalidateASCII (const LLWString &str)
static BOOL postvalidateFloat (const LLString &str)

Protected Attributes

LLUIString mText
LLString mPrevText
LLUIString mLabel
BOOL mHaveHistory
std::vector< LLStringmLineHistory
U32 mCurrentHistoryLine
LLViewBordermBorder
const LLFontGLmGLFont
S32 mMaxLengthBytes
S32 mCursorPos
S32 mScrollHPos
LLFrameTimer mScrollTimer
S32 mTextPadLeft
S32 mTextPadRight
S32 mMinHPixels
S32 mMaxHPixels
BOOL mCommitOnFocusLost
BOOL mRevertOnEsc
void(* mKeystrokeCallback )(LLLineEditor *caller, void *userdata)
BOOL mIsSelecting
S32 mSelectionStart
S32 mSelectionEnd
S32 mLastSelectionX
S32 mLastSelectionY
S32 mLastSelectionStart
S32 mLastSelectionEnd
S32(* mPrevalidateFunc )(const LLWString &str)
LLFrameTimer mKeystrokeTimer
LLColor4 mCursorColor
LLColor4 mFgColor
LLColor4 mReadOnlyFgColor
LLColor4 mTentativeFgColor
LLColor4 mWriteableBgColor
LLColor4 mReadOnlyBgColor
LLColor4 mFocusBgColor
S32 mBorderThickness
BOOL mIgnoreArrowKeys
BOOL mIgnoreTab
BOOL mDrawAsterixes
BOOL mHandleEditKeysDirectly
BOOL mSelectAllonFocusReceived
BOOL mPassDelete
BOOL mReadOnly
LLWString mPreeditWString
LLWString mPreeditOverwrittenWString
std::vector< S32mPreeditPositions
LLPreeditor::standouts_t mPreeditStandouts

Private Member Functions

void removeChar ()
void addChar (const llwchar c)
void setCursorAtLocalPos (S32 local_mouse_x)
S32 findPixelNearestPos (S32 cursor_offset=0) const
void reportBadKeystroke ()
BOOL handleSpecialKey (KEY key, MASK mask)
BOOL handleSelectionKey (KEY key, MASK mask)
BOOL handleControlKey (KEY key, MASK mask)
S32 handleCommitKey (KEY key, MASK mask)
void updateAllowingLanguageInput ()
BOOL hasPreeditString () const
virtual void resetPreedit ()
virtual void updatePreedit (const LLWString &preedit_string, const segment_lengths_t &preedit_segment_lengths, const standouts_t &preedit_standouts, S32 caret_position)
virtual void markAsPreedit (S32 position, S32 length)
virtual void getPreeditRange (S32 *position, S32 *length) const
virtual void getSelectionRange (S32 *position, S32 *length) const
virtual BOOL getPreeditLocation (S32 query_position, LLCoordGL *coord, LLRect *bounds, LLRect *control) const
virtual S32 getPreeditFontSize () const

Static Private Member Functions

static LLPointer< LLUIImageparseImage (LLString name, LLXMLNodePtr from, LLPointer< LLUIImage > def)

Private Attributes

LLPointer< LLUIImagemImage
BOOL mReplaceNewlinesWithSpaces

Static Private Attributes

static LLPointer< LLUIImagesImage

Classes

class  LLLineEditorRollback


Detailed Description

Definition at line 61 of file lllineeditor.h.


Constructor & Destructor Documentation

LLLineEditor::LLLineEditor ( const LLString name,
const LLRect rect,
const LLString default_text = LLString::null,
const LLFontGL glfont = NULL,
S32  max_length_bytes = 254,
void(*)(LLUICtrl *caller, void *user_data)  commit_callback = NULL,
void(*)(LLLineEditor *caller, void *user_data)  keystroke_callback = NULL,
void(*)(LLFocusableElement *caller, void *user_data)  focus_lost_callback = NULL,
void *  userdata = NULL,
LLLinePrevalidateFunc  prevalidate_func = NULL,
LLViewBorder::EBevel  border_bevel = LLViewBorder::BEVEL_IN,
LLViewBorder::EStyle  border_style = LLViewBorder::STYLE_LINE,
S32  border_thickness = 1 
)

LLLineEditor::~LLLineEditor (  )  [virtual]

Definition at line 182 of file lllineeditor.cpp.

References FALSE, LLEditMenuHandler::gEditMenuHandler, gFocusMgr, mCommitOnFocusLost, NULL, and LLFocusMgr::releaseFocusIfNeeded().

Here is the call graph for this function:


Member Function Documentation

LLXMLNodePtr LLLineEditor::getXML ( bool  save_children = true  )  const [virtual]

void LLLineEditor::setColorParameters ( LLXMLNodePtr  node  ) 

Definition at line 2283 of file lllineeditor.cpp.

References LLUICtrlFactory::getAttributeColor(), mImage, parseImage(), setCursorColor(), setFgColor(), setReadOnlyBgColor(), setReadOnlyFgColor(), setTentativeFgColor(), and setWriteableBgColor().

Referenced by LLNameEditor::fromXML(), and fromXML().

Here is the call graph for this function:

Here is the caller graph for this function:

LLView * LLLineEditor::fromXML ( LLXMLNodePtr  node,
LLView parent,
LLUICtrlFactory factory 
) [static]

void LLLineEditor::cleanupClass (  )  [static]

Definition at line 2268 of file lllineeditor.cpp.

References NULL, and sImage.

Referenced by LLUI::cleanupClass().

Here is the caller graph for this function:

BOOL LLLineEditor::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLLineEditor::handleMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLLineEditor::handleHover ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLLineEditor::handleDoubleClick ( S32  x,
S32  y,
MASK  mask 
) [virtual]

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

BOOL LLLineEditor::handleUnicodeCharHere ( llwchar  uni_char  )  [virtual]

void LLLineEditor::onMouseCaptureLost (  )  [virtual]

Reimplemented from LLView.

Definition at line 2068 of file lllineeditor.cpp.

References endSelection().

Here is the call graph for this function:

void LLLineEditor::cut (  )  [virtual]

BOOL LLLineEditor::canCut (  )  const [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 887 of file lllineeditor.cpp.

References hasSelection(), mDrawAsterixes, and mReadOnly.

Referenced by cut(), and handleSpecialKey().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLineEditor::copy (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 928 of file lllineeditor.cpp.

References canCopy(), LLClipboard::copyFromSubstring(), gClipboard, LLUIString::getWString(), llmin(), mSelectionEnd, mSelectionStart, mText, and S32.

Referenced by handleSpecialKey().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLLineEditor::canCopy (  )  const [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 921 of file lllineeditor.cpp.

References hasSelection(), and mDrawAsterixes.

Referenced by copy(), and handleSpecialKey().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLineEditor::paste (  )  [virtual]

BOOL LLLineEditor::canPaste (  )  const [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 938 of file lllineeditor.cpp.

References LLClipboard::canPasteString(), gClipboard, and mReadOnly.

Referenced by handleSpecialKey(), and paste().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLineEditor::doDelete (  )  [virtual]

BOOL LLLineEditor::canDoDelete (  )  const [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 1355 of file lllineeditor.cpp.

References getCursor(), hasSelection(), LLUIString::length(), mPassDelete, mReadOnly, and mText.

Referenced by doDelete(), and handleSpecialKey().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLineEditor::selectAll (  )  [virtual]

BOOL LLLineEditor::canSelectAll (  )  const [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 423 of file lllineeditor.cpp.

References TRUE.

Referenced by handleSelectionKey().

Here is the caller graph for this function:

void LLLineEditor::deselect (  )  [virtual]

BOOL LLLineEditor::canDeselect (  )  const [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 394 of file lllineeditor.cpp.

References hasSelection().

Here is the call graph for this function:

void LLLineEditor::draw ( void   )  [virtual]

Reimplemented from LLView.

Definition at line 1395 of file lllineeditor.cpp.

References LLFontGL::BOTTOM, CURSOR_FLASH_DELAY, LLView::draw(), FALSE, findPixelNearestPos(), getCursor(), LLFrameTimer::getElapsedTimeF32(), LLFocusMgr::getFocusColor(), LLFocusMgr::getFocusFlashWidth(), LLKeyboard::getInsertMode(), LLFocusMgr::getKeyboardFocus(), LLView::getLocalRect(), LLView::getRect(), LLView::getScreenRect(), LLUIString::getString(), LLUICtrl::getTentative(), LLFontGL::getWidth(), LLView::getWindow(), LLUIString::getWString(), gFocusMgr, gKeyboard, gl_rect_2d(), gShowTextEditCursor, LLUICtrl::hasFocus(), hasPreeditString(), hasSelection(), i, LLFontGL::LEFT, LLUIString::length(), LL_KIM_OVERWRITE, llmax(), llmin(), llround(), mBorder, mBorderThickness, LLRectBase< Type >::mBottom, mDrawAsterixes, mFgColor, mFocusBgColor, mGLFont, mImage, mKeystrokeTimer, mLabel, LLRectBase< Type >::mLeft, mMaxHPixels, mMinHPixels, mPreeditPositions, mPreeditStandouts, mReadOnly, mReadOnlyBgColor, mReadOnlyFgColor, LLRectBase< Type >::mRight, mScrollHPos, mSelectionStart, mTentativeFgColor, mText, LLRectBase< Type >::mTop, LLVector2::mV, LLColor4::mV, mWriteableBgColor, LLCoord::mX, LLCoord::mY, LLFontGL::NORMAL, PREEDIT_MARKER_BRIGHTNESS, PREEDIT_MARKER_GAP, PREEDIT_MARKER_POSITION, PREEDIT_MARKER_THICKNESS, PREEDIT_STANDOUT_BRIGHTNESS, PREEDIT_STANDOUT_GAP, PREEDIT_STANDOUT_POSITION, PREEDIT_STANDOUT_THICKNESS, LLFontGL::render(), S32, S32_MAX, LLViewBorder::setKeyboardFocusHighlight(), LLWindow::setLanguageTextInput(), LLView::setVisible(), LLUI::sGLScaleFactor, LLRectBase< Type >::stretch(), TRUE, UI_LINEEDITOR_CURSOR_THICKNESS, UI_LINEEDITOR_V_PAD, utf8str_to_wstring(), VX, and VY.

Here is the call graph for this function:

void LLLineEditor::reshape ( S32  width,
S32  height,
BOOL  called_from_parent = TRUE 
) [virtual]

Reimplemented from LLView.

Definition at line 254 of file lllineeditor.cpp.

References mCursorPos, mTextPadLeft, mTextPadRight, LLView::reshape(), setCursor(), and setTextPadding().

Referenced by LLComboBox::setButtonVisible(), and LLFolderView::startRenamingSelectedItem().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLineEditor::onFocusReceived (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 195 of file lllineeditor.cpp.

References LLUICtrl::onFocusReceived(), and updateAllowingLanguageInput().

Here is the call graph for this function:

void LLLineEditor::onFocusLost (  )  [virtual]

void LLLineEditor::setEnabled ( BOOL  enabled  )  [virtual]

void LLLineEditor::clear ( void   )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 1672 of file lllineeditor.cpp.

References LLUIString::clear(), mText, and setCursor().

Referenced by LLPanelGroupRolesSubTab::activate(), LLSpinCtrl::clear(), LLSearchEditor::clear(), LLPanelGroupRolesSubTab::handleRoleSelect(), LLAlertDialog::setDrawAsterixes(), LLPanelGroupNotices::showNotice(), and LLPanelGroupRolesSubTab::update().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLineEditor::onTabInto (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 1679 of file lllineeditor.cpp.

References selectAll().

Referenced by LLPanelGroupRolesSubTab::handleCreateRole(), LLSpinCtrl::onTabInto(), LLSliderCtrl::onTabInto(), and LLMultiSliderCtrl::onTabInto().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLineEditor::setFocus ( BOOL  b  )  [virtual]

void LLLineEditor::setRect ( const LLRect rect  )  [virtual]

BOOL LLLineEditor::acceptsTextInput (  )  const [virtual]

Reimplemented from LLUICtrl.

Definition at line 1685 of file lllineeditor.cpp.

References TRUE.

void LLLineEditor::onCommit (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 224 of file lllineeditor.cpp.

References LLUICtrl::onCommit(), selectAll(), and updateHistory().

Referenced by onFocusLost(), and LLPanelLandMedia::setMediaURL().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual BOOL LLLineEditor::isDirty (  )  const [inline, virtual]

Reimplemented from LLUICtrl.

Definition at line 129 of file lllineeditor.h.

References LLUIString::getString(), mPrevText, and mText.

Referenced by LLPanelClassified::checkDirty().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void LLLineEditor::resetDirty (  )  [inline, virtual]

Reimplemented from LLUICtrl.

Definition at line 130 of file lllineeditor.h.

References LLUIString::getString(), mPrevText, and mText.

Referenced by LLPanelClassified::resetDirty().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void LLLineEditor::setValue ( const LLSD value  )  [inline, virtual]

Reimplemented from LLView.

Reimplemented in LLNameEditor.

Definition at line 133 of file lllineeditor.h.

References LLSD::asString(), and setText().

Referenced by LLFloaterPostProcess::onChangeEffectName(), LLComboBox::onCommit(), and LLSearchEditor::setValue().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual LLSD LLLineEditor::getValue (  )  const [inline, virtual]

Reimplemented from LLUICtrl.

Reimplemented in LLNameEditor.

Definition at line 134 of file lllineeditor.h.

References getText().

Referenced by LLSearchEditor::getValue(), LLComboBox::getValue(), LLFloaterPostProcess::onSaveEffect(), LLFloaterPostProcess::saveAlertCallback(), and LLPanelGeneral::set_specific_start_location().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLLineEditor::setTextArg ( const LLString key,
const LLStringExplicit text 
) [virtual]

Definition at line 2319 of file lllineeditor.cpp.

References mText, LLUIString::setArg(), and TRUE.

Referenced by LLSearchEditor::setTextArg().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLLineEditor::setLabelArg ( const LLString key,
const LLStringExplicit text 
) [virtual]

Definition at line 2325 of file lllineeditor.cpp.

References mLabel, LLUIString::setArg(), and TRUE.

Referenced by LLSearchEditor::setLabelArg().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLineEditor::setLabel ( const LLStringExplicit new_label  )  [inline]

Definition at line 138 of file lllineeditor.h.

References mLabel.

Referenced by LLFloaterIMPanel::draw(), LLNameEditor::fromXML(), LLSearchEditor::fromXML(), fromXML(), and LLCurrencyUIManager::Impl::updateUI().

Here is the caller graph for this function:

void LLLineEditor::setText ( const LLStringExplicit new_text  ) 

Definition at line 284 of file lllineeditor.cpp.

References LLUIString::assign(), deselect(), getCursor(), LLUIString::getString(), LLUICtrl::hasFocus(), LLUIString::length(), llmin(), mCurrentHistoryLine, mLineHistory, mMaxLengthBytes, mPrevText, mSelectAllonFocusReceived, mSelectionEnd, mSelectionStart, mText, S32, selectAll(), setCursor(), and utf8str_truncate().

Referenced by LLSliderCtrl::clear(), LLMultiSliderCtrl::clear(), LLComboBox::clear(), LLPanelGroupRolesSubTab::handleRoleSelect(), handleSpecialKey(), LLPanelClassified::initNewClassified(), LLPanelPick::initNewPick(), LLLineEditor(), LLPreviewGesture::loadUIFromGesture(), LLFloaterPriceForListing::postBuild(), LLPreviewGesture::refresh(), LLPanelWeb::refresh(), LLPanelPermissions::refresh(), LLPanelLandMedia::refresh(), LLNameEditor::refresh(), LLPanelLandObjects::refresh(), LLPanelLandGeneral::refresh(), LLFloaterEditUI::refresh(), LLFloaterEditUI::refreshButton(), LLFloaterEditUI::refreshView(), LLFloaterIMPanel::sendMsg(), LLPanelAvatar::setAvatarID(), LLAlertDialog::setEditTextArgs(), LLPanelGroupNotices::setItem(), LLComboBox::setLabel(), LLPanelLandMedia::setMediaURL(), LLNameEditor::setNameID(), LLSearchEditor::setText(), LLComboBox::setTextEntry(), setValue(), LLPanelAvatarAdvanced::setWantSkills(), LLPanelGroupLandMoney::impl::setYourContributionTextField(), LLPanelGroupNotices::showNotice(), LLChatBar::startChat(), LLFolderView::startRenamingSelectedItem(), LLSpinCtrl::updateEditor(), LLComboBox::updateLayout(), LLComboBox::updateSelection(), LLSliderCtrl::updateText(), LLMultiSliderCtrl::updateText(), and LLCurrencyUIManager::Impl::updateUI().

Here is the call graph for this function:

Here is the caller graph for this function:

const LLString& LLLineEditor::getText (  )  const [inline]

Definition at line 141 of file lllineeditor.h.

References LLUIString::getString(), and mText.

Referenced by LLPanelGroupGeneral::apply(), LLPanelGroupLandMoney::impl::applyContribution(), LLPanelClassified::canClose(), LLPanelClassified::confirmPublish(), LLPanelGroupLandMoney::impl::contributionCommitCallback(), LLPreviewGesture::createGesture(), LLFloaterAvatarPicker::editKeystroke(), LLFolderView::finishRenamingItem(), LLPanelClassified::getClassifiedName(), LLChatBar::getCurrentChat(), LLPanelLandMedia::getMediaURL(), LLPanelPick::getPickName(), LLComboBox::getSimple(), getValue(), LLPanelAvatarAdvanced::getWantSkills(), LLAlertDialog::handleCallbacks(), LLPanelGroupSubTab::handleClickSearch(), LLPanelGroupSubTab::handleSearchKeystroke(), LLComboBox::hideList(), LLLineEditor::LLLineEditorRollback::LLLineEditorRollback(), LLPanelLogin::mungePassword(), LLPanelAvatar::onClickAddFriend(), LLPanelAvatar::onClickCSR(), LLPanelAvatar::onClickIM(), LLPanelAvatar::onClickMute(), LLPanelAvatar::onClickTrack(), LLPanelLandGeneral::onCommitAny(), LLPanelLandObjects::onCommitClean(), LLPanelPermissions::onCommitDesc(), LLFloaterProperties::onCommitDescription(), LLFloaterEditUI::onCommitLabel(), LLPanelPermissions::onCommitName(), LLFloaterProperties::onCommitName(), LLFloaterHtml::onCommitUrlEdit(), LLPanelWeb::onCommitWebProxyAddress(), LLCurrencyUIManager::Impl::onCurrencyKey(), LLSearchEditor::onSearchEdit(), LLComboBox::onTextEntry(), LLPreviewGesture::refresh(), LLChatBar::refresh(), LLPreviewGesture::saveIfNeeded(), LLPanelGroupRolesSubTab::saveRoleChanges(), LLPanelClassified::sendClassifiedInfoUpdate(), LLPanelPick::sendPickInfoUpdate(), LLPanelPermissions::setAllSaleInfo(), LLAlertDialog::setEditTextArgs(), LLPanelClassified::titleIsValid(), updateHistory(), LLFloaterProperties::updateSaleInfo(), LLComboBox::updateSelection(), and LLPreviewLSL::uploadAssetLegacy().

Here is the call graph for this function:

const LLWString& LLLineEditor::getWText (  )  const [inline, virtual]

Implements LLPreeditor.

Definition at line 142 of file lllineeditor.h.

References LLUIString::getWString(), and mText.

Referenced by LLSearchEditor::draw(), LLChatBar::sendChat(), LLFloaterIMPanel::sendMsg(), and LLComboBox::updateSelection().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLLineEditor::getLength (  )  const [inline]

Definition at line 143 of file lllineeditor.h.

References LLUIString::length(), and mText.

Referenced by nextWordPos(), LLPanelDirBrowser::onKeystrokeName(), and LLPanelDirClassified::onKeystrokeNameClassified().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLLineEditor::getCursor (  )  const [inline]

void LLLineEditor::setCursor ( S32  pos  ) 

void LLLineEditor::setCursorToEnd (  ) 

Definition at line 388 of file lllineeditor.cpp.

References deselect(), LLUIString::length(), mText, and setCursor().

Referenced by LLChatBar::startChat().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLineEditor::setSelection ( S32  start,
S32  end 
)

Definition at line 742 of file lllineeditor.cpp.

References LLUIString::length(), llclamp(), mIsSelecting, mSelectionEnd, mSelectionStart, mText, S32, setCursor(), and TRUE.

Referenced by LLComboBox::updateSelection().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLineEditor::setCommitOnFocusLost ( BOOL  b  )  [inline]

void LLLineEditor::setRevertOnEsc ( BOOL  b  )  [inline]

Definition at line 153 of file lllineeditor.h.

References mRevertOnEsc.

Referenced by LLFloaterIMPanel::postBuild(), and LLChatBar::postBuild().

Here is the caller graph for this function:

void LLLineEditor::setCursorColor ( const LLColor4 c  )  [inline]

Definition at line 155 of file lllineeditor.h.

References mCursorColor.

Referenced by setColorParameters().

Here is the caller graph for this function:

const LLColor4& LLLineEditor::getCursorColor (  )  const [inline]

Definition at line 156 of file lllineeditor.h.

References mCursorColor.

void LLLineEditor::setFgColor ( const LLColor4 c  )  [inline]

Definition at line 158 of file lllineeditor.h.

References mFgColor.

Referenced by setColorParameters().

Here is the caller graph for this function:

void LLLineEditor::setReadOnlyFgColor ( const LLColor4 c  )  [inline]

Definition at line 159 of file lllineeditor.h.

References mReadOnlyFgColor.

Referenced by setColorParameters().

Here is the caller graph for this function:

void LLLineEditor::setTentativeFgColor ( const LLColor4 c  )  [inline]

Definition at line 160 of file lllineeditor.h.

References mTentativeFgColor.

Referenced by setColorParameters().

Here is the caller graph for this function:

void LLLineEditor::setWriteableBgColor ( const LLColor4 c  )  [inline]

Definition at line 161 of file lllineeditor.h.

References mWriteableBgColor.

Referenced by setColorParameters().

Here is the caller graph for this function:

void LLLineEditor::setReadOnlyBgColor ( const LLColor4 c  )  [inline]

Definition at line 162 of file lllineeditor.h.

References mReadOnlyBgColor.

Referenced by setColorParameters().

Here is the caller graph for this function:

void LLLineEditor::setFocusBgColor ( const LLColor4 c  )  [inline]

Definition at line 163 of file lllineeditor.h.

References mFocusBgColor.

const LLColor4& LLLineEditor::getFgColor (  )  const [inline]

Definition at line 165 of file lllineeditor.h.

References mFgColor.

const LLColor4& LLLineEditor::getReadOnlyFgColor (  )  const [inline]

Definition at line 166 of file lllineeditor.h.

References mReadOnlyFgColor.

const LLColor4& LLLineEditor::getTentativeFgColor (  )  const [inline]

Definition at line 167 of file lllineeditor.h.

References mTentativeFgColor.

const LLColor4& LLLineEditor::getWriteableBgColor (  )  const [inline]

Definition at line 168 of file lllineeditor.h.

References mWriteableBgColor.

const LLColor4& LLLineEditor::getReadOnlyBgColor (  )  const [inline]

Definition at line 169 of file lllineeditor.h.

References mReadOnlyBgColor.

const LLColor4& LLLineEditor::getFocusBgColor (  )  const [inline]

Definition at line 170 of file lllineeditor.h.

References mFocusBgColor.

void LLLineEditor::setIgnoreArrowKeys ( BOOL  b  )  [inline]

Definition at line 172 of file lllineeditor.h.

References mIgnoreArrowKeys.

Referenced by LLChatBar::setIgnoreArrowKeys().

Here is the caller graph for this function:

void LLLineEditor::setIgnoreTab ( BOOL  b  )  [inline]

void LLLineEditor::setPassDelete ( BOOL  b  )  [inline]

Definition at line 174 of file lllineeditor.h.

References mPassDelete.

Referenced by LLChatBar::postBuild().

Here is the caller graph for this function:

void LLLineEditor::setDrawAsterixes ( BOOL  b  ) 

Definition at line 755 of file lllineeditor.cpp.

References mDrawAsterixes, and updateAllowingLanguageInput().

Referenced by LLPanelLogin::LLPanelLogin(), LLPanelLandMedia::refresh(), and LLAlertDialog::setDrawAsterixes().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLLineEditor::prevWordPos ( S32  cursorPos  )  const

Definition at line 761 of file lllineeditor.cpp.

References LLUIString::getWString(), isPartOfWord(), and mText.

Referenced by handleSelectionKey(), and handleSpecialKey().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLLineEditor::nextWordPos ( S32  cursorPos  )  const

Definition at line 775 of file lllineeditor.cpp.

References getLength(), LLUIString::getWString(), isPartOfWord(), and mText.

Referenced by handleSelectionKey(), and handleSpecialKey().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLLineEditor::hasSelection (  )  const [inline]

void LLLineEditor::startSelection (  ) 

Definition at line 407 of file lllineeditor.cpp.

References getCursor(), mIsSelecting, mSelectionEnd, mSelectionStart, and TRUE.

Referenced by extendSelection(), handleDoubleClick(), and handleMouseDown().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLineEditor::endSelection (  ) 

Definition at line 414 of file lllineeditor.cpp.

References FALSE, getCursor(), mIsSelecting, and mSelectionEnd.

Referenced by onMouseCaptureLost(), setFocus(), and LLComboBox::updateSelection().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLineEditor::extendSelection ( S32  new_cursor_pos  ) 

Definition at line 730 of file lllineeditor.cpp.

References getCursor(), mIsSelecting, mSelectionEnd, setCursor(), and startSelection().

Referenced by handleSelectionKey().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLineEditor::deleteSelection (  ) 

Definition at line 874 of file lllineeditor.cpp.

References deselect(), LLUIString::erase(), hasSelection(), llmin(), mReadOnly, mSelectionEnd, mSelectionStart, mText, S32, and setCursor().

Referenced by addChar(), cut(), doDelete(), handleSpecialKey(), and paste().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLineEditor::setHandleEditKeysDirectly ( BOOL  b  )  [inline]

Definition at line 187 of file lllineeditor.h.

References mHandleEditKeysDirectly.

Referenced by fromXML(), LLFloaterTestImpl::LLFloaterTestImpl(), and LLComboBox::updateLayout().

Here is the caller graph for this function:

void LLLineEditor::setSelectAllonFocusReceived ( BOOL  b  ) 

Definition at line 2074 of file lllineeditor.cpp.

References mSelectAllonFocusReceived.

Referenced by fromXML(), LLSearchEditor::LLSearchEditor(), and LLComboBox::updateLayout().

Here is the caller graph for this function:

void LLLineEditor::setKeystrokeCallback ( void(*)(LLLineEditor *caller, void *user_data)  keystroke_callback  ) 

void LLLineEditor::setMaxTextLength ( S32  max_text_length  ) 

Definition at line 269 of file lllineeditor.cpp.

References llmax(), mMaxLengthBytes, and S32.

Referenced by LLFloaterIMPanel::init(), LLPanelClassified::postBuild(), LLFloaterNameDesc::postBuild(), LLChatBar::postBuild(), and LLComboBox::updateLayout().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLineEditor::setTextPadding ( S32  left,
S32  right 
)

Definition at line 275 of file lllineeditor.cpp.

References LLView::getRect(), LLRectBase< Type >::getWidth(), llclamp(), mMaxHPixels, mMinHPixels, mTextPadLeft, mTextPadRight, and UI_LINEEDITOR_H_PAD.

Referenced by LLLineEditor(), LLSearchEditor::LLSearchEditor(), and reshape().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLLineEditor::isPartOfWord ( llwchar  c  )  [static]

Definition at line 1804 of file lllineeditor.cpp.

Referenced by handleDoubleClick(), nextWordPos(), and prevWordPos().

Here is the caller graph for this function:

void LLLineEditor::setPrevalidate ( BOOL(*)(const LLWString &)  func  ) 

BOOL LLLineEditor::prevalidateFloat ( const LLWString str  )  [static]

BOOL LLLineEditor::prevalidateInt ( const LLWString str  )  [static]

Definition at line 1870 of file lllineeditor.cpp.

References FALSE, i, LLStringOps::isDigit(), S32, LLStringBase< T >::trim(), TRUE, and LLLocale::USER_LOCALE.

Referenced by fromXML(), and LLPanelPick::postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLLineEditor::prevalidatePositiveS32 ( const LLWString str  )  [static]

Definition at line 1902 of file lllineeditor.cpp.

References FALSE, i, LLStringOps::isDigit(), NULL, S32, LLStringBase< T >::trim(), TRUE, LLLocale::USER_LOCALE, and wstring_to_utf8str().

Referenced by fromXML(), and LLPanelRegionTools::postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLLineEditor::prevalidateNonNegativeS32 ( const LLWString str  )  [static]

BOOL LLLineEditor::prevalidateAlphaNum ( const LLWString str  )  [static]

Definition at line 1970 of file lllineeditor.cpp.

References FALSE, S32, TRUE, and LLLocale::USER_LOCALE.

Referenced by fromXML().

Here is the caller graph for this function:

BOOL LLLineEditor::prevalidateAlphaNumSpace ( const LLWString str  )  [static]

Definition at line 1989 of file lllineeditor.cpp.

References FALSE, S32, TRUE, and LLLocale::USER_LOCALE.

Referenced by fromXML().

Here is the caller graph for this function:

BOOL LLLineEditor::prevalidatePrintableNotPipe ( const LLWString str  )  [static]

BOOL LLLineEditor::prevalidatePrintableNoSpace ( const LLWString str  )  [static]

Definition at line 2031 of file lllineeditor.cpp.

References FALSE, S32, and TRUE.

Referenced by fromXML(), and LLPanelLogin::LLPanelLogin().

Here is the caller graph for this function:

BOOL LLLineEditor::prevalidateASCII ( const LLWString str  )  [static]

Definition at line 2053 of file lllineeditor.cpp.

References FALSE, S32, and TRUE.

Referenced by fromXML(), and LLPanelClassified::postBuild().

Here is the caller graph for this function:

BOOL LLLineEditor::postvalidateFloat ( const LLString str  )  [static]

void LLLineEditor::setEnableLineHistory ( BOOL  enabled  )  [inline]

Definition at line 211 of file lllineeditor.h.

References mHaveHistory.

Referenced by LLFloaterIMPanel::init(), and LLChatBar::postBuild().

Here is the caller graph for this function:

void LLLineEditor::updateHistory (  ) 

Definition at line 235 of file lllineeditor.cpp.

References getText(), LLUIString::length(), mCurrentHistoryLine, mHaveHistory, mLineHistory, and mText.

Referenced by handleSpecialKey(), onCommit(), and LLChatBar::sendChat().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLineEditor::setReplaceNewlinesWithSpaces ( BOOL  replace  ) 

Definition at line 2551 of file lllineeditor.cpp.

References mReplaceNewlinesWithSpaces.

Referenced by LLChatBar::postBuild().

Here is the caller graph for this function:

void LLLineEditor::removeChar (  )  [private]

Definition at line 674 of file lllineeditor.cpp.

References LLUIString::erase(), getCursor(), mText, reportBadKeystroke(), and setCursor().

Referenced by doDelete(), and handleSpecialKey().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLineEditor::addChar ( const llwchar  c  )  [private]

void LLLineEditor::setCursorAtLocalPos ( S32  local_mouse_x  )  [private]

Definition at line 332 of file lllineeditor.cpp.

References LLFontGL::charFromPixelOffset(), LLUIString::getWString(), i, LLUIString::length(), mDrawAsterixes, mGLFont, mMaxHPixels, mMinHPixels, mScrollHPos, mText, S32, and setCursor().

Referenced by handleHover(), handleMouseDown(), and handleMouseUp().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLLineEditor::findPixelNearestPos ( S32  cursor_offset = 0  )  const [private]

Definition at line 1659 of file lllineeditor.cpp.

References getCursor(), LLFontGL::getWidth(), LLUIString::getWString(), mGLFont, mMinHPixels, mScrollHPos, mText, and S32.

Referenced by draw(), getPreeditLocation(), handleHover(), and setCursor().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLineEditor::reportBadKeystroke (  )  [private]

Definition at line 1666 of file lllineeditor.cpp.

References make_ui_sound().

Referenced by addChar(), cut(), doDelete(), handleKeyHere(), handleSelectionKey(), handleSpecialKey(), handleUnicodeCharHere(), paste(), and removeChar().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLLineEditor::handleSpecialKey ( KEY  key,
MASK  mask 
) [private]

BOOL LLLineEditor::handleSelectionKey ( KEY  key,
MASK  mask 
) [private]

Definition at line 790 of file lllineeditor.cpp.

References canSelectAll(), extendSelection(), FALSE, getCursor(), KEY_END, KEY_HOME, KEY_LEFT, KEY_PAGE_DOWN, KEY_PAGE_UP, KEY_RIGHT, LLUIString::length(), MASK_CONTROL, MASK_SHIFT, mHandleEditKeysDirectly, mText, nextWordPos(), prevWordPos(), reportBadKeystroke(), S32, selectAll(), and TRUE.

Referenced by handleKeyHere().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLLineEditor::handleControlKey ( KEY  key,
MASK  mask 
) [private]

S32 LLLineEditor::handleCommitKey ( KEY  key,
MASK  mask 
) [private]

void LLLineEditor::updateAllowingLanguageInput (  )  [private]

Definition at line 2332 of file lllineeditor.cpp.

References LLWindow::allowLanguageTextInput(), FALSE, LLView::getWindow(), LLUICtrl::hasFocus(), mDrawAsterixes, mPrevalidateFunc, mReadOnly, NULL, and TRUE.

Referenced by onFocusLost(), onFocusReceived(), setDrawAsterixes(), setEnabled(), and setPrevalidate().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLLineEditor::hasPreeditString (  )  const [private]

Definition at line 2350 of file lllineeditor.cpp.

References mPreeditPositions.

Referenced by draw(), getPreeditLocation(), getPreeditRange(), markAsPreedit(), and resetPreedit().

Here is the caller graph for this function:

void LLLineEditor::resetPreedit (  )  [private, virtual]

void LLLineEditor::updatePreedit ( const LLWString preedit_string,
const segment_lengths_t preedit_segment_lengths,
const standouts_t preedit_standouts,
S32  caret_position 
) [private, virtual]

void LLLineEditor::markAsPreedit ( S32  position,
S32  length 
) [private, virtual]

void LLLineEditor::getPreeditRange ( S32 position,
S32 length 
) const [private, virtual]

Implements LLPreeditor.

Definition at line 2486 of file lllineeditor.cpp.

References hasPreeditString(), mCursorPos, and mPreeditPositions.

Here is the call graph for this function:

void LLLineEditor::getSelectionRange ( S32 position,
S32 length 
) const [private, virtual]

Implements LLPreeditor.

Definition at line 2500 of file lllineeditor.cpp.

References hasSelection(), llabs(), llmin(), mCursorPos, mSelectionEnd, and mSelectionStart.

Here is the call graph for this function:

BOOL LLLineEditor::getPreeditLocation ( S32  query_position,
LLCoordGL coord,
LLRect bounds,
LLRect control 
) const [private, virtual]

S32 LLLineEditor::getPreeditFontSize (  )  const [private, virtual]

Implements LLPreeditor.

Definition at line 2546 of file lllineeditor.cpp.

References LLFontGL::getLineHeight(), llround(), mGLFont, LLVector2::mV, LLUI::sGLScaleFactor, and VY.

Here is the call graph for this function:

LLPointer< LLUIImage > LLLineEditor::parseImage ( LLString  name,
LLXMLNodePtr  from,
LLPointer< LLUIImage def 
) [static, private]

Definition at line 2274 of file lllineeditor.cpp.

References LLUI::getUIImage(), LLPointer< Type >::isNull(), and LLStringBase< char >::null.

Referenced by setColorParameters().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 246 of file lllineeditor.h.

Referenced by draw(), getXML(), setLabel(), and setLabelArg().

std::vector<LLString> LLLineEditor::mLineHistory [protected]

Definition at line 250 of file lllineeditor.h.

Referenced by handleSpecialKey(), LLLineEditor(), setText(), and updateHistory().

Definition at line 251 of file lllineeditor.h.

Referenced by handleSpecialKey(), LLLineEditor(), setText(), and updateHistory().

Definition at line 253 of file lllineeditor.h.

Referenced by draw(), getXML(), LLLineEditor(), and setRect().

const LLFontGL* LLLineEditor::mGLFont [protected]

Definition at line 255 of file lllineeditor.h.

Referenced by addChar(), getXML(), paste(), setMaxTextLength(), and setText().

Definition at line 258 of file lllineeditor.h.

Referenced by handleHover(), and LLLineEditor().

Definition at line 259 of file lllineeditor.h.

Referenced by reshape(), and setTextPadding().

Definition at line 260 of file lllineeditor.h.

Referenced by reshape(), and setTextPadding().

Definition at line 262 of file lllineeditor.h.

Referenced by draw(), handleHover(), setCursor(), setCursorAtLocalPos(), and setTextPadding().

Definition at line 264 of file lllineeditor.h.

Referenced by onFocusLost(), setCommitOnFocusLost(), and ~LLLineEditor().

Definition at line 265 of file lllineeditor.h.

Referenced by handleSpecialKey(), and setRevertOnEsc().

void(* LLLineEditor::mKeystrokeCallback)(LLLineEditor *caller, void *userdata) [protected]

Definition at line 272 of file lllineeditor.h.

Referenced by handleHover().

Definition at line 273 of file lllineeditor.h.

Referenced by handleHover().

Definition at line 274 of file lllineeditor.h.

Referenced by handleDoubleClick(), and handleMouseDown().

Definition at line 275 of file lllineeditor.h.

Referenced by handleDoubleClick(), and handleMouseDown().

S32(* LLLineEditor::mPrevalidateFunc)(const LLWString &str) [protected]

Definition at line 281 of file lllineeditor.h.

Referenced by getCursorColor(), getXML(), and setCursorColor().

Definition at line 283 of file lllineeditor.h.

Referenced by draw(), getFgColor(), getXML(), and setFgColor().

Definition at line 284 of file lllineeditor.h.

Referenced by draw(), getReadOnlyFgColor(), getXML(), and setReadOnlyFgColor().

Definition at line 285 of file lllineeditor.h.

Referenced by draw(), getTentativeFgColor(), getXML(), and setTentativeFgColor().

Definition at line 286 of file lllineeditor.h.

Referenced by draw(), getWriteableBgColor(), getXML(), and setWriteableBgColor().

Definition at line 287 of file lllineeditor.h.

Referenced by draw(), getReadOnlyBgColor(), getXML(), and setReadOnlyBgColor().

Definition at line 288 of file lllineeditor.h.

Referenced by draw(), getFocusBgColor(), getXML(), and setFocusBgColor().

Definition at line 290 of file lllineeditor.h.

Referenced by draw(), getPreeditLocation(), and LLLineEditor().

Definition at line 292 of file lllineeditor.h.

Referenced by handleSpecialKey(), and setIgnoreArrowKeys().

Definition at line 293 of file lllineeditor.h.

Referenced by setIgnoreTab().

Definition at line 298 of file lllineeditor.h.

Referenced by canDoDelete(), and setPassDelete().

Definition at line 302 of file lllineeditor.h.

Referenced by markAsPreedit(), resetPreedit(), and updatePreedit().

Definition at line 303 of file lllineeditor.h.

Referenced by markAsPreedit(), resetPreedit(), and updatePreedit().

std::vector<S32> LLLineEditor::mPreeditPositions [protected]

Definition at line 305 of file lllineeditor.h.

Referenced by draw(), markAsPreedit(), and updatePreedit().

Definition at line 312 of file lllineeditor.h.

Referenced by cleanupClass(), and LLLineEditor().

Definition at line 314 of file lllineeditor.h.

Referenced by draw(), LLLineEditor(), and setColorParameters().

Definition at line 316 of file lllineeditor.h.

Referenced by paste(), and setReplaceNewlinesWithSpaces().


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

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