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 BOOL handleKeyHere (KEY key, MASK mask)
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)
BOOL selectItemRange (S32 first, S32 last)
S32 getFirstSelectedIndex () const
BOOL setCurrentByID (const LLUUID &id)
LLUUID getCurrentID () const
BOOL setSelectedByValue (const LLSD &value, BOOL selected)
LLSD getSelectedValue ()
BOOL isSelected (const LLSD &value) const
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)

Private Types

typedef std::vector
< LLRadioCtrl * > 
button_list_t

Private Member Functions

void init (BOOL border)

Private Attributes

S32 mSelectedIndex
button_list_t mRadioButtons
BOOL mHasBorder


Detailed Description

Definition at line 63 of file llradiogroup.h.


Member Typedef Documentation

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

Definition at line 137 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 47 of file llradiogroup.cpp.

References init(), NULL, and LLView::setControlName().

Referenced by fromXML().

Here is the call graph for this function:

Here is the caller graph for this function:

LLRadioGroup::LLRadioGroup ( const LLString name,
const LLRect rect,
S32  initial_index,
LLUICtrlCallback  callback = NULL,
void *  userdata = NULL,
BOOL  border = TRUE 
)

Definition at line 59 of file llradiogroup.cpp.

References init().

Here is the call graph for this function:

LLRadioGroup::~LLRadioGroup (  )  [virtual]

Definition at line 86 of file llradiogroup.cpp.


Member Function Documentation

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

Reimplemented from LLView.

Definition at line 165 of file llradiogroup.cpp.

References FALSE, getSelectedIndex(), KEY_DOWN, KEY_LEFT, KEY_RIGHT, KEY_UP, make_ui_sound(), MASK_NONE, LLUICtrl::onCommit(), setSelectedIndex(), and TRUE.

Here is the call graph for this function:

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

LLXMLNodePtr LLRadioGroup::getXML ( bool  save_children = true  )  const [virtual]

Reimplemented from LLUICtrl.

Definition at line 343 of file llradiogroup.cpp.

References LLCheckBoxCtrl::getLabel(), LLUICtrl::getXML(), mHasBorder, mRadioButtons, and TRUE.

Here is the call graph for this function:

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

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

Definition at line 103 of file llradiogroup.cpp.

References FALSE, LLView::getEnabled(), mRadioButtons, mSelectedIndex, S32, LLCheckBoxCtrl::setEnabled(), and setSelectedIndex().

Referenced by LLPanelDisplay::refreshEnabledState().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLRadioGroup::getSelectedIndex (  )  const [inline]

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

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

Reimplemented from LLView.

Definition at line 299 of file llradiogroup.cpp.

References LLSD::asInteger(), LLSD::asString(), LLView::getName(), LLSD::isInteger(), llendl, llwarns, mRadioButtons, S32, setSelectedIndex(), and TRUE.

Referenced by LLPanelDisplay::refreshEnabledState().

Here is the call graph for this function:

Here is the caller graph for this function:

LLSD LLRadioGroup::getValue (  )  const [virtual]

Reimplemented from LLUICtrl.

Definition at line 329 of file llradiogroup.cpp.

References getSelectedIndex(), and mRadioButtons.

Referenced by getSelectedValue().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLRadioGroup::draw ( void   )  [virtual]

Reimplemented from LLView.

Definition at line 224 of file llradiogroup.cpp.

References LLFocusMgr::childHasKeyboardFocus(), LLView::draw(), FALSE, LLUICtrl::focusFirstItem(), gFocusMgr, mRadioButtons, mSelectedIndex, S32, LLRadioCtrl::setValue(), and TRUE.

Here is the call graph for this function:

LLRadioCtrl * LLRadioGroup::addRadioButton ( const LLString name,
const LLString label,
const LLRect rect,
const LLFontGL font 
)

Definition at line 255 of file llradiogroup.cpp.

References LLView::addChild(), mRadioButtons, and onClickButton().

