Menu pushbutton node. More...
#include <DialogViz/dialog/SoMenuPushButton.h>
Public Member Functions | |
SoMenuPushButton () | |
void | addAuditor (SoMenuPushButtonAuditor *auditor) |
void | removeAuditor (SoMenuPushButtonAuditor *auditor) |
Public Attributes | |
SoSFString | accelerator |
This node defines a push button item for a dialog menu.
You can change the parts in any instance of this menu push button using setPart(). The default part geometries are defined as resources for this SoMenuPushButton class. They are detailed below in the Catalog Parts section of the online reference page for this class. You can make your program use different default resources for the parts by copying the file $OIVHOME/data/DialogViz/Skins/default/MenuPushButton.iv into your own directory, editing the file, and then setting the environment variable DIALOGVIZ_SKINS_DIR to be a path to that directory, or by using the setSkinDirectory() method in your application.
accelerator | "" |
// fields from SoDialogViz | |
enable | TRUE |
label | "" |
labelAlignment | LEFT |
auditorID | "" |
Group frame (from SoMenuItem)
Defines the item main frame geometry. Default size is set to (x, 18, z)
Switch btnSwtch {
Defines the geometry of the menu push button.
Group released
Defines the geometry of the button when released.
Group pressed
Defines the geometry of the button when pressed.}
Group labelProp (from SoMenuItem)
Specifies the properties to apply to the text node representing the item label string
}
Extra information for parts from above structure
Part Name Resource Skin file frame MenuItemFrame MenuItem.iv released MenuPushButtonReleased MenuPushButton.iv pressed MenuPushButtonPressed MenuPushButton.iv labelProp TextProperties TextProperties.iv
SoMenuCheckBox, SoMenuCheckBoxLauncher, SoMenuPopup, SoMenuPushButtonLauncher, SoMenuFileSelection, SoMenuRadioButtons, SoMenuSeparator
SoMenuPushButton::SoMenuPushButton | ( | ) |
Constructor.
void SoMenuPushButton::addAuditor | ( | SoMenuPushButtonAuditor * | auditor | ) |
Add a menuPushButtonAuditor to current PushButton component.
void SoMenuPushButton::removeAuditor | ( | SoMenuPushButtonAuditor * | auditor | ) |
Remove the defined pushButtonAuditor from the auditor list.
Defines the menu item accelerator key.