![]() |
VR-Forces Developer's Guide
|
DtMgrsEntryWidget declaration. Widget for managing input of an MGRS location. It provides 4 edit boxes, for grid zone; map sheet; easting (X); and northing (Y). When all four are filled in with valid values, 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 () override |
Public Member Functions | |
| DtMgrsEntryWidget (DtDe &de, QWidget *parent=0) | |
| virtual | ~DtMgrsEntryWidget () |
| DtMgrsEntryWidget ()=delete | |
| DtMgrsEntryWidget (const DtMgrsEntryWidget &orig)=delete | |
| DtMgrsEntryWidget & | operator= (const DtMgrsEntryWidget &orig)=delete |
Public Member Functions inherited from makVrv::DtLocationEntryWidget | |
| DtLocationEntryWidget (DtDe &de, QWidget *parent=0) | |
| virtual | ~DtLocationEntryWidget () |
| DtLocationEntryWidget (const DtLocationEntryWidget &orig)=delete | |
| DtLocationEntryWidget & | operator= (const DtLocationEntryWidget &orig)=delete |
| virtual void | initialize () |
| virtual void | getValue (double &lat, double &lon) const |
| virtual bool | valueValid () const |
Protected Member Functions | |
| virtual void | setupUi () override |
| virtual void | connectSignals () override |
Protected Member Functions inherited from makVrv::DtLocationEntryWidget | |
| virtual void | onPositionEdited ()=0 |
Protected Attributes | |
| QLabel * | myGridZoneLabel |
| QLineEdit * | myGridZoneStr |
| QLabel * | myMapSheetLabel |
| QLineEdit * | myMapSheetStr |
| QLineEdit * | myNorthingEastingStr |
| QIntValidator * | myNorthingEastingValidator |
Protected Attributes inherited from makVrv::DtLocationEntryWidget | |
| DtDe & | myDe |
| bool | myEnabled |
| double | myLat |
| double | myLon |
| bool | myHasValidValue |
Additional Inherited Members | |
Signals inherited from makVrv::DtLocationEntryWidget | |
| void | hasValidValue (bool valid) |
| makVrv::DtMgrsEntryWidget::DtMgrsEntryWidget | ( | DtDe & | de, |
| QWidget * | parent = 0 |
||
| ) |
Constructor.
|
virtual |
Destructor.
|
delete |
|
delete |
Copy CTOR ( Not implemented )
|
delete |
Assignment operator ( Not implemented )
|
overrideprotectedvirtual |
Create the widgets and layouts.
Implements makVrv::DtLocationEntryWidget.
|
overrideprotectedvirtual |
Connect our Qt slots to the Qt signals from widgets we created.
Implements makVrv::DtLocationEntryWidget.
|
overridevirtualslot |
This Qt slot is connected to all four edit boxes created.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |