Engauge Digitizer 2
|
Common input parsing and output formatting for degrees/minutes/seconds values. More...
#include <FormatDegreesMinutesSecondsBase.h>
Public Member Functions | |
FormatDegreesMinutesSecondsBase () | |
Single constructor. | |
~FormatDegreesMinutesSecondsBase () | |
QValidator::State | parseInput (const QString &stringUntrimmed, double &value) const |
Parse the input string into a number value. |
Protected Member Functions | |
QString | formatOutputDegreesMinutesSeconds (double value) const |
Format as degrees, minutes and seconds without hemisphere. | |
QString | formatOutputDegreesMinutesSecondsNsew (double value, bool isNsHemisphere) const |
Format as degrees, minutes and seconds with hemisphere. |
Common input parsing and output formatting for degrees/minutes/seconds values.
Definition at line 14 of file FormatDegreesMinutesSecondsBase.h.
FormatDegreesMinutesSecondsBase::FormatDegreesMinutesSecondsBase | ( | ) |
FormatDegreesMinutesSecondsBase::~FormatDegreesMinutesSecondsBase | ( | ) |
Definition at line 27 of file FormatDegreesMinutesSecondsBase.cpp.
|
protected |
Format as degrees, minutes and seconds without hemisphere.
Definition at line 31 of file FormatDegreesMinutesSecondsBase.cpp.
|
protected |
Format as degrees, minutes and seconds with hemisphere.
Definition at line 55 of file FormatDegreesMinutesSecondsBase.cpp.
QValidator::State FormatDegreesMinutesSecondsBase::parseInput | ( | const QString & | stringUntrimmed, |
double & | value ) const |
Parse the input string into a number value.
Success flag is false if the parsing failed. Either signed values or hemisphere (North, South, East, West) values can be accepted irregardless of the output format selected by the user. Leading/trailing spaces are trimmed. Leading/trailing spaces are trimmed (=ignored)
Definition at line 88 of file FormatDegreesMinutesSecondsBase.cpp.