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

DtMgrsEntryWidget declaration. More...

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

Public Slots

virtual void onPositionEdited ()
 This Qt slot is connected to all four edit boxes created. More...
 

Signals

void hasValidValue (bool valid)
 Signal that the widget has a valid value or not. More...
 

Public Member Functions

 DtMgrsEntryWidget (DtDe &de, QWidget *parent=0)
 Constructor. More...
 
virtual ~DtMgrsEntryWidget ()
 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
 Return the current latitude and longitude stored by the widget, in radians. More...
 
virtual bool valueValid () const
 Determine if the widget currently has a valid value. 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
 
bool myEnabled
 
QLabelmyGridZoneLabel
 
QLineEditmyGridZoneStr
 
QLabelmyMapSheetLabel
 
QLineEditmyMapSheetStr
 
QLabelmyEastingLabel
 
QLineEditmyEastingStr
 
QLabelmyNorthingLabel
 
QLineEditmyNorthingStr
 
double myLat
 
double myLon
 
bool myHasValidValue
 
QIntValidator * myNorthingEastingValidator
 

Detailed Description

DtMgrsEntryWidget declaration.

Widget for managing input of an MGRS location. It provides 4 edit boxes, for grid zone; map sheet; easting; and northing. When all four are filled in, the widget will try to convert the result to a latitude and longitude. It will raise its hasValidValue signal, indicating whether or not the conversion was successful. When needed, the current value can be retrieved through the getValue method.

Constructor & Destructor Documentation

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

Constructor.

virtual makVrv::DtMgrsEntryWidget::~DtMgrsEntryWidget ( )
virtual

Destructor.

Member Function Documentation

virtual void makVrv::DtMgrsEntryWidget::initialize ( )
virtual

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

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

Return the current latitude and longitude stored by the widget, in radians.

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

Determine if the widget currently has a valid value.

This is true if the last completed MGRS entry could be converted to a valid latitude and longitude

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

Signal that the widget has a valid value or not.

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

Create the widgets and layouts.

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

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

virtual void makVrv::DtMgrsEntryWidget::onPositionEdited ( )
virtualslot

This Qt slot is connected to all four edit boxes created.

Member Data Documentation

DtDe& makVrv::DtMgrsEntryWidget::myDe
protected
bool makVrv::DtMgrsEntryWidget::myEnabled
protected
QLabel* makVrv::DtMgrsEntryWidget::myGridZoneLabel
protected
QLineEdit* makVrv::DtMgrsEntryWidget::myGridZoneStr
protected
QLabel* makVrv::DtMgrsEntryWidget::myMapSheetLabel
protected
QLineEdit* makVrv::DtMgrsEntryWidget::myMapSheetStr
protected
QLabel* makVrv::DtMgrsEntryWidget::myEastingLabel
protected
QLineEdit* makVrv::DtMgrsEntryWidget::myEastingStr
protected
QLabel* makVrv::DtMgrsEntryWidget::myNorthingLabel
protected
QLineEdit* makVrv::DtMgrsEntryWidget::myNorthingStr
protected
double makVrv::DtMgrsEntryWidget::myLat
protected
double makVrv::DtMgrsEntryWidget::myLon
protected
bool makVrv::DtMgrsEntryWidget::myHasValidValue
protected
QIntValidator* makVrv::DtMgrsEntryWidget::myNorthingEastingValidator
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)