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

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

Public Slots

virtual void onPositionEdited ()
 

Signals

void hasValidValue (bool valid)
 

Public Member Functions

 DtMgrsEntryWidget (DtDe &de, QWidget *parent=0)
 
virtual ~DtMgrsEntryWidget ()
 
virtual void initialize ()
 
virtual void getValue (double &lat, double &lon) const
 
virtual bool valueValid () const
 

Protected Member Functions

virtual void setupUi ()
 
virtual void connectSignals ()
 

Protected Attributes

DtDemyDe
 
bool myEnabled
 
QLabelmyGridZoneLabel
 
QLineEditmyGridZoneStr
 
QLabelmyMapSheetLabel
 
QLineEditmyMapSheetStr
 
QLineEditmyNorthingEastingStr
 
double myLat
 
double myLon
 
bool myHasValidValue
 
QIntValidator * myNorthingEastingValidator
 

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
QLineEdit* makVrv::DtMgrsEntryWidget::myNorthingEastingStr
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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)