OpenCOVER
|
#include <coCheckboxGroup.h>
Public Member Functions | |
coCheckboxGroup (bool=false) | |
coCheckboxMenuItem * | getSelectedCheckbox () |
void | toggleCheckbox (coCheckboxMenuItem *checkbox) |
void | setState (coCheckboxMenuItem *checkbox, bool newState, bool generateEvent=false) |
void | add (coCheckboxMenuItem *checkbox) |
void | remove (coCheckboxMenuItem *checkbox) |
bool | getAllowDeselect () const |
Protected Attributes | |
std::list< coCheckboxMenuItem * > | itemList |
list of items in the group More... | |
coCheckboxMenuItem * | selected |
pointer to selected checkbox More... | |
bool | allowDeselect |
true = all checkboxes can be deselected, false = exactly one checkbox is selected at any time More... | |
This class provides a mechanism to implement radio buttons. coCheckboxMenuItems can be added to the group and thus are treated as radio buttons (only one item can be selected at a time). If the constructor is called with the argument true, all checkboxes of the group are be deselected if the checked item is clicked on.
vrui::coCheckboxGroup::coCheckboxGroup | ( | bool | = false | ) |
void vrui::coCheckboxGroup::add | ( | coCheckboxMenuItem * | checkbox | ) |
bool vrui::coCheckboxGroup::getAllowDeselect | ( | ) | const |
coCheckboxMenuItem * vrui::coCheckboxGroup::getSelectedCheckbox | ( | ) |
void vrui::coCheckboxGroup::remove | ( | coCheckboxMenuItem * | checkbox | ) |
void vrui::coCheckboxGroup::setState | ( | coCheckboxMenuItem * | checkbox, |
bool | newState, | ||
bool | generateEvent = false |
||
) |
void vrui::coCheckboxGroup::toggleCheckbox | ( | coCheckboxMenuItem * | checkbox | ) |
|
protected |
true = all checkboxes can be deselected, false = exactly one checkbox is selected at any time
|
protected |
list of items in the group
|
protected |
pointer to selected checkbox