VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtGotoWidget Class Reference

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.

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

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
 
DtGotoWidgetoperator= (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)
 

Protected Attributes

DtDemyDe
 
GotoType myCurrentGotoType
 
QButtonGroup * mySelectorButtonsGroup
 
QRadioButton * myGotoAddressRadioButton
 
QRadioButton * myGotoLocationRadioButton
 
QLabelmyCoordSysLabel
 
QLabelmyGotoAddressLabel
 
QLabelmyGotoLocationLabel
 
QComboBoxmyCoordSysComboBox
 
DtDmsEntryWidgetmyGotoDmsWidget
 
DtDdmEntryWidgetmyGotoDdmWidget
 
DtDecEntryWidgetmyGotoDecWidget
 
DtMgrsEntryWidgetmyGotoMgrsWidget
 
DtGeocentricEntryWidgetmyGotoGeocentricWidget
 
DtProjectedDatabaseEntryWidgetmyGotoDatabaseWidget
 
DtGarsEntryWidgetmyGotoGarsWidget
 
DtUtmEntryWidgetmyGotoUtmWidget
 
QLabelmyAddressWarningLabel
 
QPixmap myAddressWarningIcon
 
QLineEditmyAddress
 
makArchives::DtDisplayUnitsSettingsRecord::CoordSys myCurrentInputCoordSys
 
DtLocationEntryWidgetmyCurrentLocationEntryWidget
 
QPushButtonmyGoButton
 
QVBoxLayout * myMainLayout
 
DtCachedComboBoxItemInfo myDatabaseCoordinateSystemItemInfo
 

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
 

Constructor & Destructor Documentation

makVrv::DtGotoWidget::DtGotoWidget ( makVrv::DtDe de,
QWidget *  parent 
)

Constructor.

makVrv::DtGotoWidget::DtGotoWidget ( const DtGotoWidget orig)
delete

Copy CTOR ( Not implemented )

makVrv::DtGotoWidget::DtGotoWidget ( )
delete
virtual makVrv::DtGotoWidget::~DtGotoWidget ( )
virtual

Destructor.

Member Function Documentation

DtGotoWidget& makVrv::DtGotoWidget::operator= ( const DtGotoWidget orig)
delete

Assignment operator ( Not implemented )

virtual void makVrv::DtGotoWidget::initialize ( )
virtual

Set up the GUI and connect to all the widget signals.

virtual void makVrv::DtGotoWidget::setIsCoordinateSystemGeocentric ( bool  isGeocentric)
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 void makVrv::DtGotoWidget::setInputCoordinateSystem ( makArchives::DtDisplayUnitsSettingsRecord::CoordSys  sysType)
virtual

Called by the logic to provide the current input coordinate system to use.

Implements makVrv::DtGotoWidgetInterface.

virtual void makVrv::DtGotoWidget::addInputCoordinateSystem ( const DtUnicode sysName,
makArchives::DtDisplayUnitsSettingsRecord::CoordSys  sysType 
)
virtual

Called by the logic to provide coordinate system types to populate the location system type combo box.

Implements makVrv::DtGotoWidgetInterface.

virtual void makVrv::DtGotoWidget::setGotoType ( GotoType  addressOrLocation)
virtual

Called by the logic to provide the current Goto Type (Address or Location) to use.

Implements makVrv::DtGotoWidgetInterface.

virtual void makVrv::DtGotoWidget::setLocationFound ( double  lat,
double  lon 
)
virtual

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 void makVrv::DtGotoWidget::setAddressError ( const DtUnicode errorStr)
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.

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

Helper function to set up the GUI widgets.

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

Connect all the subordinate widget Qt signals to this widgets Qt slots.

virtual void makVrv::DtGotoWidget::onInputCoordSysChanged ( int  index)
virtualslot

Slot connected to the Coord System Combo Box 'index changed' signal.

