![]() |
VR-Forces Developer's Guide
|
DtGotoWidget declaration. The DtGotoWidget and DtGotoLogic work together to provide a user interface for directing the current observer to jump to either a location in latitude/longitude; in MGRS; or an actual address that is used to look up a latitude/longitude by creating a geocoding session. The DtGotoWidget creates and uses 2 VRV-created widgets - the DtDmsEntryWidget for entering latitude and longitude (in Degrees/Minutes/Seconds); and the DtMgrsEntryWidget, for entering a location in MGRS coordinates. In addition, it manages an address bar for requesting a jump based on an address; and a locally created altitude widget that applies to all three of the other location choices. A GO pushbutton will be enabled if all the fields are filled in for the selected GoTo type and in the altitude edit box.

Public Member Functions | |
| DtGotoWidget (makVrv::DtDe &de, QWidget *parent) | |
| virtual | ~DtGotoWidget () |
| virtual void | initialize () |
| virtual void | setSecondsDecimals (int decimals) |
| virtual void | setLocationFound (double lat, double lon) |
| virtual void | setAddressError (const DtUnicode &errorStr) |
| virtual void | setLatitudeSecondsText (const DtUnicode &secondsText) |
| virtual void | setLongitudeSecondsText (const DtUnicode &secondsText) |
Public Member Functions inherited from makVrv::DtGotoWidgetInterface | |
| virtual | ~DtGotoWidgetInterface () |
Protected Slots | |
| virtual void | onGotoAddressChecked () |
| virtual void | onGotoDmsChecked () |
| virtual void | onGotoMgrsChecked () |
| virtual void | onHasValidValue (bool valid) |
| virtual void | onGoButtonClicked () |
| virtual void | onAddressChanged () |
| virtual void | onLatitudeSecondsChanged (double seconds) |
| virtual void | onLongitudeSecondsChanged (double seconds) |
Protected Member Functions | |
| virtual void | setupUi () |
| virtual void | connectSignals () |
| virtual QLayout * | createGotoWidgets () |
| virtual QLayout * | createGoButton () |
Protected Attributes | |
| DtDe & | myDe |
| GotoType | myCurrentGotoType |
| QButtonGroup * | mySelectorButtonsGroup |
| QRadioButton * | myGotoAddressRadioButton |
| QRadioButton * | myGotoDmsRadioButton |
| QRadioButton * | myGotoMgrsRadioButton |
| QLabel * | myGotoAddressLabel |
| QLabel * | myGotoDmsLabel |
| QLabel * | myGotoMgrsLabel |
| DtDmsEntryWidget * | myGotoDmsWidget |
| DtMgrsEntryWidget * | myGotoMgrsWidget |
| QLabel * | myAddressWarningLabel |
| QPixmap | myAddressWarningIcon |
| QLineEdit * | myAddress |
| QPushButton * | myGoButton |
| QVBoxLayout * | myMainLayout |
Private Member Functions | |
| DtGotoWidget () | |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtGotoWidgetInterface | |
| boost::signalslib::signal < void(double lat, double lon)> | signal_gotoLocation |
| boost::signalslib::signal < void(const DtUnicode &)> | signal_requestJumpToAddress |
| boost::signalslib::signal < void(int altType, double displayAlt)> | signal_altitudeDisplayChanged |
| boost::signalslib::signal < void(double)> | signal_latitudeSecondsChanged |
| boost::signalslib::signal < void(double)> | signal_longitudeSecondsChanged |
| makVrv::DtGotoWidget::DtGotoWidget | ( | makVrv::DtDe & | de, |
| QWidget * | parent | ||
| ) |
Constructor.
|
virtual |
Destructor.
|
private |
Unimplmented Default constructor.
|
virtual |
Set up the GUI and connect to all the widget signals.
|
virtual |
Methods used to communicate from the Goto Logic to the Goto Widget.
Set the Unit Display Settings values for precision to use for seconds in the DMS entry widget The decimals for Coordinate System display is used for this. The value will be use by the validator on the latitude and longitude seconds edit boxes
Implements makVrv::DtGotoWidgetInterface.
Provide a latitude and longitude to the Goto Widget When a request is made to the logic for a location lookup by address, the logic will use this method to respond.
Implements makVrv::DtGotoWidgetInterface.
|
virtual |
Provide a string that indicates an address lookup error. This method is called any time a request is made for an address lookup. If the lookup is successful, it will be called with an empty string; otherwise in will provide information about the nature of the lookup failure.
Implements makVrv::DtGotoWidgetInterface.
|
virtual |
Set the text displayed for seconds latitude in the DMS widget Because the logic needs to provide the support for the modifying precision based on the display unit settings, the seconds portion of the DMS are sent to the Goto Logic to be formatted and the returned (as strings) to the Goto Widget.
Implements makVrv::DtGotoWidgetInterface.
|
virtual |
Set the text displayed for seconds latitude in the DMS widget.
Implements makVrv::DtGotoWidgetInterface.
|
protectedvirtual |
Helper function to set up the GUI widgets.
|
protectedvirtual |
Connect all the subordinate widget Qt signals to this widgets Qt slots.
|
protectedvirtualslot |
Slot connected to the Goto Address radio button's 'released' signal.
|
protectedvirtualslot |
Slot connected to the Goto DMS radio button's 'released' signal.
|
protectedvirtualslot |
Slot connected to the Goto MGRS radio button's 'released' signal.
|
protectedvirtualslot |
Slot connected tothe 'hasValidValue' signal from the DtDmsEntryWidget and the DtMgrsEntryWidget.
|
protectedvirtualslot |
Slot connected to the GO push button's 'clicked' signal.
|
protectedvirtualslot |
Slot connected to the address edit box's 'textEdited' signal.
|
protectedvirtualslot |
Slot connected to the DtDmsEntryWidget's 'latitudeSecondsChanged' signal.
|
protectedvirtualslot |
Slot connected to the DtDmsEntryWidget's 'longitudeSecondsChanged' signal.
|
protectedvirtual |
Helper function to layout the 3 Goto Widget types.
|
protectedvirtual |
Helper function to layout the GO push button.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |