Planeshift
Public Member Functions

pawsRadioButtonGroup Class Reference

This is a set of radio buttons and is used to control them. More...

#include <pawsradio.h>

List of all members.

Public Member Functions

csString GetActive ()
 sets active button by widget name or noone active if name is wrong
int GetActiveID ()
 gets name of active button or ""
csString GetRadioOffImage ()
csString GetRadioOnImage ()
int GetRadioSize ()
bool OnButtonPressed (int mouseButton, int keyModifier, pawsWidget *widget)
 Called whenever a button is pressed.
 pawsRadioButtonGroup ()
 pawsRadioButtonGroup (const pawsRadioButtonGroup &origin)
bool SetActive (const char *widgetName)
bool Setup (iDocumentNode *node)
 Setup this widget.
void TurnAllOff ()
 gets ID of active button or -1
virtual ~pawsRadioButtonGroup ()

Detailed Description

This is a set of radio buttons and is used to control them.

Definition at line 131 of file pawsradio.h.


Constructor & Destructor Documentation

pawsRadioButtonGroup::pawsRadioButtonGroup ( )
pawsRadioButtonGroup::pawsRadioButtonGroup ( const pawsRadioButtonGroup origin) [inline]

Definition at line 135 of file pawsradio.h.

virtual pawsRadioButtonGroup::~pawsRadioButtonGroup ( ) [virtual]

Member Function Documentation

csString pawsRadioButtonGroup::GetActive ( )

sets active button by widget name or noone active if name is wrong

int pawsRadioButtonGroup::GetActiveID ( )

gets name of active button or ""

csString pawsRadioButtonGroup::GetRadioOffImage ( ) [inline]

Definition at line 152 of file pawsradio.h.

csString pawsRadioButtonGroup::GetRadioOnImage ( ) [inline]

Definition at line 148 of file pawsradio.h.

int pawsRadioButtonGroup::GetRadioSize ( ) [inline]

Definition at line 156 of file pawsradio.h.

bool pawsRadioButtonGroup::OnButtonPressed ( int  button,
int  keyModifier,
pawsWidget widget 
) [virtual]

Called whenever a button is pressed.

Parameters:
buttonThe button pressed.
keyModifierModifier key in effect.
widgetThe widget the button belongs to.
Returns:
bool Parent's result or FALSE if no parent.

Reimplemented from pawsWidget.

bool pawsRadioButtonGroup::SetActive ( const char *  widgetName)
bool pawsRadioButtonGroup::Setup ( iDocumentNode *  ) [virtual]

Setup this widget.

Reimplemented from pawsWidget.

void pawsRadioButtonGroup::TurnAllOff ( )

gets ID of active button or -1


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