VR-Forces 5.0.1 Developer's Guide
 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. 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.

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

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

DtDemyDe
 
GotoType myCurrentGotoType
 
QButtonGroup * mySelectorButtonsGroup
 
QRadioButton * myGotoAddressRadioButton
 
QRadioButton * myGotoDmsRadioButton
 
QRadioButton * myGotoMgrsRadioButton
 
QLabelmyGotoAddressLabel
 
QLabelmyGotoDmsLabel
 
QLabelmyGotoMgrsLabel
 
DtDmsEntryWidgetmyGotoDmsWidget
 
DtMgrsEntryWidgetmyGotoMgrsWidget
 
QLabelmyAddressWarningLabel
 
QPixmap myAddressWarningIcon
 
QLineEditmyAddress
 
QPushButtonmyGoButton
 
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
 

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::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::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::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::onAddressChanged ( )
protectedvirtualslot

Slot connected to the address edit box's 'textEdited' 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::createGoButton ( )
protectedvirtual

Helper function to layout the GO push button.

Member Data Documentation

DtDe& makVrv::DtGotoWidget::myDe
protected
GotoType makVrv::DtGotoWidget::myCurrentGotoType
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
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

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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)