Qt Virtual Chart Table (QVCT)
CVesselPointDeviceDetailView.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_CVESSELPOINTDEVICEDETAILVIEW_HPP
20 #define QVCT_CVESSELPOINTDEVICEDETAILVIEW_HPP
21 
22 // QT
23 #include <QLabel>
24 #include <QPushButton>
25 #include <QWidget>
26 
27 // QVCT
29 class CVesselPointDevice;
30 class COverlayText;
31 class COverlayUrl;
32 
33 
35 
41 {
42  Q_OBJECT
43 
44  //------------------------------------------------------------------------------
45  // FIELDS
46  //------------------------------------------------------------------------------
47 
48 private:
78  QPushButton* pqPushButtonEdit;
80  QPushButton* pqPushButtonDelete;
82  QPushButton* pqPushButtonConnect;
83 
86 
87  //------------------------------------------------------------------------------
88  // CONSTRUCTORS / DESTRUCTOR
89  //------------------------------------------------------------------------------
90 
91 public:
92  CVesselPointDeviceDetailView( QWidget* _pqParent = 0 );
94 
95 private:
97  void constructLayout();
98 
99 
100  //------------------------------------------------------------------------------
101  // METHODS: COverlayObjectDetailView (implement/override)
102  //------------------------------------------------------------------------------
103 
104 public:
105  virtual void refreshContent();
106  virtual void resetContent();
107 
108 private:
109  virtual void enableContent();
110  virtual void disableContent();
111 
112 
113  //------------------------------------------------------------------------------
114  // METHODS
115  //------------------------------------------------------------------------------
116 
117  // SLOTS
118 private slots:
120  void slotRefreshContent();
122  void slotEdit();
124  void slotDelete();
126  void slotConnect( bool );
127 
128 };
129 
130 #endif // QVCT_CVESSELPOINTDEVICEDETAILVIEW_HPP
[UI] Generic overlay object's detail view
[UI] Overlay-specific text label
[UI] Overlay-specific URL label
Definition: COverlayUrl.hpp:36
[UI] Vessel point's detail view
COverlayText * poTextSources
[UI:Label] Sources (used/seen)
virtual void resetContent()
Resets (clears) the content of the underlying widget.
COverlayText * poTextDop
[UI:Label] DOP
void constructLayout()
Constructs the layout of the user-interface.
void slotRefreshContent()
[UI:Slot] Slot to refresh the view content
COverlayText * poTextTime
[UI:Label] Time
QPushButton * pqPushButtonDelete
[UI:Button] Delete
void slotConnect(bool)
[UI:Slot] Slot to connect (to the actual device)
COverlayText * poTextLongitude
[UI:Label] Longitude
bool bIgnoreUpdate
Flag that disables checkable buttons update.
CVesselPointDeviceDetailView(QWidget *_pqParent=0)
COverlayText * poTextDate
[UI:Label] Date
QPushButton * pqPushButtonConnect
[UI:Button] Connect (device)
virtual void enableContent()
Enables the content (controls) of the underlying widget.
COverlayText * poTextElevation
[UI:Label] Elevation
void slotDelete()
[UI:Slot] Slot to delete (this point/point)
COverlayText * poTextBearing
[UI:Label] Bearing
COverlayText * poText
[UI:Label] Additional textual data string
COverlayText * poTextName
[UI:Label] Name
QPushButton * pqPushButtonEdit
[UI:Button] Edit
virtual void refreshContent()
Refreshes the content of the underlying widget.
virtual void disableContent()
Disables the content (controls) of the underlying widget.
COverlayText * poTextSpeedVertical
[UI:Label] Vertical speed
COverlayText * poTextFixType
[UI:Label] Fix type
COverlayText * poTextSpeed
[UI:Label] Horizontal speed
COverlayText * poTextLatitude
[UI:Label] Latitude
void slotEdit()
[UI:Slot] Slot to display edit view
COverlayText * poTextTime2
[UI:Label] Time (alternate timezone)
[UI] Vessel device