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

DtDmsEntryWidget declaration. More...

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

Signals

void hasValidValue (bool valid)
 Qt Signal raised whenever any of the edit boxes change. More...
 
void latitudeSecondsChanged (double)
 Qt signal raised to provide newly entered latitude seconds. More...
 
void longitudeSecondsChanged (double)
 Qt signal raised to provide newly entered longitude seconds. More...
 

Public Member Functions

 DtDmsEntryWidget (makVrv::DtDe &de, QWidget *parent=0)
 Constructor. More...
 
virtual ~DtDmsEntryWidget ()
 Destructor. More...
 
virtual void initialize ()
 Set up the widgets and connect our Qt slots to Qt signals. More...
 
virtual void getValue (double &lat, double &lon) const
 Get the current latitude and latitude (if any - see valueValid()) in radians. More...
 
virtual bool valueValid () const
 Determine if the widget currently has a valid value. More...
 
virtual void setSecondsDecimals (int i)
 Set the precision allowed for the seconds edit boxes. More...
 
virtual void setLatitudeSecondsText (const DtUnicode &secondsText)
 Set the text displayed for seconds latitude Because the Goto 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 Widget, which forwards them to the Goto Logic to be formatted and then returned (as strings) to the Goto Widget, which then calls this method. More...
 
virtual void setLongitudeSecondsText (const DtUnicode &secondsText)
 Set the text displayed for seconds longitude. More...
 

Protected Slots

virtual void onPositionEdited ()
 Qt slot connected to the degree and minute edit boxes' 'textEdited' signals. More...
 
virtual void onLatitudeSecondsEdited ()
 Qt slot connected to the latitude seconds edit box's 'textEdited' signal. More...
 
virtual void onLongitudeSecondsEdited ()
 Qt slot connected to the longitude seconds edit box's 'textEdited' signal. More...
 

Protected Member Functions

virtual void setupUi ()
 Create the widgets and layouts. More...
 
virtual void connectSignals ()
 Connect our Qt slots to the Qt signals from widgets we created. More...
 

Protected Attributes

DtDemyDe
 
QGridLayout * myGridLayout
 
QLineEditmyLocationLatDeg
 
QLineEditmyLocationLatMin
 
QLineEditmyLocationLatSec
 
QLabelmyLocationLabelLatDeg
 
QLabelmyLocationLabelLatMin
 
QLabelmyLocationLabelLatSec
 
QLineEditmyLocationLonDeg
 
QLineEditmyLocationLonMin
 
QLineEditmyLocationLonSec
 
QLabelmyLocationLabelLonDeg
 
QLabelmyLocationLabelLonMin
 
QLabelmyLocationLabelLonSec
 
QValidatormyLatDegValidator
 
QValidatormyLatMinValidator
 
QValidatormyLatSecValidator
 
QValidatormyLonDegValidator
 
QValidatormyLonMinValidator
 
QValidatormyLonSecValidator
 
double myLat
 
double myLon
 
bool myHasValidValue
 

Detailed Description

DtDmsEntryWidget declaration.

Widget for managing input of an lat/lon Degrees/Minutes/Seconds location. It provides 6 edit boxes, for degrees, minutes, and seconds latitude; and degrees, minutes, seconds longitude. When all six are filled in, the widget will convert the result to a decimal latitude and longitude, in radians. It will raise its hasValidValue signal as true. When needed, the current value can be retrieved through the getValue method.

Constructor & Destructor Documentation

makVrv::DtDmsEntryWidget::DtDmsEntryWidget ( makVrv::DtDe de,
QWidget *  parent = 0 
)

Constructor.

virtual makVrv::DtDmsEntryWidget::~DtDmsEntryWidget ( )
virtual

Destructor.

Member Function Documentation

virtual void makVrv::DtDmsEntryWidget::initialize ( )
virtual

Set up the widgets and connect our Qt slots to Qt signals.

virtual void makVrv::DtDmsEntryWidget::getValue ( double lat,
double lon 
) const
virtual

Get the current latitude and latitude (if any - see valueValid()) in radians.

virtual bool makVrv::DtDmsEntryWidget::valueValid ( ) const
virtual

Determine if the widget currently has a valid value.

