![]() |
VR-Forces Developer's Guide
|
DtGotoWidget declaration. The DtGotoWidget and DtGotoLogic work together to provide a user interface for directing the current observer to jump to either a location any of the coordinate systems we currently support; or an actual address that is used to look up a latituSde/longitude by creating a geocoding session. The DtGotoWidget creates and uses 8 VRV-created widgets that support all of coordinate forms we support. A combo box is used to select the input coordinate system of choice - once chosen, the appropriate input widget is shown (and others kept hidden).It also manages an address bar for requesting a jump based on an address; A GO pushbutton will be enabled if all the fields are filled in and valid for the selected GoTo type; a warning icon is also provided (next to the Go button) when data has been entered but is not valid.

Classes | |
| struct | DtCachedComboBoxItemInfo |
Public Slots | |
| virtual void | onInputCoordSysChanged (int index) |
| virtual void | onGotoAddressChecked () |
| virtual void | onGotoLocationChecked () |
| virtual void | onHasValidValue (bool valid) |
| virtual void | onGoButtonClicked () |
| virtual void | onAddressChanged () |
Public Member Functions | |
| DtGotoWidget (makVrv::DtDe &de, QWidget *parent) | |
| DtGotoWidget (const DtGotoWidget &orig)=delete | |
| DtGotoWidget ()=delete | |
| DtGotoWidget & | operator= (const DtGotoWidget &orig)=delete |
| virtual | ~DtGotoWidget () |
| virtual void | initialize () |
| virtual void | setIsCoordinateSystemGeocentric (bool isGeocentric) |
| virtual void | setInputCoordinateSystem (makArchives::DtDisplayUnitsSettingsRecord::CoordSys sysType) |
| virtual void | addInputCoordinateSystem (const DtUnicode &sysName, makArchives::DtDisplayUnitsSettingsRecord::CoordSys sysType) |
| virtual void | setGotoType (GotoType addressOrLocation) |
| virtual void | setLocationFound (double lat, double lon) |
| virtual void | setAddressError (const DtUnicode &errorStr) |
Public Member Functions inherited from makVrv::DtGotoWidgetInterface | |
| virtual | ~DtGotoWidgetInterface () |
Protected Member Functions | |
| virtual void | setupUi () |
| virtual void | connectSignals () |
| virtual QLayout * | createGotoWidgets () |
| virtual QLayout * | createGoButton () |
| virtual void | updateLocationEntry (makArchives::DtDisplayUnitsSettingsRecord::CoordSys sysType) |
| virtual void | updateGotoType (GotoType addressOrLocation) |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtGotoWidgetInterface | |
| boost::signalslib::signal < void(makArchives::DtDisplayUnitsSettingsRecord::CoordSys sysType)> | signal_inputCoordinateSystemChanged |
| boost::signalslib::signal < void(GotoType addressOrLocation)> | signal_gotoTypeChanged |
| boost::signalslib::signal < void(double lat, double lon)> | signal_gotoLocation |
| boost::signalslib::signal < void(const DtUnicode &)> | signal_requestJumpToAddress |
| makVrv::DtGotoWidget::DtGotoWidget | ( | makVrv::DtDe & | de, |
| QWidget * | parent | ||
| ) |
Constructor.
|
delete |
Copy CTOR ( Not implemented )
|
delete |
|
virtual |
Destructor.
|
delete |
Assignment operator ( Not implemented )
|
virtual |
Set up the GUI and connect to all the widget signals.
|
virtual |
Methods used to communicate from the Goto Logic to the Goto Widget.
Set whether or not the current coordinate system is geocentric.
Implements makVrv::DtGotoWidgetInterface.
|
virtual |
Called by the logic to provide the current input coordinate system to use.
Implements makVrv::DtGotoWidgetInterface.
|
virtual |
Called by the logic to provide coordinate system types to populate the location system type combo box.
Implements makVrv::DtGotoWidgetInterface.
|
virtual |
Called by the logic to provide the current Goto Type (Address or Location) to use.
Implements makVrv::DtGotoWidgetInterface.
Provide a latitude and longitude to the Goto Widget When a request is made to the logic for a location lookup by address, the logic will use this method to respond.
Implements makVrv::DtGotoWidgetInterface.
|
virtual |
Provide a string that indicates an address lookup error. This method is called any time a request is made for an address lookup. If the lookup is successful, it will be called with an empty string; otherwise in will provide information about the nature of the lookup failure.
Implements makVrv::DtGotoWidgetInterface.
|
protectedvirtual |
Helper function to set up the GUI widgets.
|
protectedvirtual |
Connect all the subordinate widget Qt signals to this widgets Qt slots.
|
virtualslot |
Slot connected to the Coord System Combo Box 'index changed' signal.
|
virtualslot |
Slot connected to the Goto Address radio button's 'released' signal.
|
virtualslot |
Slot connected to the Goto Location radio button's 'released' signal.
|
virtualslot |
Slot connected tothe 'hasValidValue' signal from all the coordinate input widgets.
|
virtualslot |
Slot connected to the GO push button's 'clicked' signal.
|
virtualslot |
Slot connected to the address edit box's 'textEdited' signal.
|
protectedvirtual |
Helper function to layout the 3 Goto Widget types.
|
protectedvirtual |
Helper function to layout the GO push button.
|
protectedvirtual |
Update the current location input widget when goto type changes or the combo box changes.
|
protectedvirtual |
Called to process a change in the Goto type (will call updateLocationEntry() if Goto type is Location)
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |