KexiDB::FieldValidator Class Reference
#include <fieldvalidator.h>
Inheritance diagram for KexiDB::FieldValidator:
Public Member Functions | |
| FieldValidator (const Field &field, TQWidget *parent, const char *name=0) | |
| Public Member Functions inherited from KexiUtils::MultiValidator | |
| MultiValidator (TQObject *parent=0, const char *name=0) | |
| MultiValidator (TQValidator *validator, TQObject *parent=0, const char *name=0) | |
| void | addSubvalidator (TQValidator *validator, bool owned=true) |
| virtual TQValidator::State | validate (TQString &input, int &pos) const |
| virtual void | fixup (TQString &input) const |
| Public Member Functions inherited from KexiUtils::Validator | |
| Validator (TQObject *parent=0, const char *name=0) | |
| void | setAcceptsEmptyValue (bool set) |
| bool | acceptsEmptyValue () const |
| Result | check (const TQString &valueName, const TQVariant &v, TQString &message, TQString &details) |
| void | addChildValidator (Validator *v) |
Additional Inherited Members | |
| Public Types inherited from KexiUtils::Validator | |
| enum | Result { Error = 0 , Ok = 1 , Warning = 2 } |
| Static Public Member Functions inherited from KexiUtils::Validator | |
| static const TQString | msgColumnNotEmpty () |
| Protected Attributes inherited from KexiUtils::MultiValidator | |
| TQPtrList< TQValidator > | m_ownedSubValidators |
| TQValueList< TQValidator * > | m_subValidators |
| Protected Attributes inherited from KexiUtils::Validator | |
| bool | m_acceptsEmptyValue: 1 |
Detailed Description
A validator for KexiDB data types.
This can be used by TQLineEdit or subclass to provide validated text entry. Curently is supports all integer types, floating point types and booleans. Internal validators like KIntValidator or KexiUtils::LongLongValidator are used. 'unsigned' and 'scale' parameters are taken into account when setting up internal validators.
- Todo
date/time support for types
add validation of the maximum length and other field's properties
Definition at line 39 of file fieldvalidator.h.
Constructor & Destructor Documentation
◆ FieldValidator()
| FieldValidator::FieldValidator | ( | const Field & | field, |
| TQWidget * | parent, | ||
| const char * | name = 0 ) |
Setups the validator for field. Does not keep a pointer to field.
- Todo
- merge this code with KexiTableEdit code!
- Todo
- set maximum length validator
- Todo
- handle input mask (via TQLineEdit::setInputMask()
- Todo
- handle unsigned (using ULongLongValidator)
- Todo
- add validator
- Todo
- add validator
- Todo
- add BooleanValidator
Definition at line 29 of file fieldvalidator.cpp.
◆ ~FieldValidator()
| FieldValidator::~FieldValidator | ( | ) |
Definition at line 97 of file fieldvalidator.cpp.
The documentation for this class was generated from the following files:
