OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
vrui::coCheckboxGroup Class Reference

#include <coCheckboxGroup.h>

Collaboration diagram for vrui::coCheckboxGroup:
Collaboration graph
[legend]

Public Member Functions

 coCheckboxGroup (bool=false)
 
coCheckboxMenuItemgetSelectedCheckbox ()
 
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...
 
coCheckboxMenuItemselected
 pointer to selected checkbox More...
 
bool allowDeselect
 true = all checkboxes can be deselected, false = exactly one checkbox is selected at any time More...
 

Detailed Description

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.

Constructor & Destructor Documentation

vrui::coCheckboxGroup::coCheckboxGroup ( bool  = false)

Member Function Documentation

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)

Member Data Documentation

bool vrui::coCheckboxGroup::allowDeselect
protected

true = all checkboxes can be deselected, false = exactly one checkbox is selected at any time

std::list<coCheckboxMenuItem *> vrui::coCheckboxGroup::itemList
protected

list of items in the group

coCheckboxMenuItem* vrui::coCheckboxGroup::selected
protected

pointer to selected checkbox


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