aedRadioButtonGroup Class Reference

Implements radio buttons (radio button groups, as we call them). More...

#include <aedRadioButtonGroup.h>

Inheritance diagram for aedRadioButtonGroup:

Inheritance graph
[legend]
Collaboration diagram for aedRadioButtonGroup:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 aedRadioButtonGroup ()
virtual ~aedRadioButtonGroup ()
void addButton (const std::string &caption)
 Add a button to the group.
void removeButton (unsigned int index)
 Remove a button from the group.
int getSelectedButton () const
 Get the index of currently selected button.
void selectButton (unsigned int index)
 Select a button.
int wm_lbuttondown (Uint16 x, Uint16 y)
int wm_lostfocus ()

Private Attributes

int m_Selected
Uint16 m_NextY
std::vector< aedCheckBox * > m_Buttons

Detailed Description

Implements radio buttons (radio button groups, as we call them).


Constructor & Destructor Documentation

aedRadioButtonGroup::aedRadioButtonGroup (  ) 

virtual aedRadioButtonGroup::~aedRadioButtonGroup (  )  [virtual]


Member Function Documentation

void aedRadioButtonGroup::addButton ( const std::string &  caption  ) 

Add a button to the group.

Parameters:
caption caption of the button to add

int aedRadioButtonGroup::getSelectedButton (  )  const [inline]

Get the index of currently selected button.

void aedRadioButtonGroup::removeButton ( unsigned int  index  ) 

Remove a button from the group.

Parameters:
index index of the button in the group (first button has index 0)

void aedRadioButtonGroup::selectButton ( unsigned int  index  ) 

Select a button.

Parameters:
index index of the button to be selected

int aedRadioButtonGroup::wm_lbuttondown ( Uint16  x,
Uint16  y 
) [virtual]

Reimplemented from aedWidget.

int aedRadioButtonGroup::wm_lostfocus (  )  [virtual]

Reimplemented from aedWidget.


Member Data Documentation

std::vector< aedCheckBox * > aedRadioButtonGroup::m_Buttons [private]

Uint16 aedRadioButtonGroup::m_NextY [private]

int aedRadioButtonGroup::m_Selected [private]


The documentation for this class was generated from the following file:
Generated on Sun Mar 11 15:33:25 2007 for MetalWarriors by  doxygen 1.4.7