Qt Virtual Chart Table (QVCT)
CVesselPosition.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_CVESSELPOSITION_HPP
20
#define QVCT_CVESSELPOSITION_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
CVesselPosition
:
public
CVesselWidget
38
{
39
40
41
//------------------------------------------------------------------------------
42
// FIELDS
43
//------------------------------------------------------------------------------
44
45
private
:
47
COverlayText
*
poTextLongitude
;
49
COverlayText
*
poTextLatitude
;
51
COverlayText
*
poTextElevation
;
52
53
54
//------------------------------------------------------------------------------
55
// CONSTRUCTORS / DESTRUCTOR
56
//------------------------------------------------------------------------------
57
58
public
:
59
CVesselPosition
( QWidget* _pqParent = 0 );
60
virtual
~CVesselPosition
() {};
61
62
private
:
64
void
constructLayout
();
65
66
67
//------------------------------------------------------------------------------
68
// METHODS: CVesselWidget (implement/override)
69
//------------------------------------------------------------------------------
70
71
public
:
72
virtual
void
setFont
( QFont _qFont );
73
virtual
void
refreshContent
();
74
virtual
void
resetContent
();
75
76
};
77
78
#endif
// QVCT_CVESSELPOSITION_HPP
CVesselWidget.hpp
COverlayText
[UI] Overlay-specific text label
Definition:
COverlayText.hpp:34
CVesselPosition
[UI] Vessel position view (dock widget)
Definition:
CVesselPosition.hpp:38
CVesselPosition::setFont
virtual void setFont(QFont _qFont)
Sets the font for the content of the underlying widget.
Definition:
CVesselPosition.cpp:70
CVesselPosition::~CVesselPosition
virtual ~CVesselPosition()
Definition:
CVesselPosition.hpp:60
CVesselPosition::refreshContent
virtual void refreshContent()
Refreshes the content of the underlying widget.
Definition:
CVesselPosition.cpp:77
CVesselPosition::poTextElevation
COverlayText * poTextElevation
[UI:Label] Elevation
Definition:
CVesselPosition.hpp:51
CVesselPosition::poTextLatitude
COverlayText * poTextLatitude
[UI:Label] Latitude
Definition:
CVesselPosition.hpp:49
CVesselPosition::constructLayout
void constructLayout()
Constructs the layout of the user-interface.
Definition:
CVesselPosition.cpp:44
CVesselPosition::poTextLongitude
COverlayText * poTextLongitude
[UI:Label] Longitude
Definition:
CVesselPosition.hpp:47
CVesselPosition::CVesselPosition
CVesselPosition(QWidget *_pqParent=0)
Definition:
CVesselPosition.cpp:34
CVesselPosition::resetContent
virtual void resetContent()
Resets (clears) the content of the underlying widget.
Definition:
CVesselPosition.cpp:101
CVesselWidget
[UI] Generic vessel (dock) widget
Definition:
CVesselWidget.hpp:43
overlays
vessel
widgets
CVesselPosition.hpp
Generated on Wed May 25 2022 19:46:17 for Qt Virtual Chart Table (QVCT) by
1.9.1