This is true if all the the edit boxes have been filled in (validators guarantee that if all the boxes are non-empty then the DMS values are valid).

virtual void makVrv::DtDmsEntryWidget::setSecondsDecimals ( int  i)
virtual

Set the precision allowed for the seconds edit boxes.

This value is given to the validators on the seconds edit boxes for latitude and longitude

virtual void makVrv::DtDmsEntryWidget::setLatitudeSecondsText ( const DtUnicode secondsText)
virtual

Set the text displayed for seconds latitude Because the Goto 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 Widget, which forwards them to the Goto Logic to be formatted and then returned (as strings) to the Goto Widget, which then calls this method.

virtual void makVrv::DtDmsEntryWidget::setLongitudeSecondsText ( const DtUnicode secondsText)
virtual

Set the text displayed for seconds longitude.

See Also
setLatitudeSecondsText
virtual void makVrv::DtDmsEntryWidget::setupUi ( )
protectedvirtual

Create the widgets and layouts.

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

Connect our Qt slots to the Qt signals from widgets we created.

virtual void makVrv::DtDmsEntryWidget::onPositionEdited ( )
protectedvirtualslot

Qt slot connected to the degree and minute edit boxes' 'textEdited' signals.

virtual void makVrv::DtDmsEntryWidget::onLatitudeSecondsEdited ( )
protectedvirtualslot

Qt slot connected to the latitude seconds edit box's 'textEdited' signal.

It raises the latitudeSecondsChanged Qt signal and then calls onPositionEdited()

virtual void makVrv::DtDmsEntryWidget::onLongitudeSecondsEdited ( )
protectedvirtualslot

Qt slot connected to the longitude seconds edit box's 'textEdited' signal.

It raises the longitudeSecondsChanged Qt signal and then calls onPositionEdited()

void makVrv::DtDmsEntryWidget::hasValidValue ( bool  valid)
signal

Qt Signal raised whenever any of the edit boxes change.

If they are all filled in, it has the value true; false otherwise

void makVrv::DtDmsEntryWidget::latitudeSecondsChanged ( double  )
signal

Qt signal raised to provide newly entered latitude seconds.

void makVrv::DtDmsEntryWidget::longitudeSecondsChanged ( double  )
signal

Qt signal raised to provide newly entered longitude seconds.

Member Data Documentation

DtDe& makVrv::DtDmsEntryWidget::myDe
protected
QGridLayout* makVrv::DtDmsEntryWidget::myGridLayout
protected
QLineEdit* makVrv::DtDmsEntryWidget::myLocationLatDeg
protected
QLineEdit* makVrv::DtDmsEntryWidget::myLocationLatMin
protected
QLineEdit* makVrv::DtDmsEntryWidget::myLocationLatSec
protected
QLabel* makVrv::DtDmsEntryWidget::myLocationLabelLatDeg
protected
QLabel* makVrv::DtDmsEntryWidget::myLocationLabelLatMin
protected
QLabel* makVrv::DtDmsEntryWidget::myLocationLabelLatSec
protected
QLineEdit* makVrv::DtDmsEntryWidget::myLocationLonDeg
protected
QLineEdit* makVrv::DtDmsEntryWidget::myLocationLonMin
protected
QLineEdit* makVrv::DtDmsEntryWidget::myLocationLonSec
protected
QLabel* makVrv::DtDmsEntryWidget::myLocationLabelLonDeg
protected
QLabel* makVrv::DtDmsEntryWidget::myLocationLabelLonMin
protected
QLabel* makVrv::DtDmsEntryWidget::myLocationLabelLonSec
protected
QValidator* makVrv::DtDmsEntryWidget::myLatDegValidator
protected
QValidator* makVrv::DtDmsEntryWidget::myLatMinValidator
protected
QValidator* makVrv::DtDmsEntryWidget::myLatSecValidator
protected
QValidator* makVrv::DtDmsEntryWidget::myLonDegValidator
protected
QValidator* makVrv::DtDmsEntryWidget::myLonMinValidator
protected
QValidator* makVrv::DtDmsEntryWidget::myLonSecValidator
protected
double makVrv::DtDmsEntryWidget::myLat
protected
double makVrv::DtDmsEntryWidget::myLon
protected
bool makVrv::DtDmsEntryWidget::myHasValidValue
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)