Engauge Digitizer  2
DlgValidatorDegreesMinutesSeconds.h
1 /******************************************************************************************************
2  * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #ifndef DLG_VALIDATOR_DEGREES_MINUTES_SECONDS_H
8 #define DLG_VALIDATOR_DEGREES_MINUTES_SECONDS_H
9 
10 #include "CoordScale.h"
11 #include "CoordUnitsNonPolarTheta.h"
12 #include "CoordUnitsPolarTheta.h"
13 #include "DlgValidatorAbstract.h"
14 
18 {
19 public:
21  DlgValidatorDegreesMinutesSeconds(CoordScale coordScale,
22  QObject *parent = 0);
23 
24  virtual QValidator::State validate (QString &input,
25  int &pos) const;
26 
27 private:
29 
30  const CoordScale m_coordScale;
31 };
32 
33 #endif // DLG_VALIDATOR_DEGREES_MINUTES_SECONDS_H
Abstract validator for all numeric formats.
Validator for angles in real degrees, integer degrees and real minutes, or integer degrees with integ...
virtual QValidator::State validate(QString &input, int &pos) const
Validate according to the numeric format specific to the leaf class.