Engauge Digitizer 2
Loading...
Searching...
No Matches
DlgValidatorDegreesMinutesSeconds.cpp
Go to the documentation of this file.
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
9#include "Logger.h"
10
12 QObject *parent) :
14 m_coordScale (coordScale)
15{
16 LOG4CPP_INFO_S ((*mainCat)) << "DlgValidatorDegreesMinutesSeconds::DlgValidatorDegreesMinutesSeconds";
17}
18
19QValidator::State DlgValidatorDegreesMinutesSeconds::validate (QString &input,
20 int & /* pos */) const
21{
22 FormatDegreesMinutesSecondsBase formatDegreesMinutesSeconds;
23
24 double value;
25 return formatDegreesMinutesSeconds.parseInput (input,
26 value);
27}
CoordScale
Definition CoordScale.h:12
log4cpp::Category * mainCat
Definition Logger.cpp:14
DlgValidatorAbstract(QObject *parent=0)
Single constructor.
DlgValidatorDegreesMinutesSeconds(CoordScale coordScale, QObject *parent=0)
Single constructor.
virtual QValidator::State validate(QString &input, int &pos) const
Validate according to the numeric format specific to the leaf class.
Common input parsing and output formatting for degrees/minutes/seconds values.
QValidator::State parseInput(const QString &stringUntrimmed, double &value) const
Parse the input string into a number value.
#define LOG4CPP_INFO_S(logger)
Definition convenience.h:18