DMSValidator Class Reference

Class used to evaluate the coordinates given as degree-minute-second values. More...

Inheritance diagram for DMSValidator:
QValidator

Public Member Functions

 DMSValidator (QWidget *parent=nullptr)
 Constructor. More...
 
void fixup (QString &value) const override
 Used to try to fix some errors on value. More...
 
State validate (QString &value, int &) const override
 Verifies if the value is a degree-minute-second valid value. More...
 
 ~DMSValidator () override=default
 Destructor. More...
 

Detailed Description

Class used to evaluate the coordinates given as degree-minute-second values.

Definition at line 289 of file InputCoordinateDialog.cpp.

Constructor & Destructor Documentation

DMSValidator::DMSValidator ( QWidget parent = nullptr)
inline

Constructor.

Parameters
parentUsed by Qt to manage the pointers.

Definition at line 298 of file InputCoordinateDialog.cpp.

References ~DMSValidator().

DMSValidator::~DMSValidator ( )
overridedefault

Destructor.

Referenced by DMSValidator().

Member Function Documentation

void DMSValidator::fixup ( QString &  value) const
inlineoverride

Used to try to fix some errors on value.

Parameters
valueThe string to be fixed.

Definition at line 325 of file InputCoordinateDialog.cpp.

References d, GetDMSAsString(), and IsAValidDMSValue().

State DMSValidator::validate ( QString &  value,
int  
) const
inlineoverride

Verifies if the value is a degree-minute-second valid value.

Parameters
valueThe formatted value.
Returns
Three possible values: accepted, intermediate, invalid.

Definition at line 315 of file InputCoordinateDialog.cpp.

References IsAValidDMSValue().


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