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

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

Signals

void hasValidValue (bool valid)
 
void latitudeSecondsChanged (double)
 
void longitudeSecondsChanged (double)
 

Public Member Functions

 DtDmsEntryWidget (makVrv::DtDe &de, QWidget *parent=0)
 
virtual ~DtDmsEntryWidget ()
 
virtual void initialize ()
 
virtual void getValue (double &lat, double &lon) const
 
virtual bool valueValid () const
 
virtual void setSecondsDecimals (int i)
 
virtual void setLatitudeSecondsText (const DtUnicode &secondsText)
 
virtual void setLongitudeSecondsText (const DtUnicode &secondsText)
 

Protected Slots

virtual void onPositionEdited ()
 
virtual void onLatitudeSecondsEdited ()
 
virtual void onLongitudeSecondsEdited ()
 

Protected Member Functions

virtual void setupUi ()
 
virtual void connectSignals ()
 

Protected Attributes

DtDemyDe
 
QVBoxLayout * myWidgetLayout
 
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
 

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
QVBoxLayout* makVrv::DtDmsEntryWidget::myWidgetLayout
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 Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)