Qt Virtual Chart Table (QVCT)
CTrackPointDetailView.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_CTRACKITEMDETAILVIEW_HPP
20 #define QVCT_CTRACKITEMDETAILVIEW_HPP
21 
22 // QT
23 #include <QLabel>
24 #include <QPushButton>
25 #include <QWidget>
26 
27 // QVCT
29 class CTrackPoint;
30 class COverlayText;
31 class COverlayUrl;
32 
33 
35 
41 {
42  Q_OBJECT
43 
44  //------------------------------------------------------------------------------
45  // FIELDS
46  //------------------------------------------------------------------------------
47 
48 private:
70  QPushButton* pqPushButtonCenter;
72  QPushButton* pqPushButtonDelete;
76  QPushButton* pqPushButtonAddRoute;
77 
78 
79  //------------------------------------------------------------------------------
80  // CONSTRUCTORS / DESTRUCTOR
81  //------------------------------------------------------------------------------
82 
83 public:
84  CTrackPointDetailView( QWidget* _pqParent = 0 );
85  virtual ~CTrackPointDetailView() {};
86 
87 private:
89  void constructLayout();
90 
91 
92  //------------------------------------------------------------------------------
93  // METHODS: COverlayObjectDetailView (implement/override)
94  //------------------------------------------------------------------------------
95 
96 public:
97  virtual void refreshContent();
98  virtual void resetContent();
99 
100 private:
101  virtual void enableContent();
102  virtual void disableContent();
103 
104 
105  //------------------------------------------------------------------------------
106  // METHODS
107  //------------------------------------------------------------------------------
108 
109  // SLOTS
110 private slots:
112  void slotPositionCenter();
114  void slotDelete();
116  void slotAddLandmark();
118  void slotAddRoute();
119 
120 };
121 
122 #endif // QVCT_CTRACKITEMDETAILVIEW_HPP
[UI] Generic overlay object's detail view
[UI] Overlay-specific text label
[UI] Overlay-specific URL label
Definition: COverlayUrl.hpp:36
[UI] Track item's detail view
COverlayText * poTextDate
[UI:Label] Date
void constructLayout()
Constructs the layout of the user-interface.
QPushButton * pqPushButtonCenter
[UI:Button] Center (on chart)
COverlayText * poTextElevation
[UI:Label] Elevation
COverlayText * poTextSatellite
[UI:Label] Satellite
CTrackPointDetailView(QWidget *_pqParent=0)
virtual void disableContent()
Disables the content (controls) of the underlying widget.
void slotAddRoute()
[UI:Slot] Slot to add new (route) waypoint
virtual void enableContent()
Enables the content (controls) of the underlying widget.
QPushButton * pqPushButtonAddRoute
[UI:Button] Add new (route) waypoint
COverlayText * poTextTime
[UI:Label] Time
QPushButton * pqPushButtonAddLandmark
[UI:Button] Add new landmark
COverlayText * poTextName
[UI:Label] Name
COverlayText * poTextLatitude
[UI:Label] Latitude
COverlayText * poTextDop
[UI:Label] DOP
COverlayText * poTextFixType
[UI:Label] Fix type
QPushButton * pqPushButtonDelete
[UI:Button] Delete
void slotAddLandmark()
[UI:Slot] Slot to add new landmark
COverlayText * poTextLongitude
[UI:Label] Longitude
virtual void resetContent()
Resets (clears) the content of the underlying widget.
void slotPositionCenter()
[UI:Slot] Slot to center chart (on item's position)
virtual void refreshContent()
Refreshes the content of the underlying widget.
COverlayText * poTextTime2
[UI:Label] Time (alternate timezone)
void slotDelete()
[UI:Slot] Slot to delete (this item/point)
[UI] Track overlay point (item)
Definition: CTrackPoint.hpp:40