Qt Virtual Chart Table (QVCT)
CVesselTarget.hpp
Go to the documentation of this file.
1
// INDENTING (emacs/vi): -*- mode:c++; tab-width:2; c-basic-offset:2; intent-tabs-mode:nil; -*- ex: set tabstop=2 expandtab:
2
3
/*
4
* Qt Virtual Chart Table (QVCT)
5
* Copyright (C) 2012 Cedric Dufour <http://cedric.dufour.name>
6
* Author: Cedric Dufour <http://cedric.dufour.name>
7
*
8
* The Qt Virtual Chart Table (QVCT) is free software:
9
* you can redistribute it and/or modify it under the terms of the GNU General
10
* Public License as published by the Free Software Foundation, Version 3.
11
*
12
* The Qt Virtual Chart Table (QVCT) is distributed in the hope
13
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
14
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15
*
16
* See the GNU General Public License for more details.
17
*/
18
19
#ifndef QVCT_CVESSELTARGET_HPP
20
#define QVCT_CVESSELTARGET_HPP
21
22
// QT
23
#include <QDockWidget>
24
#include <QWidget>
25
26
// QVCT
27
#include "
overlays/vessel/widgets/CVesselWidget.hpp
"
28
class
COverlayText
;
29
30
32
37
class
CVesselTarget
:
public
CVesselWidget
38
{
39
40
41
//------------------------------------------------------------------------------
42
// FIELDS
43
//------------------------------------------------------------------------------
44
45
private
:
47
bool
bContentDisplayed
;
48
50
COverlayText
*
poTextBearing
;
52
COverlayText
*
poTextDistance
;
54
COverlayText
*
poTextEte
;
56
COverlayText
*
poTextEta
;
57
58
59
//------------------------------------------------------------------------------
60
// CONSTRUCTORS / DESTRUCTOR
61
//------------------------------------------------------------------------------
62
63
public
:
64
CVesselTarget
( QWidget* _pqParent = 0 );
65
virtual
~CVesselTarget
() {};
66
67
private
:
69
void
constructLayout
();
70
71
72
//------------------------------------------------------------------------------
73
// METHODS: CVesselWidget (implement/override)
74
//------------------------------------------------------------------------------
75
76
public
:
77
virtual
void
setFont
( QFont _qFont );
78
virtual
void
refreshContent
();
79
virtual
void
resetContent
();
80
81
};
82
83
#endif
// QVCT_CVESSELTARGET_HPP
CVesselWidget.hpp
COverlayText
[UI] Overlay-specific text label
Definition:
COverlayText.hpp:34
CVesselTarget
[UI] Vessel target view (dock widget)
Definition:
CVesselTarget.hpp:38
CVesselTarget::constructLayout
void constructLayout()
Constructs the layout of the user-interface.
Definition:
CVesselTarget.cpp:50
CVesselTarget::poTextBearing
COverlayText * poTextBearing
[UI:Label] Bearing
Definition:
CVesselTarget.hpp:50
CVesselTarget::poTextEte
COverlayText * poTextEte
[UI:Label] Estimated Time En-Route (ETE)
Definition:
CVesselTarget.hpp:54
CVesselTarget::poTextDistance
COverlayText * poTextDistance
[UI:Label] Distance
Definition:
CVesselTarget.hpp:52
CVesselTarget::~CVesselTarget
virtual ~CVesselTarget()
Definition:
CVesselTarget.hpp:65
CVesselTarget::resetContent
virtual void resetContent()
Resets (clears) the content of the underlying widget.
Definition:
CVesselTarget.cpp:139
CVesselTarget::poTextEta
COverlayText * poTextEta
[UI:Label] Estimated Time of Arrival (ETA)
Definition:
CVesselTarget.hpp:56
CVesselTarget::bContentDisplayed
bool bContentDisplayed
Flag to track whether content data are currently displayed.
Definition:
CVesselTarget.hpp:47
CVesselTarget::CVesselTarget
CVesselTarget(QWidget *_pqParent=0)
Definition:
CVesselTarget.cpp:39
CVesselTarget::setFont
virtual void setFont(QFont _qFont)
Sets the font for the content of the underlying widget.
Definition:
CVesselTarget.cpp:81
CVesselTarget::refreshContent
virtual void refreshContent()
Refreshes the content of the underlying widget.
Definition:
CVesselTarget.cpp:89
CVesselWidget
[UI] Generic vessel (dock) widget
Definition:
CVesselWidget.hpp:43
overlays
vessel
widgets
CVesselTarget.hpp
Generated on Wed May 25 2022 19:46:17 for Qt Virtual Chart Table (QVCT) by
1.9.1