VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Private Member Functions
makVrv::DtGotoWidget Class Reference

DtGotoWidget declaration. More...

Inheritance diagram for makVrv::DtGotoWidget:
Inheritance graph
[legend]

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

DtDemyDe
 
GotoType myCurrentGotoType
 
AltType myCurrentAltitudeType
 
QButtonGroup * mySelectorButtonsGroup
 
QRadioButton * myGotoAddressRadioButton
 
QRadioButton * myGotoDmsRadioButton
 
QRadioButton * myGotoMgrsRadioButton
 
QLabelmyGotoAddressLabel
 
QLabelmyGotoDmsLabel
 
QLabelmyGotoMgrsLabel
 
QGroupBox * myAltitudeGroupBox
 
QRadioButton * myAltitudeSLevelRadioButton
 
QLabelmyAboveSeaLevelLabel
 
QRadioButton * myAltitudeGLevelRadioButton
 
QLabelmyAboveTerrainLabel
 
QLineEditmyAltitudeSLevelLineEdit
 
QDoubleValidator * myAltitudeSLevelValidator
 
QLineEditmyAltitudeGLevelLineEdit
 
QDoubleValidator * myAltitudeGLevelValidator
 
DtDmsEntryWidgetmyGotoDmsWidget
 
DtMgrsEntryWidgetmyGotoMgrsWidget
 
QLabelmyAddressWarningLabel
 
QPixmap myAddressWarningIcon
 
QLineEditmyAddress
 
QPushButtonmyGoButton
 
QVBoxLayout * myMainLayout
 
DtUnicode myAltitudeUnitStr
 

Private Member Functions

 DtGotoWidget ()
 Unimplmented Default constructor. More...
 

Additional Inherited Members

- Public Attributes inherited from makVrv::DtGotoWidgetInterface
boost::signalslib::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::signalslib::signal
< void(const DtUnicode &)> 
signal_requestJumpToAddress
 Request to lookup the specified address and, if found, jump to it. More...
 
boost::signalslib::signal
< void(int altType, double
displayAlt)> 
signal_altitudeDisplayChanged
 Indicate that one of the altitude values has changed. More...
 
boost::signalslib::signal
< void(double)> 
signal_latitudeSecondsChanged
 Indicate that the seconds portion of the latitude input has changed. More...
 
boost::signalslib::signal
< void(double)> 
signal_longitudeSecondsChanged
 Indicate that the seconds portion of the longitude input has changed. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

makVrv::DtGotoWidget::DtGotoWidget ( makVrv::DtDe de,
QWidget *  parent 
)

Constructor.

virtual makVrv::DtGotoWidget::~DtGotoWidget ( )
virtual

Destructor.

makVrv::DtGotoWidget::DtGotoWidget ( )
private

Unimplmented Default constructor.

Member Function Documentation

virtual void makVrv::DtGotoWidget::initialize ( )
virtual

Set up the GUI and connect to all the widget signals.

virtual void makVrv::DtGotoWidget::setSecondsDecimals ( int  decimals)
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 void makVrv::DtGotoWidget::setAltitudeDecimals ( int  decimals)
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 void makVrv::DtGotoWidget::setAltitudeUnits ( const DtUnicode units)
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.

virtual void makVrv::DtGotoWidget::setLocationFound ( double  lat,
double  lon 
)
virtual

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 void makVrv::DtGotoWidget::setAddressError ( const DtUnicode errorStr)
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 void makVrv::DtGotoWidget::setAltitudeText ( AltType  type,
const DtUnicode altitudeText 
)
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 void makVrv::DtGotoWidget::setLatitudeSecondsText ( const DtUnicode secondsText)
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 void makVrv::DtGotoWidget::setLongitudeSecondsText ( const DtUnicode secondsText)
virtual

Set the text displayed for seconds latitude in the DMS widget.

See Also
setLatitudeSecondsText

Implements makVrv::DtGotoWidgetInterface.

virtual void makVrv::DtGotoWidget::setupUi ( )
protectedvirtual

Helper function to set up the GUI widgets.

virtual void makVrv::DtGotoWidget::connectSignals ( )
protectedvirtual

Connect all the subordinate widget Qt signals to this widgets Qt slots.

virtual void makVrv::DtGotoWidget::setAltitudeType ( AltType  altitudeType)
protectedvirtual

Helper function to enable altitude labels and edit boxes based on the altitude type.

virtual void makVrv::DtGotoWidget::onGotoAddressChecked ( )
protectedvirtualslot

Slot connected to the Goto Address radio button's 'released' signal.

virtual void makVrv::DtGotoWidget::onGotoDmsChecked ( )
protectedvirtualslot

