LLCheckBoxCtrl Class Reference

#include <llcheckboxctrl.h>

Inheritance diagram for LLCheckBoxCtrl:

Inheritance graph
[legend]
Collaboration diagram for LLCheckBoxCtrl:

Collaboration graph
[legend]

List of all members.

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

Protected Attributes

LLButtonmButton
LLTextBoxmLabel
const LLFontGLmFont
LLColor4 mTextEnabledColor
LLColor4 mTextDisabledColor
BOOL mRadioStyle
BOOL mInitialValue
BOOL mSetValue
BOOL mKeyboardFocusOnClick
LLViewBordermBorder


Detailed Description

Definition at line 64 of file llcheckboxctrl.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Here is the call graph for this function:

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

void LLCheckBoxCtrl::setEnabled ( BOOL  b  )  [virtual]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCheckBoxCtrl::set ( BOOL  value  )  [inline]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual BOOL LLCheckBoxCtrl::getTentative (  )  const [inline, virtual]

Reimplemented from LLUICtrl.

Definition at line 94 of file llcheckboxctrl.h.

References LLUICtrl::getTentative(), and mButton.

Here is the call graph for this function:

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().

Here is the call graph for this function:

void LLCheckBoxCtrl::clear ( void   )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 193 of file llcheckboxctrl.cpp.

References FALSE, and setValue().

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual BOOL LLCheckBoxCtrl::toggle (  )  [inline, virtual]

Definition at line 102 of file llcheckboxctrl.h.

References mButton, and LLButton::toggleState().

Referenced by LLScrollListCheck::handleClick().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCheckBoxCtrl::setEnabledColor ( const LLColor4 color  )  [inline]

Definition at line 104 of file llcheckboxctrl.h.

References mTextEnabledColor.

Referenced by fromXML().

Here is the caller graph for this function:

void LLCheckBoxCtrl::setDisabledColor ( const LLColor4 color  )  [inline]

Definition at line 105 of file llcheckboxctrl.h.

References mTextDisabledColor.

Referenced by fromXML().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

LLString LLCheckBoxCtrl::getLabel (  )  const

Definition at line 256 of file llcheckboxctrl.cpp.

References LLTextBox::getText(), and mLabel.

Referenced by LLPanelGroupSubTab::buildActionCategory(), and LLRadioGroup::getXML().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCheckBoxCtrl::setControlName ( const LLString control_name,
LLView context 
) [virtual]

Reimplemented from LLView.

Definition at line 275 of file llcheckboxctrl.cpp.

References mButton, and LLView::setControlName().

Here is the call graph for this function:

LLString LLCheckBoxCtrl::getControlName (  )  const [virtual]

Reimplemented from LLView.

Definition at line 269 of file llcheckboxctrl.cpp.

References LLView::getControlName(), and mButton.

Here is the call graph for this function:

void LLCheckBoxCtrl::onButtonPress ( void *  userdata  )  [static]

Definition at line 158 of file llcheckboxctrl.cpp.

References TRUE.

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 121 of file llcheckboxctrl.h.

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

const LLFontGL* LLCheckBoxCtrl::mFont [protected]

Definition at line 122 of file llcheckboxctrl.h.

Referenced by getXML(), and reshape().

Definition at line 123 of file llcheckboxctrl.h.

Referenced by draw(), and setEnabledColor().

Definition at line 124 of file llcheckboxctrl.h.

Referenced by draw(), and setDisabledColor().

Definition at line 125 of file llcheckboxctrl.h.

Referenced by getXML().

Definition at line 126 of file llcheckboxctrl.h.

Referenced by getXML().

Definition at line 127 of file llcheckboxctrl.h.

Referenced by isDirty(), and resetDirty().

Definition at line 128 of file llcheckboxctrl.h.

Definition at line 129 of file llcheckboxctrl.h.


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:39:50 2008 for SecondLife by  doxygen 1.5.5