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)(LLUICtrl *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 EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
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 called_from_parent)
BOOL handleUnicodeCharHere (llwchar uni_char, BOOL called_from_parent)
void onMouseCaptureLost ()
virtual void cut ()
virtual BOOL canCut ()
virtual void copy ()
virtual BOOL canCopy ()
virtual void paste ()
virtual BOOL canPaste ()
virtual void doDelete ()
virtual BOOL canDoDelete ()
virtual void selectAll ()
virtual BOOL canSelectAll ()
virtual void deselect ()
virtual BOOL canDeselect ()
virtual void draw ()
virtual void reshape (S32 width, S32 height, BOOL called_from_parent=TRUE)
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 ()
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 ()
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 setBorderWidth (S32 left, S32 right)
void setPrevalidate (BOOL(*func)(const LLWString &))
void setEnableLineHistory (BOOL enabled)
void updateHistory ()

Static Public Member Functions

static LLViewfromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory)
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 Member Functions

void removeChar ()
void addChar (const llwchar c)
void setCursorAtLocalPos (S32 local_mouse_x)
S32 findPixelNearestPos (S32 cursor_offset=0)
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)

Protected Attributes

LLUIString mText
LLString mPrevText
LLUIString mLabel
BOOL mHaveHistory
std::vector< LLStringmLineHistory
U32 mCurrentHistoryLine
LLViewBordermBorder
const LLFontGLmGLFont
S32 mMaxLengthChars
S32 mMaxLengthBytes
S32 mCursorPos
S32 mScrollHPos
LLFrameTimer mScrollTimer
S32 mMinHPixels
S32 mMaxHPixels
S32 mBorderLeft
S32 mBorderRight
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
LLCoordGL mLastIMEPosition
BOOL mIgnoreArrowKeys
BOOL mIgnoreTab
BOOL mDrawAsterixes
BOOL mHandleEditKeysDirectly
BOOL mSelectAllonFocusReceived
BOOL mPassDelete
BOOL mReadOnly

Friends

class LLLineEditorRollback

Detailed Description

Definition at line 65 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(*)(LLUICtrl *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 
)

Definition at line 117 of file lllineeditor.cpp.

References LLView::addChild(), FALSE, FOLLOWS_BOTTOM, FOLLOWS_LEFT, FOLLOWS_RIGHT, FOLLOWS_TOP, LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), LLUIString::length(), llassert, mBorder, mBorderLeft, mBorderRight, mBorderThickness, mCurrentHistoryLine, mGLFont, mHaveHistory, mLineHistory, mMaxHPixels, mMinHPixels, LLView::mRect, mScrollTimer, mText, LLFrameTimer::reset(), setCursor(), LLUICtrl::setFocusLostCallback(), setText(), LLFontGL::sSansSerifSmall, and UI_LINEEDITOR_H_PAD.

Referenced by fromXML().

LLLineEditor::~LLLineEditor (  )  [virtual]

Definition at line 203 of file lllineeditor.cpp.

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


Member Function Documentation

BOOL LLLineEditor::acceptsTextInput (  )  const [virtual]

Reimplemented from LLUICtrl.

Definition at line 1712 of file lllineeditor.cpp.

References TRUE.

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

Definition at line 727 of file lllineeditor.cpp.

References deleteSelection(), LLUIString::erase(), FALSE, getCursor(), LLKeyboard::getInsertMode(), LLUIString::getString(), LLView::getWindow(), gKeyboard, hasSelection(), LLWindow::hideCursorUntilMouseMove(), LLUIString::insert(), LLUIString::length(), LL_KIM_OVERWRITE, mMaxLengthBytes, mMaxLengthChars, mText, reportBadKeystroke(), S32, setCursor(), TRUE, and wchar_utf8_length().

Referenced by handleUnicodeCharHere().

