OpenCOVER
|
#include <coToolboxMenuItem.h>
Public Member Functions | |
coToolboxMenuItem (const std::string &name) | |
virtual | ~coToolboxMenuItem () |
virtual coUIElement * | getUIElement () |
virtual const char * | getClassName () const |
get the Element's classname More... | |
virtual bool | isOfClassName (const char *) const |
check if the Element or any ancestor is this classname More... | |
virtual void | setActive (bool a) |
activates or deactivates the item More... | |
virtual void | doSecondActionRelease () |
Action is called via joystick. More... | |
Public Member Functions inherited from vrui::coMenuItem | |
coMenuItem (const std::string &name) | |
virtual | ~coMenuItem () |
virtual void | setMenuListener (coMenuListener *listener) |
virtual coMenuListener * | getMenuListener () |
virtual void | setParentMenu (coMenu *parent) |
virtual void | setVisible (bool visible) |
virtual bool | isVisible () const |
virtual void | setAttachment (int) |
sets the attachment border More... | |
virtual const char * | getName () const |
coMenu * | getParentMenu () |
get my parent menu More... | |
void | setName (const std::string &newName, bool updateTwins=true) |
set my name - items with labels must call this when changing label More... | |
virtual bool | getActive () |
return if item is active More... | |
virtual void | setLabel (const std::string &newName) |
this function may be overloaded - it is called by setName() More... | |
virtual void | selected (bool select) |
MenuItem is selected via joystick. More... | |
virtual void | doActionPress () |
Action is called via joystick. More... | |
virtual void | doActionRelease () |
Action is called via joystick. More... | |
virtual void | doSecondActionPress () |
second Action for Item More... | |
Protected Attributes | |
coMenuContainer * | menuContainer |
container to store menu elements More... | |
coColoredBackground * | background |
menu item background which changes its color when menu item is selected More... | |
Protected Attributes inherited from vrui::coMenuItem | |
bool | visible |
coMenu * | myMenu |
this menu item More... | |
coMenuListener * | listener |
on menu selection More... | |
std::string | myName |
symbolic name, or displayed as label) More... | |
bool | active_ |
flag if item is active More... | |
This is the base class of all toolbox menu items. It provides a container for menu elements and a label string.
vrui::coToolboxMenuItem::coToolboxMenuItem | ( | const std::string & | name | ) |
|
virtual |
|
virtual |
Action is called via joystick.
Reimplemented from vrui::coMenuItem.
|
virtual |
get the Element's classname
Reimplemented from vrui::coMenuItem.
Reimplemented in vrui::coSubMenuToolboxItem, vrui::coPotiToolboxItem, vrui::coIconToggleButtonToolboxItem, vrui::coSliderToolboxItem, vrui::coIconButtonToolboxItem, vrui::coIconSubMenuToolboxItem, and vrui::coLabelSubMenuToolboxItem.
|
virtual |
Reimplemented from vrui::coMenuItem.
|
virtual |
check if the Element or any ancestor is this classname
Reimplemented from vrui::coMenuItem.
Reimplemented in vrui::coSubMenuToolboxItem, vrui::coPotiToolboxItem, vrui::coIconToggleButtonToolboxItem, vrui::coSliderToolboxItem, vrui::coIconButtonToolboxItem, vrui::coIconSubMenuToolboxItem, and vrui::coLabelSubMenuToolboxItem.
|
virtual |
activates or deactivates the item
Reimplemented from vrui::coMenuItem.
Reimplemented in vrui::coIconToggleButtonToolboxItem, vrui::coSliderToolboxItem, vrui::coSubMenuToolboxItem, and vrui::coIconButtonToolboxItem.
|
protected |
menu item background which changes its color when menu item is selected
|
protected |
container to store menu elements