|
#include <CPhoneNumberInput.h>

Public Member Functions | |
| CPhoneNumberInput (const char *label=0, int layoutSize=10, CLayoutAlign layoutAlign=SP_ALIGN_TOP) | |
| Constructor in SPTK style. | |
| virtual CControlKind | kind () const |
| Returns the control kind, SPTK-style RTTI. | |
| virtual std::string | className () const |
| Returns the control class name, SPTK-style RTTI. | |
| virtual CVariant | data () const |
| Universal data connection, returns data from control. | |
| virtual void | data (const CVariant v) |
| Universal data connection, sets data from control. | |
| virtual bool | valid () const |
| Returns true if the input data is valid. | |
| virtual void | preferredWidth (int &w) const |
| Computes the optimal widget width. | |
Static Public Member Functions | |
| static CLayoutClient * | creator (CXmlNode *node) |
| Creates a widget based on the XML node information. | |
Phone number input with two input boxes - area code and phone number.
| sptk::CPhoneNumberInput::CPhoneNumberInput | ( | const char * | label = 0, |
|
| int | layoutSize = 10, |
|||
| CLayoutAlign | layoutAlign = SP_ALIGN_TOP | |||
| ) |
Constructor in SPTK style.
| label | const char *, label | |
| layoutSize | int, widget align in layout | |
| layoutAlign | CLayoutAlign, widget align in layout |
| virtual CControlKind sptk::CPhoneNumberInput::kind | ( | ) | const [inline, virtual] |
Returns the control kind, SPTK-style RTTI.
Reimplemented from sptk::CInput.
References sptk::DCV_PHONE.
| virtual void sptk::CPhoneNumberInput::preferredWidth | ( | int & | w | ) | const [virtual] |
Computes the optimal widget width.
| w | int&, input - width offered by the program, output - width required by widget |
Reimplemented from sptk::CInput.