te::qt::widgets::InputCoordinateDialog Class Reference

A dialog that gets a coordinate ad centralize the area of visualization at it. More...

#include <InputCoordinateDialog.h>

Inheritance diagram for te::qt::widgets::InputCoordinateDialog:
QDialog

Public Member Functions

 InputCoordinateDialog (MapDisplay *display)
 Constructor. More...
 
 ~InputCoordinateDialog ()
 Destructor. More...
 

Protected Slots

void cancel_triggered ()
 Called when the Cancel button was pressed. More...
 
void DD_triggered ()
 Called when the decimal-degree button was selected. More...
 
void DMS_triggered ()
 Called when the degree-minute-second button was selected. More...
 
void ok_triggered ()
 Called when the Ok button was pressed. More...
 
void validatorStateChanged ()
 Called when the line-edits changed its valid state. More...
 

Protected Member Functions

te::gm::Coord2DgetCoordinate ()
 Returns the coordinate of the input. More...
 
void updateValidator (const bool &isDMS)
 Updates the validator and the mask being used on coordinate line edit. More...
 

Protected Attributes

MapDisplaym_display
 Map display to show the result. More...
 
Ui::InputCoordinateForm * m_ui
 Pointer for Qt structure. More...
 
QValidatorm_validator
 Validator being used. More...
 

Detailed Description

A dialog that gets a coordinate ad centralize the area of visualization at it.

Definition at line 63 of file InputCoordinateDialog.h.

Constructor & Destructor Documentation

te::qt::widgets::InputCoordinateDialog::InputCoordinateDialog ( MapDisplay display)

Constructor.

Parameters
displayThe display to be used.

Definition at line 342 of file InputCoordinateDialog.cpp.

References m_ui, updateValidator(), and validatorStateChanged().

te::qt::widgets::InputCoordinateDialog::~InputCoordinateDialog ( )

Destructor.

Definition at line 358 of file InputCoordinateDialog.cpp.

References m_ui.

Member Function Documentation

void te::qt::widgets::InputCoordinateDialog::cancel_triggered ( )
protectedslot

Called when the Cancel button was pressed.

Definition at line 440 of file InputCoordinateDialog.cpp.

void te::qt::widgets::InputCoordinateDialog::DD_triggered ( )
protectedslot

Called when the decimal-degree button was selected.

Definition at line 392 of file InputCoordinateDialog.cpp.

References d, DMS2DD(), IsAValidDMSValue(), m_ui, and updateValidator().

void te::qt::widgets::InputCoordinateDialog::DMS_triggered ( )
protectedslot

Called when the degree-minute-second button was selected.

Definition at line 363 of file InputCoordinateDialog.cpp.

References DD2DMS(), m_ui, and updateValidator().

te::gm::Coord2D * te::qt::widgets::InputCoordinateDialog::getCoordinate ( )
protected

Returns the coordinate of the input.

Returns
Coordinate captured by the dialog.

Definition at line 476 of file InputCoordinateDialog.cpp.

References d, DMS2DD(), IsAValidDMSValue(), and m_ui.

Referenced by ok_triggered().

void te::qt::widgets::InputCoordinateDialog::ok_triggered ( )
protectedslot
void te::qt::widgets::InputCoordinateDialog::updateValidator ( const bool isDMS)
protected

Updates the validator and the mask being used on coordinate line edit.

Parameters
isDMSIf true mask and validator for the degree-minute-second input type, and false for decimal-degree validators.

Definition at line 458 of file InputCoordinateDialog.cpp.

References GetLineEditMask(), m_ui, and m_validator.

Referenced by DD_triggered(), DMS_triggered(), and InputCoordinateDialog().

void te::qt::widgets::InputCoordinateDialog::validatorStateChanged ( )
protectedslot

Called when the line-edits changed its valid state.

Definition at line 445 of file InputCoordinateDialog.cpp.

References m_ui.

Referenced by InputCoordinateDialog().

Member Data Documentation

MapDisplay* te::qt::widgets::InputCoordinateDialog::m_display
protected

Map display to show the result.

Definition at line 128 of file InputCoordinateDialog.h.

Referenced by ok_triggered().

Ui::InputCoordinateForm* te::qt::widgets::InputCoordinateDialog::m_ui
protected
QValidator* te::qt::widgets::InputCoordinateDialog::m_validator
protected

Validator being used.

Definition at line 126 of file InputCoordinateDialog.h.

Referenced by updateValidator().


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