#include <longlongvalidator.h>
Public Member Functions | |
| LongLongValidator (TQWidget *parent, int base=10, const char *name=0) | |
| LongLongValidator (TQ_LLONG bottom, TQ_LLONG top, TQWidget *parent, int base=10, const char *name=0) | |
| virtual State | validate (TQString &, int &) const |
| virtual void | fixup (TQString &) const |
| virtual void | setRange (TQ_LLONG bottom, TQ_LLONG top) |
| virtual void | setBase (int base) |
| virtual TQ_LLONG | bottom () const |
| virtual TQ_LLONG | top () const |
| virtual int | base () const |
Detailed Description
A validator for longlong data type.
This can be used by TQLineEdit or subclass to provide validated text entry. Can be provided with a base value (default is 10), to allow the proper entry of hexadecimal, octal, or any other base numeric data.
Based on KIntValidator code by Glen Parker glene.nosp@m.bob@.nosp@m.nwlin.nosp@m.k.co.nosp@m.m
Definition at line 38 of file longlongvalidator.h.
Constructor & Destructor Documentation
◆ LongLongValidator() [1/2]
| LongLongValidator::LongLongValidator | ( | TQWidget * | parent, |
| int | base = 10, | ||
| const char * | name = 0 ) |
Definition at line 28 of file longlongvalidator.cpp.
◆ LongLongValidator() [2/2]
| LongLongValidator::LongLongValidator | ( | TQ_LLONG | bottom, |
| TQ_LLONG | top, | ||
| TQWidget * | parent, | ||
| int | base = 10, | ||
| const char * | name = 0 ) |
Definition at line 35 of file longlongvalidator.cpp.
◆ ~LongLongValidator()
|
virtual |
Definition at line 42 of file longlongvalidator.cpp.
Member Function Documentation
◆ base()
|
virtual |
- Returns
- the current numeric base
Definition at line 133 of file longlongvalidator.cpp.
◆ bottom()
|
virtual |
- Returns
- the current minimum value allowed
Definition at line 123 of file longlongvalidator.cpp.
◆ fixup()
|
virtual |
Fixes the text if possible, providing a valid string. The parameter may be modified.
Definition at line 81 of file longlongvalidator.cpp.
◆ setBase()
|
virtual |
Sets the numeric base value.
Definition at line 114 of file longlongvalidator.cpp.
◆ setRange()
|
virtual |
Sets the minimum and maximum values allowed.
Definition at line 105 of file longlongvalidator.cpp.
◆ top()
|
virtual |
- Returns
- the current maximum value allowed
Definition at line 128 of file longlongvalidator.cpp.
◆ validate()
|
virtual |
Validates the text, and returns the result. Does not modify the parameters.
Definition at line 46 of file longlongvalidator.cpp.
The documentation for this class was generated from the following files:
