Qt Virtual Chart Table (QVCT)
CPointerPointDetailView.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_CPOINTERITEMDETAILVIEW_HPP
20 #define QVCT_CPOINTERITEMDETAILVIEW_HPP
21 
22 // QT
23 #include <QPushButton>
24 #include <QWidget>
25 
26 // QVCT
28 class COverlayText;
29 
30 
32 
38 {
39  Q_OBJECT
40 
41 
42  //------------------------------------------------------------------------------
43  // FIELDS
44  //------------------------------------------------------------------------------
45 
46 private:
60  QPushButton* pqPushButtonVisible;
62  QPushButton* pqPushButtonCenter;
64  QPushButton* pqPushButtonDelete;
68  QPushButton* pqPushButtonAddRoute;
69 
70 
71  //------------------------------------------------------------------------------
72  // CONSTRUCTORS / DESTRUCTOR
73  //------------------------------------------------------------------------------
74 
75 public:
76  CPointerPointDetailView( QWidget* _pqParent = 0 );
78 
79 private:
81  void constructLayout();
82 
83 
84  //------------------------------------------------------------------------------
85  // METHODS: COverlayObjectDetailView (implement/override)
86  //------------------------------------------------------------------------------
87 
88 public:
89  virtual void refreshContent();
90  virtual void resetContent();
91 
92 private:
93  virtual void enableContent();
94  virtual void disableContent();
95 
96 
97  //------------------------------------------------------------------------------
98  // METHODS
99  //------------------------------------------------------------------------------
100 
101  // SLOTS
102 private slots:
104  void slotToggleVisible();
106  void slotPositionCenter();
108  void slotDelete();
110  void slotAddLandmark();
112  void slotAddRoute();
113 
114 };
115 
116 #endif // QVCT_CPOINTERITEMDETAILVIEW_HPP
[UI] Generic overlay object's detail view
[UI] Overlay-specific text label
[UI] Pointer item's detail view
COverlayText * poTextPathLengthGC
[UI:Label] Path (great-circle) length
void slotToggleVisible()
[UI:Slot] Slot to modify the visibility status
void slotDelete()
[UI:Slot] Slot to delete last path's point
virtual void resetContent()
Resets (clears) the content of the underlying widget.
void slotAddLandmark()
[UI:Slot] Slot to add new landmark
QPushButton * pqPushButtonAddLandmark
[UI:Button] Add new landmark
virtual void refreshContent()
Refreshes the content of the underlying widget.
QPushButton * pqPushButtonAddRoute
[UI:Button] Add new (route) waypoint
virtual void disableContent()
Disables the content (controls) of the underlying widget.
COverlayText * poTextLongitude
[UI:Label] Longitude
void constructLayout()
Constructs the layout of the user-interface.
virtual void enableContent()
Enables the content (controls) of the underlying widget.
QPushButton * pqPushButtonDelete
[UI:Button] Delete
void slotPositionCenter()
[UI:Slot] Slot to center chart (on item's position)
void slotAddRoute()
[UI:Slot] Slot to add new (route) waypoint
CPointerPointDetailView(QWidget *_pqParent=0)
COverlayText * poTextLatitude
[UI:Label] Latitude
COverlayText * poTextPathSegments
[UI:Label] Path segments count
QPushButton * pqPushButtonCenter
[UI:Button] Center (on chart)
COverlayText * poTextPathLengthRL
[UI:Label] Path (rhumb-line) length
QPushButton * pqPushButtonVisible
[UI:Button] Visibility status
COverlayText * poTextElevation
[UI:Label] Elevation