#include <llspinctrl.h>
Inheritance diagram for LLSpinCtrl:
Definition at line 60 of file llspinctrl.h.
LLSpinCtrl::LLSpinCtrl | ( | const LLString & | name, | |
const LLRect & | rect, | |||
const LLString & | label, | |||
const LLFontGL * | font, | |||
void(*)(LLUICtrl *, void *) | commit_callback, | |||
void * | callback_userdata, | |||
F32 | initial_value, | |||
F32 | min_value, | |||
F32 | max_value, | |||
F32 | increment, | |||
const LLString & | control_name = LLString() , |
|||
S32 | label_width = SPINCTRL_DEFAULT_LABEL_WIDTH | |||
) |
Definition at line 56 of file llspinctrl.cpp.
References LLView::addChild(), bottom, FALSE, LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), MAX_STRING_LENGTH, mDownBtn, mEditor, mLabelBox, LLView::mRect, mUpBtn, NULL, onDownBtn(), onEditorCommit(), onEditorGainFocus(), onUpBtn(), LLLineEditor::prevalidateFloat(), S32, LLView::setFollowsBottom(), LLView::setFollowsLeft(), LLButton::setHeldDownCallback(), LLView::setSpanChildren(), LLUICtrl::setTabStop(), SPINCTRL_BTN_HEIGHT, SPINCTRL_BTN_WIDTH, SPINCTRL_SPACING, LLFontGL::sSansSerif, top, TRUE, and updateEditor().
Referenced by fromXML().
LLSpinCtrl::~LLSpinCtrl | ( | ) | [virtual] |
Definition at line 143 of file llspinctrl.cpp.
void LLSpinCtrl::clear | ( | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 261 of file llspinctrl.cpp.
References LLLineEditor::clear(), FALSE, mbHasBeenSet, mEditor, mMinValue, and setValue().
Referenced by LLPanelObject::getState().
void LLSpinCtrl::draw | ( | ) | [virtual] |
Reimplemented from LLView.
Definition at line 411 of file llspinctrl.cpp.
References LLView::draw(), LLView::mEnabled, mLabelBox, mTextDisabledColor, mTextEnabledColor, and LLTextBox::setColor().
void LLSpinCtrl::forceEditorCommit | ( | ) |
LLView * LLSpinCtrl::fromXML | ( | LLXMLNodePtr | node, | |
LLView * | parent, | |||
LLUICtrlFactory * | factory | |||
) | [static] |
Definition at line 496 of file llspinctrl.cpp.
References LLView::createRect(), LLRectBase< Type >::getWidth(), LLUICtrl::initFromXML(), llmin(), LLSpinCtrl(), NULL, S32, LLView::selectFont(), and setPrecision().
F32 LLSpinCtrl::get | ( | ) | [inline] |
Definition at line 81 of file llspinctrl.h.
References LLSD::asReal(), and getValue().
Referenced by LLPanelGroupGeneral::apply(), LLPanelFaceSetTEFunctor::apply(), LLInventoryViewFinder::draw(), LLPanelObject::getVolumeParams(), LLFloaterEditUI::onCommitHeight(), LLFloaterEditUI::onCommitWidth(), LLPanelFace::sendAlpha(), LLPanelObject::sendPosition(), LLPanelObject::sendRotation(), LLPanelObject::sendScale(), LLPanelGroupVoting::impl::sendStartGroupProposal(), and LLPanelGroupVoting::impl::setEnableCreateProposal().
LLSD LLSpinCtrl::getValue | ( | ) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 256 of file llspinctrl.cpp.
References mValue.
Referenced by get(), and updateEditor().
virtual LLString LLSpinCtrl::getWidgetTag | ( | ) | const [inline, virtual] |
virtual EWidgetType LLSpinCtrl::getWidgetType | ( | ) | const [inline, virtual] |
LLXMLNodePtr LLSpinCtrl::getXML | ( | bool | save_children = true |
) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 469 of file llspinctrl.cpp.
References LLView::addColorXML(), LLView::getRect(), LLTextBox::getText(), LLRectBase< Type >::getWidth(), LLUICtrl::getXML(), mIncrement, mInitialValue, mLabelBox, mMaxValue, mMinValue, mPrecision, mTextDisabledColor, mTextEnabledColor, and TRUE.
Reimplemented from LLView.
Definition at line 442 of file llspinctrl.cpp.
References FALSE, LLUICtrl::hasFocus(), KEY_DOWN, KEY_ESCAPE, KEY_UP, mEditor, onDownBtn(), onUpBtn(), LLLineEditor::setFocus(), TRUE, and updateEditor().
Reimplemented from LLView.
Definition at line 421 of file llspinctrl.cpp.
References LLView::mEnabled, onDownBtn(), onUpBtn(), and TRUE.
BOOL LLSpinCtrl::isDirty | ( | ) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 554 of file llspinctrl.cpp.
References mInitialValue, and mValue.
BOOL LLSpinCtrl::isMouseHeldDown | ( | ) |
Definition at line 359 of file llspinctrl.cpp.
References LLView::hasMouseCapture(), mDownBtn, and mUpBtn.
void LLSpinCtrl::onCommit | ( | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 366 of file llspinctrl.cpp.
References FALSE, mValue, LLUICtrl::onCommit(), LLView::setControlValue(), and setTentative().
Definition at line 200 of file llspinctrl.cpp.
References clamp_precision(), and llmax().
Referenced by handleKeyHere(), handleScrollWheel(), and LLSpinCtrl().
static void LLSpinCtrl::onEditorChangeFocus | ( | LLUICtrl * | caller, | |
S32 | direction, | |||
void * | userdata | |||
) | [static] |
Definition at line 287 of file llspinctrl.cpp.
References FALSE, llassert, mMinValue, LLLineEditor::postvalidateFloat(), TRUE, and LLLocale::USER_LOCALE.
Referenced by forceEditorCommit(), and LLSpinCtrl().
void LLSpinCtrl::onTabInto | ( | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 400 of file llspinctrl.cpp.
References mEditor, and LLLineEditor::onTabInto().
Definition at line 167 of file llspinctrl.cpp.
References clamp_precision(), and llmin().
Referenced by handleKeyHere(), handleScrollWheel(), and LLSpinCtrl().
void LLSpinCtrl::reportInvalidData | ( | ) | [protected] |
Definition at line 82 of file llspinctrl.h.
References mInitialValue, and setValue().
Referenced by LLPanelGroupGeneral::apply(), LLInventoryViewFinder::draw(), LLPanelObject::getState(), LLPanelObject::getVolumeParams(), LLPanelLandAccess::refresh(), LLFloaterEditUI::refresh(), LLFloaterEditUI::refreshCore(), LLPanelObject::sendPosition(), LLPanelGroupVoting::impl::setEnableCreateProposal(), LLPanelGroupVoting::impl::setEnableVoteProposal(), LLPanelGroupGeneral::update(), and LLInventoryViewFinder::updateElementsFromFilter().
Reimplemented from LLView.
Definition at line 345 of file llspinctrl.cpp.
References mEditor, LLLineEditor::setEnabled(), and LLView::setEnabled().
Referenced by LLPanelObject::getState(), LLPanelGroupGeneral::postBuild(), LLPanelLandAccess::refresh(), LLFloaterEditUI::refresh(), LLPanelGroupVoting::impl::setEnableCreateProposal(), LLPanelGroupVoting::impl::setEnableListProposals(), LLPanelGroupVoting::impl::setEnableVoteProposal(), and LLPanelGroupGeneral::update().
Reimplemented from LLUICtrl.
Definition at line 339 of file llspinctrl.cpp.
References mEditor, LLLineEditor::setFocus(), and LLUICtrl::setFocus().
Definition at line 97 of file llspinctrl.h.
References mIncrement.
Referenced by LLPanelObject::getState(), and LLFloaterSettingsDebug::updateControl().
void LLSpinCtrl::setLabel | ( | const LLStringExplicit & | label | ) |
Definition at line 388 of file llspinctrl.cpp.
References LLView::getName(), llendl, llwarns, mLabelBox, and LLTextBox::setText().
Referenced by LLFloaterSettingsDebug::updateControl().
Definition at line 100 of file llspinctrl.h.
References c, and mTextEnabledColor.
Referenced by LLPanelObject::draw().
Reimplemented from LLUICtrl.
Definition at line 85 of file llspinctrl.h.
References LLSD::asReal().
Referenced by LLPanelObject::getState(), LLPanelGroupVoting::impl::setEnableCreateProposal(), and LLFloaterSettingsDebug::updateControl().
Reimplemented from LLUICtrl.
Definition at line 84 of file llspinctrl.h.
References LLSD::asReal().
Referenced by LLPanelObject::getState(), and LLFloaterSettingsDebug::updateControl().
Definition at line 376 of file llspinctrl.cpp.
References llendl, llerrs, mPrecision, and updateEditor().
Referenced by fromXML(), LLFloaterEditUI::LLFloaterEditUI(), LLPanelGroupGeneral::postBuild(), LLPanelFace::postBuild(), and LLFloaterSettingsDebug::updateControl().
Reimplemented from LLUICtrl.
Definition at line 352 of file llspinctrl.cpp.
References mEditor, and LLUICtrl::setTentative().
Referenced by onCommit().
Reimplemented from LLView.
Definition at line 241 of file llspinctrl.cpp.
References LLSD::asReal(), LLUICtrl::hasFocus(), mbHasBeenSet, mEditor, mValue, TRUE, updateEditor(), and v.
Referenced by clear(), set(), and LLFloaterSettingsDebug::updateControl().
void LLSpinCtrl::updateEditor | ( | ) | [protected] |
Definition at line 270 of file llspinctrl.cpp.
References clamp_precision(), format, getValue(), llformat(), mEditor, mPrecision, LLLineEditor::setText(), and LLLocale::USER_LOCALE.
Referenced by handleKeyHere(), LLSpinCtrl(), setPrecision(), and setValue().
BOOL LLSpinCtrl::mbHasBeenSet [protected] |
LLButton* LLSpinCtrl::mDownBtn [protected] |
LLLineEditor* LLSpinCtrl::mEditor [protected] |
Definition at line 137 of file llspinctrl.h.
Referenced by clear(), forceEditorCommit(), handleKeyHere(), LLSpinCtrl(), onTabInto(), setEnabled(), setFocus(), setTentative(), setValue(), and updateEditor().
F32 LLSpinCtrl::mIncrement [protected] |
F32 LLSpinCtrl::mInitialValue [protected] |
LLTextBox* LLSpinCtrl::mLabelBox [protected] |
Definition at line 135 of file llspinctrl.h.
Referenced by draw(), getXML(), LLSpinCtrl(), and setLabel().
F32 LLSpinCtrl::mMaxValue [protected] |
F32 LLSpinCtrl::mMinValue [protected] |
Definition at line 131 of file llspinctrl.h.
Referenced by clear(), getXML(), onEditorCommit(), and setMinValue().
S32 LLSpinCtrl::mPrecision [protected] |
Definition at line 134 of file llspinctrl.h.
Referenced by getXML(), setPrecision(), and updateEditor().
LLColor4 LLSpinCtrl::mTextDisabledColor [protected] |
Definition at line 139 of file llspinctrl.h.
Referenced by draw(), getXML(), and setDisabledLabelColor().
LLColor4 LLSpinCtrl::mTextEnabledColor [protected] |
LLButton* LLSpinCtrl::mUpBtn [protected] |
F32 LLSpinCtrl::mValue [protected] |
Definition at line 128 of file llspinctrl.h.
Referenced by getValue(), isDirty(), onCommit(), and setValue().