#include <llradiogroup.h>
Inheritance diagram for LLRadioGroup:
Definition at line 58 of file llradiogroup.h.
typedef std::vector<LLRadioCtrl*> LLRadioGroup::button_list_t [protected] |
Definition at line 135 of file llradiogroup.h.
LLRadioGroup::LLRadioGroup | ( | const LLString & | name, | |
const LLRect & | rect, | |||
const LLString & | control_name, | |||
LLUICtrlCallback | callback = NULL , |
|||
void * | userdata = NULL , |
|||
BOOL | border = TRUE | |||
) |
Definition at line 48 of file llradiogroup.cpp.
References init(), NULL, and LLView::setControlName().
Referenced by fromXML().
LLRadioGroup::~LLRadioGroup | ( | ) | [virtual] |
Definition at line 87 of file llradiogroup.cpp.
LLRadioCtrl * LLRadioGroup::addRadioButton | ( | const LLString & | name, | |
const LLString & | label, | |||
const LLRect & | rect, | |||
const LLFontGL * | font | |||
) |
Definition at line 259 of file llradiogroup.cpp.
References LLView::addChild(), mRadioButtons, and onClickButton().
Referenced by fromXML(), and LLFloaterTestImpl::LLFloaterTestImpl().
void LLRadioGroup::draw | ( | ) | [virtual] |
Reimplemented from LLView.
Definition at line 230 of file llradiogroup.cpp.
References LLFocusMgr::childHasKeyboardFocus(), LLView::draw(), FALSE, gFocusMgr, mRadioButtons, mSelectedIndex, S32, and TRUE.
LLView * LLRadioGroup::fromXML | ( | LLXMLNodePtr | node, | |
LLView * | parent, | |||
LLUICtrlFactory * | factory | |||
) | [static] |
Definition at line 373 of file llradiogroup.cpp.
References addRadioButton(), LLView::createRect(), LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), HPAD, LLUICtrl::initFromXML(), llendl, LLRadioGroup(), llwarns, LLPointer< Type >::notNull(), NULL, S32, LLView::selectFont(), TRUE, and VPAD.
BOOL LLRadioGroup::getCanSelect | ( | ) | const [inline, virtual] |
Implements LLCtrlSelectionInterface.
Definition at line 118 of file llradiogroup.h.
References TRUE.
LLUUID LLRadioGroup::getCurrentID | ( | ) | [virtual] |
Implements LLCtrlSelectionInterface.
Definition at line 461 of file llradiogroup.cpp.
References LLUUID::null.
S32 LLRadioGroup::getFirstSelectedIndex | ( | ) | const [inline, virtual] |
Implements LLCtrlSelectionInterface.
Definition at line 121 of file llradiogroup.h.
References getSelectedIndex().
S32 LLRadioGroup::getItemCount | ( | ) | const [inline, virtual] |
Implements LLCtrlSelectionInterface.
Definition at line 117 of file llradiogroup.h.
References mRadioButtons.
Referenced by LLPanelDisplay3::refreshEnabledState(), and LLPanelDisplay2::refreshEnabledState().
LLRadioCtrl* LLRadioGroup::getRadioButton | ( | const S32 & | index | ) | [inline] |
Definition at line 108 of file llradiogroup.h.
References mRadioButtons.
Referenced by LLPanelDisplay2::refreshEnabledState().
S32 LLRadioGroup::getSelectedIndex | ( | ) | const |
Definition at line 149 of file llradiogroup.cpp.
References mSelectedIndex.
Referenced by getFirstSelectedIndex(), getValue(), handleKeyHere(), LLPanelDisplay3::refreshEnabledState(), LLPanelGroupVoting::impl::sendStartGroupProposal(), setSelectedIndex(), and LLFloaterProperties::updateSaleInfo().
LLCtrlSelectionInterface* LLRadioGroup::getSelectionInterface | ( | ) | [inline, virtual] |
LLSD LLRadioGroup::getSimpleSelectedValue | ( | ) | [virtual] |
Implements LLCtrlSelectionInterface.
Definition at line 484 of file llradiogroup.cpp.
References getValue().
LLSD LLRadioGroup::getValue | ( | ) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 333 of file llradiogroup.cpp.
References getSelectedIndex(), and mRadioButtons.
Referenced by LLPanelDisplay2::apply(), and getSimpleSelectedValue().
virtual LLString LLRadioGroup::getWidgetTag | ( | ) | const [inline, virtual] |
virtual EWidgetType LLRadioGroup::getWidgetType | ( | ) | const [inline, virtual] |
Implements LLView.
Definition at line 80 of file llradiogroup.h.
References WIDGET_TYPE_RADIO_GROUP.
LLXMLNodePtr LLRadioGroup::getXML | ( | bool | save_children = true |
) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 347 of file llradiogroup.cpp.
References LLUICtrl::getXML(), mHasBorder, mRadioButtons, and TRUE.
Reimplemented from LLView.
Definition at line 171 of file llradiogroup.cpp.
References FALSE, LLView::getEnabled(), getSelectedIndex(), KEY_DOWN, KEY_LEFT, KEY_RIGHT, KEY_UP, make_ui_sound(), MASK_NONE, LLUICtrl::onCommit(), setSelectedIndex(), and TRUE.
Definition at line 71 of file llradiogroup.cpp.
References LLView::addChild(), LLViewBorder::BEVEL_NONE, LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), mHasBorder, LLView::mRect, and LLViewBorder::STYLE_LINE.
Referenced by LLRadioGroup().
Implements LLCtrlSelectionInterface.
Definition at line 489 of file llradiogroup.cpp.
References LLSD::asString(), FALSE, mRadioButtons, mSelectedIndex, S32, and TRUE.
Definition at line 273 of file llradiogroup.cpp.
References llendl, llwarns, and S32.
Referenced by addRadioButton().
BOOL LLRadioGroup::operateOnAll | ( | EOperation | op | ) |
BOOL LLRadioGroup::operateOnSelection | ( | EOperation | op | ) |
BOOL LLRadioGroup::selectFirstItem | ( | ) | [inline, virtual] |
Implements LLCtrlSelectionInterface.
Definition at line 119 of file llradiogroup.h.
References setSelectedIndex().
Implements LLCtrlSelectionInterface.
Definition at line 120 of file llradiogroup.h.
References setSelectedIndex().
Implements LLCtrlSelectionInterface.
Definition at line 456 of file llradiogroup.cpp.
References FALSE.
Reimplemented from LLView.
Definition at line 93 of file llradiogroup.cpp.
References LLView::getChildList(), and LLView::setEnabled().
Referenced by LLFloaterTOS::onNavigateComplete(), LLFloaterTOS::postBuild(), LLPreviewGesture::refresh(), LLPanelPermissions::refresh(), LLPanelLandMedia::refresh(), LLPanelGroupVoting::impl::setEnableCreateProposal(), LLPanelGroupVoting::impl::setEnableListProposals(), LLPanelGroupVoting::impl::setEnableVoteProposal(), and LLFloaterTOS::setSiteIsAlive().
Definition at line 104 of file llradiogroup.cpp.
References count, FALSE, mRadioButtons, mSelectedIndex, S32, and setSelectedIndex().
Referenced by LLPanelDisplay3::refreshEnabledState().
Implements LLCtrlSelectionInterface.
Definition at line 466 of file llradiogroup.cpp.
References LLSD::asString(), FALSE, mRadioButtons, S32, setSelectedIndex(), and TRUE.
Definition at line 154 of file llradiogroup.cpp.
References FALSE, getSelectedIndex(), mRadioButtons, mSelectedIndex, S32, LLView::setControlValue(), and TRUE.
Referenced by handleKeyHere(), LLPreviewGesture::refresh(), LLPanelPermissions::refresh(), LLPanelLandMedia::refresh(), LLPanelDisplay3::refreshEnabledState(), LLFloaterProperties::refreshFromItem(), selectFirstItem(), selectNthItem(), LLPanelGroupVoting::impl::setEnableVoteProposal(), setIndexEnabled(), setSelectedByValue(), setValue(), and LLFloaterSnapshot::Impl::updateControls().
Reimplemented from LLView.
Definition at line 303 of file llradiogroup.cpp.
References LLSD::asInteger(), LLSD::asString(), LLSD::isInteger(), llendl, llwarns, mRadioButtons, S32, setSelectedIndex(), and TRUE.
BOOL LLRadioGroup::mHasBorder [protected] |
button_list_t LLRadioGroup::mRadioButtons [protected] |
Definition at line 136 of file llradiogroup.h.
Referenced by addRadioButton(), draw(), getItemCount(), getRadioButton(), getValue(), getXML(), isSelected(), setIndexEnabled(), setSelectedByValue(), setSelectedIndex(), and setValue().
S32 LLRadioGroup::mSelectedIndex [protected] |
Definition at line 134 of file llradiogroup.h.
Referenced by draw(), getSelectedIndex(), isSelected(), setIndexEnabled(), and setSelectedIndex().