Referenced by fromXML(), and LLFloaterTestImpl::LLFloaterTestImpl().

Here is the call graph for this function:

Here is the caller graph for this function:

LLRadioCtrl* LLRadioGroup::getRadioButton ( const S32 index  )  [inline]

Definition at line 110 of file llradiogroup.h.

References mRadioButtons.

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

Definition at line 269 of file llradiogroup.cpp.

References llendl, llwarns, and S32.

Referenced by addRadioButton().

Here is the caller graph for this function:

LLCtrlSelectionInterface* LLRadioGroup::getSelectionInterface (  )  [inline, virtual]

Reimplemented from LLUICtrl.

Definition at line 115 of file llradiogroup.h.

S32 LLRadioGroup::getItemCount (  )  const [inline, virtual]

Implements LLCtrlSelectionInterface.

Definition at line 118 of file llradiogroup.h.

References mRadioButtons.

Referenced by LLPanelDisplay::refreshEnabledState().

Here is the caller graph for this function:

BOOL LLRadioGroup::getCanSelect (  )  const [inline, virtual]

Implements LLCtrlSelectionInterface.

Definition at line 119 of file llradiogroup.h.

References TRUE.

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

Implements LLCtrlSelectionInterface.

Definition at line 120 of file llradiogroup.h.

References setSelectedIndex().

Here is the call graph for this function:

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

Implements LLCtrlSelectionInterface.

Definition at line 121 of file llradiogroup.h.

References setSelectedIndex().

Here is the call graph for this function:

BOOL LLRadioGroup::selectItemRange ( S32  first,
S32  last 
) [inline, virtual]

Implements LLCtrlSelectionInterface.

Definition at line 122 of file llradiogroup.h.

References setSelectedIndex().

Here is the call graph for this function:

S32 LLRadioGroup::getFirstSelectedIndex (  )  const [inline, virtual]

Implements LLCtrlSelectionInterface.

Definition at line 123 of file llradiogroup.h.

References getSelectedIndex().

Here is the call graph for this function:

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

Implements LLCtrlSelectionInterface.

Definition at line 444 of file llradiogroup.cpp.

References FALSE.

LLUUID LLRadioGroup::getCurrentID (  )  const [virtual]

Implements LLCtrlSelectionInterface.

Definition at line 449 of file llradiogroup.cpp.

References LLUUID::null.

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

Implements LLCtrlSelectionInterface.

Definition at line 454 of file llradiogroup.cpp.

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

Here is the call graph for this function:

LLSD LLRadioGroup::getSelectedValue (  )  [virtual]

Implements LLCtrlSelectionInterface.

Definition at line 472 of file llradiogroup.cpp.

References getValue().

Here is the call graph for this function:

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

Implements LLCtrlSelectionInterface.

Definition at line 477 of file llradiogroup.cpp.

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

Here is the call graph for this function:

BOOL LLRadioGroup::operateOnSelection ( EOperation  op  )  [virtual]

Implements LLCtrlSelectionInterface.

Definition at line 496 of file llradiogroup.cpp.

References FALSE.

BOOL LLRadioGroup::operateOnAll ( EOperation  op  )  [virtual]

Implements LLCtrlSelectionInterface.

Definition at line 501 of file llradiogroup.cpp.

References FALSE.

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

Definition at line 70 of file llradiogroup.cpp.

References LLView::addChild(), LLViewBorder::BEVEL_NONE, LLView::getRect(), mHasBorder, and LLViewBorder::STYLE_LINE.

Referenced by LLRadioGroup().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 136 of file llradiogroup.h.

Referenced by draw(), getSelectedIndex(), isSelected(), setIndexEnabled(), and setSelectedIndex().

Definition at line 140 of file llradiogroup.h.

Referenced by getXML(), and init().


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

Generated on Fri May 16 09:01:18 2008 for SecondLife by  doxygen 1.5.5