Engauge Digitizer
2
Format
FormatDegreesMinutesSecondsBase.h
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
#ifndef FORMAT_DEGREES_MINUTES_SECONDS_BASE_H
8
#define FORMAT_DEGREES_MINUTES_SECONDS_BASE_H
9
10
#include <QString>
11
#include <QValidator>
12
14
class
FormatDegreesMinutesSecondsBase
{
15
public
:
17
FormatDegreesMinutesSecondsBase
();
18
~FormatDegreesMinutesSecondsBase
();
19
23
QValidator::State
parseInput
(
const
QString &stringUntrimmed,
24
double
&value)
const
;
25
26
protected
:
27
29
QString
formatOutputDegreesMinutesSeconds
(
double
value)
const
;
30
32
QString
formatOutputDegreesMinutesSecondsNsew
(
double
value,
33
bool
isNsHemisphere)
const
;
34
35
private
:
36
37
void
stripSymbols (QString &field0,
38
QString &field1,
39
QString &field2)
const
;
40
};
41
42
#endif // FORMAT_DEGREES_MINUTES_SECONDS_BASE_H
FormatDegreesMinutesSecondsBase::FormatDegreesMinutesSecondsBase
FormatDegreesMinutesSecondsBase()
Single constructor.
Definition:
FormatDegreesMinutesSecondsBase.cpp:21
FormatDegreesMinutesSecondsBase
Common input parsing and output formatting for degrees/minutes/seconds values.
Definition:
FormatDegreesMinutesSecondsBase.h:13
FormatDegreesMinutesSecondsBase::~FormatDegreesMinutesSecondsBase
~FormatDegreesMinutesSecondsBase()
Definition:
FormatDegreesMinutesSecondsBase.cpp:25
FormatDegreesMinutesSecondsBase::parseInput
QValidator::State parseInput(const QString &stringUntrimmed, double &value) const
Parse the input string into a number value.
Definition:
FormatDegreesMinutesSecondsBase.cpp:86
FormatDegreesMinutesSecondsBase::formatOutputDegreesMinutesSecondsNsew
QString formatOutputDegreesMinutesSecondsNsew(double value, bool isNsHemisphere) const
Format as degrees, minutes and seconds with hemisphere.
Definition:
FormatDegreesMinutesSecondsBase.cpp:53
FormatDegreesMinutesSecondsBase::formatOutputDegreesMinutesSeconds
QString formatOutputDegreesMinutesSeconds(double value) const
Format as degrees, minutes and seconds without hemisphere.
Definition:
FormatDegreesMinutesSecondsBase.cpp:29
Generated on Sat Jan 4 2020 12:00:00 for Engauge Digitizer by
1.8.16