Class to define a choice button.
More...
#include <Inventor/dialog/PoXtChoiceButtonData.h>
Public Member Functions | |
| PoXtChoiceButtonData (const char *label=NULL, int numItems=0, const char **itemNames=NULL, int selectedItem=0) | |
| virtual | ~PoXtChoiceButtonData () |
| SoNONUNICODE void | setLabel (const char *label) |
| void | setLabel (const SbString &label) |
| SbString | getLabel () const |
| void | setItems (int numItems, const char **itemNames) |
| const char ** | getItems (int &numItems) const |
| void | setSelectedItem (int itemNumber) |
| int | getSelectedItem () const |
| virtual TypeXtElement | getType () const |
| virtual PoXtElementData * | copy () const |
Class to define a choice button.
This element is composed of a label on the left and a choice button on the right. By default the text of the label is an empty string, and the number of items and the selected item are equal to zero.
| PoXtChoiceButtonData::PoXtChoiceButtonData | ( | const char * | label = NULL, |
|
| int | numItems = 0, |
|||
| const char ** | itemNames = NULL, |
|||
| int | selectedItem = 0 | |||
| ) |
Constructor.
| virtual PoXtChoiceButtonData::~PoXtChoiceButtonData | ( | ) | [virtual] |
Destructor.
| virtual PoXtElementData* PoXtChoiceButtonData::copy | ( | ) | const [virtual] |
Creates and returns a new Xt element which is a copy of this Xt element.
Implements PoXtElementData.
| const char** PoXtChoiceButtonData::getItems | ( | int & | numItems | ) | const |
Gets items names of the choice button.
| SbString PoXtChoiceButtonData::getLabel | ( | ) | const |
Gets the text of the label on the left of the choice button.
| int PoXtChoiceButtonData::getSelectedItem | ( | ) | const |
Gets the selected item number.
| virtual TypeXtElement PoXtChoiceButtonData::getType | ( | ) | const [virtual] |
Returns the type of the Xt element.
Reimplemented from PoXtElementData.
| void PoXtChoiceButtonData::setItems | ( | int | numItems, | |
| const char ** | itemNames | |||
| ) |
Sets items names of the choice button.
| void PoXtChoiceButtonData::setLabel | ( | const SbString & | label | ) |
Sets the text of the label on the left of the choice button.
| SoNONUNICODE void PoXtChoiceButtonData::setLabel | ( | const char * | label | ) |
Sets the text of the label on the left of the choice button.
| void PoXtChoiceButtonData::setSelectedItem | ( | int | itemNumber | ) |
Sets the selected item number.