Qt Virtual Chart Table (QVCT)
CVesselPointDetailView.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_CVESSELITEMDETAILVIEW_HPP
20 #define QVCT_CVESSELITEMDETAILVIEW_HPP
21 
22 // QT
23 #include <QLabel>
24 #include <QPushButton>
25 #include <QWidget>
26 
27 // QVCT
29 class CVesselPoint;
30 class COverlayText;
31 class COverlayUrl;
32 
33 
35 
41 {
42  Q_OBJECT
43 
44  //------------------------------------------------------------------------------
45  // FIELDS
46  //------------------------------------------------------------------------------
47 
48 private:
82  QLabel* pqLabelSymbol;
86  QPushButton* pqPushButtonVisible;
88  QPushButton* pqPushButtonCenter;
90  QPushButton* pqPushButtonCenterLock;
92  QPushButton* pqPushButtonEdit;
94  QPushButton* pqPushButtonDelete;
95  // /// [UI:Button] Add new landmark
96  // QPushButton* pqPushButtonAddLandmark;
97  // /// [UI:Button] Add new (route) waypoint
98  // QPushButton* pqPushButtonAddRoute;
102  QPushButton* pqPushButtonAddDevice;
103 
106 
107 
108  //------------------------------------------------------------------------------
109  // CONSTRUCTORS / DESTRUCTOR
110  //------------------------------------------------------------------------------
111 
112 public:
113  CVesselPointDetailView( QWidget* _pqParent = 0 );
115 
116 private:
118  void constructLayout();
119 
120 
121  //------------------------------------------------------------------------------
122  // METHODS: COverlayObjectDetailView (implement/override)
123  //------------------------------------------------------------------------------
124 
125 public:
126  virtual void refreshContent();
127  virtual void resetContent();
128 
129 private:
130  virtual void enableContent();
131  virtual void disableContent();
132 
133 
134  //------------------------------------------------------------------------------
135  // METHODS
136  //------------------------------------------------------------------------------
137 
138  // SLOTS
139 private slots:
141  void slotToggleVisible();
143  void slotPositionCenter();
145  void slotPositionCenterLock( bool _bLock );
147  void slotEdit();
149  void slotDelete();
151  void slotTrackRecord( bool _bTrackRecord );
153  void slotAddDevice();
154 
155 };
156 
157 #endif // QVCT_CVESSELITEMDETAILVIEW_HPP
[UI] Generic overlay object's detail view
[UI] Overlay-specific text label
[UI] Overlay-specific URL label
Definition: COverlayUrl.hpp:36
[UI] Vessel item's detail view
QPushButton * pqPushButtonAddDevice
[UI:Button] Add new device
COverlayText * poTextDescription
[UI:Label] Description
COverlayText * poTextApparentSpeed
[UI:Label] Apparent horizontal speed
QPushButton * pqPushButtonTrackRecord
[UI:Button] Track recording status
virtual void disableContent()
Disables the content (controls) of the underlying widget.
COverlayText * poTextDate
[UI:Label] Date
void slotPositionCenterLock(bool _bLock)
[UI:Slot] Slot to enable center lock (on this vessel)
void constructLayout()
Constructs the layout of the user-interface.
QPushButton * pqPushButtonEdit
[UI:Button] Edit
COverlayText * poTextApparentSpeedVertical
[UI:Label] Apparent vertical speed
COverlayUrl * poUrl
[UI:Label] URL
void slotTrackRecord(bool _bTrackRecord)
[UI:Slot] Slot to switch track recording status
COverlayText * poTextName
[UI:Label] Name
virtual void enableContent()
Enables the content (controls) of the underlying widget.
void slotEdit()
[UI:Slot] Slot to display edit view
QLabel * pqLabelSymbol
[UI:Label] Symbol
void slotToggleVisible()
[UI:Slot] Slot to modify the visibility status
COverlayText * poTextGroundBearing
[UI:Label] Ground bearing
virtual void resetContent()
Resets (clears) the content of the underlying widget.
COverlayText * poTextLongitude
[UI:Label] Longitude
QPushButton * pqPushButtonCenter
[UI:Button] Center (on chart)
COverlayText * poTextGroundSpeed
[UI:Label] Ground horizontal speed
COverlayText * poTextElevation
[UI:Label] Elevation
COverlayText * poTextTime2
[UI:Label] Time (alternate timezone)
CVesselPointDetailView(QWidget *_pqParent=0)
COverlayText * poTextGroundSpeedVertical
[UI:Label] Ground vertical speed
QPushButton * pqPushButtonCenterLock
[UI:Button] Center (on chart) lock
COverlayText * poTextType
[UI:Label] Type
void slotPositionCenter()
[UI:Slot] Slot to center chart (on item's position)
COverlayText * poTextComment
[UI:Label] Comment
QPushButton * pqPushButtonVisible
[UI:Button] Visibility status
COverlayText * poTextTime
[UI:Label] Time
COverlayText * poTextApparentBearing
[UI:Label] Apparent bearing
bool bIgnoreUpdate
Flag that disables checkable buttons update.
QPushButton * pqPushButtonDelete
[UI:Button] Delete
void slotAddDevice()
[UI:Slot] Slot to add new device
virtual void refreshContent()
Refreshes the content of the underlying widget.
COverlayText * poTextLatitude
[UI:Label] Latitude
void slotDelete()
[UI:Slot] Slot to delete (this item/point)
[UI] Vessel overlay point (item) / vessel