20 #include <QDockWidget>
37 QDockWidget::setObjectName(
"VesselPosition" );
38 QDockWidget::setAllowedAreas( Qt::AllDockWidgetAreas );
40 QObject::connect(
this, SIGNAL(dockLocationChanged(Qt::DockWidgetArea)),
this, SLOT(
slotLocationChanged(Qt::DockWidgetArea) ) );
41 QObject::connect(
this, SIGNAL(topLevelChanged(
bool)),
this, SLOT(
slotTopLevelChanged(
bool) ) );
bool isValidPosition() const
Returns the position's (global) validity status.
bool isValidElevation() const
Returns the elevation's (global) validity status.
double getLongitude() const
Returns this position's longitude, in degrees.
static constexpr double UNDEFINED_LATITUDE
Specific value for an undefined latitude.
double getElevation() const
Returns this position's elevation, in meters.
double getLatitude() const
Returns this position's latitude, in degrees.
static constexpr double UNDEFINED_LONGITUDE
Specific value for an undefined longitude.
static constexpr double UNDEFINED_ELEVATION
Specific value for an undefined elevation.
[UI] Overlay-specific text label
void setText(const QString &_rqsText)
[override] QLabel::setText( const QString& )
void resetText()
Resets (clears) the underlying QLabel's text.
static QString toString(double _fdValue, EUnit _eUnit, int _iPrecision=0)
Returns the formatted represention of the given value, using the specified format/unit and decimal pr...
static QString toString(double _fdValue, EType _eType, EUnit _eUnit, int _iPrecision=0)
Returns the formatted represention of the given value, using the specified format/unit and decimal pr...
virtual void setFont(QFont _qFont)
Sets the font for the content of the underlying widget.
virtual void refreshContent()
Refreshes the content of the underlying widget.
COverlayText * poTextElevation
[UI:Label] Elevation
COverlayText * poTextLatitude
[UI:Label] Latitude
void constructLayout()
Constructs the layout of the user-interface.
COverlayText * poTextLongitude
[UI:Label] Longitude
CVesselPosition(QWidget *_pqParent=0)
virtual void resetContent()
Resets (clears) the content of the underlying widget.