![]() |
VR-Forces 5.0.1 Developer's Guide
|
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.

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 () |
| makVrv::DtDmsEntryWidget::DtDmsEntryWidget | ( | makVrv::DtDe & | de, |
| QWidget * | parent = 0 |
||
| ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Set up the widgets and connect our Qt slots to Qt signals.
Get the current latitude and latitude (if any - see valueValid()) in radians.
|
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 |
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 |
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 |
Set the text displayed for seconds longitude.
|
protectedvirtual |
Create the widgets and layouts.
|
protectedvirtual |
Connect our Qt slots to the Qt signals from widgets we created.
|
protectedvirtualslot |
Qt slot connected to the degree and minute edit boxes' 'textEdited' signals.
|
protectedvirtualslot |
Qt slot connected to the latitude seconds edit box's 'textEdited' signal. It raises the latitudeSecondsChanged Qt signal and then calls onPositionEdited()
|
protectedvirtualslot |
Qt slot connected to the longitude seconds edit box's 'textEdited' signal. It raises the longitudeSecondsChanged Qt signal and then calls onPositionEdited()
|
signal |
Qt Signal raised whenever any of the edit boxes change. If they are all filled in, it has the value true; false otherwise.
|
signal |
Qt signal raised to provide newly entered latitude seconds.
|
signal |
Qt signal raised to provide newly entered longitude seconds.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |