Engauge Digitizer  2
DlgValidatorNumber.h
1 #ifndef DLG_VALIDATOR_NUMBER_H
2 #define DLG_VALIDATOR_NUMBER_H
3 
4 #include "CoordScale.h"
5 #include "CoordUnitsNonPolarTheta.h"
6 #include "CoordUnitsPolarTheta.h"
7 #include "DlgValidatorAbstract.h"
8 
11 {
12 public:
14  DlgValidatorNumber(CoordScale coordScale,
15  QObject *parent = 0);
16 
18  virtual QValidator::State validate (QString &input,
19  int &pos) const;
20 
21 private:
23 
24  const CoordScale m_coordScale;
25 
26 };
27 
28 #endif // DLG_VALIDATOR_NUMBER_H
Abstract validator for all numeric formats.
virtual QValidator::State validate(QString &input, int &pos) const
Apply the standard validation with 0 as the exclusive minimum. Call setCoordScale just before calling...
Validator for generic (=simple) numbers.