OpenCOVER
coCheckboxGroup.h
Go to the documentation of this file.
1/* This file is part of COVISE.
2
3 You can use it under the terms of the GNU Lesser General Public License
4 version 2.1 or later, see lgpl-2.1.txt.
5
6 * License: LGPL 2+ */
7
8#ifndef CO_CHECKBOXGROUP_H
9#define CO_CHECKBOXGROUP_H
10
11#include <util/coTypes.h>
12
13#include <list>
14
15namespace vrui
16{
17
18class coCheckboxMenuItem;
19
26class OPENVRUIEXPORT coCheckboxGroup
27{
28protected:
29 std::list<coCheckboxMenuItem *> itemList;
32
33public:
34 coCheckboxGroup(bool = false);
37 void setState(coCheckboxMenuItem *checkbox, bool newState, bool generateEvent = false);
38 void add(coCheckboxMenuItem *checkbox);
39 void remove(coCheckboxMenuItem *checkbox);
40 bool getAllowDeselect() const;
41};
42}
43#endif
collaborative interface manager
Definition: coVRCommunication.h:41
Definition: coCheckboxGroup.h:27
coCheckboxMenuItem * getSelectedCheckbox()
bool allowDeselect
true = all checkboxes can be deselected, false = exactly one checkbox is selected at any time
Definition: coCheckboxGroup.h:31
void remove(coCheckboxMenuItem *checkbox)
void add(coCheckboxMenuItem *checkbox)
void setState(coCheckboxMenuItem *checkbox, bool newState, bool generateEvent=false)
coCheckboxMenuItem * selected
pointer to selected checkbox
Definition: coCheckboxGroup.h:30
void toggleCheckbox(coCheckboxMenuItem *checkbox)
bool getAllowDeselect() const
coCheckboxGroup(bool=false)
std::list< coCheckboxMenuItem * > itemList
list of items in the group
Definition: coCheckboxGroup.h:29
Definition: coCheckboxMenuItem.h:31