00001
00002
00003
00004
00005
00006
00007 #ifndef DLG_VALIDATOR_NUMBER_H
00008 #define DLG_VALIDATOR_NUMBER_H
00009
00010 #include "CoordScale.h"
00011 #include "CoordUnitsNonPolarTheta.h"
00012 #include "CoordUnitsPolarTheta.h"
00013 #include "DlgValidatorAbstract.h"
00014 #include <QLocale>
00015
00017 class DlgValidatorNumber : public DlgValidatorAbstract
00018 {
00019 public:
00021 DlgValidatorNumber(CoordScale coordScale,
00022 const QLocale &locale,
00023 QObject *parent = 0);
00024
00026 virtual QValidator::State validate (QString &input,
00027 int &pos) const;
00028
00029 private:
00030 DlgValidatorNumber();
00031
00032 const CoordScale m_coordScale;
00033 const QLocale m_locale;
00034 };
00035
00036 #endif // DLG_VALIDATOR_NUMBER_H