![]() |
VR-Forces 4.8 Class Documentation
|
DtMgrsEntryWidget declaration. More...

Public Slots | |
| virtual void | onPositionEdited () |
| This Qt slot is connected to all four edit boxes created. More... | |
Signals | |
| void | hasValidValue (bool valid) |
| Signal that the widget has a valid value or not. More... | |
Public Member Functions | |
| DtMgrsEntryWidget (DtDe &de, QWidget *parent=0) | |
| Constructor. More... | |
| virtual | ~DtMgrsEntryWidget () |
| Destructor. More... | |
| virtual void | initialize () |
| Set up the widgets and connect our Qt slots to Qt signals. More... | |
| virtual void | getValue (double &lat, double &lon) const |
| Return the current latitude and longitude stored by the widget, in radians. More... | |
| virtual bool | valueValid () const |
| Determine if the widget currently has a valid value. More... | |
Protected Member Functions | |
| virtual void | setupUi () |
| Create the widgets and layouts. More... | |
| virtual void | connectSignals () |
| Connect our Qt slots to the Qt signals from widgets we created. More... | |
Protected Attributes | |
| DtDe & | myDe |
| bool | myEnabled |
| QLabel * | myGridZoneLabel |
| QLineEdit * | myGridZoneStr |
| QLabel * | myMapSheetLabel |
| QLineEdit * | myMapSheetStr |
| QLabel * | myEastingLabel |
| QLineEdit * | myEastingStr |
| QLabel * | myNorthingLabel |
| QLineEdit * | myNorthingStr |
| double | myLat |
| double | myLon |
| bool | myHasValidValue |
| QIntValidator * | myNorthingEastingValidator |
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.
| 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 |
|
protected |
|
protected |
|
protected |