#include <lltextbox.h>
Definition at line 41 of file lltextbox.h.
LLTextBox::LLTextBox | ( | const LLString & | name, | |
const LLRect & | rect, | |||
const LLString & | text, | |||
const LLFontGL * | font = NULL , |
|||
BOOL | mouse_opaque = TRUE | |||
) |
Definition at line 39 of file lltextbox.cpp.
References FALSE, LLUICtrl::setTabStop(), and setText().
Referenced by fromXML().
LLTextBox::LLTextBox | ( | const LLString & | name, | |
const LLString & | text, | |||
F32 | max_width = 200 , |
|||
const LLFontGL * | font = NULL , |
|||
BOOL | mouse_opaque = TRUE | |||
) |
Definition at line 66 of file lltextbox.cpp.
References FALSE, reshapeToFitText(), LLUICtrl::setTabStop(), and setWrappedText().
Definition at line 94 of file lltextbox.cpp.
References FALSE, LLUICtrl::setTabStop(), and setText().
LLTextBox::LLTextBox | ( | const LLString & | name_and_label | ) |
Definition at line 116 of file lltextbox.cpp.
References FALSE, reshapeToFitText(), LLUICtrl::setTabStop(), and setWrappedText().
virtual LLTextBox::~LLTextBox | ( | ) | [inline, virtual] |
Definition at line 59 of file lltextbox.h.
LLXMLNodePtr LLTextBox::getXML | ( | bool | save_children = true |
) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 428 of file lltextbox.cpp.
References LLView::addColorXML(), LLUICtrl::getXML(), mBackgroundColor, mBackgroundVisible, mBorderColor, mBorderDropShadowVisible, mBorderVisible, mDisabledColor, mFontGL, mHAlign, mHPad, mText, mTextColor, mVPad, LLFontGL::nameFromFont(), LLFontGL::nameFromHAlign(), and TRUE.
LLView * LLTextBox::fromXML | ( | LLXMLNodePtr | node, | |
LLView * | parent, | |||
class LLUICtrlFactory * | factory | |||
) | [static] |
Reimplemented from LLUICtrl.
Definition at line 452 of file lltextbox.cpp.
References FALSE, LLUICtrlFactory::getAttributeColor(), LLView::getMouseOpaque(), LLFontGL::getStyleFromString(), LLUICtrl::initFromXML(), LLTextBox(), mFontStyle, LLView::selectFont(), LLView::selectFontHAlign(), setColor(), setHAlign(), setHoverActive(), setHoverColor(), and LLView::setMouseOpaque().
void LLTextBox::draw | ( | void | ) | [virtual] |
Reimplemented from LLView.
Definition at line 326 of file lltextbox.cpp.
References LLView::drawDebugRect(), drawText(), FALSE, LLControlGroup::getColor(), LLView::getEnabled(), LLRectBase< Type >::getHeight(), LLView::getLocalRect(), LLView::getRect(), LLControlGroup::getS32(), LLRectBase< Type >::getWidth(), gl_drop_shadow(), gl_rect_2d(), gl_rect_2d_offset_local(), LLFontGL::HCENTER, LLFontGL::LEFT, mBackgroundColor, mBackgroundVisible, mBorderDropShadowVisible, mBorderVisible, mDisabledColor, mHAlign, mHasHover, mHoverColor, mHPad, mTextColor, mVPad, r, LLFontGL::RIGHT, S32, LLUI::sColorsGroup, LLUI::sConfigGroup, and LLView::sDebugRects.
Referenced by LLViewerWindow::draw().
Reimplemented from LLView.
Definition at line 387 of file lltextbox.cpp.
References LLView::reshape(), and setLineLengths().
Referenced by reshapeToFitText().
Reimplemented from LLView.
Definition at line 139 of file lltextbox.cpp.
References FALSE, LLView::getSoundFlags(), gFocusMgr, make_ui_sound(), mClickedCallback, LLView::MOUSE_DOWN, LLFocusMgr::setMouseCapture(), and TRUE.
Reimplemented from LLView.
Definition at line 162 of file lltextbox.cpp.
References FALSE, LLView::getSoundFlags(), gFocusMgr, LLView::hasMouseCapture(), make_ui_sound(), mCallbackUserData, mClickedCallback, LLView::MOUSE_UP, NULL, LLFocusMgr::setMouseCapture(), and TRUE.
Reimplemented from LLView.
Definition at line 194 of file lltextbox.cpp.
References LLView::handleHover(), mHasHover, mHoverActive, and TRUE.
void LLTextBox::setColor | ( | const LLColor4 & | c | ) | [inline, virtual] |
Reimplemented from LLUICtrl.
Definition at line 71 of file lltextbox.h.
References mTextColor.
Referenced by LLAlertDialog::createDialog(), LLSpinCtrl::draw(), LLCheckBoxCtrl::draw(), fromXML(), LLViewerWindow::initBase(), LLNetMap::LLNetMap(), LLNotifyBox::LLNotifyBox(), LLWorldMapView::LLWorldMapView(), LLSliderCtrl::setEnabled(), LLMultiSliderCtrl::setEnabled(), and LLUploadDialog::setMessage().
void LLTextBox::setDisabledColor | ( | const LLColor4 & | c | ) | [inline] |
Definition at line 72 of file lltextbox.h.
References mDisabledColor.
Referenced by LLGroupNotifyBox::LLGroupNotifyBox().
void LLTextBox::setBackgroundColor | ( | const LLColor4 & | c | ) | [inline] |
Definition at line 73 of file lltextbox.h.
References mBackgroundColor.
Referenced by LLViewerWindow::initBase(), LLGroupNotifyBox::LLGroupNotifyBox(), and LLNotifyBox::LLNotifyBox().
void LLTextBox::setBorderColor | ( | const LLColor4 & | c | ) | [inline] |
Definition at line 74 of file lltextbox.h.
References mBorderColor.
Referenced by LLViewerWindow::initBase().
void LLTextBox::setHoverColor | ( | const LLColor4 & | c | ) | [inline] |
Definition at line 76 of file lltextbox.h.
References mHoverColor.
Referenced by fromXML().
void LLTextBox::setHoverActive | ( | BOOL | active | ) | [inline] |
Definition at line 77 of file lltextbox.h.
References mHoverActive.
Referenced by fromXML().
void LLTextBox::setText | ( | const LLStringExplicit & | text | ) |
Definition at line 204 of file lltextbox.cpp.
References LLUIString::assign(), mText, and setLineLengths().
Referenced by LLSliderCtrl::clear(), LLMultiSliderCtrl::clear(), LLFloaterLagMeter::determineClient(), LLFloaterLagMeter::determineNetwork(), LLFloaterLagMeter::determineServer(), LLPanelPlace::displayItemInfo(), LLPanelEvent::draw(), LLDebugVarMessageBox::draw(), LLNameBox::LLNameBox(), LLPanelLogin::LLPanelLogin(), LLTextBox(), LLPanelPlace::postBuild(), LLStatusBar::refresh(), LLPreviewGesture::refresh(), LLNameBox::refresh(), LLPanelLandCovenant::refresh(), LLPanelLandObjects::refresh(), LLPanelLandGeneral::refresh(), LLPanelEstateCovenant::refreshFromRegion(), LLPanelLandGeneral::refreshNames(), LLPanelPlace::resetLocation(), LLStatusBar::setBalance(), LLTextureCtrl::setCaption(), LLPanelGroupVoting::impl::setEnableVoteProposal(), LLPanelEstateCovenant::setEstateName(), LLStatusBar::setHealth(), LLTextureCtrl::setLabel(), LLColorSwatchCtrl::setLabel(), LLSpinCtrl::setLabel(), LLSliderCtrl::setLabel(), LLMultiSliderCtrl::setLabel(), LLCheckBoxCtrl::setLabel(), LLPanelPlace::setLocationString(), LLUploadDialog::setMessage(), LLNameBox::setNameID(), LLPanelEstateCovenant::setOwnerName(), LLFloaterTools::setStatusText(), LLViewChildren::setText(), LLTabContainer::setTitle(), setValue(), setWrappedText(), LLPanelGroupInvite::update(), LLPanelGroupGeneral::update(), LLFloaterBuyLandUI::updateCovenantInfo(), LLPanelEstateCovenant::updateEstateName(), LLPanelLandCovenant::updateEstateName(), LLFloaterBuyLandUI::updateEstateName(), LLPanelEstateCovenant::updateEstateOwnerName(), LLPanelLandCovenant::updateEstateOwnerName(), LLFloaterBuyLandUI::updateEstateOwnerName(), LLPanelEstateCovenant::updateLastModified(), LLPanelLandCovenant::updateLastModified(), LLFloaterBuyLandUI::updateLastModified(), LLPanelGroupInvite::updateLists(), LLPanelDisplay::updateSliderText(), LLSliderCtrl::updateText(), and LLMultiSliderCtrl::updateText().
void LLTextBox::setWrappedText | ( | const LLStringExplicit & | text, | |
F32 | max_width = -1.0 | |||
) |
Definition at line 237 of file lltextbox.cpp.
References LLView::getRect(), LLRectBase< Type >::getWidth(), LLFontGL::maxDrawableChars(), mFontGL, indra::util::named_query::run(), setText(), TRUE, utf8str_to_wstring(), and wstring_to_utf8str().
Referenced by LLPanel::childSetWrappedText(), LLViewerWindow::handlePerFrameHover(), LLNotifyBox::LLNotifyBox(), LLTextBox(), LLFloaterBuyLandUI::refreshUI(), LLViewChildren::setWrappedText(), and LLFloaterBuyCurrencyUI::updateUI().
void LLTextBox::setUseEllipses | ( | BOOL | use_ellipses | ) | [inline] |
Definition at line 81 of file lltextbox.h.
References mUseEllipses.
Referenced by LLVoiceRemoteCtrl::postBuild().
void LLTextBox::setBackgroundVisible | ( | BOOL | visible | ) | [inline] |
Definition at line 83 of file lltextbox.h.
References mBackgroundVisible.
Referenced by LLViewerWindow::initBase(), and LLGroupNotifyBox::LLGroupNotifyBox().
void LLTextBox::setBorderVisible | ( | BOOL | visible | ) | [inline] |
Definition at line 84 of file lltextbox.h.
References mBorderVisible.
Referenced by LLViewerWindow::initBase(), LLGroupNotifyBox::LLGroupNotifyBox(), LLNotifyBox::LLNotifyBox(), and LLPreviewGesture::postBuild().
void LLTextBox::setFontStyle | ( | U8 | style | ) | [inline] |
Definition at line 85 of file lltextbox.h.
References mFontStyle.
Referenced by LLViewerWindow::initBase(), LLGroupNotifyBox::LLGroupNotifyBox(), LLNotifyBox::LLNotifyBox(), and LLDragHandleTop::setTitle().
void LLTextBox::setBorderDropshadowVisible | ( | BOOL | visible | ) | [inline] |
Definition at line 86 of file lltextbox.h.
References mBorderDropShadowVisible.
Referenced by LLViewerWindow::initBase().
void LLTextBox::setHPad | ( | S32 | pixels | ) | [inline] |
Definition at line 87 of file lltextbox.h.
References mHPad.
Referenced by LLViewerWindow::initBase().
void LLTextBox::setVPad | ( | S32 | pixels | ) | [inline] |
Definition at line 88 of file lltextbox.h.
References mVPad.
Referenced by LLViewerWindow::initBase().
void LLTextBox::setRightAlign | ( | ) | [inline] |
void LLTextBox::setHAlign | ( | LLFontGL::HAlign | align | ) | [inline] |
Definition at line 90 of file lltextbox.h.
References mHAlign.
Referenced by fromXML(), and LLTextureCtrl::LLTextureCtrl().
void LLTextBox::setClickedCallback | ( | void(*)(void *data) | cb | ) | [inline] |
Definition at line 91 of file lltextbox.h.
References mClickedCallback.
Referenced by LLPanel::childSetActionTextbox(), LLFloaterTestImpl::LLFloaterTestImpl(), and LLPanelLogin::LLPanelLogin().
void LLTextBox::setCallbackUserData | ( | void * | data | ) | [inline] |
Reimplemented from LLUICtrl.
Definition at line 92 of file lltextbox.h.
References mCallbackUserData.
Referenced by LLPanelLogin::LLPanelLogin().
const LLFontGL* LLTextBox::getFont | ( | ) | const [inline] |
Definition at line 94 of file lltextbox.h.
References mFontGL.
Referenced by LLPanelGroupGeneral::postBuild().
void LLTextBox::reshapeToFitText | ( | ) |
Definition at line 420 of file lltextbox.cpp.
References getTextPixelHeight(), getTextPixelWidth(), mHPad, mVPad, reshape(), and S32.
Referenced by LLViewerWindow::handlePerFrameHover(), and LLTextBox().
const LLString& LLTextBox::getText | ( | ) | const [inline] |
Definition at line 98 of file lltextbox.h.
References LLUIString::getString(), and mText.
Referenced by LLPanelEstateCovenant::getEstateName(), LLCheckBoxCtrl::getLabel(), LLPanelEstateCovenant::getOwnerName(), LLDragHandleTop::getTitle(), getValue(), LLColorSwatchCtrl::getXML(), LLSpinCtrl::getXML(), LLSliderCtrl::getXML(), LLMultiSliderCtrl::getXML(), LLCheckBoxCtrl::getXML(), LLStatusBar::refresh(), LLCheckBoxCtrl::reshape(), LLSliderCtrl::setLabelArg(), and LLMultiSliderCtrl::setLabelArg().
S32 LLTextBox::getTextPixelWidth | ( | ) |
Definition at line 283 of file lltextbox.cpp.
References LLFontGL::getWidth(), LLUIString::getWString(), mFontGL, mLineLengthList, mText, and S32.
Referenced by LLStatusBar::refresh(), and reshapeToFitText().
S32 LLTextBox::getTextPixelHeight | ( | ) |
Definition at line 308 of file lltextbox.cpp.
References LLFontGL::getLineHeight(), mFontGL, mLineLengthList, and S32.
Referenced by reshapeToFitText().
virtual void LLTextBox::setValue | ( | const LLSD & | value | ) | [inline, virtual] |
Reimplemented from LLView.
Definition at line 102 of file lltextbox.h.
References LLSD::asString(), and setText().
Referenced by LLPanelActiveSpeakers::refreshSpeakers(), and LLFloaterEnvSettings::syncMenu().
virtual LLSD LLTextBox::getValue | ( | ) | const [inline, virtual] |
Reimplemented from LLUICtrl.
Definition at line 103 of file lltextbox.h.
References getText().
BOOL LLTextBox::setTextArg | ( | const LLString & | key, | |
const LLStringExplicit & | text | |||
) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 319 of file lltextbox.cpp.
References mText, LLUIString::setArg(), setLineLengths(), and TRUE.
Referenced by LLPanelLandOptions::refresh(), LLPanelLandObjects::refresh(), LLPanelLandGeneral::refresh(), LLPanelLandGeneral::refreshNames(), LLSliderCtrl::setLabelArg(), LLMultiSliderCtrl::setLabelArg(), LLCheckBoxCtrl::setLabelArg(), and LLFloaterTexturePicker::updateImageStats().
void LLTextBox::setLineLengths | ( | ) | [private] |
Definition at line 210 of file lltextbox.cpp.
References LLUIString::getWString(), mLineLengthList, mText, and S32.
Referenced by reshape(), setText(), and setTextArg().
Definition at line 394 of file lltextbox.cpp.
References LLFontGL::getLineHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), LLUIString::getWString(), llfloor(), mFontGL, mFontStyle, mHAlign, mLineLengthList, mText, mUseEllipses, mVAlign, NULL, LLFontGL::render(), S32, S32_MAX, and TRUE.
Referenced by draw().
LLUIString LLTextBox::mText [private] |
Definition at line 110 of file lltextbox.h.
Referenced by drawText(), getText(), getTextPixelWidth(), getXML(), setLineLengths(), setText(), and setTextArg().
const LLFontGL* LLTextBox::mFontGL [private] |
Definition at line 111 of file lltextbox.h.
Referenced by drawText(), getFont(), getTextPixelHeight(), getTextPixelWidth(), getXML(), and setWrappedText().
LLColor4 LLTextBox::mTextColor [private] |
LLColor4 LLTextBox::mDisabledColor [private] |
LLColor4 LLTextBox::mBackgroundColor [private] |
Definition at line 114 of file lltextbox.h.
Referenced by draw(), getXML(), and setBackgroundColor().
LLColor4 LLTextBox::mBorderColor [private] |
LLColor4 LLTextBox::mHoverColor [private] |
BOOL LLTextBox::mHoverActive [private] |
BOOL LLTextBox::mHasHover [private] |
BOOL LLTextBox::mBackgroundVisible [private] |
Definition at line 120 of file lltextbox.h.
Referenced by draw(), getXML(), and setBackgroundVisible().
BOOL LLTextBox::mBorderVisible [private] |
U8 LLTextBox::mFontStyle [private] |
Definition at line 123 of file lltextbox.h.
Referenced by drawText(), fromXML(), and setFontStyle().
BOOL LLTextBox::mBorderDropShadowVisible [private] |
Definition at line 124 of file lltextbox.h.
Referenced by draw(), getXML(), and setBorderDropshadowVisible().
BOOL LLTextBox::mUseEllipses [private] |
S32 LLTextBox::mHPad [private] |
Definition at line 127 of file lltextbox.h.
Referenced by draw(), getXML(), reshapeToFitText(), and setHPad().
S32 LLTextBox::mVPad [private] |
Definition at line 128 of file lltextbox.h.
Referenced by draw(), getXML(), reshapeToFitText(), and setVPad().
LLFontGL::HAlign LLTextBox::mHAlign [private] |
Definition at line 129 of file lltextbox.h.
Referenced by draw(), drawText(), getXML(), setHAlign(), and setRightAlign().
LLFontGL::VAlign LLTextBox::mVAlign [private] |
std::vector<S32> LLTextBox::mLineLengthList [private] |
Definition at line 132 of file lltextbox.h.
Referenced by drawText(), getTextPixelHeight(), getTextPixelWidth(), and setLineLengths().
void(* LLTextBox::mClickedCallback)(void *data) [private] |
Referenced by handleMouseDown(), handleMouseUp(), and setClickedCallback().
void* LLTextBox::mCallbackUserData [private] |
Reimplemented from LLUICtrl.
Definition at line 134 of file lltextbox.h.
Referenced by handleMouseUp(), and setCallbackUserData().