#include <llcheckboxctrl.h>
Public Member Functions | |
LLCheckBoxCtrl (const LLString &name, const LLRect &rect, const LLString &label, const LLFontGL *font=NULL, void(*commit_callback)(LLUICtrl *, void *)=NULL, void *callback_userdata=NULL, BOOL initial_value=FALSE, BOOL use_radio_style=FALSE, const LLString &control_which=LLString::null) | |
virtual | ~LLCheckBoxCtrl () |
virtual LLXMLNodePtr | getXML (bool save_children=true) const |
virtual void | setEnabled (BOOL b) |
virtual void | draw () |
virtual void | reshape (S32 width, S32 height, BOOL called_from_parent=TRUE) |
virtual void | setValue (const LLSD &value) |
virtual LLSD | getValue () const |
BOOL | get () |
void | set (BOOL value) |
virtual void | setTentative (BOOL b) |
virtual BOOL | getTentative () const |
virtual BOOL | setLabelArg (const LLString &key, const LLStringExplicit &text) |
virtual void | clear () |
virtual void | onCommit () |
virtual BOOL | toggle () |
void | setEnabledColor (const LLColor4 &color) |
void | setDisabledColor (const LLColor4 &color) |
void | setLabel (const LLStringExplicit &label) |
LLString | getLabel () const |
virtual void | setControlName (const LLString &control_name, LLView *context) |
virtual LLString | getControlName () const |
virtual BOOL | isDirty () const |
virtual void | resetDirty () |
Static Public Member Functions | |
static LLView * | fromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) |
static void | onButtonPress (void *userdata) |
Protected Attributes | |
LLButton * | mButton |
LLTextBox * | mLabel |
const LLFontGL * | mFont |
LLColor4 | mTextEnabledColor |
LLColor4 | mTextDisabledColor |
BOOL | mRadioStyle |
BOOL | mInitialValue |
BOOL | mSetValue |
BOOL | mKeyboardFocusOnClick |
LLViewBorder * | mBorder |
Definition at line 64 of file llcheckboxctrl.h.
LLCheckBoxCtrl::LLCheckBoxCtrl | ( | const LLString & | name, | |
const LLRect & | rect, | |||
const LLString & | label, | |||
const LLFontGL * | font = NULL , |
|||
void(*)(LLUICtrl *, void *) | commit_callback = NULL , |
|||
void * | callback_userdata = NULL , |
|||
BOOL | initial_value = FALSE , |
|||
BOOL | use_radio_style = FALSE , |
|||
const LLString & | control_which = LLString::null | |||
) |
LLCheckBoxCtrl::~LLCheckBoxCtrl | ( | ) | [virtual] |
Definition at line 151 of file llcheckboxctrl.cpp.
LLXMLNodePtr LLCheckBoxCtrl::getXML | ( | bool | save_children = true |
) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 304 of file llcheckboxctrl.cpp.
References LLView::getControlName(), LLTextBox::getText(), LLUICtrl::getXML(), mButton, mFont, mInitialValue, mLabel, mRadioStyle, LLFontGL::nameFromFont(), and TRUE.
LLView * LLCheckBoxCtrl::fromXML | ( | LLXMLNodePtr | node, | |
LLView * | parent, | |||
LLUICtrlFactory * | factory | |||
) | [static] |
Reimplemented from LLUICtrl.
Definition at line 322 of file llcheckboxctrl.cpp.
References LLSD::asBoolean(), LLView::createRect(), FALSE, LLUICtrlFactory::getAttributeColor(), LLControlGroup::getColor(), getValue(), LLUICtrl::initFromXML(), LLCheckboxCtrl, NULL, LLUI::sColorsGroup, LLView::selectFont(), setDisabledColor(), setEnabledColor(), and setValue().
void LLCheckBoxCtrl::setEnabled | ( | BOOL | b | ) | [virtual] |
Reimplemented from LLView.
Definition at line 187 of file llcheckboxctrl.cpp.
References mButton, and LLView::setEnabled().
Referenced by LLScrollListCtrl::addElement(), LLPanelGroupSubTab::buildActionCategory(), LLPanelObject::clearCtrls(), LLPanelDisplay::disableUnavailableSettings(), LLLiveLSLEditor::draw(), LLPanelLandOptions::draw(), LLFloaterColorPicker::draw(), LLPanelAvatarAdvanced::enableControls(), LLPanelObject::getState(), LLPanelGroupMembersSubTab::handleMemberSelect(), LLPanelGroupRolesSubTab::handleRoleSelect(), LLFloaterColorPicker::LLFloaterColorPicker(), LLPanelGroupGeneral::postBuild(), LLPanelLandOptions::postBuild(), LLPreviewGesture::refresh(), LLPanelPick::refresh(), LLPanelLandMedia::refresh(), LLPanelClassified::refresh(), LLPanelLandOptions::refresh(), LLPanelLandGeneral::refresh(), LLPanelDisplay::refreshEnabledState(), LLScrollListCheck::setEnabled(), LLRadioGroup::setIndexEnabled(), LLPanelGroupGeneral::update(), LLFloaterBuyLandUI::updateCovenantInfo(), LLFloaterBuyLandUI::updateCovenantText(), and LLFloaterTools::updatePopup().
void LLCheckBoxCtrl::draw | ( | void | ) | [virtual] |
Reimplemented from LLView.
Definition at line 223 of file llcheckboxctrl.cpp.
References LLView::draw(), LLView::getEnabled(), mLabel, mTextDisabledColor, mTextEnabledColor, and LLTextBox::setColor().
Referenced by LLScrollListCheck::draw().
Reimplemented from LLView.
Definition at line 198 of file llcheckboxctrl.cpp.
References LLFontGL::getLineHeight(), LLTextBox::getText(), LLFontGL::getWidth(), LLCHECKBOXCTRL_BTN_SIZE, LLCHECKBOXCTRL_HPAD, LLCHECKBOXCTRL_SPACING, LLCHECKBOXCTRL_VPAD, llmax(), llround(), mButton, mFont, mLabel, LLView::reshape(), S32, LLRectBase< Type >::setOriginAndSize(), and LLView::setRect().
Referenced by setLabel(), and setLabelArg().
void LLCheckBoxCtrl::setValue | ( | const LLSD & | value | ) | [virtual] |
Reimplemented from LLView.
Reimplemented in LLRadioCtrl.
Definition at line 239 of file llcheckboxctrl.cpp.
References mButton, and LLButton::setValue().
Referenced by LLScrollListCtrl::addElement(), clear(), LLPanelDisplay::disableUnavailableSettings(), fromXML(), set(), LLAlertDialog::setCheckBox(), LLScrollListCheck::setValue(), and LLRadioCtrl::setValue().
LLSD LLCheckBoxCtrl::getValue | ( | ) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 245 of file llcheckboxctrl.cpp.
References LLButton::getValue(), and mButton.
Referenced by fromXML(), get(), LLScrollListCheck::getValue(), LLAlertDialog::handleCallbacks(), and LLFloaterPostProcess::onBoolToggle().
BOOL LLCheckBoxCtrl::get | ( | ) | [inline] |
Definition at line 90 of file llcheckboxctrl.h.
References LLSD::asBoolean(), and getValue().
Referenced by LLPanelGroupGeneral::apply(), LLPanelDisplay::apply(), LLPanelDebug::apply(), LLPanelDisplay::applyResolution(), commit_select_component(), LLPanelGroupRolesSubTab::handleActionCheck(), LLFloaterScriptSearch::handleBtnReplace(), LLFloaterScriptSearch::handleBtnReplaceAll(), LLFloaterScriptSearch::handleBtnSearch(), LLFloaterColorPicker::handleMouseDown(), LLFloaterColorPicker::handleMouseUp(), LLFloaterTexturePicker::onApplyImmediateCheck(), LLFloaterWindLight::onBoolToggle(), LLFloaterWater::onBoolToggle(), LLFloaterSnapshot::Impl::onClickAutoSnap(), LLFloaterSnapshot::Impl::onClickHUDCheck(), LLFloaterSnapshot::Impl::onClickKeepAspectCheck(), LLFloaterSnapshot::Impl::onClickKeepOpenCheck(), LLFloaterSnapshot::Impl::onClickUICheck(), LLFloaterWindLight::onCloudScrollXToggled(), LLFloaterWindLight::onCloudScrollYToggled(), LLPanelLandGeneral::onCommitAny(), LLPanelDirLand::onCommitArea(), LLPanelWeb::onCommitCookies(), LLFloaterSnapshot::Impl::onCommitFreezeFrame(), LLPanelPermissions::onCommitIncludeInSearch(), LLPanelPermissions::onCommitPerm(), LLFloaterProperties::onCommitPermissions(), LLPanelNetwork::onCommitPort(), LLPanelDirLand::onCommitPrice(), LLPanelWeb::onCommitWebProxyEnabled(), LLPanelGroupRolesSubTab::onMemberVisibilityChange(), LLPanelGroupMembersSubTab::onRoleCheck(), LLLiveLSLEditor::onRunningCheckboxClicked(), LLFloaterTexturePicker::onShowFolders(), LLFloaterLandmark::onShowFolders(), LLFloaterColorPicker::onTextEntryChanged(), LLPanelDisplay::refreshEnabledState(), LLFloaterBuyLandUI::refreshUI(), LLPanelObject::sendCastShadows(), LLPanelClassified::sendClassifiedInfoUpdate(), LLPanelFace::sendFullbright(), LLPanelObject::sendIsPhantom(), LLPanelObject::sendIsPhysical(), LLPanelObject::sendIsTemporary(), LLPanelPick::sendPickInfoUpdate(), LLPanelPermissions::setAllSaleInfo(), and LLFloaterTools::updatePopup().
void LLCheckBoxCtrl::set | ( | BOOL | value | ) | [inline] |
Definition at line 91 of file llcheckboxctrl.h.
References setValue().
Referenced by LLPanelGroupRolesSubTab::addActionCB(), LLPanelGroupSubTab::buildActionCategory(), LLPanelObject::clearCtrls(), LLLiveLSLEditor::draw(), LLPanelLandOptions::draw(), LLPanelObject::getState(), LLPanelGroupRolesSubTab::handleActionCheck(), LLPanelGroupMembersSubTab::handleMemberSelect(), LLPanelGroupRolesSubTab::handleRoleSelect(), LLFloaterColorPicker::LLFloaterColorPicker(), LLPanelDisplay::onKeystrokeAspectRatio(), LLLiveLSLEditor::onRunningCheckboxClicked(), LLPanelDisplay::onSelectAspectRatio(), LLPanelGroupGeneral::postBuild(), LLPanelDisplay::postBuild(), LLFloaterColorPicker::postBuild(), LLLiveLSLEditor::processScriptRunningReply(), LLPreviewGesture::refresh(), LLPanelLandMedia::refresh(), LLPanelLandOptions::refresh(), LLPanelLandGeneral::refresh(), LLFloaterProperties::refreshFromItem(), LLPanelAvatarAdvanced::setWantSkills(), LLPanelGroupGeneral::update(), LLFloaterBuyLandUI::updateCovenantInfo(), LLFloaterBuyLandUI::updateCovenantText(), and LLFloaterTools::updatePopup().
virtual void LLCheckBoxCtrl::setTentative | ( | BOOL | b | ) | [inline, virtual] |
Reimplemented from LLUICtrl.
Definition at line 93 of file llcheckboxctrl.h.
References mButton, and LLUICtrl::setTentative().
Referenced by LLPanelGroupSubTab::buildActionCategory(), LLPanelObject::getState(), LLPanelGroupMembersSubTab::handleMemberSelect(), onCommit(), and LLFloaterProperties::refreshFromItem().
virtual BOOL LLCheckBoxCtrl::getTentative | ( | ) | const [inline, virtual] |
Reimplemented from LLUICtrl.
Definition at line 94 of file llcheckboxctrl.h.
References LLUICtrl::getTentative(), and mButton.
BOOL LLCheckBoxCtrl::setLabelArg | ( | const LLString & | key, | |
const LLStringExplicit & | text | |||
) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 261 of file llcheckboxctrl.cpp.
References FALSE, LLView::getRect(), mLabel, reshape(), and LLTextBox::setTextArg().
void LLCheckBoxCtrl::clear | ( | void | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 193 of file llcheckboxctrl.cpp.
References FALSE, and setValue().
void LLCheckBoxCtrl::onCommit | ( | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 178 of file llcheckboxctrl.cpp.
References FALSE, LLView::getEnabled(), LLUICtrl::onCommit(), and setTentative().
Referenced by LLScrollListCheck::onCommit().
virtual BOOL LLCheckBoxCtrl::toggle | ( | ) | [inline, virtual] |
Definition at line 102 of file llcheckboxctrl.h.
References mButton, and LLButton::toggleState().
Referenced by LLScrollListCheck::handleClick().
void LLCheckBoxCtrl::setEnabledColor | ( | const LLColor4 & | color | ) | [inline] |
Definition at line 104 of file llcheckboxctrl.h.
References mTextEnabledColor.
Referenced by fromXML().
void LLCheckBoxCtrl::setDisabledColor | ( | const LLColor4 & | color | ) | [inline] |
Definition at line 105 of file llcheckboxctrl.h.
References mTextDisabledColor.
Referenced by fromXML().
void LLCheckBoxCtrl::setLabel | ( | const LLStringExplicit & | label | ) |
Definition at line 250 of file llcheckboxctrl.cpp.
References FALSE, LLView::getRect(), mLabel, reshape(), and LLTextBox::setText().
Referenced by LLLiveLSLEditor::draw(), and LLPanelLandOptions::refresh().
LLString LLCheckBoxCtrl::getLabel | ( | ) | const |
Definition at line 256 of file llcheckboxctrl.cpp.
References LLTextBox::getText(), and mLabel.
Referenced by LLPanelGroupSubTab::buildActionCategory(), and LLRadioGroup::getXML().
Reimplemented from LLView.
Definition at line 275 of file llcheckboxctrl.cpp.
References mButton, and LLView::setControlName().
LLString LLCheckBoxCtrl::getControlName | ( | ) | const [virtual] |
Reimplemented from LLView.
Definition at line 269 of file llcheckboxctrl.cpp.
References LLView::getControlName(), and mButton.
void LLCheckBoxCtrl::onButtonPress | ( | void * | userdata | ) | [static] |
BOOL LLCheckBoxCtrl::isDirty | ( | ) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 282 of file llcheckboxctrl.cpp.
References FALSE, LLButton::getToggleState(), mButton, and mSetValue.
Referenced by LLPanelClassified::checkDirty().
void LLCheckBoxCtrl::resetDirty | ( | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 293 of file llcheckboxctrl.cpp.
References LLButton::getToggleState(), mButton, and mSetValue.
Referenced by LLPanelClassified::resetDirty().
LLButton* LLCheckBoxCtrl::mButton [protected] |
Definition at line 120 of file llcheckboxctrl.h.
Referenced by getControlName(), getTentative(), getValue(), getXML(), isDirty(), resetDirty(), reshape(), setControlName(), setEnabled(), setTentative(), LLRadioCtrl::setValue(), setValue(), and toggle().
LLTextBox* LLCheckBoxCtrl::mLabel [protected] |
Definition at line 121 of file llcheckboxctrl.h.
Referenced by draw(), getLabel(), getXML(), reshape(), setLabel(), and setLabelArg().
const LLFontGL* LLCheckBoxCtrl::mFont [protected] |
LLColor4 LLCheckBoxCtrl::mTextEnabledColor [protected] |
LLColor4 LLCheckBoxCtrl::mTextDisabledColor [protected] |
BOOL LLCheckBoxCtrl::mRadioStyle [protected] |
BOOL LLCheckBoxCtrl::mInitialValue [protected] |
BOOL LLCheckBoxCtrl::mSetValue [protected] |
BOOL LLCheckBoxCtrl::mKeyboardFocusOnClick [protected] |
Definition at line 128 of file llcheckboxctrl.h.
LLViewBorder* LLCheckBoxCtrl::mBorder [protected] |
Definition at line 129 of file llcheckboxctrl.h.