A dialog that gets a coordinate ad centralize the area of visualization at it. More...
#include <InputCoordinateDialog.h>
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::Coord2D * | getCoordinate () |
| 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 | |
| MapDisplay * | m_display |
| Map display to show the result. More... | |
| Ui::InputCoordinateForm * | m_ui |
| Pointer for Qt structure. More... | |
| QValidator * | m_validator |
| Validator being used. More... | |
A dialog that gets a coordinate ad centralize the area of visualization at it.
Definition at line 63 of file InputCoordinateDialog.h.
| te::qt::widgets::InputCoordinateDialog::InputCoordinateDialog | ( | MapDisplay * | display | ) |
Constructor.
| display | The display to be used. |
Definition at line 342 of file InputCoordinateDialog.cpp.
References m_ui, updateValidator(), and validatorStateChanged().
| te::qt::widgets::InputCoordinateDialog::~InputCoordinateDialog | ( | ) |
|
protectedslot |
Called when the Cancel button was pressed.
Definition at line 440 of file InputCoordinateDialog.cpp.
|
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().
|
protectedslot |
Called when the degree-minute-second button was selected.
Definition at line 363 of file InputCoordinateDialog.cpp.
References DD2DMS(), m_ui, and updateValidator().
|
protected |
Returns the coordinate of the input.
Definition at line 476 of file InputCoordinateDialog.cpp.
References d, DMS2DD(), IsAValidDMSValue(), and m_ui.
Referenced by ok_triggered().
|
protectedslot |
Called when the Ok button was pressed.
Definition at line 420 of file InputCoordinateDialog.cpp.
References GetCenteredBox(), getCoordinate(), te::map::MapDisplay::getExtent(), te::map::MapDisplay::getSRID(), m_display, te::qt::widgets::MapDisplay::setExtent(), and te::gm::Envelope::transform().
|
protected |
Updates the validator and the mask being used on coordinate line edit.
| isDMS | If 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().
|
protectedslot |
Called when the line-edits changed its valid state.
Definition at line 445 of file InputCoordinateDialog.cpp.
References m_ui.
Referenced by InputCoordinateDialog().
|
protected |
Map display to show the result.
Definition at line 128 of file InputCoordinateDialog.h.
Referenced by ok_triggered().
|
protected |
Pointer for Qt structure.
Definition at line 124 of file InputCoordinateDialog.h.
Referenced by DD_triggered(), DMS_triggered(), getCoordinate(), InputCoordinateDialog(), updateValidator(), validatorStateChanged(), and ~InputCoordinateDialog().
|
protected |
Validator being used.
Definition at line 126 of file InputCoordinateDialog.h.
Referenced by updateValidator().