Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <ToggleControl.h>
Inheritance diagram for ToggleControl:
Can also be used for radio buttons - select one of a group
Definition at line 10 of file ToggleControl.h.
Public Member Functions | |
~ToggleControl () | |
destructor | |
virtual ControlBase * | activate (MotionManager::MC_ID mcid, Socket *disp) |
returns NULL | |
virtual ControlBase * | doSelect () |
returns NULL | |
virtual ControlBase & | setName (const std::string &n) |
sets the name of the control | |
virtual void | toggleStatus () |
calls setStatus() with the not of getStatus() | |
virtual void | toggleStatus (char c) |
if status is a ' ', it'll be replaced with c, otherwise a space. | |
virtual void | toggleStatus (char c1, char c2) |
status will toggle between the two arguments; if current status is neither, the first is used | |
virtual void | setStatus (bool check) |
a true will put a 'X' for the status; false shows ' ' | |
virtual void | setStatus (char c) |
pass the character to put as the status | |
virtual bool | getStatus () const |
returns true if there's a non-space as the status | |
virtual char | getStatusChar () const |
returns the current status char | |
virtual void | setRadioGroup (RadioGroup *rad) |
removes itself from current RadioGroup, and adds itself to rad if non-NULL | |
virtual RadioGroup * | getRadioGroup () const |
returns the current RadioGroup | |
Constructors | |
ToggleControl () | |
ToggleControl (const std::string &n, RadioGroup *rad=NULL) | |
ToggleControl (const std::string &n, const std::string &d, RadioGroup *rad=NULL) | |
Protected Attributes | |
RadioGroup * | rg |
pointer to an optional radio group to allow one-of-many selections | |
Private Member Functions | |
ToggleControl (const ToggleControl &) | |
don't call | |
ToggleControl & | operator= (const ToggleControl &) |
don't call |
|
Definition at line 46 of file ToggleControl.h. |
|
Definition at line 47 of file ToggleControl.h. |
|
Definition at line 48 of file ToggleControl.h. |
|
destructor
Definition at line 50 of file ToggleControl.h. |
|
don't call
|
|
returns NULL
Reimplemented from NullControl. Definition at line 52 of file ToggleControl.h. |
|
returns NULL
Reimplemented from NullControl. Definition at line 53 of file ToggleControl.h. |
|
returns the current RadioGroup
Definition at line 119 of file ToggleControl.h. Referenced by WalkCalibration::setupReady(). |
|
returns true if there's a non-space as the status
Definition at line 98 of file ToggleControl.h. Referenced by SensorObserverControl::doSelect(), SensorObserverControl::processEvent(), WalkCalibration::refresh(), setRadioGroup(), and toggleStatus(). |
|
returns the current status char
Definition at line 103 of file ToggleControl.h. Referenced by getStatus(), and toggleStatus(). |
|
don't call
|
|
sets the name of the control
Reimplemented from ControlBase. Definition at line 55 of file ToggleControl.h. |
|
removes itself from current RadioGroup, and adds itself to rad if non-NULL
Definition at line 108 of file ToggleControl.h. Referenced by ToggleControl(), and ~ToggleControl(). |
|
pass the character to put as the status
Definition at line 84 of file ToggleControl.h. |
|
a true will put a 'X' for the status; false shows ' '
Definition at line 79 of file ToggleControl.h. Referenced by ToggleControl::RadioGroup::activate(), WalkCalibration::setupReady(), and toggleStatus(). |
|
status will toggle between the two arguments; if current status is neither, the first is used
Definition at line 71 of file ToggleControl.h. |
|
if status is a ' ', it'll be replaced with c, otherwise a space.
Definition at line 63 of file ToggleControl.h. |
|
calls setStatus() with the not of getStatus()
Definition at line 58 of file ToggleControl.h. Referenced by activate(), and doSelect(). |
|
pointer to an optional radio group to allow one-of-many selections
Definition at line 122 of file ToggleControl.h. Referenced by getRadioGroup(), setRadioGroup(), setStatus(), and ToggleControl(). |
Tekkotsu v2.0 |
Generated Wed Jan 21 03:23:30 2004 by Doxygen 1.3.4 |