Slot connected to the Goto DMS radio button's 'released' signal.

virtual void makVrv::DtGotoWidget::onGotoMgrsChecked ( )
protectedvirtualslot

Slot connected to the Goto MGRS radio button's 'released' signal.

virtual void makVrv::DtGotoWidget::onHasValidValue ( bool  valid)
protectedvirtualslot

Slot connected tothe 'hasValidValue' signal from the DtDmsEntryWidget and the DtMgrsEntryWidget.

virtual void makVrv::DtGotoWidget::onGoButtonClicked ( )
protectedvirtualslot

Slot connected to the GO push button's 'clicked' signal.

virtual void makVrv::DtGotoWidget::onAltitudeChanged ( )
protectedvirtualslot

Slot connected to both altitude type's edit boxes' 'textEdited' signal.

virtual void makVrv::DtGotoWidget::onAddressChanged ( )
protectedvirtualslot

Slot connected to the address edit box's 'textEdited' signal.

virtual void makVrv::DtGotoWidget::onAltitudeSeaLevelChecked ( )
protectedvirtualslot

Slot connected to the altitude above sea level radio button's 'released' signal.

virtual void makVrv::DtGotoWidget::onAltitudeAboveTerrainChecked ( )
protectedvirtualslot

Slot connected to the altitude above terrain radio button's 'released' signal.

virtual void makVrv::DtGotoWidget::onLatitudeSecondsChanged ( double  seconds)
protectedvirtualslot

Slot connected to the DtDmsEntryWidget's 'latitudeSecondsChanged' signal.

virtual void makVrv::DtGotoWidget::onLongitudeSecondsChanged ( double  seconds)
protectedvirtualslot

Slot connected to the DtDmsEntryWidget's 'longitudeSecondsChanged' signal.

virtual QLayout* makVrv::DtGotoWidget::createGotoWidgets ( )
protectedvirtual

Helper function to layout the 3 Goto Widget types.

virtual QLayout* makVrv::DtGotoWidget::createAltitudeWidget ( )
protectedvirtual

Helper function to layout the altitude widget.

virtual QLayout* makVrv::DtGotoWidget::createGoButton ( )
protectedvirtual

Helper function to layout the GO push button.

Member Data Documentation

DtDe& makVrv::DtGotoWidget::myDe
protected
GotoType makVrv::DtGotoWidget::myCurrentGotoType
protected
AltType makVrv::DtGotoWidget::myCurrentAltitudeType
protected
QButtonGroup* makVrv::DtGotoWidget::mySelectorButtonsGroup
protected
QRadioButton* makVrv::DtGotoWidget::myGotoAddressRadioButton
protected
QRadioButton* makVrv::DtGotoWidget::myGotoDmsRadioButton
protected
QRadioButton* makVrv::DtGotoWidget::myGotoMgrsRadioButton
protected
QLabel* makVrv::DtGotoWidget::myGotoAddressLabel
protected
QLabel* makVrv::DtGotoWidget::myGotoDmsLabel
protected
QLabel* makVrv::DtGotoWidget::myGotoMgrsLabel
protected
QGroupBox* makVrv::DtGotoWidget::myAltitudeGroupBox
protected
QRadioButton* makVrv::DtGotoWidget::myAltitudeSLevelRadioButton
protected
QLabel* makVrv::DtGotoWidget::myAboveSeaLevelLabel
protected
QRadioButton* makVrv::DtGotoWidget::myAltitudeGLevelRadioButton
protected
QLabel* makVrv::DtGotoWidget::myAboveTerrainLabel
protected
QLineEdit* makVrv::DtGotoWidget::myAltitudeSLevelLineEdit
protected
QDoubleValidator* makVrv::DtGotoWidget::myAltitudeSLevelValidator
protected
QLineEdit* makVrv::DtGotoWidget::myAltitudeGLevelLineEdit
protected
QDoubleValidator* makVrv::DtGotoWidget::myAltitudeGLevelValidator
protected
DtDmsEntryWidget* makVrv::DtGotoWidget::myGotoDmsWidget
protected
DtMgrsEntryWidget* makVrv::DtGotoWidget::myGotoMgrsWidget
protected
QLabel* makVrv::DtGotoWidget::myAddressWarningLabel
protected
QPixmap makVrv::DtGotoWidget::myAddressWarningIcon
protected
QLineEdit* makVrv::DtGotoWidget::myAddress
protected
QPushButton* makVrv::DtGotoWidget::myGoButton
protected
QVBoxLayout* makVrv::DtGotoWidget::myMainLayout
protected
DtUnicode makVrv::DtGotoWidget::myAltitudeUnitStr
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)