Engauge Digitizer 2
Loading...
Searching...
No Matches
DlgValidatorDegreesMinutesSeconds Class Reference

Validator for angles in real degrees, integer degrees and real minutes, or integer degrees with integer minutes with real seconds. More...

#include <DlgValidatorDegreesMinutesSeconds.h>

Inheritance diagram for DlgValidatorDegreesMinutesSeconds:
Inheritance graph
Collaboration diagram for DlgValidatorDegreesMinutesSeconds:
Collaboration graph

Public Member Functions

 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.
Public Member Functions inherited from DlgValidatorAbstract
 DlgValidatorAbstract (QObject *parent=0)
 Single constructor.
virtual ~DlgValidatorAbstract ()

Detailed Description

Validator for angles in real degrees, integer degrees and real minutes, or integer degrees with integer minutes with real seconds.

Definition at line 17 of file DlgValidatorDegreesMinutesSeconds.h.

Constructor & Destructor Documentation

◆ DlgValidatorDegreesMinutesSeconds()

DlgValidatorDegreesMinutesSeconds::DlgValidatorDegreesMinutesSeconds ( CoordScale coordScale,
QObject * parent = 0 )

Single constructor.

Definition at line 11 of file DlgValidatorDegreesMinutesSeconds.cpp.

12 :
14 m_coordScale (coordScale)
15{
16 LOG4CPP_INFO_S ((*mainCat)) << "DlgValidatorDegreesMinutesSeconds::DlgValidatorDegreesMinutesSeconds";
17}
log4cpp::Category * mainCat
Definition Logger.cpp:14
DlgValidatorAbstract(QObject *parent=0)
Single constructor.
#define LOG4CPP_INFO_S(logger)
Definition convenience.h:18

Member Function Documentation

◆ validate()

QValidator::State DlgValidatorDegreesMinutesSeconds::validate ( QString & input,
int & pos ) const
virtual

Validate according to the numeric format specific to the leaf class.

Implements DlgValidatorAbstract.

Definition at line 19 of file DlgValidatorDegreesMinutesSeconds.cpp.

21{
22 FormatDegreesMinutesSecondsBase formatDegreesMinutesSeconds;
23
24 double value;
25 return formatDegreesMinutesSeconds.parseInput (input,
26 value);
27}
QValidator::State parseInput(const QString &stringUntrimmed, double &value) const
Parse the input string into a number value.

The documentation for this class was generated from the following files: