LLRadioGroup Class Reference

#include <llradiogroup.h>

Inheritance diagram for LLRadioGroup:

Inheritance graph
[legend]
Collaboration diagram for LLRadioGroup:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLRadioGroup (const LLString &name, const LLRect &rect, const LLString &control_name, LLUICtrlCallback callback=NULL, void *userdata=NULL, BOOL border=TRUE)
 LLRadioGroup (const LLString &name, const LLRect &rect, S32 initial_index, LLUICtrlCallback callback=NULL, void *userdata=NULL, BOOL border=TRUE)
virtual ~LLRadioGroup ()
virtual EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
virtual BOOL handleKeyHere (KEY key, MASK mask, BOOL called_from_parent)
virtual void setEnabled (BOOL enabled)
virtual LLXMLNodePtr getXML (bool save_children=true) const
void setIndexEnabled (S32 index, BOOL enabled)
S32 getSelectedIndex () const
BOOL setSelectedIndex (S32 index, BOOL from_event=FALSE)
virtual void setValue (const LLSD &value)
virtual LLSD getValue () const
void draw ()
LLRadioCtrladdRadioButton (const LLString &name, const LLString &label, const LLRect &rect, const LLFontGL *font)
LLRadioCtrlgetRadioButton (const S32 &index)
LLCtrlSelectionInterfacegetSelectionInterface ()
S32 getItemCount () const
BOOL getCanSelect () const
BOOL selectFirstItem ()
BOOL selectNthItem (S32 index)
S32 getFirstSelectedIndex () const
BOOL setCurrentByID (const LLUUID &id)
LLUUID getCurrentID ()
BOOL setSelectedByValue (LLSD value, BOOL selected)
LLSD getSimpleSelectedValue ()
BOOL isSelected (LLSD value)
BOOL operateOnSelection (EOperation op)
BOOL operateOnAll (EOperation op)

Static Public Member Functions

static LLViewfromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory)
static void onClickButton (LLUICtrl *radio, void *userdata)

Protected Types

typedef std::vector< LLRadioCtrl * > button_list_t

Protected Member Functions

void init (BOOL border)

Protected Attributes

S32 mSelectedIndex
button_list_t mRadioButtons
BOOL mHasBorder

Detailed Description

Definition at line 58 of file llradiogroup.h.


Member Typedef Documentation

typedef std::vector<LLRadioCtrl*> LLRadioGroup::button_list_t [protected]

Definition at line 135 of file llradiogroup.h.


Constructor & Destructor Documentation

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 ( const LLString name,
const LLRect rect,
S32  initial_index,
LLUICtrlCallback  callback = NULL,
void userdata = NULL,
BOOL  border = TRUE 
)

Definition at line 60 of file llradiogroup.cpp.

References init().

LLRadioGroup::~LLRadioGroup (  )  [virtual]

Definition at line 87 of file llradiogroup.cpp.


Member Function Documentation

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]

Reimplemented from LLUICtrl.

Definition at line 114 of file llradiogroup.h.

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]

Implements LLView.

Definition at line 81 of file llradiogroup.h.

References LL_RADIO_GROUP_TAG.

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.

BOOL LLRadioGroup::handleKeyHere ( KEY  key,
MASK  mask,
BOOL  called_from_parent 
) [virtual]

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.

void LLRadioGroup::init ( BOOL  border  )  [protected]

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

BOOL LLRadioGroup::isSelected ( LLSD  value  )  [virtual]

Implements LLCtrlSelectionInterface.

Definition at line 489 of file llradiogroup.cpp.

References LLSD::asString(), FALSE, mRadioButtons, mSelectedIndex, S32, and TRUE.

void LLRadioGroup::onClickButton ( LLUICtrl radio,
void userdata 
) [static]

Definition at line 273 of file llradiogroup.cpp.

References llendl, llwarns, and S32.

Referenced by addRadioButton().

BOOL LLRadioGroup::operateOnAll ( EOperation  op  ) 

Definition at line 513 of file llradiogroup.cpp.

References FALSE.

BOOL LLRadioGroup::operateOnSelection ( EOperation  op  ) 

Definition at line 508 of file llradiogroup.cpp.

References FALSE.

BOOL LLRadioGroup::selectFirstItem (  )  [inline, virtual]

Implements LLCtrlSelectionInterface.

Definition at line 119 of file llradiogroup.h.

References setSelectedIndex().

BOOL LLRadioGroup::selectNthItem ( S32  index  )  [inline, virtual]

Implements LLCtrlSelectionInterface.

Definition at line 120 of file llradiogroup.h.

References setSelectedIndex().

BOOL LLRadioGroup::setCurrentByID ( const LLUUID id  )  [virtual]

Implements LLCtrlSelectionInterface.

Definition at line 456 of file llradiogroup.cpp.

References FALSE.

void LLRadioGroup::setEnabled ( BOOL  enabled  )  [virtual]

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

void LLRadioGroup::setIndexEnabled ( S32  index,
BOOL  enabled 
)

Definition at line 104 of file llradiogroup.cpp.

References count, FALSE, mRadioButtons, mSelectedIndex, S32, and setSelectedIndex().

Referenced by LLPanelDisplay3::refreshEnabledState().

BOOL LLRadioGroup::setSelectedByValue ( LLSD  value,
BOOL  selected 
) [virtual]

Implements LLCtrlSelectionInterface.

Definition at line 466 of file llradiogroup.cpp.

References LLSD::asString(), FALSE, mRadioButtons, S32, setSelectedIndex(), and TRUE.

BOOL LLRadioGroup::setSelectedIndex ( S32  index,
BOOL  from_event = FALSE 
)

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

void LLRadioGroup::setValue ( const LLSD value  )  [virtual]

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.


Member Data Documentation

BOOL LLRadioGroup::mHasBorder [protected]

Definition at line 138 of file llradiogroup.h.

Referenced by getXML(), and init().

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


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:41 2010 for Second Life Viewer by  doxygen 1.4.7