Class to define an editable text. More...
#include <Inventor/dialog/PoXtEditTextData.h>
Public Member Functions | |
PoXtEditTextData (const SbString &label="", const SbString &defaultString="", int numCharToRead=10) | |
virtual | ~PoXtEditTextData () |
SoNONUNICODE void | setLabel (const char *label) |
void | setLabel (const SbString &label) |
SbString | getLabel () const |
SoNONUNICODE void | setString (const char *label) |
void | setString (const SbString &label) |
SbString | getString () const |
void | setNumCharToRead (int number) |
int | getNumCharToRead () const |
virtual TypeXtElement | getType () const |
virtual PoXtElementData * | copy () const |
This element is composed of a label on the left and by an editable text on the right. By default the text of the label and of the editable text are empty strings and the number of characters to read is 10.
PoXtEditTextData::PoXtEditTextData | ( | const SbString & | label = "" , |
|
const SbString & | defaultString = "" , |
|||
int | numCharToRead = 10 | |||
) |
Constructor.
virtual PoXtEditTextData::~PoXtEditTextData | ( | ) | [virtual] |
Destructor.
virtual PoXtElementData* PoXtEditTextData::copy | ( | ) | const [virtual] |
Creates and returns a new Xt element which is a copy of this Xt element.
Implements PoXtElementData.
SbString PoXtEditTextData::getLabel | ( | ) | const |
Gets the text of the label on the left of editable text.
int PoXtEditTextData::getNumCharToRead | ( | ) | const |
Gets the number of character to read.
SbString PoXtEditTextData::getString | ( | ) | const |
Gets the string of the editable text.
virtual TypeXtElement PoXtEditTextData::getType | ( | ) | const [virtual] |
Returns the type of the Xt element.
Reimplemented from PoXtElementData.
void PoXtEditTextData::setLabel | ( | const SbString & | label | ) |
Sets the text of the label on the left of editable text.
SoNONUNICODE void PoXtEditTextData::setLabel | ( | const char * | label | ) |
Sets the text of the label on the left of editable text.
void PoXtEditTextData::setNumCharToRead | ( | int | number | ) |
Sets the number of character to read.
When the enter key is pressed or when the number of characters to read is reached, this element triggers the corresponding callback .
void PoXtEditTextData::setString | ( | const SbString & | label | ) |
Sets the string of the editable text.
SoNONUNICODE void PoXtEditTextData::setString | ( | const char * | label | ) |
Sets the string of the editable text.