virtual void makVrv::DtGotoWidget::onGotoAddressChecked ( )
virtualslot

Slot connected to the Goto Address radio button's 'released' signal.

virtual void makVrv::DtGotoWidget::onGotoLocationChecked ( )
virtualslot

Slot connected to the Goto Location radio button's 'released' signal.

virtual void makVrv::DtGotoWidget::onHasValidValue ( bool  valid)
virtualslot

Slot connected tothe 'hasValidValue' signal from all the coordinate input widgets.

virtual void makVrv::DtGotoWidget::onGoButtonClicked ( )
virtualslot

Slot connected to the GO push button's 'clicked' signal.

virtual void makVrv::DtGotoWidget::onAddressChanged ( )
virtualslot

Slot connected to the address edit box's 'textEdited' signal.

virtual QLayout* makVrv::DtGotoWidget::createGotoWidgets ( )
protectedvirtual

Helper function to layout the 3 Goto Widget types.

virtual QLayout* makVrv::DtGotoWidget::createGoButton ( )
protectedvirtual

Helper function to layout the GO push button.

virtual void makVrv::DtGotoWidget::updateLocationEntry ( makArchives::DtDisplayUnitsSettingsRecord::CoordSys  sysType)
protectedvirtual

Update the current location input widget when goto type changes or the combo box changes.

virtual void makVrv::DtGotoWidget::updateGotoType ( GotoType  addressOrLocation)
protectedvirtual

Called to process a change in the Goto type (will call updateLocationEntry() if Goto type is Location)

Member Data Documentation

DtDe& makVrv::DtGotoWidget::myDe
protected
GotoType makVrv::DtGotoWidget::myCurrentGotoType
protected
QButtonGroup* makVrv::DtGotoWidget::mySelectorButtonsGroup
protected
QRadioButton* makVrv::DtGotoWidget::myGotoAddressRadioButton
protected
QRadioButton* makVrv::DtGotoWidget::myGotoLocationRadioButton
protected
QLabel* makVrv::DtGotoWidget::myCoordSysLabel
protected
QLabel* makVrv::DtGotoWidget::myGotoAddressLabel
protected
QLabel* makVrv::DtGotoWidget::myGotoLocationLabel
protected
QComboBox* makVrv::DtGotoWidget::myCoordSysComboBox
protected
DtDmsEntryWidget* makVrv::DtGotoWidget::myGotoDmsWidget
protected
DtDdmEntryWidget* makVrv::DtGotoWidget::myGotoDdmWidget
protected
DtDecEntryWidget* makVrv::DtGotoWidget::myGotoDecWidget
protected
DtMgrsEntryWidget* makVrv::DtGotoWidget::myGotoMgrsWidget
protected
DtGeocentricEntryWidget* makVrv::DtGotoWidget::myGotoGeocentricWidget
protected
DtProjectedDatabaseEntryWidget* makVrv::DtGotoWidget::myGotoDatabaseWidget
protected
DtGarsEntryWidget* makVrv::DtGotoWidget::myGotoGarsWidget
protected
DtUtmEntryWidget* makVrv::DtGotoWidget::myGotoUtmWidget
protected
QLabel* makVrv::DtGotoWidget::myAddressWarningLabel
protected
QPixmap makVrv::DtGotoWidget::myAddressWarningIcon
protected
QLineEdit* makVrv::DtGotoWidget::myAddress
protected
makArchives::DtDisplayUnitsSettingsRecord::CoordSys makVrv::DtGotoWidget::myCurrentInputCoordSys
protected
DtLocationEntryWidget* makVrv::DtGotoWidget::myCurrentLocationEntryWidget
protected
QPushButton* makVrv::DtGotoWidget::myGoButton
protected
QVBoxLayout* makVrv::DtGotoWidget::myMainLayout
protected
DtCachedComboBoxItemInfo makVrv::DtGotoWidget::myDatabaseCoordinateSystemItemInfo
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)