Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

ToggleControl::RadioGroup Class Reference

#include <ToggleControl.h>

Inheritance diagram for ToggleControl::RadioGroup:

Inheritance graph
[legend]
List of all members.

Detailed Description

a little class for managing the currently active ToggleControl to allow radio buttons

Definition at line 16 of file ToggleControl.h.

Public Member Functions

 RadioGroup (bool must_have_one=true)
 constructor
virtual void activate (ToggleControl *next)
 call this when a different ToggleControl wants to take over
virtual ToggleControlgetActive () const
 returns the currently active control
virtual void setEnforced (bool must_have_one)
 can change the "must have one" setting (enforced)
virtual bool getEnforced () const
 returns the "must have one" setting (enforced)

Protected Attributes

ToggleControlcur
 the currently active control, or NULL
bool enforced
 if true, the current control cannot turn off, a new one must be activated

Private Member Functions

 RadioGroup (const RadioGroup &)
 don't call
RadioGroupoperator= (const RadioGroup &)
 don't call


Member Function Documentation

virtual void ToggleControl::RadioGroup::activate ( ToggleControl next  )  [inline, virtual]

call this when a different ToggleControl wants to take over

implementation is trickier than you might think!

Definition at line 22 of file ToggleControl.h.

Referenced by ToggleControl::setRadioGroup(), and ToggleControl::setStatus().


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

Tekkotsu v3.0
Generated Fri May 11 20:08:53 2007 by Doxygen 1.4.7