![]() |
VR-Forces 5.0.3 Developer's Guide
|
DtMgrsEntryWidget declaration. Widget for managing input of an MGRS location. It provides 4 edit boxes, for grid zone; map sheet; easting; and northing. When all four are filled in, the widget will try to convert the result to a latitude and longitude. It will raise its hasValidValue signal, indicating whether or not the conversion was successful. When needed, the current value can be retrieved through the getValue method.

Public Slots | |
| virtual void | onPositionEdited () |
Signals | |
| void | hasValidValue (bool valid) |
Public Member Functions | |
| DtMgrsEntryWidget (DtDe &de, QWidget *parent=0) | |
| virtual | ~DtMgrsEntryWidget () |
| virtual void | initialize () |
| virtual void | getValue (double &lat, double &lon) const |
| virtual bool | valueValid () const |
Protected Member Functions | |
| virtual void | setupUi () |
| virtual void | connectSignals () |
Protected Attributes | |
| DtDe & | myDe |
| bool | myEnabled |
| QLabel * | myGridZoneLabel |
| QLineEdit * | myGridZoneStr |
| QLabel * | myMapSheetLabel |
| QLineEdit * | myMapSheetStr |
| QLineEdit * | myNorthingEastingStr |
| double | myLat |
| double | myLon |
| bool | myHasValidValue |
| QIntValidator * | myNorthingEastingValidator |
| makVrv::DtMgrsEntryWidget::DtMgrsEntryWidget | ( | DtDe & | de, |
| QWidget * | parent = 0 |
||
| ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Set up the widgets and connect our Qt slots to Qt signals.
Return the current latitude and longitude stored by the widget, in radians.
|
virtual |
Determine if the widget currently has a valid value. This is true if the last completed MGRS entry could be converted to a valid latitude and longitude.
|
signal |
Signal that the widget has a valid value or not.
|
protectedvirtual |
Create the widgets and layouts.
|
protectedvirtual |
Connect our Qt slots to the Qt signals from widgets we created.
|
virtualslot |
This Qt slot is connected to all four edit boxes created.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |