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

Public Member Functions | |
| DtGotoWidget (makVrv::DtDe &de, QWidget *parent) | |
| Constructor. More... | |
| virtual | ~DtGotoWidget () |
| Destructor. More... | |
| virtual void | initialize () |
| Set up the GUI and connect to all the widget signals. More... | |
| virtual void | setSecondsDecimals (int decimals) |
| Methods used to communicate from the Goto Logic to the Goto Widget. More... | |
| virtual void | setAltitudeDecimals (int decimals) |
| Set the Unit Display Settings values for precision to use on the altitude widget. More... | |
| virtual void | setAltitudeUnits (const DtUnicode &units) |
| Set a unicode string to be used as the unit type display. More... | |
| virtual void | setLocationFound (double lat, double lon) |
| 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. More... | |
| virtual void | setAddressError (const DtUnicode &errorStr) |
| Provide a string that indicates an address lookup error. More... | |
| virtual void | setAltitudeText (AltType type, const DtUnicode &altitudeText) |
| Set the text displayed in the altitude widget for one of the altitude types Because the logic needs to provide the support for the modifying display units and precision (for altitude) all altitude values are communicated directly to the Goto Logic, which then formats them appropriately for the current display unit settings for altitude and returns this (as text) to the widget to display. More... | |
| virtual void | setLatitudeSecondsText (const DtUnicode &secondsText) |
| 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. More... | |
| virtual void | setLongitudeSecondsText (const DtUnicode &secondsText) |
| Set the text displayed for seconds latitude in the DMS widget. More... | |
Public Member Functions inherited from makVrv::DtGotoWidgetInterface | |
| virtual | ~DtGotoWidgetInterface () |
| DTOR. More... | |
Protected Slots | |
| virtual void | onGotoAddressChecked () |
| Slot connected to the Goto Address radio button's 'released' signal. More... | |
| virtual void | onGotoDmsChecked () |
| Slot connected to the Goto DMS radio button's 'released' signal. More... | |
| virtual void | onGotoMgrsChecked () |
| Slot connected to the Goto MGRS radio button's 'released' signal. More... | |
| virtual void | onHasValidValue (bool valid) |
| Slot connected tothe 'hasValidValue' signal from the DtDmsEntryWidget and the DtMgrsEntryWidget. More... | |
| virtual void | onGoButtonClicked () |
| Slot connected to the GO push button's 'clicked' signal. More... | |
| virtual void | onAltitudeChanged () |
| Slot connected to both altitude type's edit boxes' 'textEdited' signal. More... | |
| virtual void | onAddressChanged () |
| Slot connected to the address edit box's 'textEdited' signal. More... | |
| virtual void | onAltitudeSeaLevelChecked () |
| Slot connected to the altitude above sea level radio button's 'released' signal. More... | |
| virtual void | onAltitudeAboveTerrainChecked () |
| Slot connected to the altitude above terrain radio button's 'released' signal. More... | |
| virtual void | onLatitudeSecondsChanged (double seconds) |
| Slot connected to the DtDmsEntryWidget's 'latitudeSecondsChanged' signal. More... | |
| virtual void | onLongitudeSecondsChanged (double seconds) |
| Slot connected to the DtDmsEntryWidget's 'longitudeSecondsChanged' signal. More... | |
Protected Member Functions | |
| virtual void | setupUi () |
| Helper function to set up the GUI widgets. More... | |
| virtual void | connectSignals () |
| Connect all the subordinate widget Qt signals to this widgets Qt slots. More... | |
| virtual void | setAltitudeType (AltType altitudeType) |
| Helper function to enable altitude labels and edit boxes based on the altitude type. More... | |
| virtual QLayout * | createGotoWidgets () |
| Helper function to layout the 3 Goto Widget types. More... | |
| virtual QLayout * | createAltitudeWidget () |
| Helper function to layout the altitude widget. More... | |
| virtual QLayout * | createGoButton () |
| Helper function to layout the GO push button. More... | |
Protected Attributes | |
| DtDe & | myDe |
| GotoType | myCurrentGotoType |
| AltType | myCurrentAltitudeType |
| QButtonGroup * | mySelectorButtonsGroup |
| QRadioButton * | myGotoAddressRadioButton |
| QRadioButton * | myGotoDmsRadioButton |
| QRadioButton * | myGotoMgrsRadioButton |
| QLabel * | myGotoAddressLabel |
| QLabel * | myGotoDmsLabel |
| QLabel * | myGotoMgrsLabel |
| QGroupBox * | myAltitudeGroupBox |
| QRadioButton * | myAltitudeSLevelRadioButton |
| QLabel * | myAboveSeaLevelLabel |
| QRadioButton * | myAltitudeGLevelRadioButton |
| QLabel * | myAboveTerrainLabel |
| QLineEdit * | myAltitudeSLevelLineEdit |
| QDoubleValidator * | myAltitudeSLevelValidator |
| QLineEdit * | myAltitudeGLevelLineEdit |
| QDoubleValidator * | myAltitudeGLevelValidator |
| DtDmsEntryWidget * | myGotoDmsWidget |
| DtMgrsEntryWidget * | myGotoMgrsWidget |
| QLabel * | myAddressWarningLabel |
| QPixmap | myAddressWarningIcon |
| QLineEdit * | myAddress |
| QPushButton * | myGoButton |
| QVBoxLayout * | myMainLayout |
| DtUnicode | myAltitudeUnitStr |
Private Member Functions | |
| DtGotoWidget () | |
| Unimplmented Default constructor. More... | |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtGotoWidgetInterface | |
| boost::signal< void(double lat, double lon, int altitudeType)> | signal_gotoLocation |
| Boost signals used to send messages from the Goto Widget to the Goto Logic. More... | |
| boost::signal< void(const DtUnicode &)> | signal_requestJumpToAddress |
| Request to lookup the specified address and, if found, jump to it. More... | |
| boost::signal< void(int altType, double displayAlt)> | signal_altitudeDisplayChanged |
| Indicate that one of the altitude values has changed. More... | |
| boost::signal< void(double)> | signal_latitudeSecondsChanged |
| Indicate that the seconds portion of the latitude input has changed. More... | |
| boost::signal< void(double)> | signal_longitudeSecondsChanged |
| Indicate that the seconds portion of the longitude input has changed. More... | |
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.
| 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.
|
virtual |
Set the Unit Display Settings values for precision to use on the altitude widget.
The value will be use by the validators for the 'above terrain' and 'above sea level' edit boxes
Implements makVrv::DtGotoWidgetInterface.
|
virtual |
Set a unicode string to be used as the unit type display.
This will be used in the title of the 'altitude' group box
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 in the altitude widget for one of the altitude types Because the logic needs to provide the support for the modifying display units and precision (for altitude) all altitude values are communicated directly to the Goto Logic, which then formats them appropriately for the current display unit settings for altitude and returns this (as text) to the widget to display.
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.
|
protectedvirtual |
Helper function to enable altitude labels and edit boxes based on the altitude type.
|
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 both altitude type's edit boxes' 'textEdited' signal.
|
protectedvirtualslot |
Slot connected to the address edit box's 'textEdited' signal.
|
protectedvirtualslot |
Slot connected to the altitude above sea level radio button's 'released' signal.
|
protectedvirtualslot |
Slot connected to the altitude above terrain radio button's 'released' 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 altitude widget.
|
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 |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |