ToggleControl Class Reference#include <ToggleControl.h>
Inheritance diagram for ToggleControl:
[legend]List of all members.
Detailed Description
a simple control for turning things on and off
Can also be used for radio buttons - select one of a group
Definition at line 10 of file ToggleControl.h.
Constructor & Destructor Documentation
ToggleControl::ToggleControl |
( |
|
) |
[inline] |
|
ToggleControl::ToggleControl |
( |
const std::string & |
n, |
|
|
RadioGroup * |
rad = NULL |
|
) |
[inline] |
|
ToggleControl::ToggleControl |
( |
const std::string & |
n, |
|
|
const std::string & |
d, |
|
|
RadioGroup * |
rad = NULL |
|
) |
[inline] |
|
Member Function Documentation
virtual ControlBase* ToggleControl::doSelect |
( |
|
) |
[inline, virtual] |
|
virtual RadioGroup* ToggleControl::getRadioGroup |
( |
|
) |
const [inline, virtual] |
|
virtual bool ToggleControl::getStatus |
( |
|
) |
const [inline, virtual] |
|
virtual char ToggleControl::getStatusChar |
( |
|
) |
const [inline, virtual] |
|
virtual ControlBase& ToggleControl::setName |
( |
const std::string & |
n |
) |
[inline, virtual] |
|
virtual void ToggleControl::setRadioGroup |
( |
RadioGroup * |
rad |
) |
[inline, virtual] |
|
virtual void ToggleControl::setStatus |
( |
char |
c |
) |
[inline, virtual] |
|
|
pass the character to put as the status
Definition at line 84 of file ToggleControl.h. |
virtual void ToggleControl::setStatus |
( |
bool |
check |
) |
[inline, virtual] |
|
virtual void ToggleControl::toggleStatus |
( |
char |
c1, |
|
|
char |
c2 |
|
) |
[inline, virtual] |
|
|
status will toggle between the two arguments; if current status is neither, the first is used
Definition at line 71 of file ToggleControl.h. |
virtual void ToggleControl::toggleStatus |
( |
char |
c |
) |
[inline, virtual] |
|
|
if status is a ' ', it'll be replaced with c, otherwise a space.
Definition at line 63 of file ToggleControl.h. |
virtual void ToggleControl::toggleStatus |
( |
|
) |
[inline, virtual] |
|
Member Data Documentation
The documentation for this class was generated from the following file:
|