BOOL LLLineEditor::canCopy (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 978 of file lllineeditor.cpp.

References hasSelection(), and mDrawAsterixes.

Referenced by copy(), and handleSpecialKey().

BOOL LLLineEditor::canCut (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 944 of file lllineeditor.cpp.

References hasSelection(), mDrawAsterixes, and mReadOnly.

Referenced by cut(), and handleSpecialKey().

BOOL LLLineEditor::canDeselect (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 434 of file lllineeditor.cpp.

References hasSelection().

BOOL LLLineEditor::canDoDelete (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 1419 of file lllineeditor.cpp.

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

Referenced by doDelete(), and handleSpecialKey().

BOOL LLLineEditor::canPaste (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 995 of file lllineeditor.cpp.

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

Referenced by handleSpecialKey(), and paste().

BOOL LLLineEditor::canSelectAll (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 464 of file lllineeditor.cpp.

References TRUE.

Referenced by handleSelectionKey().

void LLLineEditor::clear (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 1699 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().

void LLLineEditor::copy (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 985 of file lllineeditor.cpp.

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

Referenced by handleSpecialKey().

void LLLineEditor::cut (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 950 of file lllineeditor.cpp.

References canCut(), LLClipboard::copyFromSubstring(), deleteSelection(), LLLineEditorRollback::doRollback(), gClipboard, LLUIString::getWString(), llmin(), LLUICtrl::mCallbackUserData, mKeystrokeCallback, mPrevalidateFunc, mSelectionEnd, mSelectionStart, mText, reportBadKeystroke(), and S32.

Referenced by handleSpecialKey().

void LLLineEditor::deleteSelection (  ) 

Definition at line 931 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().

void LLLineEditor::deselect (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 440 of file lllineeditor.cpp.

References FALSE, mIsSelecting, mSelectionEnd, and mSelectionStart.

Referenced by deleteSelection(), handleKeyHere(), handleMouseDown(), handleUnicodeCharHere(), paste(), LLFloaterIMPanel::selectNone(), setCursorToEnd(), and setText().

void LLLineEditor::doDelete (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 1424 of file lllineeditor.cpp.

References canDoDelete(), deleteSelection(), LLLineEditorRollback::doRollback(), getCursor(), LLUIString::getWString(), hasSelection(), LLUIString::length(), LLUICtrl::mCallbackUserData, mKeystrokeCallback, mPrevalidateFunc, mText, removeChar(), reportBadKeystroke(), and setCursor().

Referenced by handleSpecialKey().

void LLLineEditor::draw (  )  [virtual]

Reimplemented from LLView.

Definition at line 1459 of file lllineeditor.cpp.

References LLFontGL::BOTTOM, CURSOR_FLASH_DELAY, LLView::draw(), f, FALSE, findPixelNearestPos(), getCursor(), LLFrameTimer::getElapsedTimeF32(), LLRectBase< Type >::getHeight(), LLKeyboard::getInsertMode(), LLFocusMgr::getKeyboardFocus(), LLView::getScreenRect(), LLUIString::getString(), LLView::getVisible(), LLFontGL::getWidth(), LLRectBase< Type >::getWidth(), LLView::getWindow(), LLUIString::getWString(), gFocusMgr, gKeyboard, gl_rect_2d(), gShowTextEditCursor, hasSelection(), i, LABEL_HPAD, LLFontGL::LEFT, LLUIString::length(), LL_KIM_OVERWRITE, llmax(), llmin(), llround(), mBorder, mBorderThickness, mDrawAsterixes, mFgColor, mFocusBgColor, mGLFont, mKeystrokeTimer, mLabel, mLastIMEPosition, LLRectBase< Type >::mLeft, mMaxHPixels, mMinHPixels, mReadOnly, mReadOnlyBgColor, mReadOnlyFgColor, LLView::mRect, mScrollHPos, mSelectionStart, LLUICtrl::mTentative, mTentativeFgColor, mText, LLRectBase< Type >::mTop, LLVector2::mV, LLColor4::mV, mWriteableBgColor, LLCoord::mX, LLCoord::mY, LLFontGL::NORMAL, LLFontGL::render(), S32, S32_MAX, LLViewBorder::setKeyboardFocusHighlight(), LLWindow::setLanguageTextInput(), LLUI::sGLScaleFactor, TRUE, UI_LINEEDITOR_CURSOR_THICKNESS, UI_LINEEDITOR_V_PAD, utf8str_to_wstring(), VX, VY, and width.

Referenced by LLPanelGroupLandMoney::impl::setYourContributionTextField().

void LLLineEditor::endSelection (  ) 

Definition at line 455 of file lllineeditor.cpp.

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

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

void LLLineEditor::extendSelection ( S32  new_cursor_pos  ) 

Definition at line 773 of file lllineeditor.cpp.

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

Referenced by handleSelectionKey().

S32 LLLineEditor::findPixelNearestPos ( S32  cursor_offset = 0  )  [protected]

Definition at line 1686 of file lllineeditor.cpp.

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

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

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

Reimplemented in LLNameEditor.

Definition at line 2163 of file lllineeditor.cpp.

References LLViewBorder::BEVEL_IN, LLView::createRect(), FALSE, LLViewBorder::getBevelFromAttribute(), LLUICtrl::initFromXML(), LLLineEditor(), NULL, prevalidateAlphaNum(), prevalidateAlphaNumSpace(), prevalidateASCII(), prevalidateFloat(), prevalidateInt(), prevalidateNonNegativeS32(), prevalidatePositiveS32(), prevalidatePrintableNoSpace(), prevalidatePrintableNotPipe(), S32, LLView::selectFont(), setColorParameters(), setCommitOnFocusLost(), setHandleEditKeysDirectly(), setLabel(), setPrevalidate(), setSelectAllonFocusReceived(), LLViewBorder::STYLE_LINE, LLViewBorder::STYLE_TEXTURE, LLStringBase< char >::toLower(), and TRUE.

S32 LLLineEditor::getCursor (  )  [inline]

Definition at line 149 of file lllineeditor.h.

References mCursorPos.

Referenced by addChar(), canDoDelete(), doDelete(), draw(), endSelection(), extendSelection(), findPixelNearestPos(), handleHover(), handleMouseDown(), handleMouseUp(), handleSelectionKey(), handleSpecialKey(), paste(), removeChar(), setCursor(), setText(), startSelection(), and LLComboBox::updateSelection().

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

Definition at line 160 of file lllineeditor.h.

References mCursorColor.

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

Definition at line 169 of file lllineeditor.h.

References mFgColor.

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

Definition at line 174 of file lllineeditor.h.

References mFocusBgColor.

S32 LLLineEditor::getLength (  )  const [inline]

Definition at line 147 of file lllineeditor.h.

References LLUIString::length(), and mText.

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

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

Definition at line 173 of file lllineeditor.h.

References mReadOnlyBgColor.

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

Definition at line 170 of file lllineeditor.h.

References mReadOnlyFgColor.

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

Definition at line 171 of file lllineeditor.h.

References mTentativeFgColor.

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

Definition at line 145 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(), LLPanelPick::getPickName(), LLComboBox::getSimple(), getValue(), LLPanelAvatarAdvanced::getWantSkills(), LLPanelGroupSubTab::handleClickSearch(), LLPanelGroupSubTab::handleSearchKeystroke(), LLLineEditorRollback::LLLineEditorRollback(), LLPanelLogin::mungePassword(), LLFloaterImport::onBtnOK(), LLPanelAvatar::onClickAddFriend(), LLPanelAvatar::onClickCSR(), LLPanelAvatar::onClickIM(), LLPanelAvatar::onClickMute(), LLPanelAvatar::onClickTrack(), LLPanelLandGeneral::onCommitAny(), LLPanelPermissions::onCommitDesc(), LLFloaterProperties::onCommitDescription(), LLFloaterEditUI::onCommitLabel(), LLPanelPermissions::onCommitName(), LLFloaterProperties::onCommitName(), LLFloaterHtml::onCommitUrlEdit(), LLCurrencyUIManager::Impl::onCurrencyKey(), LLPanelLandObjects::onLostFocus(), 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(), LLPreviewLSL::uploadAssetLegacy(), and LLAlertDialog::~LLAlertDialog().

LLSD LLLineEditor::getValue (  )  const [virtual]

Reimplemented from LLUICtrl.

Reimplemented in LLNameEditor.

Definition at line 2326 of file lllineeditor.cpp.

References getText().

Referenced by LLSearchEditor::getValue(), and LLComboBox::getValue().

LLString LLLineEditor::getWidgetTag (  )  const [virtual]

Implements LLView.

Reimplemented in LLNameEditor.

Definition at line 222 of file lllineeditor.cpp.

References LL_LINE_EDITOR_TAG.

EWidgetType LLLineEditor::getWidgetType (  )  const [virtual]

Implements LLView.

Reimplemented in LLNameEditor.

Definition at line 216 of file lllineeditor.cpp.

References WIDGET_TYPE_LINE_EDITOR.

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

Definition at line 172 of file lllineeditor.h.

References mWriteableBgColor.

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

Definition at line 146 of file lllineeditor.h.

References LLUIString::getWString(), and mText.

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

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

Reimplemented from LLUICtrl.

Definition at line 2107 of file lllineeditor.cpp.

References LLView::addColorXML(), LLViewBorder::BEVEL_BRIGHT, LLViewBorder::BEVEL_IN, LLViewBorder::BEVEL_NONE, LLViewBorder::BEVEL_OUT, LLUIString::empty(), LLViewBorder::getBevel(), LLViewBorder::getBorderWidth(), LLUIString::getString(), LLViewBorder::getStyle(), LLUICtrl::getXML(), mBorder, mCursorColor, mFgColor, mFocusBgColor, mGLFont, mHandleEditKeysDirectly, mLabel, mMaxLengthBytes, mReadOnlyBgColor, mReadOnlyFgColor, mSelectAllonFocusReceived, mTentativeFgColor, mWriteableBgColor, LLFontGL::nameFromFont(), LLViewBorder::STYLE_LINE, LLViewBorder::STYLE_TEXTURE, and TRUE.

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

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

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

Reimplemented from LLView.

Definition at line 479 of file lllineeditor.cpp.

References FALSE, LLUIString::getWString(), handleMouseDown(), isPartOfWord(), LLUIString::length(), mCursorPos, mIsSelecting, mKeystrokeTimer, mLastSelectionEnd, mLastSelectionStart, mSelectionEnd, mSelectionStart, mText, LLFrameTimer::reset(), S32, selectAll(), setFocus(), startSelection(), and TRUE.

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

Reimplemented from LLView.

Definition at line 614 of file lllineeditor.cpp.

References AUTO_SCROLL_TIME, FALSE, findPixelNearestPos(), getCursor(), LLFrameTimer::getElapsedTimeF32(), LLView::getName(), LLView::getVisible(), LLRectBase< Type >::getWidth(), LLView::getWindow(), LLView::handleHover(), LLFrameTimer::hasExpired(), LLView::hasMouseCapture(), LLUIString::length(), llclamp(), lldebugst, llendl, llround(), mBorderRight, mCursorPos, mIsSelecting, mKeystrokeTimer, mLastSelectionX, mLastSelectionY, mMaxHPixels, mMinHPixels, LLView::mRect, mScrollHPos, mScrollTimer, mSelectionEnd, mText, LLFrameTimer::reset(), S32, LLWindow::setCursor(), setCursorAtLocalPos(), LLFrameTimer::setTimerExpirySec(), TRUE, and UI_CURSOR_IBEAM.

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

Reimplemented from LLView.

Definition at line 1303 of file lllineeditor.cpp.

References deselect(), FALSE, LLFocusMgr::getKeyboardFocus(), LLUIString::getString(), LLView::getVisible(), LLUIString::getWString(), gFocusMgr, handleSelectionKey(), handleSpecialKey(), KEY_ALT, KEY_CAPSLOCK, KEY_CONTROL, KEY_SHIFT, LLUICtrl::mCallbackUserData, mKeystrokeCallback, mKeystrokeTimer, mPrevalidateFunc, mReadOnly, mText, reportBadKeystroke(), and LLFrameTimer::reset().

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

Reimplemented from LLView.

Definition at line 535 of file lllineeditor.cpp.

References deselect(), getCursor(), LLFocusMgr::getKeyboardFocus(), LLRectBase< Type >::getWidth(), gFocusMgr, LLView::handleMouseDown(), hasSelection(), MASK_SHIFT, mBorderRight, mIsSelecting, mKeystrokeTimer, mLastSelectionEnd, mLastSelectionStart, LLView::mRect, mSelectAllonFocusReceived, mSelectionEnd, mSelectionStart, LLFrameTimer::reset(), S32, setCursorAtLocalPos(), setFocus(), LLFocusMgr::setMouseCapture(), startSelection(), and TRUE.

Referenced by handleDoubleClick().

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

Reimplemented from LLView.

Definition at line 678 of file lllineeditor.cpp.

References FALSE, getCursor(), LLRectBase< Type >::getWidth(), gFocusMgr, LLView::handleMouseUp(), LLView::hasMouseCapture(), mBorderRight, mIsSelecting, mKeystrokeTimer, LLView::mRect, mSelectionEnd, NULL, LLFrameTimer::reset(), setCursorAtLocalPos(), LLFocusMgr::setMouseCapture(), and TRUE.

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

Definition at line 827 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, mIgnoreArrowKeys, mText, nextWordPos(), prevWordPos(), reportBadKeystroke(), S32, selectAll(), and TRUE.

Referenced by handleKeyHere().

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

Definition at line 1080 of file lllineeditor.cpp.

References LLUIString::assign(), canCopy(), canCut(), canDoDelete(), canPaste(), copy(), cut(), deleteSelection(), doDelete(), FALSE, getCursor(), LLUIString::getString(), gKeyboard, hasSelection(), KEY_BACKSPACE, KEY_DELETE, KEY_DOWN, KEY_END, KEY_ESCAPE, KEY_HOME, KEY_INSERT, KEY_LEFT, KEY_PAGE_DOWN, KEY_PAGE_UP, KEY_RETURN, KEY_RIGHT, KEY_UP, LLUIString::length(), llmax(), llmin(), MASK_ALT, MASK_CONTROL, MASK_NONE, mCurrentHistoryLine, mHandleEditKeysDirectly, mHaveHistory, mIgnoreArrowKeys, mLineHistory, mPrevText, mReadOnly, mRevertOnEsc, mSelectionEnd, mSelectionStart, mText, nextWordPos(), paste(), prevWordPos(), removeChar(), reportBadKeystroke(), S32, setCursor(), setText(), LLKeyboard::toggleInsertMode(), TRUE, and updateHistory().

Referenced by handleKeyHere().

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

Reimplemented from LLView.

Definition at line 1371 of file lllineeditor.cpp.

References addChar(), deselect(), LLLineEditorRollback::doRollback(), FALSE, LLFocusMgr::getKeyboardFocus(), LLView::getVisible(), LLUIString::getWString(), gFocusMgr, LLUICtrl::mCallbackUserData, mKeystrokeCallback, mKeystrokeTimer, mPrevalidateFunc, mReadOnly, mText, reportBadKeystroke(), LLFrameTimer::reset(), and TRUE.

BOOL LLLineEditor::hasSelection (  )  [inline]

Definition at line 186 of file lllineeditor.h.

References mSelectionEnd, and mSelectionStart.

Referenced by addChar(), canCopy(), canCut(), canDeselect(), canDoDelete(), deleteSelection(), doDelete(), draw(), handleMouseDown(), handleSpecialKey(), paste(), and LLComboBox::updateSelection().

BOOL LLLineEditor::isDirty (  )  const [virtual]

Reimplemented from LLUICtrl.

Definition at line 257 of file lllineeditor.cpp.

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

Referenced by LLPanelClassified::checkDirty().

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

Definition at line 1825 of file lllineeditor.cpp.

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

S32 LLLineEditor::nextWordPos ( S32  cursorPos  )  const

Definition at line 812 of file lllineeditor.cpp.

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

Referenced by handleSelectionKey(), and handleSpecialKey().

void LLLineEditor::onCommit (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 247 of file lllineeditor.cpp.

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

Referenced by onFocusLost().

void LLLineEditor::onFocusLost (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 227 of file lllineeditor.cpp.

References LLWindow::allowLanguageTextInput(), FALSE, gEditMenuHandler, LLUIString::getString(), LLView::getWindow(), mCommitOnFocusLost, mPrevText, mText, NULL, onCommit(), LLUICtrl::onFocusLost(), and LLWindow::showCursorFromMouseMove().

void LLLineEditor::onMouseCaptureLost (  )  [virtual]

Reimplemented from LLView.

Definition at line 2089 of file lllineeditor.cpp.

References endSelection().

void LLLineEditor::onTabInto (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 1706 of file lllineeditor.cpp.

References selectAll().

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

void LLLineEditor::paste (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 1002 of file lllineeditor.cpp.

References canPaste(), deleteSelection(), deselect(), gClipboard, getCursor(), LLClipboard::getPasteWString(), LLUIString::getWString(), hasSelection(), LLUIString::insert(), LLUIString::length(), llmin(), LLUICtrl::mCallbackUserData, mKeystrokeCallback, mMaxLengthBytes, mMaxLengthChars, mPrevalidateFunc, mText, LLStringBase< T >::replaceChar(), LLStringBase< T >::replaceTabsWithSpaces(), reportBadKeystroke(), S32, setCursor(), wchar_utf8_length(), and wstring_utf8_length().

Referenced by handleSpecialKey().

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

Definition at line 1828 of file lllineeditor.cpp.

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

Referenced by LLSpinCtrl::onEditorCommit(), and LLSliderCtrl::onEditorCommit().

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

Definition at line 1991 of file lllineeditor.cpp.

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

Referenced by fromXML().

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

Definition at line 2010 of file lllineeditor.cpp.

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

Referenced by fromXML().

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

Definition at line 2074 of file lllineeditor.cpp.

References FALSE, S32, and TRUE.

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

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

Definition at line 1790 of file lllineeditor.cpp.

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

Referenced by fromXML(), LLSliderCtrl::LLSliderCtrl(), LLSpinCtrl::LLSpinCtrl(), and LLPreviewGesture::postBuild().

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

Definition at line 1891 of file lllineeditor.cpp.

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

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

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

Definition at line 1957 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(), LLFloaterPay::LLFloaterPay(), LLPanelPermissions::postBuild(), LLPanelDirLand::postBuild(), LLFloaterPriceForListing::postBuild(), LLFloaterSellLandUI::postBuild(), LLPanelLandObjects::postBuild(), LLCurrencyUIManager::Impl::prepare(), and LLFloaterSellLandUI::refreshUI().

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

Definition at line 1923 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().

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

Definition at line 2052 of file lllineeditor.cpp.

References FALSE, S32, and TRUE.

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

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

Definition at line 2029 of file lllineeditor.cpp.

References FALSE, S32, and TRUE.

Referenced by fromXML(), LLPreviewTexture::init(), LLFloaterProperties::LLFloaterProperties(), LLFolderView::LLFolderView(), LLPreviewAnim::LLPreviewAnim(), LLPreviewLSL::LLPreviewLSL(), LLPreviewNotecard::LLPreviewNotecard(), LLPreviewSound::LLPreviewSound(), LLPreviewGesture::postBuild(), LLPanelPermissions::postBuild(), LLFloaterNameDesc::postBuild(), LLPanelLandGeneral::postBuild(), LLFloaterImport::postBuild(), and LLPanelRegionTools::postBuild().

S32 LLLineEditor::prevWordPos ( S32  cursorPos  )  const

Definition at line 798 of file lllineeditor.cpp.

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

Referenced by handleSelectionKey(), and handleSpecialKey().

void LLLineEditor::removeChar (  )  [protected]

Definition at line 712 of file lllineeditor.cpp.

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

Referenced by doDelete(), and handleSpecialKey().

void LLLineEditor::reportBadKeystroke (  )  [protected]

Definition at line 1693 of file lllineeditor.cpp.

References make_ui_sound().

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

void LLLineEditor::resetDirty (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 263 of file lllineeditor.cpp.

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

Referenced by LLPanelClassified::confirmPublish().

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

Reimplemented from LLView.

Definition at line 289 of file lllineeditor.cpp.

References LLRectBase< Type >::getWidth(), mBorderRight, mBorderThickness, mMaxHPixels, LLView::mRect, LLView::reshape(), and UI_LINEEDITOR_H_PAD.

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

void LLLineEditor::selectAll (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 469 of file lllineeditor.cpp.

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

Referenced by LLFloaterPay::finishPayUI(), LLPanelLogin::giveFocus(), handleDoubleClick(), handleSelectionKey(), onCommit(), LLComboBox::onFocusLost(), onTabInto(), LLComboBox::onTextEntry(), LLFloaterPriceForListing::postBuild(), LLFloaterIMPanel::selectAll(), setFocus(), setText(), LLAlertDialog::show(), LLWearableSaveAsDialog::startModal(), LLFolderView::startRenamingSelectedItem(), and LLCurrencyUIManager::Impl::updateUI().

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

Definition at line 315 of file lllineeditor.cpp.

References LLRectBase< Type >::getWidth(), llclamp(), mBorderLeft, mBorderRight, mBorderThickness, mMaxHPixels, mMinHPixels, LLView::mRect, and UI_LINEEDITOR_H_PAD.

void LLLineEditor::setColorParameters ( LLXMLNodePtr  node  ) 

Definition at line 2288 of file lllineeditor.cpp.

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

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

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

Definition at line 156 of file lllineeditor.h.

References mCommitOnFocusLost.

Referenced by LLFolderView::finishRenamingItem(), fromXML(), LLFolderView::LLFolderView(), LLPreviewGesture::postBuild(), LLPanelPick::postBuild(), LLPanelClassified::postBuild(), LLFloaterIMPanel::postBuild(), LLChatBar::postBuild(), LLPanelGroupRolesSubTab::postBuildSubTab(), LLFolderView::revertRenamingItem(), and LLComboBox::setAllowTextEntry().

void LLLineEditor::setCursor ( S32  pos  ) 

Definition at line 394 of file lllineeditor.cpp.

References f, findPixelNearestPos(), LLFontGL::firstDrawableChar(), getCursor(), LLFontGL::getWidth(), LLUIString::getWString(), LLUIString::length(), llclamp(), llmax(), llmin(), LLFontGL::maxDrawableChars(), mCursorPos, mGLFont, mMaxHPixels, mMinHPixels, mScrollHPos, mText, S32, SCROLL_INCREMENT_ADD, and SCROLL_INCREMENT_DEL.

Referenced by addChar(), clear(), deleteSelection(), doDelete(), extendSelection(), handleSpecialKey(), LLLineEditor(), paste(), removeChar(), selectAll(), setCursorAtLocalPos(), setCursorToEnd(), setSelection(), and setText().

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

Definition at line 372 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().

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

Definition at line 159 of file lllineeditor.h.

References c, and mCursorColor.

Referenced by setColorParameters().

void LLLineEditor::setCursorToEnd (  ) 

Definition at line 428 of file lllineeditor.cpp.

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

Referenced by LLChatBar::startChat().

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

Definition at line 180 of file lllineeditor.h.

References mDrawAsterixes.

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

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

Reimplemented from LLView.

Definition at line 301 of file lllineeditor.cpp.

References mReadOnly, and LLUICtrl::setTabStop().

Referenced by LLPanelGroupNotices::activate(), LLPanelAvatarAdvanced::enableControls(), LLPanelGroupRolesSubTab::handleRoleSelect(), LLFloaterReporter::LLFloaterReporter(), LLPreviewGesture::postBuild(), LLPanelGroupNotices::postBuild(), LLPanelGroupGeneral::postBuild(), LLPreviewGesture::refresh(), LLPanelPick::refresh(), LLPanelClassified::refresh(), LLPanelLandMedia::refresh(), LLPanelLandObjects::refresh(), LLPanelLandGeneral::refresh(), LLFloaterEditUI::refresh(), LLFloaterEditUI::refreshButton(), LLFloaterEditUI::refreshView(), LLSpinCtrl::setEnabled(), and LLSliderCtrl::setEnabled().

void LLLineEditor::setEnableLineHistory ( BOOL  enabled  ) 

Definition at line 296 of file lllineeditor.cpp.

References mHaveHistory.

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

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

Definition at line 162 of file lllineeditor.h.

References c, and mFgColor.

Referenced by setColorParameters().

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

Reimplemented from LLUICtrl.

Definition at line 1718 of file lllineeditor.cpp.

References LLWindow::allowLanguageTextInput(), endSelection(), FALSE, gEditMenuHandler, LLView::getWindow(), LLUICtrl::hasFocus(), mIsSelecting, mKeystrokeTimer, mPrevalidateFunc, mSelectAllonFocusReceived, NULL, LLFrameTimer::reset(), selectAll(), and LLUICtrl::setFocus().

Referenced by LLFolderView::finishRenamingItem(), LLPanelLogin::giveFocus(), LLPanelGroupRolesSubTab::handleCreateRole(), handleDoubleClick(), LLSpinCtrl::handleKeyHere(), handleMouseDown(), LLFloaterPriceForListing::postBuild(), LLFolderView::revertRenamingItem(), LLSpinCtrl::setFocus(), LLFloaterIMPanel::setInputFocus(), LLAlertDialog::show(), LLWearableSaveAsDialog::startModal(), and LLFolderView::startRenamingSelectedItem().

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

Definition at line 167 of file lllineeditor.h.

References c, and mFocusBgColor.

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

Definition at line 192 of file lllineeditor.h.

References mHandleEditKeysDirectly.

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

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

Definition at line 176 of file lllineeditor.h.

References mIgnoreArrowKeys.

Referenced by LLChatBar::setIgnoreArrowKeys().

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

Definition at line 177 of file lllineeditor.h.

References mIgnoreTab.

Referenced by LLSliderCtrl::LLSliderCtrl(), LLPreviewGesture::postBuild(), LLChatBar::postBuild(), and LLComboBox::setAllowTextEntry().

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

Definition at line 2101 of file lllineeditor.cpp.

References mKeystrokeCallback.

Referenced by LLPanel::childSetKeystrokeCallback(), LLPreviewGesture::postBuild(), LLPanelGroupSubTab::postBuild(), LLPanelGroupLandMoney::postBuild(), LLFloaterIMPanel::postBuild(), LLChatBar::postBuild(), LLPanelGroupRolesSubTab::postBuildSubTab(), and LLCurrencyUIManager::Impl::prepare().

void LLLineEditor::setLabel ( const LLStringExplicit new_label  ) 

Definition at line 323 of file lllineeditor.cpp.

References mLabel.

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

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

Reimplemented from LLUICtrl.

Definition at line 2339 of file lllineeditor.cpp.

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

Referenced by LLSearchEditor::setLabelArg().

void LLLineEditor::setMaxTextLength ( S32  max_text_length  ) 

Definition at line 308 of file lllineeditor.cpp.

References llmax(), mMaxLengthBytes, mMaxLengthChars, and S32.

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

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

Definition at line 178 of file lllineeditor.h.

References mPassDelete.

Referenced by LLChatBar::postBuild().

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

Definition at line 202 of file lllineeditor.h.

References mPrevalidateFunc.

Referenced by LLPanel::childSetPrevalidate(), fromXML(), LLPreviewGesture::postBuild(), LLPanelPick::postBuild(), LLFloaterPriceForListing::postBuild(), LLPanelClassified::postBuild(), LLFloaterNameDesc::postBuild(), LLFloaterImport::postBuild(), and LLCurrencyUIManager::Impl::prepare().

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

Definition at line 166 of file lllineeditor.h.

References c, and mReadOnlyBgColor.

Referenced by LLPanelAvatarAdvanced::enableControls(), and setColorParameters().

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

Definition at line 163 of file lllineeditor.h.

References c, and mReadOnlyFgColor.

Referenced by setColorParameters().

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

Reimplemented from LLView.

Definition at line 1771 of file lllineeditor.cpp.

References LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), mBorder, LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLRectBase< Type >::setOriginAndSize(), and LLView::setRect().

Referenced by LLChatBar::layout().

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

Definition at line 157 of file lllineeditor.h.

References mRevertOnEsc.

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

void LLLineEditor::setSelectAllonFocusReceived ( BOOL  b  ) 

Definition at line 2095 of file lllineeditor.cpp.

References mSelectAllonFocusReceived.

Referenced by fromXML(), and LLComboBox::setAllowTextEntry().

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

Definition at line 785 of file lllineeditor.cpp.

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

Referenced by LLComboBox::updateSelection().

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

Definition at line 164 of file lllineeditor.h.

References c, and mTentativeFgColor.

Referenced by setColorParameters().

void LLLineEditor::setText ( const LLStringExplicit new_text  ) 

Definition at line 328 of file lllineeditor.cpp.

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

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

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

Reimplemented from LLUICtrl.

Definition at line 2333 of file lllineeditor.cpp.

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

Referenced by LLSearchEditor::setTextArg().

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

Reimplemented from LLView.

Definition at line 2321 of file lllineeditor.cpp.

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

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

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

Definition at line 165 of file lllineeditor.h.

References c, and mWriteableBgColor.

Referenced by LLFolderView::LLFolderView(), and setColorParameters().

void LLLineEditor::startSelection (  ) 

Definition at line 448 of file lllineeditor.cpp.

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

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

void LLLineEditor::updateHistory (  ) 

Definition at line 270 of file lllineeditor.cpp.

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

Referenced by handleSpecialKey(), and onCommit().


Friends And Related Function Documentation

friend class LLLineEditorRollback [friend]

Definition at line 68 of file lllineeditor.h.


Member Data Documentation

LLViewBorder* LLLineEditor::mBorder [protected]

Definition at line 242 of file lllineeditor.h.

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

S32 LLLineEditor::mBorderLeft [protected]

Definition at line 251 of file lllineeditor.h.

Referenced by LLLineEditor(), and setBorderWidth().

S32 LLLineEditor::mBorderRight [protected]

Definition at line 252 of file lllineeditor.h.

Referenced by handleHover(), handleMouseDown(), handleMouseUp(), LLLineEditor(), reshape(), and setBorderWidth().

S32 LLLineEditor::mBorderThickness [protected]

Definition at line 280 of file lllineeditor.h.

Referenced by draw(), LLLineEditor(), reshape(), and setBorderWidth().

BOOL LLLineEditor::mCommitOnFocusLost [protected]

Definition at line 254 of file lllineeditor.h.

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

U32 LLLineEditor::mCurrentHistoryLine [protected]

Definition at line 240 of file lllineeditor.h.

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

LLColor4 LLLineEditor::mCursorColor [protected]

Definition at line 271 of file lllineeditor.h.

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

S32 LLLineEditor::mCursorPos [protected]

Definition at line 246 of file lllineeditor.h.

Referenced by LLLineEditorRollback::doRollback(), getCursor(), handleDoubleClick(), handleHover(), and setCursor().

BOOL LLLineEditor::mDrawAsterixes [protected]

Definition at line 286 of file lllineeditor.h.

Referenced by canCopy(), canCut(), draw(), setCursorAtLocalPos(), and setDrawAsterixes().

LLColor4 LLLineEditor::mFgColor [protected]

Definition at line 273 of file lllineeditor.h.

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

LLColor4 LLLineEditor::mFocusBgColor [protected]

Definition at line 278 of file lllineeditor.h.

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

const LLFontGL* LLLineEditor::mGLFont [protected]

Definition at line 243 of file lllineeditor.h.

Referenced by draw(), findPixelNearestPos(), getXML(), LLLineEditor(), setCursor(), and setCursorAtLocalPos().

BOOL LLLineEditor::mHandleEditKeysDirectly [protected]

Definition at line 288 of file lllineeditor.h.

Referenced by getXML(), handleSelectionKey(), handleSpecialKey(), and setHandleEditKeysDirectly().

BOOL LLLineEditor::mHaveHistory [protected]

Definition at line 238 of file lllineeditor.h.

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

BOOL LLLineEditor::mIgnoreArrowKeys [protected]

Definition at line 284 of file lllineeditor.h.

Referenced by handleSelectionKey(), handleSpecialKey(), and setIgnoreArrowKeys().

BOOL LLLineEditor::mIgnoreTab [protected]

Definition at line 285 of file lllineeditor.h.

Referenced by setIgnoreTab().

BOOL LLLineEditor::mIsSelecting [protected]

Definition at line 259 of file lllineeditor.h.

Referenced by deselect(), LLLineEditorRollback::doRollback(), endSelection(), extendSelection(), handleDoubleClick(), handleHover(), handleMouseDown(), handleMouseUp(), selectAll(), setFocus(), setSelection(), and startSelection().

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

Referenced by cut(), doDelete(), handleKeyHere(), handleUnicodeCharHere(), paste(), and setKeystrokeCallback().

LLFrameTimer LLLineEditor::mKeystrokeTimer [protected]

Definition at line 269 of file lllineeditor.h.

Referenced by draw(), handleDoubleClick(), handleHover(), handleKeyHere(), handleMouseDown(), handleMouseUp(), handleUnicodeCharHere(), and setFocus().

LLUIString LLLineEditor::mLabel [protected]

Definition at line 235 of file lllineeditor.h.

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

LLCoordGL LLLineEditor::mLastIMEPosition [protected]

Definition at line 282 of file lllineeditor.h.

Referenced by draw().

S32 LLLineEditor::mLastSelectionEnd [protected]

Definition at line 265 of file lllineeditor.h.

Referenced by handleDoubleClick(), and handleMouseDown().

S32 LLLineEditor::mLastSelectionStart [protected]

Definition at line 264 of file lllineeditor.h.

Referenced by handleDoubleClick(), and handleMouseDown().

S32 LLLineEditor::mLastSelectionX [protected]

Definition at line 262 of file lllineeditor.h.

Referenced by handleHover().

S32 LLLineEditor::mLastSelectionY [protected]

Definition at line 263 of file lllineeditor.h.

Referenced by handleHover().

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

Definition at line 239 of file lllineeditor.h.

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

S32 LLLineEditor::mMaxHPixels [protected]

Definition at line 250 of file lllineeditor.h.

Referenced by draw(), handleHover(), LLLineEditor(), reshape(), setBorderWidth(), setCursor(), and setCursorAtLocalPos().

S32 LLLineEditor::mMaxLengthBytes [protected]

Definition at line 245 of file lllineeditor.h.

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

S32 LLLineEditor::mMaxLengthChars [protected]

Definition at line 244 of file lllineeditor.h.

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

S32 LLLineEditor::mMinHPixels [protected]

Definition at line 249 of file lllineeditor.h.

Referenced by draw(), findPixelNearestPos(), handleHover(), LLLineEditor(), setBorderWidth(), setCursor(), and setCursorAtLocalPos().

BOOL LLLineEditor::mPassDelete [protected]

Definition at line 290 of file lllineeditor.h.

Referenced by canDoDelete(), and setPassDelete().

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

Referenced by cut(), doDelete(), handleKeyHere(), handleUnicodeCharHere(), paste(), setFocus(), and setPrevalidate().

LLString LLLineEditor::mPrevText [protected]

Definition at line 234 of file lllineeditor.h.

Referenced by LLLineEditorRollback::doRollback(), handleSpecialKey(), isDirty(), onFocusLost(), resetDirty(), and setText().

BOOL LLLineEditor::mReadOnly [protected]

Definition at line 292 of file lllineeditor.h.

Referenced by canCut(), canDoDelete(), canPaste(), deleteSelection(), draw(), handleKeyHere(), handleSpecialKey(), handleUnicodeCharHere(), and setEnabled().

LLColor4 LLLineEditor::mReadOnlyBgColor [protected]

Definition at line 277 of file lllineeditor.h.

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

LLColor4 LLLineEditor::mReadOnlyFgColor [protected]

Definition at line 274 of file lllineeditor.h.

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

BOOL LLLineEditor::mRevertOnEsc [protected]

Definition at line 255 of file lllineeditor.h.

Referenced by handleSpecialKey(), and setRevertOnEsc().

S32 LLLineEditor::mScrollHPos [protected]

Definition at line 247 of file lllineeditor.h.

Referenced by LLLineEditorRollback::doRollback(), draw(), findPixelNearestPos(), handleHover(), setCursor(), and setCursorAtLocalPos().

LLFrameTimer LLLineEditor::mScrollTimer [protected]

Definition at line 248 of file lllineeditor.h.

Referenced by handleHover(), and LLLineEditor().

BOOL LLLineEditor::mSelectAllonFocusReceived [protected]

Definition at line 289 of file lllineeditor.h.

Referenced by getXML(), handleMouseDown(), setFocus(), and setSelectAllonFocusReceived().

S32 LLLineEditor::mSelectionEnd [protected]

Definition at line 261 of file lllineeditor.h.

Referenced by copy(), cut(), deleteSelection(), deselect(), LLLineEditorRollback::doRollback(), endSelection(), extendSelection(), handleDoubleClick(), handleHover(), handleMouseDown(), handleMouseUp(), handleSpecialKey(), hasSelection(), selectAll(), setSelection(), setText(), and startSelection().

S32 LLLineEditor::mSelectionStart [protected]

Definition at line 260 of file lllineeditor.h.

Referenced by copy(), cut(), deleteSelection(), deselect(), LLLineEditorRollback::doRollback(), draw(), handleDoubleClick(), handleMouseDown(), handleSpecialKey(), hasSelection(), selectAll(), setSelection(), setText(), and startSelection().

LLColor4 LLLineEditor::mTentativeFgColor [protected]

Definition at line 275 of file lllineeditor.h.

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

LLUIString LLLineEditor::mText [protected]

Definition at line 233 of file lllineeditor.h.

Referenced by addChar(), canDoDelete(), clear(), copy(), cut(), deleteSelection(), doDelete(), LLLineEditorRollback::doRollback(), draw(), findPixelNearestPos(), getLength(), getText(), getWText(), handleDoubleClick(), handleHover(), handleKeyHere(), handleSelectionKey(), handleSpecialKey(), handleUnicodeCharHere(), isDirty(), LLLineEditor(), nextWordPos(), onFocusLost(), paste(), prevWordPos(), removeChar(), resetDirty(), selectAll(), setCursor(), setCursorAtLocalPos(), setCursorToEnd(), setSelection(), setText(), setTextArg(), and updateHistory().

LLColor4 LLLineEditor::mWriteableBgColor [protected]

Definition at line 276 of file lllineeditor.h.

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


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:27 2010 for Second Life Viewer by  doxygen 1.4.7