You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
598 B
33 lines
598 B
#ifndef _INT_VALIDATOR_H_
|
|
#define _INT_VALIDATOR_H_
|
|
|
|
#include <tqvalidator.h>
|
|
|
|
|
|
class IntValidator : public TQValidator
|
|
{
|
|
Q_OBJECT
|
|
|
|
|
|
public:
|
|
IntValidator( TQWidget *parent, const char *name = 0 );
|
|
IntValidator( int bottom, int top, TQWidget *parent, const char *name = 0 );
|
|
|
|
virtual ~IntValidator();
|
|
|
|
virtual TQValidator::State validate( TQString &, int & ) const;
|
|
|
|
virtual void setRange( int bottom, int top );
|
|
|
|
int bottom() const { return v_bottom; }
|
|
int top() const { return v_top; }
|
|
|
|
private:
|
|
int v_bottom, v_top;
|
|
};
|
|
|
|
|
|
|
|
#endif /* _INT_VALIDATOR_H_ */
|
|
|