Engauge Digitizer  2
DlgValidatorDateTime.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_DATE_TIME_H
8 #define DLG_VALIDATOR_DATE_TIME_H
9 
10 #include "CoordScale.h"
11 #include "CoordUnitsNonPolarTheta.h"
12 #include "CoordUnitsPolarTheta.h"
13 #include "DlgValidatorAbstract.h"
14 
17 {
18 public:
20  DlgValidatorDateTime(CoordScale coordScale,
21  CoordUnitsDate coordUnitsDate,
22  CoordUnitsTime coordUnitsTime,
23  QObject *parent = 0);
24 
25  virtual QValidator::State validate (QString &input,
26  int &pos) const;
27 
28 private:
30 
31  const CoordScale m_coordScale;
32  const CoordUnitsDate m_coordUnitsDate;
33  const CoordUnitsTime m_coordUnitsTime;
34 };
35 
36 #endif // DLG_VALIDATOR_DATE_TIME_H
Validator for numeric value expressed as date and/or time.
Abstract validator for all numeric formats.
virtual QValidator::State validate(QString &input, int &pos) const
Validate according to the numeric format specific to the leaf class.