20 #include <QDockWidget>
37 QDockWidget::setObjectName(
"VesselCourse" );
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) ) );
54 poTextSpeed->setToolTip( tr(
"Speed (horizontal)") );
87 bool __bInvalid =
false;
95 if( __qsText.isEmpty() ) __qsText +=
" ";
105 bool __bInvalid =
false;
113 if( __qsText.isEmpty() ) __qsText +=
" ";
123 bool __bInvalid =
false;
131 if( __qsText.isEmpty() ) __qsText +=
" ";
CDataCourse ApparentCourse
Apparent course.
CDataCourse GroundCourse
Ground course.
CDataCourseValidity GroundCourseValidity
Ground course validity.
CDataCourseValidity ApparentCourseValidity
Apparent course validity.
bool isValidSpeedVertical() const
Returns the vertical speed's (global) validity status.
bool isValidSpeed() const
Returns the horizontal speed's (global) validity status.
bool isValidBearing() const
Returns the bearing's (global) validity status.
double getSpeedVertical() const
Returns this course's vertical speed, in meters per second.
static constexpr double UNDEFINED_BEARING
Specific value for an undefined bearing.
static constexpr double UNDEFINED_SPEED
Specific value for an undefined speed.
double getBearing() const
Returns this course's bearing, in degrees.
static const CDataCourse UNDEFINED
Specific value for an undefined course.
double getSpeed() const
Returns this course's horizontal speed, in meters per second.
[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, 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, EUnit _eUnit, int _iPrecision=0)
Returns the formatted represention of the given value, using the specified format/unit and decimal pr...
COverlayText * poTextSpeed
[UI:Label] Speed (horizontal)
void constructLayout()
Constructs the layout of the user-interface.
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 * poTextSpeedVertical
[UI:Label] Speed (vertical)
CVesselCourse(QWidget *_pqParent=0)
virtual void resetContent()
Resets (clears) the content of the underlying widget.
COverlayText * poTextBearing
[UI:Label] Bearing