![]() |
VR-Forces Developer's Guide
|
DtLocationEntryWidget declaration. Abstact base class for widgets that manage location input to the Goto Panel. All DtLocationEntryWidgets are responsible for validation of entuered data. They will raise a hasValidValue Qt signal with a value of true when there is valid input,.
may be retrieved using the getValue() method. Note that location entry widgets do not support an altitude (see DtGotoLogic for more details).

Signals | |
| void | hasValidValue (bool valid) |
Public Member Functions | |
| 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 ()=0 |
| virtual void | connectSignals ()=0 |
| virtual void | onPositionEdited ()=0 |
Protected Attributes | |
| DtDe & | myDe |
| bool | myEnabled |
| double | myLat |
| double | myLon |
| bool | myHasValidValue |
| makVrv::DtLocationEntryWidget::DtLocationEntryWidget | ( | DtDe & | de, |
| QWidget * | parent = 0 |
||
| ) |
Constructor.
|
virtual |
Destructor.
|
delete |
Copy CTOR ( Not implemented )
|
delete |
Assignment operator ( Not implemented )
|
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 entry could be converted to a valid latitude and longitude.
|
signal |
Signal that the widget has a valid value or not.
|
protectedpure virtual |
Create the widgets and layouts.
Implemented in makVrv::DtProjectedDatabaseEntryWidget, makVrv::DtUtmEntryWidget, makVrv::DtGarsEntryWidget, makVrv::DtGeocentricEntryWidget, makVrv::DtDdmEntryWidget, makVrv::DtDmsEntryWidget, makVrv::DtDecEntryWidget, and makVrv::DtMgrsEntryWidget.
|
protectedpure virtual |
Connect our Qt slots to the Qt signals from widgets we created.
Implemented in makVrv::DtProjectedDatabaseEntryWidget, makVrv::DtUtmEntryWidget, makVrv::DtGarsEntryWidget, makVrv::DtGeocentricEntryWidget, makVrv::DtDdmEntryWidget, makVrv::DtDmsEntryWidget, makVrv::DtDecEntryWidget, and makVrv::DtMgrsEntryWidget.
|
protectedpure virtual |
This Qt slot is connected to all edit boxes created.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |