Engauge Digitizer
2
Toggle main menu visibility
Loading...
Searching...
No Matches
Dlg
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
7
#include "
DlgValidatorDegreesMinutesSeconds.h
"
8
#include "
FormatDegreesMinutesSecondsBase.h
"
9
#include "
Logger.h
"
10
11
DlgValidatorDegreesMinutesSeconds::DlgValidatorDegreesMinutesSeconds
(
CoordScale
coordScale,
12
QObject *parent) :
13
DlgValidatorAbstract
(parent),
14
m_coordScale (coordScale)
15
{
16
qCInfo(ENGAUGE_LOG) <<
"DlgValidatorDegreesMinutesSeconds::DlgValidatorDegreesMinutesSeconds"
;
17
}
18
19
QValidator::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
CoordScale
Definition
CoordScale.h:12
DlgValidatorDegreesMinutesSeconds.h
FormatDegreesMinutesSecondsBase.h
Logger.h
DlgValidatorAbstract::DlgValidatorAbstract
DlgValidatorAbstract(QObject *parent=0)
Single constructor.
Definition
DlgValidatorAbstract.cpp:10
DlgValidatorDegreesMinutesSeconds::DlgValidatorDegreesMinutesSeconds
DlgValidatorDegreesMinutesSeconds(CoordScale coordScale, QObject *parent=0)
Single constructor.
Definition
DlgValidatorDegreesMinutesSeconds.cpp:11
DlgValidatorDegreesMinutesSeconds::validate
virtual QValidator::State validate(QString &input, int &pos) const
Validate according to the numeric format specific to the leaf class.
Definition
DlgValidatorDegreesMinutesSeconds.cpp:19
FormatDegreesMinutesSecondsBase
Common input parsing and output formatting for degrees/minutes/seconds values.
Definition
FormatDegreesMinutesSecondsBase.h:14
FormatDegreesMinutesSecondsBase::parseInput
QValidator::State parseInput(const QString &stringUntrimmed, double &value) const
Parse the input string into a number value.
Definition
FormatDegreesMinutesSecondsBase.cpp:88
Generated on
for Engauge Digitizer by
1.17.0