#include <lllineeditor.h>
Definition at line 61 of file lllineeditor.h.
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 | |||
) |
Definition at line 91 of file lllineeditor.cpp.
References LLView::addChild(), FALSE, FOLLOWS_BOTTOM, FOLLOWS_LEFT, FOLLOWS_RIGHT, FOLLOWS_TOP, LLView::getRect(), LLUI::getUIImage(), LLUIString::length(), llassert, mBorder, mBorderThickness, mCurrentHistoryLine, mGLFont, mHaveHistory, mImage, mLineHistory, mScrollTimer, mText, LLFrameTimer::reset(), setCursor(), LLFocusableElement::setFocusLostCallback(), LLView::setFollows(), setText(), setTextPadding(), sImage, and LLFontGL::sSansSerifSmall.
Referenced by fromXML(), and LLSpinCtrl::LLSpinCtrl().
LLLineEditor::~LLLineEditor | ( | ) | [virtual] |
Definition at line 182 of file lllineeditor.cpp.
References FALSE, LLEditMenuHandler::gEditMenuHandler, gFocusMgr, mCommitOnFocusLost, NULL, and LLFocusMgr::releaseFocusIfNeeded().
LLXMLNodePtr LLLineEditor::getXML | ( | bool | save_children = true |
) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 2086 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.
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().
LLView * LLLineEditor::fromXML | ( | LLXMLNodePtr | node, | |
LLView * | parent, | |||
LLUICtrlFactory * | factory | |||
) | [static] |
Reimplemented from LLUICtrl.
Reimplemented in LLNameEditor.
Definition at line 2142 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.
void LLLineEditor::cleanupClass | ( | ) | [static] |
Definition at line 2268 of file lllineeditor.cpp.
Referenced by LLUI::cleanupClass().
Reimplemented from LLView.
Definition at line 494 of file lllineeditor.cpp.
References LLView::childrenHandleMouseDown(), deselect(), getCursor(), LLFocusMgr::getKeyboardFocus(), gFocusMgr, hasSelection(), MASK_SHIFT, mIsSelecting, mKeystrokeTimer, mLastSelectionEnd, mLastSelectionStart, mSelectAllonFocusReceived, mSelectionEnd, mSelectionStart, NULL, LLFrameTimer::reset(), S32, setCursorAtLocalPos(), setFocus(), LLFocusMgr::setMouseCapture(), startSelection(), and TRUE.
Referenced by handleDoubleClick().
Reimplemented from LLView.
Definition at line 639 of file lllineeditor.cpp.
References LLView::childrenHandleMouseUp(), FALSE, getCursor(), gFocusMgr, LLView::hasMouseCapture(), mIsSelecting, mKeystrokeTimer, mSelectionEnd, NULL, LLFrameTimer::reset(), setCursorAtLocalPos(), LLFocusMgr::setMouseCapture(), and TRUE.
Reimplemented from LLView.
Definition at line 574 of file lllineeditor.cpp.
References AUTO_SCROLL_TIME, LLView::childrenHandleHover(), FALSE, findPixelNearestPos(), getCursor(), LLFrameTimer::getElapsedTimeF32(), LLView::getName(), LLView::getWindow(), LLFrameTimer::hasExpired(), LLView::hasMouseCapture(), LLUIString::length(), llclamp(), lldebugst, llendl, llround(), mCursorPos, mIsSelecting, mKeystrokeTimer, mLastSelectionX, mLastSelectionY, mMaxHPixels, mMinHPixels, mScrollHPos, mScrollTimer, mSelectionEnd, mText, NULL, LLFrameTimer::reset(), S32, LLWindow::setCursor(), setCursorAtLocalPos(), LLFrameTimer::setTimerExpirySec(), TRUE, and UI_CURSOR_IBEAM.
Reimplemented from LLView.
Definition at line 438 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.
Reimplemented from LLView.
Definition at line 1239 of file lllineeditor.cpp.
References deselect(), LLLineEditor::LLLineEditorRollback::doRollback(), FALSE, LLFocusMgr::getKeyboardFocus(), LLUIString::getString(), LLLineEditor::LLLineEditorRollback::getText(), LLUIString::getWString(), gFocusMgr, handleSelectionKey(), handleSpecialKey(), KEY_ALT, KEY_CAPSLOCK, KEY_CONTROL, KEY_SHIFT, LLUICtrl::mCallbackUserData, mKeystrokeCallback, mKeystrokeTimer, mPrevalidateFunc, mReadOnly, mText, reportBadKeystroke(), and LLFrameTimer::reset().
Implements LLPreeditor.
Definition at line 1307 of file lllineeditor.cpp.
References addChar(), deselect(), LLLineEditor::LLLineEditorRollback::doRollback(), FALSE, LLFocusMgr::getKeyboardFocus(), LLView::getVisible(), LLUIString::getWString(), gFocusMgr, LLUICtrl::mCallbackUserData, mKeystrokeCallback, mKeystrokeTimer, mPrevalidateFunc, mReadOnly, mText, reportBadKeystroke(), LLFrameTimer::reset(), and TRUE.
void LLLineEditor::onMouseCaptureLost | ( | ) | [virtual] |
Reimplemented from LLView.
Definition at line 2068 of file lllineeditor.cpp.
References endSelection().
void LLLineEditor::cut | ( | ) | [virtual] |
Reimplemented from LLEditMenuHandler.
Definition at line 893 of file lllineeditor.cpp.
References canCut(), LLClipboard::copyFromSubstring(), deleteSelection(), LLLineEditor::LLLineEditorRollback::doRollback(), gClipboard, LLUIString::getWString(), llmin(), LLUICtrl::mCallbackUserData, mKeystrokeCallback, mPrevalidateFunc, mSelectionEnd, mSelectionStart, mText, reportBadKeystroke(), and S32.
Referenced by handleSpecialKey().
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().
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().
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().
void LLLineEditor::paste | ( | ) | [virtual] |
Reimplemented from LLEditMenuHandler.
Definition at line 945 of file lllineeditor.cpp.
References canPaste(), deleteSelection(), deselect(), LLLineEditor::LLLineEditorRollback::doRollback(), gClipboard, getCursor(), LLClipboard::getPasteWString(), LLUIString::getWString(), hasSelection(), LLUIString::insert(), LLUICtrl::mCallbackUserData, mKeystrokeCallback, mMaxLengthBytes, mPrevalidateFunc, mReplaceNewlinesWithSpaces, mText, LLStringBase< T >::replaceChar(), LLStringBase< T >::replaceTabsWithSpaces(), reportBadKeystroke(), S32, setCursor(), wchar_utf8_length(), and wstring_utf8_length().
Referenced by handleSpecialKey().
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().
void LLLineEditor::doDelete | ( | ) | [virtual] |
Reimplemented from LLEditMenuHandler.
Definition at line 1360 of file lllineeditor.cpp.
References canDoDelete(), deleteSelection(), LLLineEditor::LLLineEditorRollback::doRollback(), getCursor(), LLUIString::getWString(), hasSelection(), LLUIString::length(), LLUICtrl::mCallbackUserData, mKeystrokeCallback, mPrevalidateFunc, mText, removeChar(), reportBadKeystroke(), and setCursor().
Referenced by handleSpecialKey().
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().
void LLLineEditor::selectAll | ( | ) | [virtual] |
Reimplemented from LLEditMenuHandler.
Definition at line 428 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(), LLChatBar::setKeyboardFocus(), setText(), LLAlertDialog::show(), LLWearableSaveAsDialog::startModal(), LLFolderView::startRenamingSelectedItem(), and LLCurrencyUIManager::Impl::updateUI().
BOOL LLLineEditor::canSelectAll | ( | ) | const [virtual] |
Reimplemented from LLEditMenuHandler.
Definition at line 423 of file lllineeditor.cpp.
References TRUE.
Referenced by handleSelectionKey().
void LLLineEditor::deselect | ( | ) | [virtual] |
Reimplemented from LLEditMenuHandler.
Definition at line 399 of file lllineeditor.cpp.
References FALSE, mIsSelecting, mSelectionEnd, and mSelectionStart.
Referenced by deleteSelection(), handleKeyHere(), handleMouseDown(), handleUnicodeCharHere(), markAsPreedit(), paste(), resetPreedit(), LLFloaterIMPanel::selectNone(), setCursorToEnd(), LLChatBar::setKeyboardFocus(), and setText().
BOOL LLLineEditor::canDeselect | ( | ) | const [virtual] |
Reimplemented from LLEditMenuHandler.
Definition at line 394 of file lllineeditor.cpp.
References hasSelection().
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.
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().
void LLLineEditor::onFocusReceived | ( | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 195 of file lllineeditor.cpp.
References LLUICtrl::onFocusReceived(), and updateAllowingLanguageInput().
void LLLineEditor::onFocusLost | ( | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 201 of file lllineeditor.cpp.
References LLEditMenuHandler::gEditMenuHandler, LLUIString::getString(), LLView::getWindow(), mCommitOnFocusLost, mPrevText, mText, NULL, onCommit(), LLUICtrl::onFocusLost(), LLWindow::showCursorFromMouseMove(), and updateAllowingLanguageInput().
void LLLineEditor::setEnabled | ( | BOOL | enabled | ) | [virtual] |
Reimplemented from LLView.
Definition at line 261 of file lllineeditor.cpp.
References mReadOnly, LLUICtrl::setTabStop(), and updateAllowingLanguageInput().
Referenced by LLPanelGroupNotices::activate(), LLFloaterIMPanel::draw(), LLPanelAvatarAdvanced::enableControls(), LLPanelGroupRolesSubTab::handleRoleSelect(), LLFloaterReporter::LLFloaterReporter(), LLPreviewGesture::postBuild(), LLPanelGroupGeneral::postBuild(), LLPreviewGesture::refresh(), LLPanelPick::refresh(), LLPanelLandMedia::refresh(), LLPanelClassified::refresh(), LLPanelLandObjects::refresh(), LLPanelLandGeneral::refresh(), LLFloaterEditUI::refresh(), LLFloaterEditUI::refreshButton(), LLFloaterEditUI::refreshView(), LLSpinCtrl::setEnabled(), LLSliderCtrl::setEnabled(), and LLMultiSliderCtrl::setEnabled().
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().
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().
void LLLineEditor::setFocus | ( | BOOL | b | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 1691 of file lllineeditor.cpp.
References LLWindow::allowLanguageTextInput(), endSelection(), FALSE, LLEditMenuHandler::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(), LLChatBar::setKeyboardFocus(), LLAlertDialog::show(), LLWearableSaveAsDialog::startModal(), and LLFolderView::startRenamingSelectedItem().
void LLLineEditor::setRect | ( | const LLRect & | rect | ) | [virtual] |
Reimplemented from LLView.
Definition at line 1744 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().
BOOL LLLineEditor::acceptsTextInput | ( | ) | const [virtual] |
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
S32 LLLineEditor::getCursor | ( | ) | const [inline] |
Definition at line 145 of file lllineeditor.h.
References mCursorPos.
Referenced by addChar(), canDoDelete(), doDelete(), draw(), endSelection(), extendSelection(), findPixelNearestPos(), getPreeditLocation(), handleHover(), handleMouseDown(), handleMouseUp(), handleSelectionKey(), handleSpecialKey(), paste(), removeChar(), setCursor(), setText(), startSelection(), updatePreedit(), and LLComboBox::updateSelection().
void LLLineEditor::setCursor | ( | S32 | pos | ) |
Definition at line 354 of file lllineeditor.cpp.
References 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(), markAsPreedit(), paste(), removeChar(), resetPreedit(), reshape(), selectAll(), setCursorAtLocalPos(), setCursorToEnd(), setSelection(), setText(), and updatePreedit().
void LLLineEditor::setCursorToEnd | ( | ) |
Definition at line 388 of file lllineeditor.cpp.
References deselect(), LLUIString::length(), mText, and setCursor().
Referenced by LLChatBar::startChat().
Definition at line 742 of file lllineeditor.cpp.
References LLUIString::length(), llclamp(), mIsSelecting, mSelectionEnd, mSelectionStart, mText, S32, setCursor(), and TRUE.
Referenced by LLComboBox::updateSelection().
void LLLineEditor::setCommitOnFocusLost | ( | BOOL | b | ) | [inline] |
Definition at line 152 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::updateLayout().
void LLLineEditor::setRevertOnEsc | ( | BOOL | b | ) | [inline] |
Definition at line 153 of file lllineeditor.h.
References mRevertOnEsc.
Referenced by LLFloaterIMPanel::postBuild(), and LLChatBar::postBuild().
void LLLineEditor::setCursorColor | ( | const LLColor4 & | c | ) | [inline] |
Definition at line 155 of file lllineeditor.h.
References mCursorColor.
Referenced by setColorParameters().
const LLColor4& LLLineEditor::getCursorColor | ( | ) | const [inline] |
void LLLineEditor::setFgColor | ( | const LLColor4 & | c | ) | [inline] |
Definition at line 158 of file lllineeditor.h.
References mFgColor.
Referenced by setColorParameters().
void LLLineEditor::setReadOnlyFgColor | ( | const LLColor4 & | c | ) | [inline] |
Definition at line 159 of file lllineeditor.h.
References mReadOnlyFgColor.
Referenced by setColorParameters().
void LLLineEditor::setTentativeFgColor | ( | const LLColor4 & | c | ) | [inline] |
Definition at line 160 of file lllineeditor.h.
References mTentativeFgColor.
Referenced by setColorParameters().
void LLLineEditor::setWriteableBgColor | ( | const LLColor4 & | c | ) | [inline] |
Definition at line 161 of file lllineeditor.h.
References mWriteableBgColor.
Referenced by setColorParameters().
void LLLineEditor::setReadOnlyBgColor | ( | const LLColor4 & | c | ) | [inline] |
Definition at line 162 of file lllineeditor.h.
References mReadOnlyBgColor.
Referenced by setColorParameters().
void LLLineEditor::setFocusBgColor | ( | const LLColor4 & | c | ) | [inline] |
const LLColor4& LLLineEditor::getFgColor | ( | ) | const [inline] |
const LLColor4& LLLineEditor::getReadOnlyFgColor | ( | ) | const [inline] |
const LLColor4& LLLineEditor::getTentativeFgColor | ( | ) | const [inline] |
const LLColor4& LLLineEditor::getWriteableBgColor | ( | ) | const [inline] |
const LLColor4& LLLineEditor::getReadOnlyBgColor | ( | ) | const [inline] |
const LLColor4& LLLineEditor::getFocusBgColor | ( | ) | const [inline] |
void LLLineEditor::setIgnoreArrowKeys | ( | BOOL | b | ) | [inline] |
Definition at line 172 of file lllineeditor.h.
References mIgnoreArrowKeys.
Referenced by LLChatBar::setIgnoreArrowKeys().
void LLLineEditor::setIgnoreTab | ( | BOOL | b | ) | [inline] |
Definition at line 173 of file lllineeditor.h.
References mIgnoreTab.
Referenced by LLMultiSliderCtrl::LLMultiSliderCtrl(), LLSliderCtrl::LLSliderCtrl(), LLSpinCtrl::LLSpinCtrl(), LLPreviewGesture::postBuild(), LLChatBar::postBuild(), and LLComboBox::updateLayout().
void LLLineEditor::setPassDelete | ( | BOOL | b | ) | [inline] |
Definition at line 174 of file lllineeditor.h.
References mPassDelete.
Referenced by LLChatBar::postBuild().
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().
Definition at line 761 of file lllineeditor.cpp.
References LLUIString::getWString(), isPartOfWord(), and mText.
Referenced by handleSelectionKey(), and handleSpecialKey().
Definition at line 775 of file lllineeditor.cpp.
References getLength(), LLUIString::getWString(), isPartOfWord(), and mText.
Referenced by handleSelectionKey(), and handleSpecialKey().
BOOL LLLineEditor::hasSelection | ( | ) | const [inline] |
Definition at line 181 of file lllineeditor.h.
References mSelectionEnd, and mSelectionStart.
Referenced by addChar(), canCopy(), canCut(), canDeselect(), canDoDelete(), deleteSelection(), doDelete(), draw(), getSelectionRange(), handleMouseDown(), handleSpecialKey(), paste(), resetPreedit(), and LLComboBox::updateSelection().
void LLLineEditor::startSelection | ( | ) |
Definition at line 407 of file lllineeditor.cpp.
References getCursor(), mIsSelecting, mSelectionEnd, mSelectionStart, and TRUE.
Referenced by extendSelection(), handleDoubleClick(), and handleMouseDown().
void LLLineEditor::endSelection | ( | ) |
Definition at line 414 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 730 of file lllineeditor.cpp.
References getCursor(), mIsSelecting, mSelectionEnd, setCursor(), and startSelection().
Referenced by handleSelectionKey().
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().
void LLLineEditor::setHandleEditKeysDirectly | ( | BOOL | b | ) | [inline] |
Definition at line 187 of file lllineeditor.h.
References mHandleEditKeysDirectly.
Referenced by fromXML(), LLFloaterTestImpl::LLFloaterTestImpl(), and LLComboBox::updateLayout().
void LLLineEditor::setSelectAllonFocusReceived | ( | BOOL | b | ) |
Definition at line 2074 of file lllineeditor.cpp.
References mSelectAllonFocusReceived.
Referenced by fromXML(), LLSearchEditor::LLSearchEditor(), and LLComboBox::updateLayout().
void LLLineEditor::setKeystrokeCallback | ( | void(*)(LLLineEditor *caller, void *user_data) | keystroke_callback | ) |
Definition at line 2080 of file lllineeditor.cpp.
References mKeystrokeCallback.
Referenced by LLPanel::childSetKeystrokeCallback(), LLPreviewGesture::postBuild(), LLPanelGroupSubTab::postBuild(), LLPanelGroupLandMoney::postBuild(), LLFloaterIMPanel::postBuild(), LLFloaterWorldMap::postBuild(), LLChatBar::postBuild(), LLPanelGroupRolesSubTab::postBuildSubTab(), and LLCurrencyUIManager::Impl::prepare().
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().
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().
Definition at line 1804 of file lllineeditor.cpp.
Referenced by handleDoubleClick(), nextWordPos(), and prevWordPos().
Definition at line 1758 of file lllineeditor.cpp.
References mPrevalidateFunc, and updateAllowingLanguageInput().
Referenced by LLPanel::childSetPrevalidate(), fromXML(), LLPreviewGesture::postBuild(), LLPanelPick::postBuild(), LLFloaterPriceForListing::postBuild(), LLPanelClassified::postBuild(), LLFloaterNameDesc::postBuild(), and LLCurrencyUIManager::Impl::prepare().
Definition at line 1769 of file lllineeditor.cpp.
References FALSE, LLResMgr::getDecimalPoint(), LLSingleton< LLResMgr >::getInstance(), i, LLStringOps::isDigit(), S32, LLStringBase< T >::trim(), TRUE, and LLLocale::USER_LOCALE.
Referenced by fromXML(), LLMultiSliderCtrl::LLMultiSliderCtrl(), LLSliderCtrl::LLSliderCtrl(), LLSpinCtrl::LLSpinCtrl(), and LLPreviewGesture::postBuild().
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().
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().
Definition at line 1936 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().
Definition at line 1970 of file lllineeditor.cpp.
References FALSE, S32, TRUE, and LLLocale::USER_LOCALE.
Referenced by fromXML().
Definition at line 1989 of file lllineeditor.cpp.
References FALSE, S32, TRUE, and LLLocale::USER_LOCALE.
Referenced by fromXML().
Definition at line 2008 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(), and LLPanelRegionTools::postBuild().
Definition at line 2031 of file lllineeditor.cpp.
References FALSE, S32, and TRUE.
Referenced by fromXML(), and LLPanelLogin::LLPanelLogin().
Definition at line 2053 of file lllineeditor.cpp.
References FALSE, S32, and TRUE.
Referenced by fromXML(), and LLPanelClassified::postBuild().
Definition at line 1807 of file lllineeditor.cpp.
References FALSE, LLResMgr::getDecimalPoint(), LLSingleton< LLResMgr >::getInstance(), i, LLStringOps::isDigit(), S32, LLStringBase< T >::trim(), TRUE, LLLocale::USER_LOCALE, and utf8str_to_wstring().
Referenced by LLSpinCtrl::onEditorCommit(), LLSliderCtrl::onEditorCommit(), and LLMultiSliderCtrl::onEditorCommit().
void LLLineEditor::setEnableLineHistory | ( | BOOL | enabled | ) | [inline] |
Definition at line 211 of file lllineeditor.h.
References mHaveHistory.
Referenced by LLFloaterIMPanel::init(), and LLChatBar::postBuild().
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().
void LLLineEditor::setReplaceNewlinesWithSpaces | ( | BOOL | replace | ) |
Definition at line 2551 of file lllineeditor.cpp.
References mReplaceNewlinesWithSpaces.
Referenced by LLChatBar::postBuild().
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().
void LLLineEditor::addChar | ( | const llwchar | c | ) | [private] |
Definition at line 689 of file lllineeditor.cpp.
References deleteSelection(), LLUIString::erase(), FALSE, getCursor(), LLKeyboard::getInsertMode(), LLUIString::getString(), LLView::getWindow(), gKeyboard, hasSelection(), LLWindow::hideCursorUntilMouseMove(), LLUIString::insert(), LL_KIM_OVERWRITE, mMaxLengthBytes, mText, reportBadKeystroke(), S32, setCursor(), TRUE, and wchar_utf8_length().
Referenced by handleUnicodeCharHere().
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().
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().
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().
Definition at line 1014 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().
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().
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().
BOOL LLLineEditor::hasPreeditString | ( | ) | const [private] |
Definition at line 2350 of file lllineeditor.cpp.
References mPreeditPositions.
Referenced by draw(), getPreeditLocation(), getPreeditRange(), markAsPreedit(), and resetPreedit().
void LLLineEditor::resetPreedit | ( | ) | [private, virtual] |
Implements LLPreeditor.
Definition at line 2355 of file lllineeditor.cpp.
References deselect(), LLUIString::erase(), hasPreeditString(), hasSelection(), LLUIString::insert(), llendl, llwarns, mPreeditOverwrittenWString, mPreeditPositions, mPreeditWString, mText, S32, and setCursor().
void LLLineEditor::updatePreedit | ( | const LLWString & | preedit_string, | |
const segment_lengths_t & | preedit_segment_lengths, | |||
const standouts_t & | preedit_standouts, | |||
S32 | caret_position | |||
) | [private, virtual] |
Definition at line 2381 of file lllineeditor.cpp.
References LLUIString::erase(), getCursor(), LLKeyboard::getInsertMode(), gKeyboard, i, LLUIString::insert(), LL_KIM_OVERWRITE, LLUICtrl::mCallbackUserData, mKeystrokeCallback, mKeystrokeTimer, mPreeditOverwrittenWString, mPreeditPositions, mPreeditStandouts, mPreeditWString, mReadOnly, mText, LLFrameTimer::reset(), S32, and setCursor().
Implements LLPreeditor.
Definition at line 2514 of file lllineeditor.cpp.
References deselect(), FALSE, LLKeyboard::getInsertMode(), LLUIString::getWString(), gKeyboard, hasPreeditString(), LL_KIM_OVERWRITE, llendl, llwarns, mPreeditOverwrittenWString, mPreeditPositions, mPreeditStandouts, mPreeditWString, mText, and setCursor().
Implements LLPreeditor.
Definition at line 2486 of file lllineeditor.cpp.
References hasPreeditString(), mCursorPos, and mPreeditPositions.
Implements LLPreeditor.
Definition at line 2500 of file lllineeditor.cpp.
References hasSelection(), llabs(), llmin(), mCursorPos, mSelectionEnd, and mSelectionStart.
BOOL LLLineEditor::getPreeditLocation | ( | S32 | query_position, | |
LLCoordGL * | coord, | |||
LLRect * | bounds, | |||
LLRect * | control | |||
) | const [private, virtual] |
Implements LLPreeditor.
Definition at line 2428 of file lllineeditor.cpp.
References FALSE, findPixelNearestPos(), getCursor(), LLView::getRect(), hasPreeditString(), llmax(), llmin(), LLView::localPointToScreen(), LLView::localRectToScreen(), mBorderThickness, mPreeditPositions, mScrollHPos, LLCoord::mX, LLCoord::mY, S32, LLUI::screenPointToGL(), LLUI::screenRectToGL(), and TRUE.
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.
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().
LLUIString LLLineEditor::mText [protected] |
Definition at line 244 of file lllineeditor.h.
Referenced by addChar(), canDoDelete(), clear(), copy(), cut(), deleteSelection(), doDelete(), LLLineEditor::LLLineEditorRollback::doRollback(), draw(), findPixelNearestPos(), getLength(), getText(), getWText(), handleDoubleClick(), handleHover(), handleKeyHere(), handleSelectionKey(), handleSpecialKey(), handleUnicodeCharHere(), isDirty(), LLLineEditor(), markAsPreedit(), nextWordPos(), onFocusLost(), paste(), prevWordPos(), removeChar(), resetDirty(), resetPreedit(), selectAll(), setCursor(), setCursorAtLocalPos(), setCursorToEnd(), setSelection(), setText(), setTextArg(), updateHistory(), and updatePreedit().
LLString LLLineEditor::mPrevText [protected] |
Definition at line 245 of file lllineeditor.h.
Referenced by LLLineEditor::LLLineEditorRollback::doRollback(), handleSpecialKey(), isDirty(), onFocusLost(), resetDirty(), and setText().
LLUIString LLLineEditor::mLabel [protected] |
Definition at line 246 of file lllineeditor.h.
Referenced by draw(), getXML(), setLabel(), and setLabelArg().
BOOL LLLineEditor::mHaveHistory [protected] |
Definition at line 249 of file lllineeditor.h.
Referenced by handleSpecialKey(), LLLineEditor(), setEnableLineHistory(), and updateHistory().
std::vector<LLString> LLLineEditor::mLineHistory [protected] |
Definition at line 250 of file lllineeditor.h.
Referenced by handleSpecialKey(), LLLineEditor(), setText(), and updateHistory().
U32 LLLineEditor::mCurrentHistoryLine [protected] |
Definition at line 251 of file lllineeditor.h.
Referenced by handleSpecialKey(), LLLineEditor(), setText(), and updateHistory().
LLViewBorder* LLLineEditor::mBorder [protected] |
Definition at line 253 of file lllineeditor.h.
Referenced by draw(), getXML(), LLLineEditor(), and setRect().
const LLFontGL* LLLineEditor::mGLFont [protected] |
Definition at line 254 of file lllineeditor.h.
Referenced by draw(), findPixelNearestPos(), getPreeditFontSize(), getXML(), LLLineEditor(), setCursor(), and setCursorAtLocalPos().
S32 LLLineEditor::mMaxLengthBytes [protected] |
Definition at line 255 of file lllineeditor.h.
Referenced by addChar(), getXML(), paste(), setMaxTextLength(), and setText().
S32 LLLineEditor::mCursorPos [protected] |
Definition at line 256 of file lllineeditor.h.
Referenced by LLLineEditor::LLLineEditorRollback::doRollback(), getCursor(), getPreeditRange(), getSelectionRange(), handleDoubleClick(), handleHover(), reshape(), and setCursor().
S32 LLLineEditor::mScrollHPos [protected] |
Definition at line 257 of file lllineeditor.h.
Referenced by LLLineEditor::LLLineEditorRollback::doRollback(), draw(), findPixelNearestPos(), getPreeditLocation(), handleHover(), setCursor(), and setCursorAtLocalPos().
LLFrameTimer LLLineEditor::mScrollTimer [protected] |
S32 LLLineEditor::mTextPadLeft [protected] |
S32 LLLineEditor::mTextPadRight [protected] |
S32 LLLineEditor::mMinHPixels [protected] |
Definition at line 261 of file lllineeditor.h.
Referenced by draw(), findPixelNearestPos(), handleHover(), setCursor(), setCursorAtLocalPos(), and setTextPadding().
S32 LLLineEditor::mMaxHPixels [protected] |
Definition at line 262 of file lllineeditor.h.
Referenced by draw(), handleHover(), setCursor(), setCursorAtLocalPos(), and setTextPadding().
BOOL LLLineEditor::mCommitOnFocusLost [protected] |
Definition at line 264 of file lllineeditor.h.
Referenced by onFocusLost(), setCommitOnFocusLost(), and ~LLLineEditor().
BOOL LLLineEditor::mRevertOnEsc [protected] |
Definition at line 265 of file lllineeditor.h.
Referenced by handleSpecialKey(), and setRevertOnEsc().
void(* LLLineEditor::mKeystrokeCallback)(LLLineEditor *caller, void *userdata) [protected] |
Referenced by cut(), doDelete(), handleKeyHere(), handleUnicodeCharHere(), paste(), setKeystrokeCallback(), and updatePreedit().
BOOL LLLineEditor::mIsSelecting [protected] |
Definition at line 269 of file lllineeditor.h.
Referenced by deselect(), LLLineEditor::LLLineEditorRollback::doRollback(), endSelection(), extendSelection(), handleDoubleClick(), handleHover(), handleMouseDown(), handleMouseUp(), selectAll(), setFocus(), setSelection(), and startSelection().
S32 LLLineEditor::mSelectionStart [protected] |
Definition at line 270 of file lllineeditor.h.
Referenced by copy(), cut(), deleteSelection(), deselect(), LLLineEditor::LLLineEditorRollback::doRollback(), draw(), getSelectionRange(), handleDoubleClick(), handleMouseDown(), handleSpecialKey(), hasSelection(), selectAll(), setSelection(), setText(), and startSelection().
S32 LLLineEditor::mSelectionEnd [protected] |
Definition at line 271 of file lllineeditor.h.
Referenced by copy(), cut(), deleteSelection(), deselect(), LLLineEditor::LLLineEditorRollback::doRollback(), endSelection(), extendSelection(), getSelectionRange(), handleDoubleClick(), handleHover(), handleMouseDown(), handleMouseUp(), handleSpecialKey(), hasSelection(), selectAll(), setSelection(), setText(), and startSelection().
S32 LLLineEditor::mLastSelectionX [protected] |
S32 LLLineEditor::mLastSelectionY [protected] |
S32 LLLineEditor::mLastSelectionStart [protected] |
Definition at line 274 of file lllineeditor.h.
Referenced by handleDoubleClick(), and handleMouseDown().
S32 LLLineEditor::mLastSelectionEnd [protected] |
Definition at line 275 of file lllineeditor.h.
Referenced by handleDoubleClick(), and handleMouseDown().
S32(* LLLineEditor::mPrevalidateFunc)(const LLWString &str) [protected] |
Referenced by cut(), doDelete(), handleKeyHere(), handleUnicodeCharHere(), paste(), setFocus(), setPrevalidate(), and updateAllowingLanguageInput().
LLFrameTimer LLLineEditor::mKeystrokeTimer [protected] |
Definition at line 279 of file lllineeditor.h.
Referenced by draw(), handleDoubleClick(), handleHover(), handleKeyHere(), handleMouseDown(), handleMouseUp(), handleUnicodeCharHere(), setFocus(), and updatePreedit().
LLColor4 LLLineEditor::mCursorColor [protected] |
Definition at line 281 of file lllineeditor.h.
Referenced by getCursorColor(), getXML(), and setCursorColor().
LLColor4 LLLineEditor::mFgColor [protected] |
Definition at line 283 of file lllineeditor.h.
Referenced by draw(), getFgColor(), getXML(), and setFgColor().
LLColor4 LLLineEditor::mReadOnlyFgColor [protected] |
Definition at line 284 of file lllineeditor.h.
Referenced by draw(), getReadOnlyFgColor(), getXML(), and setReadOnlyFgColor().
LLColor4 LLLineEditor::mTentativeFgColor [protected] |
Definition at line 285 of file lllineeditor.h.
Referenced by draw(), getTentativeFgColor(), getXML(), and setTentativeFgColor().
LLColor4 LLLineEditor::mWriteableBgColor [protected] |
Definition at line 286 of file lllineeditor.h.
Referenced by draw(), getWriteableBgColor(), getXML(), and setWriteableBgColor().
LLColor4 LLLineEditor::mReadOnlyBgColor [protected] |
Definition at line 287 of file lllineeditor.h.
Referenced by draw(), getReadOnlyBgColor(), getXML(), and setReadOnlyBgColor().
LLColor4 LLLineEditor::mFocusBgColor [protected] |
Definition at line 288 of file lllineeditor.h.
Referenced by draw(), getFocusBgColor(), getXML(), and setFocusBgColor().
S32 LLLineEditor::mBorderThickness [protected] |
Definition at line 290 of file lllineeditor.h.
Referenced by draw(), getPreeditLocation(), and LLLineEditor().
BOOL LLLineEditor::mIgnoreArrowKeys [protected] |
Definition at line 292 of file lllineeditor.h.
Referenced by handleSpecialKey(), and setIgnoreArrowKeys().
BOOL LLLineEditor::mIgnoreTab [protected] |
BOOL LLLineEditor::mDrawAsterixes [protected] |
Definition at line 294 of file lllineeditor.h.
Referenced by canCopy(), canCut(), draw(), setCursorAtLocalPos(), setDrawAsterixes(), and updateAllowingLanguageInput().
BOOL LLLineEditor::mHandleEditKeysDirectly [protected] |
Definition at line 296 of file lllineeditor.h.
Referenced by getXML(), handleSelectionKey(), handleSpecialKey(), and setHandleEditKeysDirectly().
BOOL LLLineEditor::mSelectAllonFocusReceived [protected] |
Definition at line 297 of file lllineeditor.h.
Referenced by getXML(), handleMouseDown(), setFocus(), setSelectAllonFocusReceived(), and setText().
BOOL LLLineEditor::mPassDelete [protected] |
BOOL LLLineEditor::mReadOnly [protected] |
Definition at line 300 of file lllineeditor.h.
Referenced by canCut(), canDoDelete(), canPaste(), deleteSelection(), draw(), handleKeyHere(), handleSpecialKey(), handleUnicodeCharHere(), setEnabled(), updateAllowingLanguageInput(), and updatePreedit().
LLWString LLLineEditor::mPreeditWString [protected] |
Definition at line 302 of file lllineeditor.h.
Referenced by markAsPreedit(), resetPreedit(), and updatePreedit().
LLWString LLLineEditor::mPreeditOverwrittenWString [protected] |
Definition at line 303 of file lllineeditor.h.
Referenced by markAsPreedit(), resetPreedit(), and updatePreedit().
std::vector<S32> LLLineEditor::mPreeditPositions [protected] |
Definition at line 304 of file lllineeditor.h.
Referenced by draw(), getPreeditLocation(), getPreeditRange(), hasPreeditString(), markAsPreedit(), resetPreedit(), and updatePreedit().
Definition at line 305 of file lllineeditor.h.
Referenced by draw(), markAsPreedit(), and updatePreedit().
LLPointer< LLUIImage > LLLineEditor::sImage [static, private] |
LLPointer<LLUIImage> LLLineEditor::mImage [private] |
Definition at line 314 of file lllineeditor.h.
Referenced by draw(), LLLineEditor(), and setColorParameters().
BOOL LLLineEditor::mReplaceNewlinesWithSpaces [private] |
Definition at line 316 of file lllineeditor.h.
Referenced by paste(), and setReplaceNewlinesWithSpaces().